Clean up bobastyle, flexbox will be improved soon

This commit is contained in:
BBaoVanC 2021-09-29 21:33:23 -05:00
parent 1fcf18dd75
commit 49dca7471b
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
3 changed files with 19 additions and 22 deletions

View File

@ -1,15 +1,3 @@
@media screen and (max-width: 700px) {
.page {
flex-direction: column;
}
}
@media screen and (max-width: 400px) {
#main a {
float: none;
width: 100%;
}
}
body { body {
background-color: black; background-color: black;
font-family: sans-serif; font-family: sans-serif;
@ -35,11 +23,11 @@ blockquote {
font-size: 40px; font-size: 40px;
} }
#main { #navbar {
overflow: hidden; overflow: hidden;
background-color: #222; background-color: #222;
} }
#main a { #navbar a {
float: left; float: left;
display: block; display: block;
color: lightgray; color: lightgray;
@ -47,7 +35,7 @@ blockquote {
padding: 14px 20px; padding: 14px 20px;
text-decoration: none; text-decoration: none;
} }
#main a:hover { #navbar a:hover {
background-color: #444; background-color: #444;
color: white; color: white;
} }
@ -56,18 +44,14 @@ blockquote {
box-sizing: border-box; box-sizing: border-box;
} }
.page { .page {
flex: 1;
display: flex; display: flex;
flex-wrap: wrap;
} }
.side { .side {
width: 20%;
background-color: #111; background-color: #111;
color: lightgray; color: lightgray;
padding: 20px; padding: 20px;
} }
.main { .content {
width: 80%;
background-color: black; background-color: black;
color: lightgray; color: lightgray;
padding: 20px; padding: 20px;
@ -77,3 +61,16 @@ blockquote {
text-align: center; text-align: center;
background: #ddd; background: #ddd;
} }
@media screen and (max-width: 700px) {
.page {
flex-direction: column;
}
}
@media screen and (max-width: 400px) {
#navbar a {
float: none;
width: 100%;
}
}

View File

@ -15,7 +15,7 @@
</div> </div>
{{ end }} {{ end }}
<div class="main"> <div class="content">
{{- block "main" . }} {{- block "main" . }}
{{ .Content }} {{ .Content }}
{{- end }} {{- end }}

View File

@ -1,4 +1,4 @@
<nav id="main"> <nav id="navbar">
<a href="{{ "/" | relURL }}">Home</a> <a href="{{ "/" | relURL }}">Home</a>
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a> <a href="{{ .URL }}">{{ .Name }}</a>