Summary Files Commits Branches @commit @diff @stats
path: root / src / styles.css
diff options
context:
space:
mode:
Commitf1a8f7f2493b32d079a67e79765c9034013793c4 (patch)
Author
 Kamen Mladenov <kamen.d.mladenov@protonmail.com>
2022-02-20 11:49:14 +0000
Committer
 Kamen Mladenov <kamen.d.mladenov@protonmail.com>
2022-02-20 11:49:14 +0000
Files80d54a436fb49b7b1460b8969cea74d396b39f31 /src/styles.css
syndamia.com-f1a8f7f2493b32d079a67e79765c9034013793c4.tar
syndamia.com-f1a8f7f2493b32d079a67e79765c9034013793c4.tar.gz
syndamia.com-f1a8f7f2493b32d079a67e79765c9034013793c4.zip
Parentca0111fcf56a0ff1964a750fa23a6950cfeeb9b6 (diff)
Parentd4886f28cead7d0c2b77d791c5077ba9d525e0a0 (diff)
Merge branch 'image-click-zoom' into 'master'
Image click zoom See merge request Syndamia/syndamiadotcom!2
1 files changed, 21 insertions, 6 deletions
-rw-r--r--src/styles.css27
diff --git a/src/styles.css b/src/styles.css
index c322f77..7024177 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -58,7 +58,7 @@ img {
image-rendering: crisp-edges;
}
-img:hover {
+.pixelated-render {
image-rendering: pixelated;
}
@@ -162,10 +162,6 @@ h2 + p img, h3 + p img, h4 + p img, h5 + p img, h6 + p img {
}
@media screen and (min-width: 610px) {
- #index-page {
- margin-bottom: 10px;
- }
-
#index-contents {
display: flex;
align-items: center;
@@ -245,7 +241,7 @@ article > table td:first-child {
width: 60%;
}
-article > table td:nth-child(2) {
+article > table td:nth-child(n+2) {
line-height: 1.1em;
padding: 0.3em;
padding-top: 0.2em;
@@ -364,6 +360,25 @@ code span {
color: #afaf00;
}
+/* Script specific styling */
+
+.clicked-image {
+ position: absolute;
+ width: 100vw;
+ height: 100vh;
+ max-width: none !important;
+ max-height: none !important;
+ border: none;
+ object-fit: contain;
+ left: 0;
+ top: 0;
+ padding: 1em;
+}
+
+.body-on-clicked-image {
+ overflow: hidden;
+}
+
/* OpenSans font */
@font-face {