hugo-coder-fork/assets/scss/_content.scss

322 lines
5.7 KiB
SCSS
Raw Normal View History

.content {
flex: 1;
display: flex;
margin-top: 1.6rem;
margin-bottom: 3.2rem;
article {
header {
margin-top: 6.4rem;
margin-bottom: 3.2rem;
text-align: center;
h1 {
font-size: 4.2rem;
line-height: 4.6rem;
margin: 0;
2020-02-02 17:13:35 +00:00
@media only screen and (max-width: 768px) {
font-size: 4rem;
line-height: 4.4rem;
}
}
}
footer {
2020-02-02 17:13:35 +00:00
margin-top: 4rem;
.see-also {
margin: 3.2rem 0;
h3 {
2020-02-18 17:44:07 +00:00
margin: 3.2rem 0 1.6rem;
}
.see-also-list {
list-style: none;
padding-left: 0;
text-align: center;
}
}
}
}
.post {
.post-title {
2020-02-02 17:13:35 +00:00
margin-bottom: 0.75em;
}
.post-meta {
2020-02-18 22:54:05 +00:00
display: flex;
flex-wrap: wrap;
justify-content: center;
i {
text-align: center;
width: 1.6rem;
margin-left: 0;
margin-right: 0.5rem;
}
.date {
.posted-on {
2020-02-18 22:54:05 +00:00
// margin-left: 0;
// margin-right: 1.5rem;
}
}
}
2020-02-18 22:54:05 +00:00
.taxonomy {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
}
2020-02-18 17:31:17 +00:00
img {
display: block;
margin-left: auto;
margin-right: auto;
}
figure {
margin: 0;
padding: 0;
}
figcaption p {
text-align: center;
font-style: italic;
font-size: 1.6rem;
margin: 0;
}
2020-02-14 20:07:59 +00:00
.featured-image {
display: block;
margin-left: auto;
margin-right: auto;
}
2020-02-19 15:12:02 +00:00
p a:link {
font-weight: bold;
font-size: 0.95em;
2020-02-19 15:12:02 +00:00
}
2020-02-20 16:47:45 +00:00
.social-links {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
.social-link-icon {
font-size: 1em;
height: 2em;
margin-bottom: 1rem;
display: flex;
&:link {
text-decoration: none;
}
&--svg {
svg {
height: 100%;
}
}
&--text {
height: auto;
font-size: 1.3em;
line-height: 1;
font-weight: bold;
}
}
}
2020-02-19 15:12:02 +00:00
div.content .meta-tag {
display: flex;
align-items: center;
padding: 0 12px;
margin: 3px;
border-radius: 1px;
2020-02-19 15:12:02 +00:00
background-color: darken($bg-color, 5%);
color: lighten($fg-color, 15%);
.icon {
display: flex;
font-size: 0.9em;
line-height: 1;
2020-02-20 15:07:05 +00:00
padding-right: 6px;
}
&--link {
2020-02-19 15:12:02 +00:00
color: $link-color;
font-size: 0.8em;
text-decoration: underline;
&:hover {
opacity: 1;
2020-02-19 15:12:02 +00:00
color: lighten($link-color, 20%);
.icon {
color: $link-color;
}
.svg-icon {
color: $fg-color;
2020-02-20 12:53:28 +00:00
}
}
.svg-icon {
2020-02-20 12:53:28 +00:00
color: $fg-color;
}
}
.svg-icon {
> svg {
height: 1em;
width: 1em;
}
}
}
2020-02-20 12:53:28 +00:00
.post-meta .meta-tag:not(.meta-tag--link) {
display: flex;
align-items: center;
}
2020-02-02 17:13:35 +00:00
.avatar img {
width: 20rem;
height: auto;
border-radius: 50%;
2020-02-02 17:13:35 +00:00
@media only screen and (max-width: 768px) {
width: 10rem;
}
}
.list {
ul:not(.pagination) {
2020-02-18 20:34:13 +00:00
position: relative;
width: 100%;
margin: 3.2rem 0 3.2rem 0;
list-style: none;
padding: 0;
2020-02-18 20:34:13 +00:00
@media only screen and (max-width: 768px) {
text-align: center;
}
li {
2018-09-17 14:48:27 +00:00
font-size: 1.8rem;
2020-02-02 17:13:35 +00:00
@media only screen and (max-width: 768px) {
margin: 1.6rem 0 1.6rem 0;
}
2020-02-18 20:34:13 +00:00
@media only screen and (min-width: 768px) {
display: flex;
margin-bottom: 0.8rem;
}
.date {
display: inline-block;
2020-02-18 20:34:13 +00:00
width: 50%;
text-align: right;
2020-02-18 20:34:13 +00:00
padding-right: 1.5rem;
2020-02-02 17:13:35 +00:00
@media only screen and (max-width: 768px) {
2020-02-18 20:34:13 +00:00
width: 100%;
text-align: center;
font-size: 0.9em;
display: block;
2020-02-18 20:34:13 +00:00
padding-right: 0;
}
@media only screen and (min-width: 768px) {
display: flex;
align-items: start;
justify-content: flex-end;
}
}
.title {
font-size: 1.8rem;
color: $fg-color;
font-family: $heading-font-family;
2020-02-02 17:13:35 +00:00
font-weight: $heading-font-weight--bold;
2020-02-18 20:34:13 +00:00
@media only screen and (min-width: 768px) {
padding-left: 1.5rem;
max-width: 20ch;
}
&:hover,
&:focus {
2020-02-02 17:13:35 +00:00
color: $link-color;
}
}
}
}
h1 {
margin-bottom: 0.8rem;
}
.list-meta {
text-align: center;
.meta-tag {
display: inline-flex;
font-size: 0.7em;
margin-bottom: 1.6rem;
i {
font-size: 1em;
text-align: center;
margin-left: 0;
margin-right: 0.5rem;
}
}
}
}
.centered {
display: flex;
align-items: center;
justify-content: center;
.about {
text-align: center;
h1 {
2020-02-02 17:13:35 +00:00
margin-top: 2rem;
margin-bottom: 0.5rem;
}
h2 {
2020-02-02 17:13:35 +00:00
margin-top: 1rem;
margin-bottom: 0.5rem;
font-size: 2.4rem;
2020-02-02 17:13:35 +00:00
@media only screen and (max-width: 768px) {
font-size: 2rem;
}
}
ul {
list-style: none;
2020-02-02 17:13:35 +00:00
margin: 3rem 0 1rem 0;
padding: 0;
li {
display: inline-block;
position: relative;
a {
color: $fg-color;
text-transform: uppercase;
2020-02-02 17:13:35 +00:00
margin-left: 1rem;
margin-right: 1rem;
&:hover,
&:focus {
color: $link-color;
}
2020-02-02 17:13:35 +00:00
@media only screen and (max-width: 768px) {
font-size: 1.4rem;
}
}
}
}
}
.error {
text-align: center;
h1 {
2020-02-02 17:13:35 +00:00
margin-top: 2rem;
margin-bottom: 0.5rem;
font-size: 4.6rem;
2020-02-02 17:13:35 +00:00
@media only screen and (max-width: 768px) {
font-size: 3.2rem;
}
}
h2 {
2020-02-02 17:13:35 +00:00
margin-top: 2rem;
margin-bottom: 3.2rem;
font-size: 3.2rem;
2020-02-02 17:13:35 +00:00
@media only screen and (max-width: 768px) {
font-size: 2.8rem;
}
}
}
}