mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 18:31:45 +01:00
fix(article): fix top padding
This commit is contained in:
parent
634e6ce96b
commit
334e918bc3
2 changed files with 13 additions and 6 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue