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

190 lines
2.6 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;
}
.image-wrapper {
& {
display: inline-block;
text-align: center;
margin: 0;
padding: 16px;
background-color: $image-wrappper-bg-color;
border: 1px solid $image-wrappper-border-color;
}
img {
width: 100%;
}
figcaption {
margin-top: 16px;
}
}
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;
}