Чистка стилей

This commit is contained in:
MultiMote 2023-11-22 11:12:35 +03:00
parent a57f071a4c
commit 2a044a1522
3 changed files with 34 additions and 54 deletions

View File

@ -10,7 +10,6 @@ body {
line-height: normal; line-height: normal;
color: $font-color; color: $font-color;
background-color: $page-bg-color; background-color: $page-bg-color;
// background: url($page-bg-image) repeat scroll 0 0 $page-bg-color;
} }
h1, h1,

View File

@ -4,7 +4,6 @@ $tablet-width: 768px;
$font-color: #333333; $font-color: #333333;
$navbar-color: #404c5e; $navbar-color: #404c5e;
// $navbar-color: #2262b1;
$navbar-text-color: white; $navbar-text-color: white;
$link-color: #00465c; $link-color: #00465c;
$link-hover-color: #0096c4; $link-hover-color: #0096c4;
@ -17,4 +16,4 @@ $post-bg-color: white;
$image-wrapper-bg-color: #fcfcfc; $image-wrapper-bg-color: #fcfcfc;
$image-wrapper-border-color: #d6d6d6; $image-wrapper-border-color: #d6d6d6;
$table-border-color: #d6d6d6; $table-border-color: #d6d6d6;

View File

@ -10,14 +10,11 @@
} }
nav.navbar { nav.navbar {
& { background-color: $navbar-color;
background-color: $navbar-color; color: $navbar-text-color;
color: $navbar-text-color; font-size: 1.5rem;
font-size: 1.5rem; padding: 10px 0;
padding: 10px 0; margin-bottom: 1rem;
margin-bottom: 1rem;
// line-height: 0%;
}
.logo { .logo {
width: 1.5em; width: 1.5em;
@ -41,12 +38,10 @@ nav.navbar {
} }
.post.single { .post.single {
& { background-color: $post-bg-color;
background-color: $post-bg-color; padding: 24px;
padding: 24px; margin-bottom: 16px;
margin-bottom: 16px; word-break: break-word;
word-break: break-word;
}
p { p {
margin-top: 0; margin-top: 0;
@ -75,15 +70,13 @@ nav.navbar {
} }
.image-wrapper { .image-wrapper {
& { display: inline-block;
display: inline-block; text-align: center;
text-align: center; margin: 0;
margin: 0; margin-bottom: 1em;
margin-bottom: 1em; padding: 16px;
padding: 16px; background-color: $image-wrapper-bg-color;
background-color: $image-wrapper-bg-color; border: 1px solid $image-wrapper-border-color;
border: 1px solid $image-wrapper-border-color;
}
img { img {
width: 100%; width: 100%;
@ -95,13 +88,11 @@ nav.navbar {
} }
blockquote { blockquote {
& { background-color: #f9f9f9;
background-color: #f9f9f9; border-left: 5px solid #ffc7bd;
border-left: 5px solid #ffc7bd; margin: 0;
margin: 0; padding: 1em;
padding: 1em; margin-bottom: 1em;
margin-bottom: 1em;
}
p:last-child { p:last-child {
margin-bottom: 0; margin-bottom: 0;
@ -130,11 +121,9 @@ nav.navbar {
section.posts { section.posts {
& { display: flex;
display: flex; flex-direction: column;
flex-direction: column; gap: 16px;
gap: 16px;
}
.post { .post {
background-color: $post-bg-color; background-color: $post-bg-color;
@ -146,7 +135,6 @@ section.posts {
margin-right: 16px; margin-right: 16px;
margin-bottom: 16px; margin-bottom: 16px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
// border: 1px solid #ccc;
} }
@ -179,16 +167,12 @@ section.posts {
} }
.page-wrapper { .page-wrapper {
& { display: flex;
display: flex; flex-direction: row;
flex-direction: row; gap: 16px;
gap: 16px;
}
@media (max-width: $tablet-width) { @media (max-width: $tablet-width) {
& { flex-direction: column;
flex-direction: column;
}
} }
.content-column { .content-column {
@ -196,13 +180,11 @@ section.posts {
} }
.sidebar { .sidebar {
& { display: flex;
display: flex; flex-direction: column;
flex-direction: column; min-width: 300px;
min-width: 300px; width: 300px;
width: 300px; gap: 16px;
gap: 16px;
}
.item { .item {
background-color: $post-bg-color; background-color: $post-bg-color;