aboutsummaryrefslogtreecommitdiff
path: root/front/src/components/carousel.css
diff options
context:
space:
mode:
authorStanisław Zagórowski <hasohasacz@gmail.com>2023-08-30 18:00:11 +0200
committerStanisław Zagórowski <hasohasacz@gmail.com>2023-08-30 18:00:11 +0200
commitb7c37574f4f90fc346bc51dd06c77c8958570b33 (patch)
tree72895a18a8d72ecd35bf9b71030d6bf40ae34167 /front/src/components/carousel.css
parentb661407d801c8ccaa7773ae30f0fc26a1d70ffff (diff)
all: move front into its own directory
Diffstat (limited to 'front/src/components/carousel.css')
-rw-r--r--front/src/components/carousel.css68
1 files changed, 68 insertions, 0 deletions
diff --git a/front/src/components/carousel.css b/front/src/components/carousel.css
new file mode 100644
index 0000000..f311805
--- /dev/null
+++ b/front/src/components/carousel.css
@@ -0,0 +1,68 @@
+.carousel-content {
+ align-self: center;
+ max-height: 100%;
+ white-space: nowrap;
+ -ms-overflow-style: none; /* hide scrollbar in IE and Edge */
+ scrollbar-width: none; /* hide scrollbar in Firefox */
+}
+
+.carousel-item {
+ width: 100%;
+ flex-shrink: 0;
+ height: auto;
+ float: left;
+ text-align: center;
+ transition: all 250ms linear;
+ white-space: nowrap;
+ vertical-align: middle;
+}
+
+.slick-slider {
+ margin: 24px;
+}
+
+.slick-slide {
+ margin: 0 auto;
+ border-radius: 10px;
+ text-align: center;
+ float: none !important;
+ display: inline-block !important;
+ vertical-align: middle;
+ min-height: 1px;
+}
+
+.carousel-item > * {
+ border-radius: 10px;
+ vertical-align: middle;
+ width: 100%;
+ height: auto;
+}
+
+.slick-dots li button::before {
+ color: var(--color-fg) !important;
+}
+
+@media (max-width: 1150px) {
+ .carousel-wrapper {
+ margin: 60px auto;
+ width: 330px;
+ height: 220px;
+ }
+}
+
+@media (max-width: 1150px) and (min-width: 480px) {
+ .carousel-wrapper {
+ margin: 60px auto;
+ width: 480px;
+ height: 360px;
+ }
+}
+
+@media (min-width: 1150px) {
+ .carousel-wrapper {
+ float: right;
+ width: 480px;
+ height: 360px;
+ }
+}
+