diff --git a/src/resources/css/style.css b/src/resources/css/style.css index b46bc24..16c5f93 100644 --- a/src/resources/css/style.css +++ b/src/resources/css/style.css @@ -192,6 +192,45 @@ h2 { background: rgba(255, 255, 255, 0.15); } +.modal-fullscreen { + position: absolute; + top: -1.5rem; + right: 2.1rem; + background: transparent; + color: #fff; + font-size: 1.35rem; + line-height: 1; + padding: 0 0.4rem; + border-radius: 4px; + cursor: pointer; + border: none; + font-family: inherit; +} + +.modal-fullscreen:hover { + background: rgba(255, 255, 255, 0.15); +} + +/* Reposition controls inside the box when in fullscreen */ +.modal-box:fullscreen, +.modal-box:-webkit-full-screen { + border-radius: 0; + width: 100vw; + height: 100vh; +} + +.modal-box:fullscreen .modal-close, +.modal-box:-webkit-full-screen .modal-close { + top: 0.5rem; + right: 0.5rem; +} + +.modal-box:fullscreen .modal-fullscreen, +.modal-box:-webkit-full-screen .modal-fullscreen { + top: 0.5rem; + right: 3rem; +} + #modal-video { width: 100%; height: 100%; diff --git a/src/templates/index.html b/src/templates/index.html index d6a0c24..dd29006 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -52,7 +52,7 @@
{{ t.card3_text }}
-