fix(article): fix top padding

This commit is contained in:
Jimmy Cai 2020-09-07 11:49:33 +02:00
parent 634e6ce96b
commit 334e918bc3
No known key found for this signature in database
GPG Key ID: 3EA408E527F37B18
2 changed files with 13 additions and 6 deletions

View File

@ -1,8 +1,16 @@
@import "variables.scss"; @import "variables.scss";
.article-page { .article-and-sidebar {
@media (min-width: $on-phone) and (max-width: $on-tablet) { @media (min-width: $on-phone) and (max-width: $on-tablet) {
--main-top-padding: 30px; --main-top-padding: 50px;
}
}
.article-page {
&.with-toolbar {
@media (max-width: $on-tablet) {
--main-top-padding: 0;
}
} }
.left-sidebar { .left-sidebar {
@ -98,12 +106,11 @@
} }
#article-toolbar { #article-toolbar {
margin-bottom: 20px;
display: flex; display: flex;
align-items: center; align-items: center;
@media (max-width: $on-phone) { @media (max-width: $on-tablet) {
margin-top: 20px; margin: 20px 0;
} }
@media (min-width: $on-tablet) { @media (min-width: $on-tablet) {

View File

@ -1,6 +1,6 @@
{{ define "body_class" }}2-column{{ end }} {{ define "body_class" }}2-column{{ end }}
{{ define "main" }} {{ define "main" }}
<div class="container extended flex on-phone--column align-items--flex-start article-page"> <div class="container extended flex on-phone--column align-items--flex-start article-page with-toolbar">
{{ partial "sidebar/left.html" . }} {{ partial "sidebar/left.html" . }}
<div class="flex column do-not-overflow"> <div class="flex column do-not-overflow">