diff options
| author | Track3 <pengliabc@live.cn> | 2018-12-16 00:02:21 +0800 |
|---|---|---|
| committer | Track3 <pengliabc@live.cn> | 2018-12-16 00:02:21 +0800 |
| commit | 67f9b4167ae402c69c3001117f38df2556d801f0 (patch) | |
| tree | 7bad35ac42f85c4e91862a12299471b5210d84c9 /assets | |
| parent | 8711c169be1a680f83f35ed362c10776a5a6abc8 (diff) | |
| download | hermit-67f9b4167ae402c69c3001117f38df2556d801f0.tar.gz | |
Adjust style
<figure>, footnotes, <hr> etc.
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/scss/style.scss | 105 |
1 files changed, 84 insertions, 21 deletions
diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 7fc28f5..49a1dc1 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -104,8 +104,8 @@ hr { border-width: 0 0 5px 0; border-style: dashed; background: transparent; - width: 80%; - margin: auto; + width: 50%; + margin: 1.8em auto; } table { @@ -239,7 +239,7 @@ table { #menu-btn { display: none; - margin-left: .7em; + margin-left: .6em; cursor: pointer; } @@ -488,16 +488,34 @@ hr.post-end { @include aTag; figure { - max-width: 100; + max-width: 100%; height: auto; margin: 0; text-align: center; p { - margin-top: 0; + font-size: .8em; + font-style: italic; + @include dimmed; } } + figure.left { + float: left; + margin-right: 1.5em; + max-width: 50%; + } + + figure.right { + float: right; + margin-left: 1.5em; + max-width: 50%; + } + + figure.big { + max-width: 100vw; + } + img { display: block; max-width: 100%; @@ -513,24 +531,34 @@ hr.post-end { } } -figure.left { - float: left; - margin-right: 1em; -} +.footnotes { + font-size: .85em; -figure.right { - float: right; - margin-left: 1em; -} + a { + box-shadow: none; + text-decoration: underline; + transition-property: color; -.footnote-ref a, -a.footnote-return { - box-shadow: none; - text-decoration: underline; + &:hover { + background: transparent; + } - &:hover { - background: transparent; + &.footnote-return { + text-decoration: none; + } } + + ol { + line-height: 1.8; + } +} + +.footnote-ref a { + box-shadow: none; + text-decoration: none; + padding: 2px; + border-radius: 2px; + background-color: $midnightblue; } .post-info { @@ -612,6 +640,25 @@ a.footnote-return { margin-top: 8em; } + figure.left { + margin-left: -240px; + p { + text-align: left; + } + } + + figure.right { + margin-right: -240px; + p { + text-align: right; + } + } + + figure.big { + width: 1200px; + margin-left: -240px; + } + hr.post-end { width: 30%; } @@ -630,6 +677,21 @@ a.footnote-return { max-width: 960px; } + figure.left { + max-width: 75%; + margin-left: -320px; + } + + figure.right { + max-width: 75%; + margin-right: -320px; + } + + figure.big { + width: 1600px; + margin-left: -320px; + } + hr.post-end { width: 30%; } @@ -667,9 +729,10 @@ a.footnote-return { @media (max-width: 520px) { - figure.left, - figure.right { + .content figure.left, + .content figure.right { float: unset; + max-width: 100%; margin: 0; } |
