diff options
author | Asur <asur@asurbernardo.com> | 2020-01-11 16:22:14 +0300 |
---|---|---|
committer | Asur <asur@asurbernardo.com> | 2020-01-11 16:22:14 +0300 |
commit | 1acb3b5db778f28e5f3476d82ddbf95f7e34d8ac (patch) | |
tree | df8af24785cb1becb3a55b9ddb4d2e8743f67530 /assets | |
parent | 2023ba6ff4ab4bf0a4333485ef86d6c64b25bf83 (diff) |
Improve image caption looks
Diffstat (limited to 'assets')
-rw-r--r-- | assets/theme.scss | 62 |
1 files changed, 52 insertions, 10 deletions
diff --git a/assets/theme.scss b/assets/theme.scss index d8e18d3..bc39ce7 100644 --- a/assets/theme.scss +++ b/assets/theme.scss @@ -5,7 +5,7 @@ body { font-size: 1.2em; font-family: Courier New; line-height: 2; - color: #333; + color: black; } .header, .main, .footer { @@ -127,17 +127,23 @@ blockquote { } .figure { - position: relative; + width: 100%; + &--with-caption { + display: flex; + border-top: 6px solid #333; + } + &__image { + &--with-caption { + min-width: 70%; + } + } &__caption { - display: block; - position: absolute; - max-width: 60%; - bottom: 1rem; - left: -1rem; - padding: 0 1rem; background-color: #333; color: white; font-weight: 700; + padding: .5em 1em; + height: min-content; + word-wrap: break-word; } } @@ -159,6 +165,39 @@ blockquote { } } +.product { + width: max-content; + position: relative; + display: flex; + flex-wrap: wrap; + justify-content: space-around; + padding: 1em; + &__image { + width: 100%; + max-height: 300px; + max-width: 300px; + } + &__content { + display:flex; + flex-direction: column; + } + &__title { + font-weight: 700; + font-size: 1.5rem; + } + &__cta { + font-weight: 700; + font-size: 1.2em; + padding: .5em; + color: white; + background-color: #333; + border-bottom: unset; + position: absolute; + bottom: -1rem; + right: -1rem; + } +} + #tags { margin: 0; padding: 0; @@ -206,7 +245,6 @@ blockquote { } } .highlight { - overflow: auto; .chroma { background-color: #F1F1F1; } @@ -295,10 +333,14 @@ blockquote { justify-content: space-between; } .figure { - position: relative; + flex-direction: column-reverse; + &--with-caption { + border-top: none; + } &__caption { position: relative; max-width: 100%; + } } }
\ No newline at end of file |