diff options
| author | la-ninpre <leobrekalini@gmail.com> | 2021-02-23 21:39:07 +0300 |
|---|---|---|
| committer | la-ninpre <leobrekalini@gmail.com> | 2021-02-23 21:41:36 +0300 |
| commit | 62e974a0832e919da8a919fcaa78adaa68e74505 (patch) | |
| tree | 0da2280e040d8cf37967079d4bcbb43925866802 /_sass | |
| parent | 7dc61f0a62d69c1a189a7de5825037c10b4fb0f0 (diff) | |
| download | aaoth.xyz-62e974a0832e919da8a919fcaa78adaa68e74505.tar.gz aaoth.xyz-62e974a0832e919da8a919fcaa78adaa68e74505.zip | |
tweak art menu and add more pictures
add two new categories - drawings and logos.
this css tinkering is so time consuming >_<
Diffstat (limited to '_sass')
| -rw-r--r-- | _sass/main.scss | 51 |
1 files changed, 47 insertions, 4 deletions
diff --git a/_sass/main.scss b/_sass/main.scss index cdb979d..ea31867 100644 --- a/_sass/main.scss +++ b/_sass/main.scss @@ -10,6 +10,7 @@ $color-link-idle: #707070; $color-link-hover: #999999; $color-nav-current: #333333; $nav-alpha: 0.95; +$body-width: 835px; $border-main: 5px solid; $border-nav: $border-main $color-main-grey; $border-dark: $border-main $color-dark-grey; @@ -22,7 +23,7 @@ html { } body { - max-width: 835px; + max-width: $body-width; min-width: 378px; margin: 0 auto; padding: 8px; @@ -46,6 +47,7 @@ a:hover { nav { display: flex; position: fixed; + z-index: 10; top: 0; width: 100%; max-width: 843px; @@ -161,14 +163,51 @@ ul { } .art-menu { + $art-thumb-wt: ($body-width / 2) - 16; + $art-thumb-ht: 300px; + //$art-thumb-ht: $art-thumb-wt; display: flex; flex-flow: row wrap; align-items: flex-start; justify-content: space-around; + align-content: center; .art-category { - img { - width: 100%; - height: auto; + margin-bottom: 1em; + .link-mask { + position: absolute; + z-index: 1; + width: $art-thumb-wt; + height: $art-thumb-ht; + line-height: $art-thumb-ht - 16; + text-align: center; + background: $color-main-bg; + opacity: 0; + transition: opacity 0.2s ease-in-out; + font-size: 200%; + color: $color-dark-bg; + + &:hover { + opacity: 0.7; + } + } + .thumbnail { + width: $art-thumb-wt; + height: $art-thumb-ht; + position: relative; + + &::after { + content: ""; + display: block; + padding-bottom: 100%; + } + + img { + position: absolute; + width: 100%; + height: 100%; + image-orientation: initial; + object-fit: cover; + } } } } @@ -295,6 +334,10 @@ footer { code { background: $color-darker-grey; } + .art-menu .art-category .link-mask { + background: $color-dark-bg; + color: $color-main-bg; + } div.highlight { background: $color-darker-grey; } |
