Summary Files Commits Branches @commit @diff @stats
path: root / src / carousels.less
diff options
context:
space:
mode:
Commite78b3c34348f26d40a813612c5a3786f1c56607a (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-08-29 18:07:53 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-08-29 18:07:53 +0800
Filesf857491026c5f728fe95fe1564ec30c931a1b30a /src/carousels.less
Spectre-Dark-Gruvbox-e78b3c34348f26d40a813612c5a3786f1c56607a.tar
Spectre-Dark-Gruvbox-e78b3c34348f26d40a813612c5a3786f1c56607a.tar.gz
Spectre-Dark-Gruvbox-e78b3c34348f26d40a813612c5a3786f1c56607a.zip
Parent66c492fd05c2d720c81e2be8d6845560b868e7ff (diff)
Initial SASS build
1 files changed, 0 insertions, 124 deletions
-rw-r--r--src/carousels.less124
diff --git a/src/carousels.less b/src/carousels.less
deleted file mode 100644
index 276bc1f..0000000
--- a/src/carousels.less
+++ /dev/null
@@ -1,124 +0,0 @@
-// Carousels
-.carousel {
- background: @bg-color;
- display: block;
- overflow: hidden;
- position: relative;
- width: 100%;
-
- .carousel-container {
- height: 100%;
- left: 0;
- position: relative;
- &::before {
- content: "";
- display: block;
- padding-bottom: 56.25%;
- }
-
- .carousel-item {
- animation: carousel-slideout 1s ease-in-out 1;
- height: 100%;
- left: 0;
- margin: 0;
- opacity: 0;
- position: absolute;
- top: 0;
- width: 100%;
-
- &:hover {
- .item-prev,
- .item-next {
- opacity: 1;
- }
- }
- }
-
- .item-prev,
- .item-next {
- background: fade(@gray-color-light, 25%);
- border-color: fade(@gray-color-light, 50%);
- color: @gray-color-light;
- opacity: 0;
- position: absolute;
- top: 50%;
- transition: all .4s ease;
- transform: translateY(-50%);
- z-index: @zindex-2;
- }
- .item-prev {
- left: 1rem;
- }
- .item-next {
- right: 1rem;
- }
- }
-
- .carousel-locator {
- &:nth-of-type(1):checked ~ .carousel-container .carousel-item:nth-of-type(1),
- &:nth-of-type(2):checked ~ .carousel-container .carousel-item:nth-of-type(2),
- &:nth-of-type(3):checked ~ .carousel-container .carousel-item:nth-of-type(3),
- &:nth-of-type(4):checked ~ .carousel-container .carousel-item:nth-of-type(4) {
- animation: carousel-slidein .75s ease-in-out 1;
- opacity: 1;
- z-index: @zindex-1;
- }
- &:nth-of-type(1):checked ~ .carousel-nav .nav-item:nth-of-type(1),
- &:nth-of-type(2):checked ~ .carousel-nav .nav-item:nth-of-type(2),
- &:nth-of-type(3):checked ~ .carousel-nav .nav-item:nth-of-type(3),
- &:nth-of-type(4):checked ~ .carousel-nav .nav-item:nth-of-type(4) {
- color: @gray-color-light;
- }
- }
-
- .carousel-nav {
- bottom: @layout-spacing;
- display: flex;
- justify-content: center;
- left: 50%;
- position: absolute;
- transform: translateX(-50%);
- width: 10rem;
- z-index: @zindex-2;
-
- .nav-item {
- color: fade(@gray-color-light, 50%);
- display: block;
- flex: 1 0 auto;
- height: @unit-8;
- margin: @unit-1;
- max-width: 2.5rem;
- position: relative;
-
- &::before {
- background: currentColor;
- content: "";
- display: block;
- height: @border-width-lg;
- position: absolute;
- top: .5rem;
- width: 100%;
- }
- }
- }
-}
-
-@keyframes carousel-slidein {
- 0% {
- transform: translateX(100%);
- }
- 100% {
- transform: translateX(0);
- }
-}
-
-@keyframes carousel-slideout {
- 0% {
- opacity: 1;
- transform: translateX(0);
- }
- 100% {
- opacity: 1;
- transform: translateX(-50%);
- }
-}