aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionCardDeckView.scss
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2025-03-11 17:43:05 +0100
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2025-03-11 17:43:05 +0100
commitfa937182bc93aa2c6faadda80ea998cdfd479b4e (patch)
treecba8e16edcccc6fd2932173484ac444cb79abea2 /src/client/views/collections/CollectionCardDeckView.scss
parentcf91c46cfec6e3e36b9184764016f9c1b5c997d4 (diff)
parent04669ffeb163688c7aefd7b5face7998252abdca (diff)
Merge branch 'master' of https://github.com/brown-dash/Dash-Web into DocCreatorMenu-work
Diffstat (limited to 'src/client/views/collections/CollectionCardDeckView.scss')
-rw-r--r--src/client/views/collections/CollectionCardDeckView.scss37
1 files changed, 27 insertions, 10 deletions
diff --git a/src/client/views/collections/CollectionCardDeckView.scss b/src/client/views/collections/CollectionCardDeckView.scss
index d1731c244..e6cc398af 100644
--- a/src/client/views/collections/CollectionCardDeckView.scss
+++ b/src/client/views/collections/CollectionCardDeckView.scss
@@ -1,28 +1,45 @@
-@import '../global/globalCssVariables.module.scss';
-
.collectionCardView-outer {
height: 100%;
width: 100%;
position: relative;
background-color: white;
overflow: hidden;
+ display: flex;
+ .collectionCardView-inner {
+ display: flex;
+ transform-origin: top left;
+ align-items: center;
+ position: relative;
+ }
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;
+ 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
+}
+.collectionCardView-cardSizeDragger {
+ position: absolute;
+ top: 0;
+ width: 28px;
+ height: 28px;
+ > svg {
+ width: 100%;
+ height: 100%;
+ }
}
.no-card-span {