website/nav.css

52 lines
806 B
CSS
Raw Normal View History

2023-06-14 00:26:49 +00:00
body { margin: 0; }
2023-06-13 21:33:21 +00:00
body > * {
box-sizing: border-box;
float: left;
padding: 4px;
}
#main {
2023-06-13 21:39:00 +00:00
position: absolute;
2023-06-13 21:33:21 +00:00
top: 0;
2023-06-13 21:39:00 +00:00
left: 192px;
2023-06-13 21:33:21 +00:00
width: calc(100% - 192px);
}
#nav {
width: 192px;
2023-06-14 00:26:49 +00:00
height: 100%;
2023-06-13 21:33:21 +00:00
background-color: #cccccc;
2023-06-13 21:39:00 +00:00
position: fixed;
2023-06-13 21:33:21 +00:00
top: 0;
2023-06-13 21:39:00 +00:00
left: 0;
2023-06-13 21:33:21 +00:00
}
.nav-item {
padding: 0px 4px 0px 4px;
margin: 2px;
background-color: #800000;
color: #ddd;
display: block;
}
.nav-item:hover {
background-color: #ffffff;
color: #800000;
}
2023-06-14 00:26:49 +00:00
.nav-section-bottom {
position: absolute;
bottom: 0;
2023-06-13 21:37:52 +00:00
}
2023-06-13 21:33:21 +00:00
@media only screen and (max-width: 576px) {
#main, #nav {
2023-06-13 21:39:00 +00:00
position: initial;
2023-06-13 21:33:21 +00:00
width: 100%;
}
2023-06-14 00:26:49 +00:00
#nav { height: initial; }
.nav-item { padding: 4px; }
2023-06-14 00:26:49 +00:00
.nav-section-bottom{ display: hidden; }
}