diff options
referat(WT): Implement image clicking
1 files changed, 45 insertions, 0 deletions
| -rw-r--r-- | Year 4/Web technologies/referat/css/effects.css | 45 |
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; +} |
