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 {
background-color: black;
font-family: sans-serif;
@ -35,11 +23,11 @@ blockquote {
font-size: 40px;
}
#main {
#navbar {
overflow: hidden;
background-color: #222;
}
#main a {
#navbar a {
float: left;
display: block;
color: lightgray;
@ -47,7 +35,7 @@ blockquote {
padding: 14px 20px;
text-decoration: none;
}
#main a:hover {
#navbar a:hover {
background-color: #444;
color: white;
}
@ -56,18 +44,14 @@ blockquote {
box-sizing: border-box;
}
.page {
flex: 1;
display: flex;
flex-wrap: wrap;
}
.side {
width: 20%;
background-color: #111;
color: lightgray;
padding: 20px;
}
.main {
width: 80%;
.content {
background-color: black;
color: lightgray;
padding: 20px;
@ -77,3 +61,16 @@ blockquote {
text-align: center;
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>
{{ end }}
<div class="main">
<div class="content">
{{- block "main" . }}
{{ .Content }}
{{- end }}

View File

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