minetest_modding_book/static/style.scss

192 lines
2.3 KiB
SCSS
Raw Normal View History

2015-02-06 11:29:12 -08:00
---
---
2014-12-11 00:56:37 -08:00
html, body {
font-family: "Arial", sans-serif;
margin: 0;
padding: 0;
2015-02-06 11:16:14 -08:00
font-size: 17px;
2014-12-11 00:56:37 -08:00
background: #333;
}
2015-01-01 09:14:18 -08:00
.printable #navbar{
display: none;
}
.printable #page {
left: 0;
}
.printable .header-link {
display: none !important;
}
2014-12-12 12:04:24 -08:00
a {
color: blue;
text-decoration: underline;
}
2014-12-18 10:57:13 -08:00
img {
max-width: 100%;
}
2014-12-29 11:19:46 -08:00
figure {
padding: 0;
margin: 0;
}
.right_image {
float: right;
margin: 0 0 0 10px;
padding: 0;
}
.right_image img {
margin: 0;
padding: 0;
}
.right_image figcaption {
padding: 0 0 0 6px;
}
2014-12-11 00:56:37 -08:00
#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;
}
2014-12-31 08:43:27 -08:00
#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;
2014-12-12 12:04:24 -08:00
}
2014-12-11 00:56:37 -08:00
#navbar li a {
display: block;
padding: 5px;
color: #ccc;
text-decoration: none;
2015-01-01 09:14:18 -08:00
cursor: pointer;
2014-12-11 00:56:37 -08:00
}
2014-12-31 08:43:27 -08:00
#navbar li:nth-child(odd) a {
background: #3c3c3c;
}
2014-12-11 00:56:37 -08:00
#navbar li a:hover {
background: #444;
}
2014-12-30 10:50:46 -08:00
.notice {
margin: 10px;
display: block;
padding: 5px;
border: 1px solid orange;
border-radius: 5px;
background: #FFEEDD;
2014-12-11 00:56:37 -08:00
2014-12-30 10:50:46 -08:00
}
.notice h2 {
margin: 0 0 5px 0;
padding: 0 0 2px 0;
}
2014-12-11 00:56:37 -08:00
code {
display: inline-block;
2014-12-11 11:49:41 -08:00
padding: 5px 10px 5px 10px;
2014-12-11 00:56:37 -08:00
margin: 2px;
background: #f0f0f0;
border: 1px solid #e0e0e0;
border-radius: 2px;
white-space: pre;
2015-02-06 11:16:14 -08:00
max-width: 95%;
overflow-x: auto;
2015-02-08 11:01:23 -08:00
font-size: 14px;
vertical-align: middle;
2014-12-11 00:56:37 -08:00
}
2015-01-01 09:05:03 -08:00
.header-link {
position: absolute;
right: 10px;
text-decoration: none;
color: #bbb;
}
.header-link:hover {
color: #999;
}
2014-12-11 00:56:37 -08:00
h1 {
text-align: center;
margin: 10px 0 0 0;
}
h2 {
border-bottom: 1px solid black;
2014-12-11 11:49:41 -08:00
margin: 30px 0 10px 0;
2014-12-11 00:56:37 -08:00
display: block;
padding: 0 0 5px 0;
clear: both;
2014-12-11 00:56:37 -08:00
}
h3 {
font-size: 105%;
font-weight: bold;
2014-12-11 11:49:41 -08:00
margin: 30px 0 10px 0;
2014-12-11 00:56:37 -08:00
}
.toc > ul > li > ul > li > ul {
display: none;
}
2015-02-06 11:16:14 -08:00
@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;
}
}