diff options
author | Paul Wellner Bou <paul@wellnerbou.de> | 2021-11-08 13:49:52 +0300 |
---|---|---|
committer | Paul Wellner Bou <paul@wellnerbou.de> | 2021-11-08 13:49:52 +0300 |
commit | 079d2cd8005171fb0128b5eb06e5ccd9419f4611 (patch) | |
tree | 3532683e03ad3e38bd85e6f9b90249779cbf6a19 /static | |
parent | 26dcc1cdce0208094b154ae8b348e85e2247fe4f (diff) |
Implement possibility to add a site header image
Diffstat (limited to 'static')
-rw-r--r-- | static/css/styles-dark.css | 11 | ||||
-rw-r--r-- | static/css/styles-light.css | 11 |
2 files changed, 18 insertions, 4 deletions
diff --git a/static/css/styles-dark.css b/static/css/styles-dark.css index d6ddebb..829db62 100644 --- a/static/css/styles-dark.css +++ b/static/css/styles-dark.css @@ -277,13 +277,20 @@ a { box-shadow: 0 3px 3px #bbbbbb; } -.full-image, figure.full img, img[src*="full"] { +/** +:not(#home) and :not(#list) is avoiding full width image in list of posts, e.g. home and taxonomy pages + */ +header .full-image, header figure.full img, header img[src*="full"], +article .full-image, article figure.full img, article img[src*="full"], +section:not(#list):not(#home) .full-image, section:not(#list):not(#home) figure.full img, section:not(#list):not(#home) img[src*="full"] { width: 100%; box-shadow: 0 3px 3px #bbbbbb; } @supports (width: 100vw) { - .full-image, figure.full img, img[src*="full"] { + header .full-image, header figure.full img, header img[src*="full"], + article .full-image, article figure.full img, article img[src*="full"], + section:not(#list):not(#home) .full-image, section:not(#list):not(#home) figure.full img, section:not(#list):not(#home) img[src*="full"] { width: 100vw; position: relative; left: 50%; diff --git a/static/css/styles-light.css b/static/css/styles-light.css index 9bb16df..bc9350e 100644 --- a/static/css/styles-light.css +++ b/static/css/styles-light.css @@ -276,13 +276,20 @@ a { box-shadow: 0 3px 3px #bbbbbb; } -.full-image, figure.full img, img[src*="full"] { +/** +:not(#home) and :not(#list) is avoiding full width image in list of posts, e.g. home and taxonomy pages + */ +header .full-image, header figure.full img, header img[src*="full"], +article .full-image, article figure.full img, article img[src*="full"], +section:not(#list):not(#home) .full-image, section:not(#list):not(#home) figure.full img, section:not(#list):not(#home) img[src*="full"] { width: 100%; box-shadow: 0 3px 3px #bbbbbb; } @supports (width: 100vw) { - .full-image, figure.full img, img[src*="full"] { + header .full-image, header figure.full img, header img[src*="full"], + article .full-image, article figure.full img, article img[src*="full"], + section:not(#list):not(#home) .full-image, section:not(#list):not(#home) figure.full img, section:not(#list):not(#home) img[src*="full"] { width: 100vw; position: relative; left: 50%; |