minetest_modding_book/_sass/_main.scss

201 lines
2.5 KiB
SCSS
Raw Normal View History

html, body {
font-family: "Arial", sans-serif;
margin: 0;
padding: 0;
font-size: 17px;
background: #333;
2018-07-20 20:23:22 +03:00
color: #222;
}
#container {
width: 100%;
max-width: 1100px;
margin: auto;
position: relative;
}
2018-01-13 05:21:18 +03:00
nav {
position: absolute;
left: 0;
2018-01-13 03:09:21 +03:00
width: 280px;
top: 0;
padding: 0;
margin: 0;
display: block;
list-style: none;
background: #333;
color: white;
}
2018-01-13 05:21:18 +03:00
nav li {
display: block;
margin: 0;
padding: 0;
}
2018-01-13 05:21:18 +03:00
nav li a.hr {
border-top: 2px solid #666;
}
2018-01-13 05:21:18 +03:00
nav li a.selected {
background: #363 !important;
color: white !important;
}
2018-01-13 05:21:18 +03:00
nav li a.selected:hover {
background: #474 !important;
}
2018-01-13 05:21:18 +03:00
nav li a {
display: block;
padding: 5px;
color: #ccc;
text-decoration: none;
cursor: pointer;
}
2018-01-13 05:21:18 +03:00
nav li:nth-child(odd) a {
background: #3c3c3c;
}
2018-01-13 05:21:18 +03:00
nav li a:hover {
background: #444;
}
main {
margin: 0;
padding: 0;
position: absolute;
left: 280px;
right: 0;
top: 0;
}
article {
background: white;
padding: 0 20px 20px 20px;
2018-07-20 20:23:22 +03:00
line-height: 1.4;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased !important;
-moz-font-smoothing: antialiased !important;
text-rendering: optimizeLegibility !important;
letter-spacing: .01em;
// text-align: justify;
2018-01-13 05:21:18 +03:00
}
2020-08-19 01:38:19 +03:00
.language-switcher {
display: flex;
align-items: center;
float: right;
color: black;
text-decoration: none;
padding-top: 0.3rem;
img, span {
display: inline-block;
}
img {
height: 1.2em;
padding-right: 0.3em;
}
}
2018-01-13 05:21:18 +03:00
footer {
margin: 0 0 20px 0;
padding: 1em 1.5em;
background: #444;
2018-01-13 05:21:18 +03:00
color: #fff;
border-radius: 0 0 10px 10px;
}
2018-01-13 05:21:18 +03:00
footer a {
color: #0be;
text-decoration: none;
}
footer a:hover {
color: #0df;
text-decoration: underline;
}
2019-08-14 02:50:30 +03:00
header {
2018-01-13 05:21:18 +03:00
text-align: center;
padding: 100px 0;
}
2019-08-14 02:50:30 +03:00
header h1 {
2018-01-13 05:21:18 +03:00
padding-bottom: 20px;
}
2019-08-14 02:50:30 +03:00
header span {
2018-01-13 05:21:18 +03:00
display: block;
padding: 6px;
}
.homepage h1 {
font-size: 200%;
}
2019-08-14 02:50:30 +03:00
.book-only {
display: none;
}
@media all and (max-height: 568px) {
2018-01-13 05:21:18 +03:00
nav {
position: absolute;
}
}
@media all and (max-width: 780px) {
2018-01-13 05:21:18 +03:00
nav {
position: static;
margin: 0;
width: 100%;
}
2018-01-13 05:21:18 +03:00
nav li a {
padding: 10px;
}
2018-01-13 05:21:18 +03:00
main {
position: static;
margin: 0;
padding-top: 20px;
}
}
@media print {
2018-01-13 05:21:18 +03:00
nav{
display: none !important;
}
2018-01-13 05:21:18 +03:00
main {
left: 0 !important;
}
.header-link {
display: none !important;
}
a {
color: black !important;
text-decoration: none !important;
}
html, body {
background: none;
font-size: 11pt;
}
2018-02-25 04:25:10 +03:00
footer {
display: none;
}
#container {
max-width: none;
margin: 0;
position: relative;
}
}