From cc7513e5bded1b6d0a359a7ee85c8d365b5dd1b1 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Fri, 25 Jun 2021 15:53:01 +0200 Subject: [PATCH] =?UTF-8?q?Modal=20s=20medailonky=20realiz=C3=A1tor=C5=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 39 +++++++++++++++++++++++++++++++++++---- style.css | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 0ba9ae4..ecc08ec 100644 --- a/index.html +++ b/index.html @@ -80,29 +80,54 @@

Realizační team

-
+
Jana Slezáková +
-
+
Petra Vallin +
-
+
Darina Jirotková +
-
+
Jana Poche Kargerová +
@@ -147,6 +172,12 @@ + + diff --git a/style.css b/style.css index 9fe32c1..2bf8ff9 100644 --- a/style.css +++ b/style.css @@ -101,6 +101,7 @@ main .team figure { padding: 1em; margin: 0; } +main .team figure, main .team figure * { cursor: pointer } main .team figure img { width: 100% } main .team figure label { display: block; @@ -145,3 +146,35 @@ footer img { footer img.pedf { width: 10em } footer img:hover { transform: scale(1.1) } +.modal { + visibility: hidden; + position: fixed; + left: 0; + top: 0; + width: 100%; + height: 100vh; + + display: flex; + align-items: center; + justify-content: center; + + background-color: rgba(0,0,0,0.5); + + transition: opacity .2s ease-out; + opacity: 0; +} +.modal .content { + max-width: var(--width); + padding: 3em; + background-color: #fff; + transform: translate(0, -2em); + transition: transform .2s ease-out; +} +.modal.visible { + visibility: visible; + opacity: 1; +} +.modal.visible .content { + transform: translate(0); +} +