feat: improve top padding and article toolbar style

This commit is contained in:
Jimmy Cai 2020-09-07 11:34:28 +02:00
parent 829678936b
commit 634e6ce96b
No known key found for this signature in database
GPG Key ID: 3EA408E527F37B18
4 changed files with 11 additions and 6 deletions

View File

@ -1,6 +1,10 @@
@import "variables.scss"; @import "variables.scss";
.article-page { .article-page {
@media (min-width: $on-phone) and (max-width: $on-tablet) {
--main-top-padding: 30px;
}
.left-sidebar { .left-sidebar {
@media (max-width: $on-tablet) { @media (max-width: $on-tablet) {
display: none; display: none;
@ -99,7 +103,7 @@
align-items: center; align-items: center;
@media (max-width: $on-phone) { @media (max-width: $on-phone) {
margin-top: 15px; margin-top: 20px;
} }
@media (min-width: $on-tablet) { @media (min-width: $on-tablet) {

View File

@ -25,7 +25,7 @@
@media (min-width: $on-phone + 1) { @media (min-width: $on-phone + 1) {
width: 25%; width: 25%;
margin-right: 1%; margin-right: 1%;
padding: 50px 15px; padding: var(--main-top-padding) 15px;
max-height: 100vh; max-height: 100vh;
} }

View File

@ -52,10 +52,7 @@ main.main {
padding: 0 15px; padding: 0 15px;
max-width: 100%; max-width: 100%;
flex-grow: 1; flex-grow: 1;
padding-top: var(--main-top-padding);
@media (min-width: $on-phone + 1) {
padding-top: 50px;
}
} }
.main-grid { .main-grid {

View File

@ -10,6 +10,10 @@ $on-desktop-large: 1920px;
* CSS Variables * CSS Variables
*/ */
:root { :root {
@media (min-width: $on-phone + 1) {
--main-top-padding: 50px;
}
--body-background: #f5f5fa; --body-background: #f5f5fa;
--accent-color: #34495e; --accent-color: #34495e;
--accent-color-darker: #2c3e50; --accent-color-darker: #2c3e50;