diff options
Diffstat (limited to 'animism-align/frontend/app/views/viewer/sections/sections.css')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/sections/sections.css | 48 |
1 files changed, 46 insertions, 2 deletions
diff --git a/animism-align/frontend/app/views/viewer/sections/sections.css b/animism-align/frontend/app/views/viewer/sections/sections.css index 1ddb9d2..a60a063 100644 --- a/animism-align/frontend/app/views/viewer/sections/sections.css +++ b/animism-align/frontend/app/views/viewer/sections/sections.css @@ -58,6 +58,14 @@ margin: 1rem 0 1rem 1rem; font-size: 16px; cursor: pointer; + opacity: 0.6; + transition: opacity 0.2s; +} +.viewer-sections .viewer-section:hover { + opacity: 1.0; +} +.viewer-sections .viewer-section.current-section { + opacity: 1.0; } .viewer-sections .viewer-section:last-child { margin-right: 1rem; @@ -66,7 +74,7 @@ height: calc(20rem - 4px); width: 12rem; } -.viewer-sections .section-thumbnail { +.viewer-section .section-thumbnail { display: block; border-radius: 1rem; width: 12rem; @@ -74,8 +82,44 @@ margin-bottom: 0.5rem; background-size: cover; background-position: center center; + position: relative; + overflow: hidden; } -.viewer-sections .section-media { +.viewer-section .section-duration { + position: absolute; + bottom: 0.5rem; + left: 0.5rem; + font-size: 0.75rem; +} +.section-duration-white { color: white; } +.section-duration-black { color: black; } +.section-duration-white svg path { fill: white; } +.section-duration-black svg path { fill: black; } +.viewer-section .section-media { margin-top: 0.75rem; font-size: 12px; } +.viewer-section .section-has-audio { + position: absolute; + bottom: -0.25rem; + right: 0.25rem; +} +.viewer-section .section-has-audio svg { + width: 2.5rem; + height: 2.5rem; +} +.viewer-section .section-progress-bar { + position: absolute; + bottom: 0; + left: 0; + width: 100%; + height: 3px; + background: #333; +} +.viewer-section .section-progress { + position: absolute; + top: 0; + left: 0; + height: 3px; + background: #fff; +}
\ No newline at end of file |
