diff options
author | uPagge <upagge@mail.ru> | 2021-01-10 15:29:25 +0300 |
---|---|---|
committer | uPagge <upagge@mail.ru> | 2021-01-10 15:29:25 +0300 |
commit | 6edefa43d2f4dae69fc1cee7ccfbbf47748dc5de (patch) | |
tree | b3b38e27d98f0639bafd90ad09cd889135200d80 /assets/css | |
parent | a1e1fba5f2f4efc84889b3afbe4ec440a33eb60b (diff) |
css fix position
Diffstat (limited to 'assets/css')
-rw-r--r-- | assets/css/_core/_media.scss | 8 | ||||
-rw-r--r-- | assets/css/_page/_index.scss | 8 | ||||
-rw-r--r-- | assets/css/_ublogger.scss | 19 | ||||
-rw-r--r-- | assets/css/_ublogger_media.scss | 30 |
4 files changed, 40 insertions, 25 deletions
diff --git a/assets/css/_core/_media.scss b/assets/css/_core/_media.scss index 44d232c..0a16282 100644 --- a/assets/css/_core/_media.scss +++ b/assets/css/_core/_media.scss @@ -52,14 +52,6 @@ .page, .content-block { width: 100%; - [data-header-mobile] & { - padding-top: $header-height; - } - - [data-header-mobile=normal] & { - padding-top: 0; - } - .categories-card { .card-item { width: 100%; diff --git a/assets/css/_page/_index.scss b/assets/css/_page/_index.scss index ae16eed..7b6e8d6 100644 --- a/assets/css/_page/_index.scss +++ b/assets/css/_page/_index.scss @@ -4,14 +4,6 @@ width: 60%; margin: 0 auto; - [data-header-desktop] & { - padding-top: $header-height; - } - - [data-header-desktop=normal] & { - padding-top: 0; - } - @include blur; } diff --git a/assets/css/_ublogger.scss b/assets/css/_ublogger.scss index e7fa76d..43aad3b 100644 --- a/assets/css/_ublogger.scss +++ b/assets/css/_ublogger.scss @@ -39,8 +39,12 @@ body { } .summary-content { - padding-top: 10px; - padding-bottom: 10px; + color: #a9a9b3; + display: inline; + + p { + margin: 1rem 0; + } } header { @@ -200,7 +204,7 @@ a.post-tag-summary { } } -.page, .content-block-position { +.page { max-width: 900px; width: 100%; @@ -214,6 +218,13 @@ a.post-tag-summary { } +.content-block-position { + max-width: 900px; + width: 100%; + min-width: 200px; + box-sizing: border-box; +} + .page.home { max-width: 800px; } @@ -724,7 +735,7 @@ footer { margin: 1rem auto; .tag { - margin-top: 3px; + margin-top: 10px; margin-right: 10px; padding: 5px 10px 5px 10px; background: $global-color-accent; diff --git a/assets/css/_ublogger_media.scss b/assets/css/_ublogger_media.scss index 2689da6..4ef6767 100644 --- a/assets/css/_ublogger_media.scss +++ b/assets/css/_ublogger_media.scss @@ -94,10 +94,11 @@ article { margin-right: auto; margin-left: auto; + } - .content-block-position { - margin: 6rem auto; - } + .content-block-position { + margin-left: auto; + margin-right: auto; } } @@ -172,11 +173,16 @@ border-radius: 0; } - [data-header-desktop] & { - margin-top: 3rem; + .content-block-position:first-child { + margin-top: 0; } } + .header-post { + border-radius: 0; + margin-top: 0; + } + .comments { padding: 10px 10px 10px; } @@ -192,6 +198,18 @@ } } + .theme-classic, .theme-wide, .theme-full { + .header-post { + margin-top: 3rem; + } + } + + .theme-classic, .theme-wide, .theme-full, .theme-mega-full { + article { + margin-top: 0; + } + } + .single { border-radius: 0; @@ -356,4 +374,6 @@ } } + + }
\ No newline at end of file |