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

185 lines
2.6 KiB
SCSS
Raw Normal View History

2023-01-01 18:21:01 +03:00
@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;
2023-01-01 18:21:01 +03:00
}
.container {
padding: 0 24px;
display: flex;
align-items: center;
2023-01-01 18:21:01 +03:00
}
a:link,
a:visited {
color: $navbar-text-color;
text-decoration: none;
}
}
.post.single {
2023-01-01 22:58:40 +03:00
& {
background-color: $post-bg-color;
padding: 24px;
margin-bottom: 16px;
}
2023-01-01 18:21:01 +03:00
.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;
2023-01-01 18:21:01 +03:00
}
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;
}
}
.sidebar {
& {
display: flex;
flex-direction: column;
min-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;
2023-01-01 22:58:40 +03:00
}
.comments {
background-color: $post-bg-color;
padding: 24px;
2023-01-01 18:21:01 +03:00
}