aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionCardDeckView.scss
diff options
context:
space:
mode:
authoraidahosa1 <aisosa_idahosa@brown.edu>2024-05-11 22:30:39 -0400
committeraidahosa1 <aisosa_idahosa@brown.edu>2024-05-11 22:30:39 -0400
commit4429a0565888d9118e37f1e58dec300220831661 (patch)
tree9d36a70c9d907450332ee741432a3c60ad2d56a7 /src/client/views/collections/CollectionCardDeckView.scss
parentce50b3e3f2f76438b3e3bd9b178b0a8573aa0343 (diff)
transformations are being unbelieveably silly rn
Diffstat (limited to 'src/client/views/collections/CollectionCardDeckView.scss')
-rw-r--r--src/client/views/collections/CollectionCardDeckView.scss31
1 files changed, 24 insertions, 7 deletions
diff --git a/src/client/views/collections/CollectionCardDeckView.scss b/src/client/views/collections/CollectionCardDeckView.scss
index ff9c0a569..aafc3b556 100644
--- a/src/client/views/collections/CollectionCardDeckView.scss
+++ b/src/client/views/collections/CollectionCardDeckView.scss
@@ -2,26 +2,43 @@
.collectionCardView-outer {
height: 100%;
+ width: 100%;
position: relative;
background-color: white;
overflow: hidden;
}
.card-wrapper {
- display: flex;
+ display: grid;
+ grid-template-columns: repeat(10, 1fr); /* Creates 10 columns, adjust number as needed */
+ // width: 100%;
+
position: absolute;
align-items: center;
+ justify-items: center;
+ justify-content: center;
+
transition: transform 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
-.card-row{
- display: flex;
- position: absolute;
- align-items: center;
- transition: transform 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
+// .card-wrapper::after {
+// content: "";
+// width: 100%; /* Forces wrapping */
+// }
+// .card-wrapper > .card-item:nth-child(10n)::after {
+// content: "";
+// width: 100%; /* Forces wrapping after every 10th item */
+// }
-}
+// .card-row{
+// display: flex;
+// position: absolute;
+// align-items: center;
+// transition: transform 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
+
+
+// }
.card-item-active,
.card-item {