diff options
1 files changed, 55 insertions, 59 deletions
| -rw-r--r-- | docs/css/spectre-exp.css | 114 |
diff --git a/docs/css/spectre-exp.css b/docs/css/spectre-exp.css index 122f996..14df242 100644 --- a/docs/css/spectre-exp.css +++ b/docs/css/spectre-exp.css @@ -3,6 +3,7 @@ border: .1rem solid #efefef; border-radius: .2rem; display: block; + min-width: 28rem; text-align: center; } .calendar .calendar-nav { @@ -46,86 +47,86 @@ .calendar .calendar-body { color: #666; } -.calendar .calendar-body .calendar-date { +.calendar .calendar-date { border: 0; - padding: .6rem; -} -.calendar .calendar-body .calendar-date .date-item { - color: #666; + padding: .4rem; } -.calendar .calendar-body .calendar-date.prev-month .date-item, -.calendar .calendar-body .calendar-date.next-month .date-item, -.calendar .calendar-body .calendar-date .date-item:disabled { - cursor: default; - opacity: .25; - pointer-events: none; -} -.calendar .calendar-body .date-item { +.calendar .calendar-date .date-item { -webkit-appearance: none; -moz-appearance: none; appearance: none; background: transparent; border: .1rem solid transparent; border-radius: 50%; + color: #666; cursor: pointer; - display: inline-block; - height: 2.4rem; + height: 2.8rem; line-height: 2rem; - padding: .1rem; + padding: .3rem; + position: relative; text-align: center; text-decoration: none; transition: all .2s ease; vertical-align: middle; white-space: nowrap; - width: 2.4rem; + width: 2.8rem; } -.calendar .calendar-body .date-item.date-today { - background: #eff1fa; +.calendar .calendar-date .date-item.date-today { + border-color: #e4e6f6; color: #5764c6; } -.calendar .calendar-body .date-item:focus, -.calendar .calendar-body .date-item:hover { +.calendar .calendar-date .date-item:focus, +.calendar .calendar-date .date-item:hover { background: #fbfbfe; border-color: #e4e6f6; color: #5764c6; text-decoration: none; } -.calendar .calendar-body .date-item:active, -.calendar .calendar-body .date-item.active { +.calendar .calendar-date .date-item:active, +.calendar .calendar-date .date-item.active { background: #4c59c2; border-color: #3e4cb6; color: #fff; } -.calendar .calendar-body .date-item.badge::after { +.calendar .calendar-date .date-item.badge::after { position: absolute; - right: .2rem; - top: .2rem; + right: .3rem; + top: .3rem; -webkit-transform: translate(50%, -50%); -ms-transform: translate(50%, -50%); transform: translate(50%, -50%); } +.calendar .calendar-date.disabled .date-item, +.calendar .calendar-date.disabled .calendar-event, +.calendar .calendar-date .date-item:disabled, +.calendar .calendar-date .calendar-event:disabled { + cursor: default; + opacity: .25; + pointer-events: none; +} .calendar .calendar-range { position: relative; } -.calendar .calendar-range .date-item::before { +.calendar .calendar-range::before { background: #eff1fa; content: ""; - height: 2.4rem; - left: 50%; + height: 2.8rem; + left: 0; position: absolute; + right: 0; top: 50%; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); - width: 50%; - z-index: -9; } -.calendar .calendar-range + .calendar-range .date-item::before { - left: 0; - width: 100%; +.calendar .calendar-range.range-start::before { + left: 50%; } -.calendar .calendar-range + .calendar-range .date-item.active::before { - width: 50%; +.calendar .calendar-range.range-end::before { + right: 50%; +} +.calendar .calendar-range .date-item { + color: #5764c6; } .calendar.calendar-lg .calendar-body { padding: 0; @@ -149,30 +150,25 @@ .calendar.calendar-lg .calendar-body .calendar-date:nth-last-child(-n+7) { border-bottom: 0; } -.calendar.calendar-lg .calendar-body .date-item { +.calendar.calendar-lg .date-item { -webkit-align-self: flex-end; align-self: flex-end; - -webkit-flex: 0 0 2.4rem; - -ms-flex: 0 0 2.4rem; - flex: 0 0 2.4rem; + -webkit-flex: 0 0 2.8rem; + -ms-flex: 0 0 2.8rem; + flex: 0 0 2.8rem; -ms-flex-item-align: end; margin-right: .5rem; margin-top: .5rem; } -.calendar.calendar-lg .calendar-body .calendar-range .date-item::before { - height: 2.4rem; - left: auto; - right: 0; - top: 1.7rem; - width: 2.2rem; +.calendar.calendar-lg .calendar-range::before { + top: 1.9rem; } -.calendar.calendar-lg .calendar-body .calendar-range + .calendar-range .date-item::before { - left: 0; - width: 100%; +.calendar.calendar-lg .calendar-range.range-start::before { + left: auto; + width: 1.9rem; } -.calendar.calendar-lg .calendar-body .calendar-range + .calendar-range .date-item.active::before { - right: 1.7rem; - width: auto; +.calendar.calendar-lg .calendar-range.range-end::before { + right: 1.9rem; } .calendar.calendar-lg .calendar-events { -webkit-flex-grow: 1; @@ -236,7 +232,7 @@ -ms-transform: translateY(-50%); transform: translateY(-50%); transition: all .4s ease; - z-index: 99; + z-index: 200; } .carousel .carousel-container .item-prev { left: 2rem; @@ -251,7 +247,7 @@ -webkit-animation: carousel-slidein .75s ease-in 1; animation: carousel-slidein .75s ease-in 1; opacity: 1; - z-index: 99; + z-index: 100; } .carousel .carousel-locator:nth-of-type(1):checked ~ .carousel-nav .nav-item:nth-of-type(1), .carousel .carousel-locator:nth-of-type(2):checked ~ .carousel-nav .nav-item:nth-of-type(2), @@ -273,7 +269,7 @@ -ms-transform: translateX(-50%); transform: translateX(-50%); width: 20rem; - z-index: 999; + z-index: 200; } .carousel .carousel-nav .nav-item { color: rgba(204, 204, 204, .5); @@ -424,7 +420,7 @@ position: absolute; top: 0; width: 50%; - z-index: 99; + z-index: 1; } .parallax .parallax-top-left:hover ~ .parallax-content { -webkit-transform: perspective(50rem) rotateX(3deg) rotateY(-3deg); @@ -439,7 +435,7 @@ right: 0; top: 0; width: 50%; - z-index: 99; + z-index: 1; } .parallax .parallax-top-right:hover ~ .parallax-content { -webkit-transform: perspective(50rem) rotateX(3deg) rotateY(3deg); @@ -454,7 +450,7 @@ left: 0; position: absolute; width: 50%; - z-index: 99; + z-index: 1; } .parallax .parallax-bottom-left:hover ~ .parallax-content { -webkit-transform: perspective(50rem) rotateX(-3deg) rotateY(-3deg); @@ -469,7 +465,7 @@ position: absolute; right: 0; width: 50%; - z-index: 99; + z-index: 1; } .parallax .parallax-bottom-right:hover ~ .parallax-content { -webkit-transform: perspective(50rem) rotateX(-3deg) rotateY(3deg); |