From baebb8f5b6b325c03ff2a97d7ef3d1a16f1aed0a Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 21 Dec 2024 14:50:54 +0200 Subject: referat(WT): Implement image clicking --- Year 4/Web technologies/referat/css/effects.css | 45 +++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Year 4/Web technologies/referat/css/effects.css (limited to 'Year 4/Web technologies/referat/css/effects.css') diff --git a/Year 4/Web technologies/referat/css/effects.css b/Year 4/Web technologies/referat/css/effects.css new file mode 100644 index 0000000..9ac3088 --- /dev/null +++ b/Year 4/Web technologies/referat/css/effects.css @@ -0,0 +1,45 @@ +figure { + cursor: pointer; +} + +.none { + display: none; +} +.no-overflow { + overflow: hidden; +} +.no-selection { + -webkit-user-select: none; /* Safari */ + -ms-user-select: none; /* IE 10 and IE 11 */ + user-select: none; /* Standard syntax */ +} + +.full-screen { + position: absolute; + max-width: 100vw; + max-height: 100vh; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + color: white; + margin: 0; + z-index: 100; +} + +.full-screen > img { + max-width: inherit; + max-height: inherit; + display: block; + margin: auto; + padding: 0.5em; + box-sizing: border-box; +} + +#full-screen-backing { + position: absolute; + width: 100vw; + height: 100vh; + background-color: rgb(0, 0, 0, 0.85); + left: 0; + z-index: 99; +} -- cgit v1.3.1-26-gb76a