Summary Files Commits Branches @commit @diff @stats
path: root / Year 4 / Web technologies / referat / css / effects.css
diff options
context:
space:
mode:
Commitbaebb8f5b6b325c03ff2a97d7ef3d1a16f1aed0a (patch)
Author
 Syndamia <kamen@syndamia.com>
2024-12-21 14:50:54 +0200
Committer
 Syndamia <kamen@syndamia.com>
2024-12-21 14:50:54 +0200
Files9bb12850dfdd085c5b14c8f5949c7dbba1925049 /Year 4/Web technologies/referat/css/effects.css
uni-projects-baebb8f5b6b325c03ff2a97d7ef3d1a16f1aed0a.tar
uni-projects-baebb8f5b6b325c03ff2a97d7ef3d1a16f1aed0a.tar.gz
uni-projects-baebb8f5b6b325c03ff2a97d7ef3d1a16f1aed0a.zip
Parentf1ca4a625aa0a79f9b9fb12528b347f5c28bdba5 (diff)
referat(WT): Implement image clicking
1 files changed, 45 insertions, 0 deletions
-rw-r--r--Year 4/Web technologies/referat/css/effects.css45
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;
+}