minetest_modding_book/_sass/_main.scss

130 lines
1.5 KiB
SCSS

html, body {
font-family: "Arial", sans-serif;
margin: 0;
padding: 0;
font-size: 17px;
background: #333;
color: black;
}
#container {
width: 100%;
max-width: 1100px;
margin: auto;
position: relative;
}
#page {
background: white;
margin: 0;
padding: 0 20px 20px 20px;
position: absolute;
left: 250px;
right: 0;
top: 0;
}
#navbar {
position: absolute;
left: 0;
width: 250px;
top: 0;
padding: 0;
margin: 0;
display: block;
list-style: none;
background: #333;
color: white;
}
#navbar li {
display: block;
margin: 0;
padding: 0;
}
#navbar li a.hr {
border-top: 2px solid #666;
}
#navbar li a.selected {
background: #363 !important;
color: white !important;
}
#navbar li a.selected:hover {
background: #474 !important;
}
#navbar li a {
display: block;
padding: 5px;
color: #ccc;
text-decoration: none;
cursor: pointer;
}
#navbar li:nth-child(odd) a {
background: #3c3c3c;
}
#navbar li a:hover {
background: #444;
}
@media all and (max-height: 568px) {
#navbar {
position: absolute;
}
}
@media all and (max-width: 780px) {
#navbar {
position: static;
margin: 0;
width: 100%;
}
#navbar li a {
padding: 10px;
}
#page {
position: static;
margin: 0;
padding-top: 20px;
}
}
@media print {
#navbar{
display: none !important;
}
#page {
left: 0 !important;
}
.header-link {
display: none !important;
}
a {
color: black !important;
text-decoration: none !important;
}
html, body {
background: none;
font-size: 11pt;
}
#container {
max-width: none;
margin: 0;
position: relative;
}
}