git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e40afd6
)
word/memory: fullscreen grid of 4x3 or 2x6 cards
author
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 23 Dec 2021 02:12:13 +0000
(
03:12
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 31 Dec 2021 04:29:05 +0000
(
05:29
+0100)
word/memory.plp
patch
|
blob
|
history
diff --git
a/word/memory.plp
b/word/memory.plp
index 1bb8cebb3ae6211b609e4bf14fa513ef4776410a..8aa952cbe24958d91725be8a2d952896f949e3d6 100644
(file)
--- a/
word/memory.plp
+++ b/
word/memory.plp
@@
-6,6
+6,17
@@
Html({
<script src="/word/memory.js"></script>
<style>
/* cards */
<script src="/word/memory.js"></script>
<style>
/* cards */
+#quiz {
+ display: grid;
+ grid: repeat(3, 1fr) / repeat(4, 1fr);
+ grid-gap: 1ex;
+ min-height: calc(100vh - 11.5ex);
+}
+@media (orientation: portrait) {
+ #quiz {
+ grid: repeat(6, 1fr) / repeat(2, 1fr);
+ }
+}
html {
overflow: hidden; /* rotation overflow on celebration */
}
html {
overflow: hidden; /* rotation overflow on celebration */
}
@@
-14,9
+25,7
@@
figure {
display: inline-block;
background: #224;
border: 1px solid #888;
display: inline-block;
background: #224;
border: 1px solid #888;
- margin: 2px;
perspective: 100em;
perspective: 100em;
- height: 300px;
position: relative;
}
figure:not(.turn):hover {
position: relative;
}
figure:not(.turn):hover {
@@
-33,7
+42,7
@@
figure img {
backface-visibility: hidden;
transform: rotateY(180deg); /* back */
transform-style: preserve-3d;
backface-visibility: hidden;
transform: rotateY(180deg); /* back */
transform-style: preserve-3d;
- float: left; /* ff workaround to prevent click selection */
+
-
float: left; /* ff workaround to prevent click selection */
}
/* turn results */
}
/* turn results */