simoncor.net/themes/hugo-coder/assets/scss/_content.scss

253 lines
4.1 KiB
SCSS
Raw Permalink Normal View History

2020-07-16 22:43:30 +02:00
.content {
flex: 1;
display: flex;
margin-top: 1.6rem;
margin-bottom: 3.2rem;
2024-08-26 17:13:18 +02:00
@media only screen and (max-width: 768px) {
margin-top: 1rem;
margin-bottom: 1.6rem;
}
header {
margin-top: 6.4rem;
margin-bottom: 3.2rem;
h1 {
font-size: 4.2rem;
line-height: 4.6rem;
margin: 0;
@media only screen and (max-width: 768px) {
font-size: 4rem;
line-height: 4.4rem;
}
}
}
2020-07-16 22:43:30 +02:00
article {
2024-08-26 17:13:18 +02:00
a:where(.external-link)::after {
@extend %fa-icon;
@extend .fa-solid;
content: fa-content($fa-var-external-link);
padding-left: 0.5em;
font-size: 0.75em;
}
details {
summary {
cursor: pointer;
2020-07-16 22:43:30 +02:00
}
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
footer {
2024-08-26 17:13:18 +02:00
margin-top: 4rem;
2020-07-16 22:43:30 +02:00
.see-also {
margin: 3.2rem 0;
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
h3 {
margin: 3.2rem 0;
}
}
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
p {
text-align: justify;
text-justify: auto;
2024-08-26 17:13:18 +02:00
-ms-hyphens: auto;
-webkit-hyphens: auto;
2020-07-16 22:43:30 +02:00
hyphens: auto;
}
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
.post {
.post-title {
2024-08-26 17:13:18 +02:00
margin-bottom: 0.75em;
2020-07-16 22:43:30 +02:00
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
.post-meta {
i {
text-align: center;
width: 1.6rem;
margin-left: 0;
margin-right: 0.5rem;
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
.date {
.posted-on {
margin-left: 0;
margin-right: 1.5rem;
}
}
2024-08-26 17:13:18 +02:00
.tags {
.tag {
display: inline-block;
padding: 0.3rem 0.6rem;
background-color: $alt-bg-color;
border-radius: 0.6rem;
line-height: 1.5em;
a {
color: $fg-color;
}
a:active {
color: $fg-color;
}
}
}
2020-07-16 22:43:30 +02:00
}
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
figure {
margin: 0;
padding: 0;
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
figcaption p {
text-align: center;
font-style: italic;
font-size: 1.6rem;
margin: 0;
}
}
2024-08-26 17:13:18 +02:00
.avatar img {
2020-07-16 22:43:30 +02:00
width: 20rem;
height: auto;
border-radius: 50%;
2024-08-26 17:13:18 +02:00
@media only screen and (max-width: 768px) {
width: 17rem;
2020-07-16 22:43:30 +02:00
}
}
.list {
ul {
margin: 3.2rem 0 3.2rem 0;
list-style: none;
padding: 0;
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
li {
font-size: 1.8rem;
2024-08-26 17:13:18 +02:00
@media only screen and (max-width: 768px) {
2020-07-16 22:43:30 +02:00
margin: 1.6rem 0 1.6rem 0;
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
.date {
display: inline-block;
2024-08-26 17:13:18 +02:00
flex: 1;
width: 20rem;
2020-07-16 22:43:30 +02:00
text-align: right;
2024-08-26 17:13:18 +02:00
margin-right: 3rem;
@media only screen and (max-width: 768px) {
2020-07-16 22:43:30 +02:00
display: block;
text-align: left;
}
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
.title {
font-size: 1.8rem;
2024-08-26 17:13:18 +02:00
flex: 2;
2020-07-16 22:43:30 +02:00
color: $fg-color;
2024-08-26 17:13:18 +02:00
font-family: $font-family;
2020-07-16 22:43:30 +02:00
font-weight: 700;
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
&:hover,
&:focus {
2024-08-26 17:13:18 +02:00
color: $link-color;
2020-07-16 22:43:30 +02:00
}
}
}
}
2024-08-26 17:13:18 +02:00
ul:not(.pagination) {
li {
@media only screen and (min-width: 768.1px) {
display: flex;
}
}
}
2020-07-16 22:43:30 +02:00
}
.centered {
display: flex;
align-items: center;
justify-content: center;
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
.about {
text-align: center;
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
h1 {
2024-08-26 17:13:18 +02:00
margin-top: 2rem;
2020-07-16 22:43:30 +02:00
margin-bottom: 0.5rem;
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
h2 {
2024-08-26 17:13:18 +02:00
margin-top: 1rem;
2020-07-16 22:43:30 +02:00
margin-bottom: 0.5rem;
font-size: 2.4rem;
2024-08-26 17:13:18 +02:00
@media only screen and (max-width: 768px) {
font-size: 2rem;
2020-07-16 22:43:30 +02:00
}
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
ul {
list-style: none;
2024-08-26 17:13:18 +02:00
margin: 3rem 0 1rem 0;
2020-07-16 22:43:30 +02:00
padding: 0;
2024-08-26 17:13:18 +02:00
cursor: pointer;
2020-07-16 22:43:30 +02:00
li {
display: inline-block;
position: relative;
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
a {
color: $fg-color;
text-transform: uppercase;
2024-08-26 17:13:18 +02:00
margin-left: 1rem;
margin-right: 1rem;
2020-07-16 22:43:30 +02:00
font-size: 1.6rem;
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
&:hover,
&:focus {
color: $link-color;
}
2024-08-26 17:13:18 +02:00
@media only screen and (max-width: 768px) {
font-size: 1.5rem;
2020-07-16 22:43:30 +02:00
}
}
}
}
}
.error {
text-align: center;
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
h1 {
2024-08-26 17:13:18 +02:00
margin-top: 2rem;
2020-07-16 22:43:30 +02:00
margin-bottom: 0.5rem;
font-size: 4.6rem;
2024-08-26 17:13:18 +02:00
@media only screen and (max-width: 768px) {
2020-07-16 22:43:30 +02:00
font-size: 3.2rem;
}
}
2024-08-26 17:13:18 +02:00
2020-07-16 22:43:30 +02:00
h2 {
2024-08-26 17:13:18 +02:00
margin-top: 2rem;
2020-07-16 22:43:30 +02:00
margin-bottom: 3.2rem;
font-size: 3.2rem;
2024-08-26 17:13:18 +02:00
@media only screen and (max-width: 768px) {
2020-07-16 22:43:30 +02:00
font-size: 2.8rem;
}
}
}
}