aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionCardDeckView.scss
diff options
context:
space:
mode:
authorA.J. Shulman <Shulman.aj@gmail.com>2024-10-17 17:41:49 -0400
committerA.J. Shulman <Shulman.aj@gmail.com>2024-10-17 17:41:49 -0400
commitc933ae724c1bf77fa8bd83c3c9e27d0029ef5cb0 (patch)
treedf16f68e9bdb822e5f91c997a431c4b130377290 /src/client/views/collections/CollectionCardDeckView.scss
parent98d0bba3e59ab7ec9dfbf5e6c9c58e6ac1d22ae3 (diff)
parentdd93f5175064850c6c0e47f025cd7bbba1f23106 (diff)
Merge branch 'ajs-before-executable' of https://github.com/brown-dash/Dash-Web into ajs-before-executable
Diffstat (limited to 'src/client/views/collections/CollectionCardDeckView.scss')
-rw-r--r--src/client/views/collections/CollectionCardDeckView.scss24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/client/views/collections/CollectionCardDeckView.scss b/src/client/views/collections/CollectionCardDeckView.scss
index 0637cd4e9..5283601bf 100644
--- a/src/client/views/collections/CollectionCardDeckView.scss
+++ b/src/client/views/collections/CollectionCardDeckView.scss
@@ -7,23 +7,31 @@
background-color: white;
overflow: hidden;
display: flex;
+ .collectionCardView-inner {
+ display: flex;
+ transform-origin: top left;
+ align-items: center;
+ }
button {
border-radius: 50%;
}
}
-.card-wrapper {
- display: grid;
- grid-template-columns: repeat(10, 1fr);
+.collectionCardView-flashcardUI {
+ top: 0;
+ position: absolute;
+ width: 100%;
+ height: 100%;
transform-origin: top left;
+}
- position: absolute;
+.collectionCardView-cardwrapper {
+ display: grid;
+ grid-template-columns: repeat(10, 1fr);
+ transform-origin: left 50%;
align-items: center;
- justify-items: center;
- justify-content: center;
-
- transition: transform 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
+ z-index: 0; // so that setting z-index of active card doesn't make it land on top of things outside of the card-wrapper
}
.no-card-span {