mmote.ru/themes/mmotium/assets/css/style.scss

231 lines
3.1 KiB
SCSS

@import 'normalize';
@import '_vars';
@import '_font';
@import '_base';
.container {
width: 100%;
max-width: $container-width;
margin: 0 auto;
}
nav.navbar {
& {
background-color: $navbar-color;
color: $navbar-text-color;
font-size: 1.5rem;
padding: 10px 0;
margin-bottom: 1rem;
// line-height: 0%;
}
.logo {
width: 1.5em;
height: 1.5em;
margin-right: 0.5em;
background: no-repeat center url("/images/favicon.png");
background-size: cover;
}
.container {
padding: 0 24px;
display: flex;
align-items: center;
}
a:link,
a:visited {
color: $navbar-text-color;
text-decoration: none;
}
}
.post.single {
& {
background-color: $post-bg-color;
padding: 24px;
margin-bottom: 16px;
}
p {
margin-top: 0;
margin-bottom: 1em;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 0.5em;
margin-bottom: 0.8em;
}
h1,
h2
{
padding-bottom: 0.3em;
border-bottom: 1px solid $table-border-color;
}
h1.page-title {
margin-top: 0;
}
.image-wrapper {
& {
display: inline-block;
text-align: center;
margin: 0;
margin-bottom: 1em;
padding: 16px;
background-color: $image-wrapper-bg-color;
border: 1px solid $image-wrapper-border-color;
}
img {
width: 100%;
}
figcaption {
margin-top: 16px;
}
}
blockquote {
& {
background-color: #f9f9f9;
border-left: 5px solid #ffc7bd;
margin: 0;
padding: 1em;
margin-bottom: 1em;
}
p:last-child {
margin-bottom: 0;
}
}
table {
border-collapse: collapse;
}
table,
th,
td {
border: 1px solid $table-border-color;
}
th,
td {
padding: 0.3rem;
}
}
section.posts {
& {
display: flex;
flex-direction: column;
gap: 16px;
}
.post {
background-color: $post-bg-color;
padding: 24px;
}
.thumb {
float: left;
margin-right: 16px;
margin-bottom: 16px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
// border: 1px solid #ccc;
}
header {
margin-bottom: 1rem;
}
.body::after {
content: " ";
clear: both;
display: block;
}
footer {
margin-top: 1rem;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
footer time {
color: #aaa;
}
footer .category {
color: $tag-color;
border: 1px solid $tag-color;
padding: 0 0.5rem;
}
}
.page-wrapper {
& {
display: flex;
flex-direction: row;
gap: 16px;
}
@media (max-width: $tablet-width) {
& {
flex-direction: column;
}
}
.content-column {
width: 100%;
}
.sidebar {
& {
display: flex;
flex-direction: column;
min-width: 300px;
width: 300px;
gap: 16px;
}
.item {
background-color: $post-bg-color;
padding: 24px;
}
h4 {
margin-bottom: 16px;
}
ul {
list-style-type: "- ";
list-style-position: inside;
padding: 0;
margin: 0;
}
p {
margin: 0;
}
}
}
.page-footer {
min-height: 16px;
}
.comments {
background-color: $post-bg-color;
padding: 24px;
}