gnusocial.rocks/assets/css/blog.css

192 lines
3.0 KiB
CSS
Raw Normal View History

2022-02-25 21:22:57 +00:00
* {
box-sizing: border-box;
text-decoration: none;
appearance: none;
}
header {
position: fixed;
2022-02-25 21:22:57 +00:00
background-color: #201E1F;
2022-02-25 21:22:57 +00:00
width: 22vw;
height: 100vh;
top: 0;
2022-02-25 21:22:57 +00:00
-webkit-box-shadow: 2px 5px 16px 0px rgba(34, 30, 34, 0.4),
17px 26px 15px 0px rgba(0, 0, 0, 0);
box-shadow: 2px 5px 16px 0px rgba(34, 30, 34, 0.4),
17px 26px 15px 0px rgba(0, 0, 0, 0);
}
2022-02-25 21:22:57 +00:00
header b {
font-weight: bold;
}
2022-02-25 21:22:57 +00:00
header a {
display: block;
width: 100%;
}
2022-02-25 21:22:57 +00:00
header .menu-list {
margin-top: 1rem;
}
2022-02-25 21:22:57 +00:00
.header-main {
margin: 0.666em;
border-radius: 3px 0.666em 0.666em 3px;
font-size: 1.802rem;
background: #a22430;
2022-02-25 21:22:57 +00:00
padding: 6px 12px;
width: 100%;
color: #f6f4f6;
-webkit-box-shadow: 2px 5px 16px 0px rgba(34, 30, 34, 0.4),
17px 26px 15px 0px rgba(0, 0, 0, 0);
box-shadow: 2px 5px 16px 0px rgba(34, 30, 34, 0.4),
17px 26px 15px 0px rgba(0, 0, 0, 0);
}
2022-02-25 21:22:57 +00:00
.header-main * {
color: #f6f4f6;
}
2022-02-25 21:22:57 +00:00
.header-main img {
height: 1em;
margin-right: 4px;
}
2022-02-25 21:22:57 +00:00
.menu-link {
2022-02-25 21:22:57 +00:00
color: #f6f4f6;
}
2022-02-25 21:22:57 +00:00
.menu-link:hover,
.menu-link:focus {
color: #c8bcc8;
transition: 500ms ease-in-out;
}
2022-02-25 21:22:57 +00:00
.menu-selected,
.menu-selected > a {
2021-09-13 13:10:54 +01:00
color: #fff;
2022-02-25 21:22:57 +00:00
font-weight: bolder;
}
.content-wrapper,
#template-wrapper {
2021-12-09 14:50:33 +00:00
display: flex;
flex-direction: column;
2022-02-25 21:22:57 +00:00
margin-left: 22vw;
padding: 1.802rem 11vw;
2021-12-09 14:50:33 +00:00
margin-right: auto;
}
#template-wrapper:first-of-type {
padding-top: 1rem;
}
#template-wrapper:last-of-type {
padding-bottom: 1rem;
}
.template-unit {
padding-top: 1rem;
2022-02-25 21:22:57 +00:00
border-top: 2px solid #221e2233;
}
.template-unit h3 {
margin-top: 0 !important;
}
.template-unit:nth-of-type(n + 2) {
margin-top: 2rem !important;
2021-08-19 02:27:12 +01:00
}
.template-unit ul :last-child {
margin-bottom: unset;
}
.template-unit ul + p {
margin-top: 1rem;
}
2021-12-09 14:50:33 +00:00
.template-unit img {
display: block;
2022-02-25 21:22:57 +00:00
max-width: 800px;
2021-12-09 14:50:33 +00:00
max-height: 400px;
width: auto;
height: auto;
margin-top: 5px;
}
.allposts_header + ul :last-child {
margin-bottom: 1rem;
}
2021-08-19 02:58:06 +01:00
.subtitle {
margin-bottom: 2rem;
}
2021-12-09 14:49:58 +00:00
2022-02-25 21:22:57 +00:00
.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6,
.content-wrapper label {
font-family: "open_sansbold";
font-weight: bold;
}
pre,
blockquote {
2021-08-19 03:25:26 +01:00
color: #666666;
margin: 0;
padding-left: 3em;
2022-02-25 21:22:57 +00:00
border-left: 0.5em #eee solid;
2021-08-19 03:25:26 +01:00
}
2022-02-25 21:22:57 +00:00
2021-12-09 14:49:58 +00:00
pre {
2022-02-25 21:22:57 +00:00
font-family: monospace;
margin-bottom: 1rem;
white-space: pre;
overflow-x: scroll;
2021-12-09 14:49:58 +00:00
}
2022-02-25 21:22:57 +00:00
s:after {
font-size: 0.66em;
content: '\2713';
background: #3f3b3b;
padding: 0 4px;
border-radius: 3px;
margin-left: 4px;
color: limegreen;
}
footer {
2021-09-11 18:24:40 +01:00
padding: 1rem;
2022-02-25 21:22:57 +00:00
background-color: #201E1F;
2021-09-11 18:24:40 +01:00
color: #e9eaed;
2022-02-25 21:22:57 +00:00
margin-left: 22vw;
2021-09-11 18:24:40 +01:00
}
2022-02-25 21:22:57 +00:00
footer a {
font-family: "open_sansbold";
2021-09-11 18:24:40 +01:00
font-weight: bold;
color: #e9eaed;
}
2022-02-25 21:22:57 +00:00
@media screen and (max-width: 767px) {
header {
box-sizing: border-box;
position: relative;
background-color: #201E1F;
width: 100vw;
height: max-content;
padding-bottom: 1rem;
}
.header-main {
margin: 0;
}
.content-wrapper,
#template-wrapper {
margin-left: 0;
padding: 1rem 2rem;
}
footer {
margin-left: 0;
}
}