diff options
author | Jean-Nicolas Veigel <art.jnveigel@gmail.com> | 2024-03-14 23:29:09 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-03-26 10:31:25 +0000 |
commit | 1189a4538d497f2054f7bdbcf5a4beee9bda99b3 (patch) | |
tree | ba482aa871eed861a9b208f842616e5a3cbe6f2f /static | |
parent | 5f6b483eb576b994cc94660c71ee3948b2464c1b (diff) | |
download | tour-1189a4538d497f2054f7bdbcf5a4beee9bda99b3.tar.gz tour-1189a4538d497f2054f7bdbcf5a4beee9bda99b3.zip |
style: tweak light mode code block
Diffstat (limited to 'static')
-rw-r--r-- | static/style.css | 45 |
1 files changed, 19 insertions, 26 deletions
diff --git a/static/style.css b/static/style.css index bb00a2a..e850eef 100644 --- a/static/style.css +++ b/static/style.css @@ -571,7 +571,7 @@ main#everything { } .theme-light #everything-lessons .lesson-snippet { - box-shadow: var(--gap) var(--gap) 0 var(--unnamed-blue); + box-shadow: var(--gap) var(--gap) 0 var(--unexpected-aubergine); } #everything-lessons .lesson-snippet code { @@ -656,32 +656,23 @@ main#everything { inset: 0; top: var(--navbar-height); grid-column: 1 / span 2; - padding-left: calc( var(--gap) + var(--gap-quad)); + padding-left: calc( var(--gap) + var(--gap-quad) * 2); transform: translateX(-100%); transition: transform 300ms ease-in 0s, overflow-y 0s linear 600ms; z-index: 10; overflow: unset; - - box-shadow: 0 var(--gap-double) var(--gap-double) rgba(0, 0, 0, 0.4); + box-shadow: 0 0 0 rgba(0, 0, 0, 0.4); background: var(--color-background-dim); } - /* show / hide contents when touching on trigger */ #everything-contents:hover:not(:has(a:hover)) { - transform: translateX(0); + transform: translateX(calc(-2 * var(--gap-quad))); + box-shadow: 0 var(--gap-double) var(--gap-quad) rgba(0, 0, 0, 0.4); /* overflow-x: hidden; */ animation: reveal 300ms ease-out 20ms forwards 1; } - - - /* show / hide contents when touching on trigger */ - /* #everything-contents:hover:not(:is(:has(a:active), :has(a:focus))) { */ - - /* animation: reveal 300ms ease-out 0s forwards 1; */ - /* } */ - #everything-contents::before { display:none; } @@ -693,22 +684,33 @@ main#everything { inset: unset; bottom: 0; right: calc(-100%); - font-size: var(--font-size-normal); + font-size: var(--font-size-small); filter: none; width: calc(100vw); transform: translateX(0); display: flex; align-items: center; justify-content: center; - color: var(--faff-pink); - + color: var(--color-text); + font-weight: bold; background: var(--color-background-dim); z-index: 60; opacity: 1; + transition: opacity 300ms ease-out 450ms; pointer-events: all; box-sizing: border-box; } + .theme-light #everything-contents::after { + filter: contrast(1); + } + + + #everything-contents:hover:not(:has(a:hover))::after { + opacity: 0; + transition: opacity 150ms ease-in 0s; + } + #everything-lessons { grid-column: 1 / span 2; padding-bottom: var(--gap-quad); @@ -765,13 +767,4 @@ main#everything { 100% { overflow-y: auto; } -} - -@keyframes hide { - 0% { - overflow-y: auto - } - 100% { - overflow: unset; - } }
\ No newline at end of file |