minetest_modding_book/_sass/_content.scss

178 lines
2.1 KiB
SCSS
Raw Permalink Normal View History

a {
color: blue;
text-decoration: underline;
}
img {
max-width: 100%;
}
figure {
padding: 0;
margin: 0;
.credit {
display: block;
font-size: 70%;
}
}
.right_image {
float: right;
text-align: right;
margin: 0 0 0 10px;
padding: 0;
}
.right_image img {
margin: 0;
padding: 0;
}
.right_image figcaption {
padding: 0 0 0 6px;
}
2018-07-20 22:51:31 +03:00
.notice-info {
background: #ececec !important;
border: 1px solid #aaa !important;
}
2018-07-20 21:50:19 +03:00
.notice-danger {
2018-07-20 22:51:31 +03:00
background: #fcc !important;
border: 1px solid #a66 !important;
2018-07-20 21:50:19 +03:00
}
.notice-warning {
background: #FED;
border: 1px solid #fc9;
}
.notice-tip {
background: #ccf;
border: 1px solid #66a;
}
.notice-green {
background: #161;
border: 1px solid #393;
}
.notice {
margin: 10px;
display: block;
padding: 5px;
border-radius: 5px;
2018-07-20 21:50:19 +03:00
position: relative;
}
2018-07-20 22:51:31 +03:00
.notice p {
margin: 0 0 17px 0;
}
.notice p:last-child {
margin: 0;
}
2018-07-20 21:50:19 +03:00
.notice > span {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 40px;
font-size: 24px;
text-align: center;
display: block;
}
2018-07-20 21:50:19 +03:00
.notice > div {
margin-left: 35px;
}
.notice h2 {
margin: 0 0 5px 0;
padding: 0 0 2px 0;
2018-07-20 22:51:31 +03:00
font-size: 100%;
}
.header-link, .anchor {
text-decoration: none;
color: #bbb;
padding: 0 10px 0 0;
}
.header-link {
position: absolute;
right: 10px;
}
.header-link:hover {
color: #999;
}
h1 {
text-align: center;
2018-01-13 05:21:18 +03:00
margin: 0;
padding: 10px 0 0 0;
}
h2 {
border-bottom: 1px solid black;
margin: 30px 0 10px 0;
display: block;
padding: 0 0 5px 0;
clear: both;
}
h3 {
font-size: 105%;
font-weight: bold;
margin: 30px 0 10px 0;
}
.toc > ul > li > ul > li > ul {
display: none;
}
.prevnext {
display: flex;
list-style: none;
margin: 0 auto;
padding: 0;
background: #eee;
li {
display: inline-block;
list-style: none;
margin: 0;
padding: 0;
flex: 1;
a {
display: block;
margin: 0;
padding: 1em 0;
text-align: center;
font-size: 100%;
text-decoration: none;
color: black;
}
a:hover {
text-decoration: none;
background: #fff;
}
}
li:first-child {
border-right: 2px solid white;
}
li:last-child {
border-left: 2px solid white;
}
}