aboutsummaryrefslogtreecommitdiff
path: root/public/product.css
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-05-08 18:35:39 +0200
committerlonkaars <loek@pipeframe.xyz>2023-05-08 18:35:39 +0200
commit770658c8434d7b7c0e716b7e375c733e79dc4a88 (patch)
tree5c1b48cfd9fd5748f0cb7d95051b396e15867fb5 /public/product.css
parentf3b582307cc3caf5ee0c7514d461e47fb5893bc7 (diff)
more website
Diffstat (limited to 'public/product.css')
-rw-r--r--public/product.css52
1 files changed, 50 insertions, 2 deletions
diff --git a/public/product.css b/public/product.css
index 5b718c9..54fe81b 100644
--- a/public/product.css
+++ b/public/product.css
@@ -4,6 +4,54 @@
gap: 16px;
}
-.twocolumn .left {
- text-align: center;
+.twocolumn .left { text-align: center; }
+.twocolumn .left img {
+ max-width: 100%;
+ transition: box-shadow 300ms;
}
+.twocolumn .left a {
+ transition: transform 300ms;
+}
+
+.twocolumn .left a:hover { transform: scale(103%); }
+.twocolumn .left a:hover img { box-shadow: 0px 7px 40px -17px #0009; }
+
+.twocolumn .left a {
+ position: relative;
+ display: inline-block;
+ line-height: 0;
+}
+
+.twocolumn .left a::after,
+.twocolumn .left img {
+ border-radius: 8px;
+}
+
+.twocolumn .left a::after {
+ content: "Open in nieuw tabblad";
+ font-size: 75%;
+}
+.twocolumn .left a::after {
+ white-space: nowrap;
+ display: block;
+ background-color: var(--bg-alt);
+ color: var(--fg);
+ padding: 8px 12px;
+ position: absolute;
+ bottom: -8px;
+ left: 50%;
+ transform: translate(-50%, 100%) translateY(-10px);
+ line-height: initial;
+ margin-top: 20px;
+ transition-property: opacity, transform;
+ transition-duration: 300ms;
+ opacity: 0;
+}
+
+.twocolumn .left a:hover:after {
+ transform: translate(-50%, 100%) translateY(0px);
+ opacity: 1;
+}
+
+.twocolumn .right h2 { margin-top: 0; }
+