aboutsummaryrefslogtreecommitdiff
path: root/app/dispatch/static/materialize/sass/components/_carousel.scss
diff options
context:
space:
mode:
authorMitch Riedstra <Mitch@riedstra.us>2017-10-24 16:59:48 -0400
committerMitch Riedstra <Mitch@riedstra.us>2017-10-24 16:59:48 -0400
commit3e8b34be2fdeccf16c8b46f1ee518f970853768d (patch)
treeabcb7d0cb260790a2b4a746e3959f2e7ee3a33f7 /app/dispatch/static/materialize/sass/components/_carousel.scss
parent4ee5893fd9c82228c62306fc7f5babdfc602e4c4 (diff)
downloaddispatch-tracker-3e8b34be2fdeccf16c8b46f1ee518f970853768d.tar.gz
dispatch-tracker-3e8b34be2fdeccf16c8b46f1ee518f970853768d.tar.xz
Adding in materialize source and templates
Diffstat (limited to 'app/dispatch/static/materialize/sass/components/_carousel.scss')
-rw-r--r--app/dispatch/static/materialize/sass/components/_carousel.scss90
1 files changed, 90 insertions, 0 deletions
diff --git a/app/dispatch/static/materialize/sass/components/_carousel.scss b/app/dispatch/static/materialize/sass/components/_carousel.scss
new file mode 100644
index 0000000..fccdc82
--- /dev/null
+++ b/app/dispatch/static/materialize/sass/components/_carousel.scss
@@ -0,0 +1,90 @@
+.carousel {
+ &.carousel-slider {
+ top: 0;
+ left: 0;
+
+ .carousel-fixed-item {
+ &.with-indicators {
+ bottom: 68px;
+ }
+
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: 20px;
+ z-index: 1;
+ }
+
+ .carousel-item {
+ width: 100%;
+ height: 100%;
+ min-height: $carousel-height;
+ position: absolute;
+ top: 0;
+ left: 0;
+
+ h2 {
+ font-size: 24px;
+ font-weight: 500;
+ line-height: 32px;
+ }
+
+ p {
+ font-size: 15px;
+ }
+ }
+ }
+
+ overflow: hidden;
+ position: relative;
+ width: 100%;
+ height: $carousel-height;
+ perspective: 500px;
+ transform-style: preserve-3d;
+ transform-origin: 0% 50%;
+
+ .carousel-item {
+ display: none;
+ width: $carousel-item-width;
+ height: $carousel-item-height;
+ position: absolute;
+ top: 0;
+ left: 0;
+
+ & > img {
+ width: 100%;
+ }
+ }
+
+ .indicators {
+ position: absolute;
+ text-align: center;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ margin: 0;
+
+ .indicator-item {
+ &.active {
+ background-color: #fff;
+ }
+
+ display: inline-block;
+ position: relative;
+ cursor: pointer;
+ height: 8px;
+ width: 8px;
+ margin: 24px 4px;
+ background-color: rgba(255,255,255,.5);
+
+ transition: background-color .3s;
+ border-radius: 50%;
+ }
+ }
+
+ // Materialbox compatibility
+ &.scrolling .carousel-item .materialboxed,
+ .carousel-item:not(.active) .materialboxed {
+ pointer-events: none;
+ }
+}