// calendar
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
$color-bright: white
|
||||
$font-family: 'Josefin Sans', sans-serif
|
||||
|
||||
$color-calendar: $brand-primary
|
||||
$color-calendar: #00A4E7
|
||||
$color-calendar-compare: #E18E70
|
||||
|
||||
$color-calendar-day: $color-bright
|
||||
@@ -17,12 +16,12 @@ $color-calendar-range-compare: darken($color-calendar-compare,15%)
|
||||
|
||||
#datepicker
|
||||
padding: 6px
|
||||
background-color: darken($color-calendar,10%)
|
||||
//background-color: darken($color-calendar,10%)
|
||||
.input-selected
|
||||
margin: 0
|
||||
#date-start.input-selected
|
||||
#date-start.input-selected, #date-end.input-selected,
|
||||
border: solid 3px $color-calendar-day-selected
|
||||
#date-end.input-selected
|
||||
#date-start-compare.input-selected, #date-end-compare.input-selected,
|
||||
border: solid 3px $color-calendar-day-selected
|
||||
div#datepicker-form
|
||||
#date-range .form-date-heading
|
||||
@@ -30,9 +29,10 @@ $color-calendar-range-compare: darken($color-calendar-compare,15%)
|
||||
#date-compare .form-date-heading
|
||||
background-color: darken($color-calendar-compare,5%)
|
||||
.form-date-heading
|
||||
padding: 6px
|
||||
height: 30px
|
||||
line-height: 30px
|
||||
padding: 0 8px
|
||||
.title, .checkbox-title label
|
||||
font-family: $font-family
|
||||
font-size: 1.15em
|
||||
color: $color-bright
|
||||
font-weight: 200
|
||||
@@ -48,34 +48,36 @@ $color-calendar-range-compare: darken($color-calendar-compare,15%)
|
||||
padding: 10px
|
||||
background-color: white
|
||||
display: inline-block
|
||||
.form-date-actions
|
||||
border: solid 1px black
|
||||
.form-date-group
|
||||
width: 100%
|
||||
margin: 0 auto
|
||||
margin: 0 auto 6px auto
|
||||
border: solid 1px black
|
||||
label
|
||||
font-family: $font-family
|
||||
font-size: 0.8em
|
||||
font-weight: 700
|
||||
text-transform: uppercase
|
||||
color: #666
|
||||
line-height: 3.2em
|
||||
margin-bottom: 0
|
||||
label, input
|
||||
float: left
|
||||
margin-right: 6px
|
||||
//line-height: 3.2em
|
||||
input
|
||||
margin: 4px 4px 0 0
|
||||
input[type='text']
|
||||
width: 35%
|
||||
button
|
||||
margin: 5px 0 0 0
|
||||
|
||||
.datepicker
|
||||
position: relative
|
||||
margin: 0 0 8px 0
|
||||
width: 100%
|
||||
background-color: $color-calendar
|
||||
font-family: $font-family
|
||||
font-size: 14px
|
||||
height: 16.8em
|
||||
font-size: 13px
|
||||
border: solid 1px black
|
||||
table
|
||||
width: 100%
|
||||
margin: 0
|
||||
border-spacing: 1px
|
||||
thead
|
||||
tr th:after
|
||||
content: ""
|
||||
@@ -96,15 +98,12 @@ $color-calendar-range-compare: darken($color-calendar-compare,15%)
|
||||
color: $color-calendar-day-selected
|
||||
td, th
|
||||
text-align: center
|
||||
height: 2em
|
||||
line-height: 2em
|
||||
padding: 0
|
||||
color: $color-calendar-day
|
||||
position: relative
|
||||
td
|
||||
font-weight: 400
|
||||
height: 2.4em
|
||||
padding: 0 10px
|
||||
border-bottom: solid 1px $color-calendar
|
||||
&.day:after
|
||||
content: ""
|
||||
position: absolute
|
||||
@@ -112,7 +111,6 @@ $color-calendar-range-compare: darken($color-calendar-compare,15%)
|
||||
top: 0
|
||||
left: 0
|
||||
width: 100%
|
||||
height: 100%
|
||||
z-index: 0
|
||||
background-color: transparent
|
||||
&.day:hover
|
||||
@@ -125,21 +123,29 @@ $color-calendar-range-compare: darken($color-calendar-compare,15%)
|
||||
font-weight: 700
|
||||
background-color: $color-calendar-day-selected
|
||||
+border-left-radius(15px)
|
||||
@extend .chevron-left
|
||||
//@extend .chevron-left
|
||||
&.end-selected:not(.old):not(.new):not(.start-selected)
|
||||
font-weight: 700
|
||||
background-color: $color-calendar-day-selected
|
||||
@extend .chevron-right
|
||||
//@extend .chevron-right
|
||||
+border-right-radius(15px)
|
||||
&.start-selected-compare:not(.old):not(.new):not(.end-selected-compare)
|
||||
font-weight: 700
|
||||
background-color: $color-calendar-day-selected-compare
|
||||
+border-left-radius(15px)
|
||||
//@extend .chevron-left
|
||||
&.end-selected-compare:not(.old):not(.new):not(.start-selected-compare)
|
||||
font-weight: 700
|
||||
background-color: $color-calendar-day-selected-compare
|
||||
//@extend .chevron-right
|
||||
+border-right-radius(15px)
|
||||
&.end-selected.start-selected
|
||||
+border-radius(15px)
|
||||
font-weight: 700
|
||||
background-color: $color-calendar-day-selected
|
||||
&.start-selected-compare:not(.old):not(.new):not(.end-selected-compare)
|
||||
background-color: $color-calendar-day-selected-compare
|
||||
&.end-selected-compare:not(.old):not(.new):not(.start-selected-compare)
|
||||
background-color: $color-calendar-day-selected-compare
|
||||
&.end-selected-compare.start-selected-compare
|
||||
+border-radius(15px)
|
||||
font-weight: 700
|
||||
background-color: $color-calendar-day-selected-compare
|
||||
&.range
|
||||
color: lighten($color-calendar-range,35%)
|
||||
@@ -149,7 +155,6 @@ $color-calendar-range-compare: darken($color-calendar-compare,15%)
|
||||
background-color: $color-calendar-range-compare
|
||||
&.today
|
||||
background-color: $color-bright
|
||||
|
||||
span
|
||||
padding: 0
|
||||
display: block
|
||||
@@ -192,7 +197,6 @@ $color-calendar-range-compare: darken($color-calendar-compare,15%)
|
||||
color: $color-calendar-outrange-compare
|
||||
&.old, &.new
|
||||
color: $color-calendar-outrange-compare
|
||||
|
||||
span
|
||||
&:hover, &.active
|
||||
background-color: $color-calendar-day-selected-compare
|
||||
@@ -209,18 +213,17 @@ $color-calendar-range-compare: darken($color-calendar-compare,15%)
|
||||
border-style: solid
|
||||
position: absolute
|
||||
.chevron-left:before
|
||||
right: 0px
|
||||
right: 0
|
||||
top: 0
|
||||
border-width: 1em 0 1em 0.5em
|
||||
border-width: 1.2em 0 1.2em 0.5em
|
||||
border-color: transparent transparent transparent $color-calendar-day-selected
|
||||
background-color: $color-calendar-range
|
||||
.chevron-right:before
|
||||
left: 0px
|
||||
left: 0
|
||||
top: 0
|
||||
border-width: 1em 0 1em 0.5em
|
||||
border-width: 1.2em 0 1.2em 0.5em
|
||||
border-color: transparent transparent transparent $color-calendar-range
|
||||
background-color: $color-calendar-day-selected
|
||||
|
||||
.input-complete
|
||||
-webkit-animation: one 0.2s ease-in-out
|
||||
-moz-animation: one 0.2s ease-in-out
|
||||
|
||||
+318
@@ -0,0 +1,318 @@
|
||||
/*!
|
||||
* Ladda
|
||||
* http://lab.hakim.se/ladda
|
||||
* MIT licensed
|
||||
*
|
||||
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
|
||||
*/
|
||||
|
||||
|
||||
// CONFIG
|
||||
$spinnerSize: 32px
|
||||
|
||||
// MIXINS
|
||||
@mixin prefix ( $property, $value )
|
||||
-webkit-#{$property}: $value
|
||||
-moz-#{$property}: $value
|
||||
-ms-#{$property}: $value
|
||||
-o-#{$property}: $value
|
||||
#{$property}: $value
|
||||
|
||||
@mixin transition( $value )
|
||||
-webkit-transition: $value !important // important to override bootstrap
|
||||
-moz-transition: $value !important
|
||||
-ms-transition: $value !important
|
||||
-o-transition: $value !important
|
||||
transition: $value !important
|
||||
|
||||
@mixin vendor-transform( $value )
|
||||
@include prefix( transform, $value )
|
||||
|
||||
@mixin transform-origin( $value )
|
||||
@include prefix( transform-origin, $value )
|
||||
|
||||
@mixin buttonColor( $name, $color )
|
||||
&[data-color=#{$name}]
|
||||
background: $color
|
||||
&:hover
|
||||
background-color: lighten( $color, 5% )
|
||||
|
||||
// BUTTON BASE
|
||||
.ladda-button
|
||||
position: relative
|
||||
.ladda-spinner
|
||||
position: absolute
|
||||
z-index: 2
|
||||
display: inline-block
|
||||
width: $spinnerSize
|
||||
height: $spinnerSize
|
||||
top: 50%
|
||||
margin-top: -$spinnerSize/2
|
||||
opacity: 0
|
||||
pointer-events: none
|
||||
|
||||
.ladda-label
|
||||
position: relative
|
||||
z-index: 3
|
||||
|
||||
.ladda-progress
|
||||
position: absolute
|
||||
width: 0
|
||||
height: 100%
|
||||
left: 0
|
||||
top: 0
|
||||
background: rgba( 0, 0, 0, 0.2 )
|
||||
visibility: hidden
|
||||
opacity: 0
|
||||
@include transition( 0.1s linear all )
|
||||
&[data-loading] .ladda-progress
|
||||
opacity: 1
|
||||
visibility: visible
|
||||
|
||||
// EASING
|
||||
.ladda-button, .ladda-button .ladda-spinner, .ladda-button .ladda-label
|
||||
@include transition( 0.3s cubic-bezier(0.175, 0.885, 0.320, 1.275) all )
|
||||
.ladda-button[data-style=zoom-in],
|
||||
.ladda-button[data-style=zoom-in] .ladda-spinner,
|
||||
.ladda-button[data-style=zoom-in] .ladda-label,
|
||||
.ladda-button[data-style=zoom-out],
|
||||
.ladda-button[data-style=zoom-out] .ladda-spinner,
|
||||
.ladda-button[data-style=zoom-out] .ladda-label
|
||||
@include transition( 0.3s ease all )
|
||||
|
||||
// EXPAND LEFT
|
||||
.ladda-button[data-style=expand-right]
|
||||
.ladda-spinner
|
||||
right: 14px
|
||||
&[data-size="s"] .ladda-spinner,
|
||||
&[data-size="xs"] .ladda-spinner
|
||||
right: 4px
|
||||
&[data-loading]
|
||||
padding-right: 56px
|
||||
.ladda-spinner
|
||||
opacity: 1
|
||||
&[data-size="s"],
|
||||
&[data-size="xs"]
|
||||
padding-right: 40px
|
||||
|
||||
// EXPAND RIGHT
|
||||
.ladda-button[data-style=expand-left]
|
||||
.ladda-spinner
|
||||
left: 14px
|
||||
&[data-size="s"] .ladda-spinner,
|
||||
&[data-size="xs"] .ladda-spinner
|
||||
left: 4px
|
||||
&[data-loading]
|
||||
padding-left: 56px
|
||||
.ladda-spinner
|
||||
opacity: 1
|
||||
&[data-size="s"],
|
||||
&[data-size="xs"]
|
||||
padding-left: 40px
|
||||
|
||||
// EXPAND UP
|
||||
.ladda-button[data-style=expand-up]
|
||||
overflow: hidden
|
||||
.ladda-spinner
|
||||
top: -$spinnerSize
|
||||
left: 50%
|
||||
margin-left: -$spinnerSize/2
|
||||
&[data-loading]
|
||||
padding-top: 54px
|
||||
.ladda-spinner
|
||||
opacity: 1
|
||||
top: 14px
|
||||
margin-top: 0
|
||||
&[data-size="s"],
|
||||
&[data-size="xs"]
|
||||
padding-top: 32px
|
||||
.ladda-spinner
|
||||
top: 4px
|
||||
|
||||
|
||||
// EXPAND DOWN
|
||||
.ladda-button[data-style=expand-down]
|
||||
overflow: hidden
|
||||
.ladda-spinner
|
||||
top: 62px
|
||||
left: 50%
|
||||
margin-left: -$spinnerSize/2
|
||||
&[data-size="s"] .ladda-spinner,
|
||||
&[data-size="xs"] .ladda-spinner
|
||||
top: 40px
|
||||
&[data-loading]
|
||||
padding-bottom: 54px
|
||||
.ladda-spinner
|
||||
opacity: 1
|
||||
&[data-size="s"]
|
||||
&[data-size="xs"]
|
||||
padding-bottom: 32px
|
||||
|
||||
|
||||
// SLIDE LEFT
|
||||
.ladda-button[data-style=slide-left]
|
||||
overflow: hidden
|
||||
.ladda-label
|
||||
position: relative
|
||||
.ladda-spinner
|
||||
left: 100%
|
||||
margin-left: -$spinnerSize/2
|
||||
&[data-loading]
|
||||
.ladda-label
|
||||
opacity: 0
|
||||
left: -100%
|
||||
.ladda-spinner
|
||||
opacity: 1
|
||||
left: 50%
|
||||
|
||||
// SLIDE RIGHT
|
||||
.ladda-button[data-style=slide-right]
|
||||
overflow: hidden
|
||||
.ladda-label
|
||||
position: relative
|
||||
.ladda-spinner
|
||||
right: 100%
|
||||
margin-left: -$spinnerSize/2
|
||||
&[data-loading]
|
||||
.ladda-label
|
||||
opacity: 0
|
||||
left: 100%
|
||||
.ladda-spinner
|
||||
opacity: 1
|
||||
left: 50%
|
||||
|
||||
|
||||
// SLIDE UP
|
||||
.ladda-button[data-style=slide-up]
|
||||
overflow: hidden
|
||||
.ladda-label
|
||||
position: relative
|
||||
.ladda-spinner
|
||||
left: 50%
|
||||
margin-left: -$spinnerSize/2
|
||||
margin-top: 1em
|
||||
&[data-loading]
|
||||
.ladda-label
|
||||
opacity: 0
|
||||
top: -1em
|
||||
.ladda-spinner
|
||||
opacity: 1
|
||||
margin-top: -$spinnerSize/2
|
||||
|
||||
|
||||
// SLIDE DOWN
|
||||
.ladda-button[data-style=slide-down]
|
||||
overflow: hidden
|
||||
.ladda-label
|
||||
position: relative
|
||||
.ladda-spinner
|
||||
left: 50%
|
||||
margin-left: -$spinnerSize/2
|
||||
margin-top: -2em
|
||||
&[data-loading]
|
||||
.ladda-label
|
||||
opacity: 0
|
||||
top: 1em
|
||||
.ladda-spinner
|
||||
opacity: 1
|
||||
margin-top: -$spinnerSize/2
|
||||
|
||||
// ZOOM-OUT
|
||||
.ladda-button[data-style=zoom-out]
|
||||
overflow: hidden
|
||||
.ladda-spinner
|
||||
left: 50%
|
||||
margin-left: -$spinnerSize/2
|
||||
@include vendor-transform( scale( 2.5 ) )
|
||||
.ladda-label
|
||||
position: relative
|
||||
display: inline-block
|
||||
&[data-loading] .ladda-label
|
||||
opacity: 0
|
||||
@include vendor-transform( scale( 0.5 ) )
|
||||
&[data-loading] .ladda-spinner
|
||||
opacity: 1
|
||||
@include vendor-transform( none )
|
||||
|
||||
|
||||
// ZOOM-IN
|
||||
.ladda-button[data-style=zoom-in]
|
||||
overflow: hidden
|
||||
.ladda-spinner
|
||||
left: 50%
|
||||
margin-left: -$spinnerSize/2
|
||||
@include vendor-transform( scale( 0.2 ) )
|
||||
.ladda-label
|
||||
position: relative
|
||||
display: inline-block
|
||||
&[data-loading] .ladda-label
|
||||
opacity: 0
|
||||
@include vendor-transform( scale( 2.2 ) )
|
||||
&[data-loading] .ladda-spinner
|
||||
opacity: 1
|
||||
@include vendor-transform( none )
|
||||
|
||||
|
||||
// CONTRACT
|
||||
.ladda-button[data-style=contract]
|
||||
overflow: hidden
|
||||
width: 100px
|
||||
.ladda-spinner
|
||||
left: 50%
|
||||
margin-left: -16px
|
||||
|
||||
.ladda-button[data-style=contract][data-loading]
|
||||
border-radius: 50%
|
||||
width: 52px
|
||||
.ladda-label
|
||||
opacity: 0
|
||||
.ladda-spinner
|
||||
opacity: 1
|
||||
|
||||
|
||||
// OVERLAY
|
||||
.ladda-button[data-style=contract-overlay]
|
||||
overflow: hidden
|
||||
width: 100px
|
||||
box-shadow: 0px 0px 0px 3000px rgba(0,0,0,0)
|
||||
.ladda-spinner
|
||||
left: 50%
|
||||
margin-left: -16px
|
||||
&[data-loading]
|
||||
border-radius: 50%
|
||||
width: 52px
|
||||
/*outline: 10000px solid rgba( 0, 0, 0, 0.5 );*/
|
||||
box-shadow: 0px 0px 0px 3000px rgba(0,0,0,0.8)
|
||||
.ladda-label
|
||||
opacity: 0
|
||||
.ladda-spinner
|
||||
opacity: 1
|
||||
|
||||
// THEME
|
||||
$red: #ea8557
|
||||
$purple: #9973C2
|
||||
$mint: #16a085
|
||||
$green: #2aca76
|
||||
$blue: #53b5e6
|
||||
|
||||
.ladda-button
|
||||
&[disabled],
|
||||
&[data-loading]
|
||||
border-color: rgba( 0, 0, 0, 0.07 )
|
||||
cursor: default
|
||||
background-color: #999
|
||||
&:hover
|
||||
cursor: default
|
||||
background-color: #999
|
||||
&[data-size=xs]
|
||||
padding: 4px 8px
|
||||
.ladda-label
|
||||
font-size: 0.7em
|
||||
&[data-size=s]
|
||||
padding: 6px 10px
|
||||
.ladda-label
|
||||
font-size: 0.9em
|
||||
&[data-size=l] .ladda-label
|
||||
font-size: 1.2em
|
||||
&[data-size=xl] .ladda-label
|
||||
font-size: 1.5em
|
||||
@@ -1,471 +0,0 @@
|
||||
/*!
|
||||
* Ladda
|
||||
* http://lab.hakim.se/ladda
|
||||
* MIT licensed
|
||||
*
|
||||
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
|
||||
*/
|
||||
|
||||
|
||||
/*************************************
|
||||
* CONFIG
|
||||
*/
|
||||
|
||||
$spinnerSize: 32px;
|
||||
|
||||
|
||||
/*************************************
|
||||
* MIXINS
|
||||
*/
|
||||
|
||||
@mixin prefix ( $property, $value ) {
|
||||
-webkit-#{$property}: $value;
|
||||
-moz-#{$property}: $value;
|
||||
-ms-#{$property}: $value;
|
||||
-o-#{$property}: $value;
|
||||
#{$property}: $value;
|
||||
}
|
||||
|
||||
@mixin transition( $value ) {
|
||||
-webkit-transition: $value !important; // important to override bootstrap
|
||||
-moz-transition: $value !important;
|
||||
-ms-transition: $value !important;
|
||||
-o-transition: $value !important;
|
||||
transition: $value !important;
|
||||
}
|
||||
|
||||
@mixin vendor-transform( $value ) {
|
||||
@include prefix( transform, $value );
|
||||
}
|
||||
|
||||
@mixin transform-origin( $value ) {
|
||||
@include prefix( transform-origin, $value );
|
||||
}
|
||||
|
||||
@mixin buttonColor( $name, $color ) {
|
||||
&[data-color=#{$name}] {
|
||||
background: $color;
|
||||
|
||||
&:hover {
|
||||
background-color: lighten( $color, 5% );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*************************************
|
||||
* BUTTON BASE
|
||||
*/
|
||||
|
||||
.ladda-button {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
||||
/* Spinner animation */
|
||||
.ladda-button .ladda-spinner {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
display: inline-block;
|
||||
width: $spinnerSize;
|
||||
height: $spinnerSize;
|
||||
top: 50%;
|
||||
margin-top: -$spinnerSize/2;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Button label */
|
||||
.ladda-button .ladda-label {
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
/* Progress bar */
|
||||
.ladda-button .ladda-progress {
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
background: rgba( 0, 0, 0, 0.2 );
|
||||
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
|
||||
@include transition( 0.1s linear all );
|
||||
}
|
||||
.ladda-button[data-loading] .ladda-progress {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
|
||||
/*************************************
|
||||
* EASING
|
||||
*/
|
||||
|
||||
.ladda-button,
|
||||
.ladda-button .ladda-spinner,
|
||||
.ladda-button .ladda-label {
|
||||
@include transition( 0.3s cubic-bezier(0.175, 0.885, 0.320, 1.275) all );
|
||||
}
|
||||
|
||||
.ladda-button[data-style=zoom-in],
|
||||
.ladda-button[data-style=zoom-in] .ladda-spinner,
|
||||
.ladda-button[data-style=zoom-in] .ladda-label,
|
||||
.ladda-button[data-style=zoom-out],
|
||||
.ladda-button[data-style=zoom-out] .ladda-spinner,
|
||||
.ladda-button[data-style=zoom-out] .ladda-label {
|
||||
@include transition( 0.3s ease all );
|
||||
}
|
||||
|
||||
|
||||
/*************************************
|
||||
* EXPAND LEFT
|
||||
*/
|
||||
|
||||
.ladda-button[data-style=expand-right] {
|
||||
.ladda-spinner {
|
||||
right: 14px;
|
||||
}
|
||||
|
||||
&[data-size="s"] .ladda-spinner,
|
||||
&[data-size="xs"] .ladda-spinner {
|
||||
right: 4px;
|
||||
}
|
||||
|
||||
&[data-loading] {
|
||||
padding-right: 56px;
|
||||
|
||||
.ladda-spinner {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
&[data-size="s"],
|
||||
&[data-size="xs"] {
|
||||
padding-right: 40px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*************************************
|
||||
* EXPAND RIGHT
|
||||
*/
|
||||
|
||||
.ladda-button[data-style=expand-left] {
|
||||
.ladda-spinner {
|
||||
left: 14px;
|
||||
}
|
||||
|
||||
&[data-size="s"] .ladda-spinner,
|
||||
&[data-size="xs"] .ladda-spinner {
|
||||
left: 4px;
|
||||
}
|
||||
|
||||
&[data-loading] {
|
||||
padding-left: 56px;
|
||||
|
||||
.ladda-spinner {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
&[data-size="s"],
|
||||
&[data-size="xs"] {
|
||||
padding-left: 40px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*************************************
|
||||
* EXPAND UP
|
||||
*/
|
||||
|
||||
.ladda-button[data-style=expand-up] {
|
||||
overflow: hidden;
|
||||
|
||||
.ladda-spinner {
|
||||
top: -$spinnerSize;
|
||||
left: 50%;
|
||||
margin-left: -$spinnerSize/2;
|
||||
}
|
||||
|
||||
&[data-loading] {
|
||||
padding-top: 54px;
|
||||
|
||||
.ladda-spinner {
|
||||
opacity: 1;
|
||||
top: 14px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
&[data-size="s"],
|
||||
&[data-size="xs"] {
|
||||
padding-top: 32px;
|
||||
|
||||
.ladda-spinner {
|
||||
top: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*************************************
|
||||
* EXPAND DOWN
|
||||
*/
|
||||
|
||||
.ladda-button[data-style=expand-down] {
|
||||
overflow: hidden;
|
||||
|
||||
.ladda-spinner {
|
||||
top: 62px;
|
||||
left: 50%;
|
||||
margin-left: -$spinnerSize/2;
|
||||
}
|
||||
|
||||
&[data-size="s"] .ladda-spinner,
|
||||
&[data-size="xs"] .ladda-spinner {
|
||||
top: 40px;
|
||||
}
|
||||
|
||||
&[data-loading] {
|
||||
padding-bottom: 54px;
|
||||
|
||||
.ladda-spinner {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
&[data-size="s"],
|
||||
&[data-size="xs"] {
|
||||
padding-bottom: 32px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*************************************
|
||||
* SLIDE LEFT
|
||||
*/
|
||||
.ladda-button[data-style=slide-left] {
|
||||
overflow: hidden;
|
||||
|
||||
.ladda-label {
|
||||
position: relative;
|
||||
}
|
||||
.ladda-spinner {
|
||||
left: 100%;
|
||||
margin-left: -$spinnerSize/2;
|
||||
}
|
||||
|
||||
&[data-loading] {
|
||||
.ladda-label {
|
||||
opacity: 0;
|
||||
left: -100%;
|
||||
}
|
||||
.ladda-spinner {
|
||||
opacity: 1;
|
||||
left: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*************************************
|
||||
* SLIDE RIGHT
|
||||
*/
|
||||
.ladda-button[data-style=slide-right] {
|
||||
overflow: hidden;
|
||||
|
||||
.ladda-label {
|
||||
position: relative;
|
||||
}
|
||||
.ladda-spinner {
|
||||
right: 100%;
|
||||
margin-left: -$spinnerSize/2;
|
||||
}
|
||||
|
||||
&[data-loading] {
|
||||
.ladda-label {
|
||||
opacity: 0;
|
||||
left: 100%;
|
||||
}
|
||||
.ladda-spinner {
|
||||
opacity: 1;
|
||||
left: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*************************************
|
||||
* SLIDE UP
|
||||
*/
|
||||
.ladda-button[data-style=slide-up] {
|
||||
overflow: hidden;
|
||||
|
||||
.ladda-label {
|
||||
position: relative;
|
||||
}
|
||||
.ladda-spinner {
|
||||
left: 50%;
|
||||
margin-left: -$spinnerSize/2;
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
&[data-loading] {
|
||||
.ladda-label {
|
||||
opacity: 0;
|
||||
top: -1em;
|
||||
}
|
||||
.ladda-spinner {
|
||||
opacity: 1;
|
||||
margin-top: -$spinnerSize/2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*************************************
|
||||
* SLIDE DOWN
|
||||
*/
|
||||
.ladda-button[data-style=slide-down] {
|
||||
overflow: hidden;
|
||||
|
||||
.ladda-label {
|
||||
position: relative;
|
||||
}
|
||||
.ladda-spinner {
|
||||
left: 50%;
|
||||
margin-left: -$spinnerSize/2;
|
||||
margin-top: -2em;
|
||||
}
|
||||
|
||||
&[data-loading] {
|
||||
.ladda-label {
|
||||
opacity: 0;
|
||||
top: 1em;
|
||||
}
|
||||
.ladda-spinner {
|
||||
opacity: 1;
|
||||
margin-top: -$spinnerSize/2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*************************************
|
||||
* ZOOM-OUT
|
||||
*/
|
||||
|
||||
.ladda-button[data-style=zoom-out] {
|
||||
overflow: hidden;
|
||||
}
|
||||
.ladda-button[data-style=zoom-out] .ladda-spinner {
|
||||
left: 50%;
|
||||
margin-left: -$spinnerSize/2;
|
||||
|
||||
@include vendor-transform( scale( 2.5 ) );
|
||||
}
|
||||
.ladda-button[data-style=zoom-out] .ladda-label {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.ladda-button[data-style=zoom-out][data-loading] .ladda-label {
|
||||
opacity: 0;
|
||||
|
||||
@include vendor-transform( scale( 0.5 ) );
|
||||
}
|
||||
.ladda-button[data-style=zoom-out][data-loading] .ladda-spinner {
|
||||
opacity: 1;
|
||||
|
||||
@include vendor-transform( none );
|
||||
}
|
||||
|
||||
|
||||
/*************************************
|
||||
* ZOOM-IN
|
||||
*/
|
||||
|
||||
.ladda-button[data-style=zoom-in] {
|
||||
overflow: hidden;
|
||||
}
|
||||
.ladda-button[data-style=zoom-in] .ladda-spinner {
|
||||
left: 50%;
|
||||
margin-left: -$spinnerSize/2;
|
||||
|
||||
@include vendor-transform( scale( 0.2 ) );
|
||||
}
|
||||
.ladda-button[data-style=zoom-in] .ladda-label {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.ladda-button[data-style=zoom-in][data-loading] .ladda-label {
|
||||
opacity: 0;
|
||||
|
||||
@include vendor-transform( scale( 2.2 ) );
|
||||
}
|
||||
.ladda-button[data-style=zoom-in][data-loading] .ladda-spinner {
|
||||
opacity: 1;
|
||||
|
||||
@include vendor-transform( none );
|
||||
}
|
||||
|
||||
|
||||
/*************************************
|
||||
* CONTRACT
|
||||
*/
|
||||
|
||||
.ladda-button[data-style=contract] {
|
||||
overflow: hidden;
|
||||
width: 100px;
|
||||
}
|
||||
.ladda-button[data-style=contract] .ladda-spinner {
|
||||
left: 50%;
|
||||
margin-left: -16px;
|
||||
}
|
||||
|
||||
.ladda-button[data-style=contract][data-loading] {
|
||||
border-radius: 50%;
|
||||
width: 52px;
|
||||
}
|
||||
.ladda-button[data-style=contract][data-loading] .ladda-label {
|
||||
opacity: 0;
|
||||
}
|
||||
.ladda-button[data-style=contract][data-loading] .ladda-spinner {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*************************************
|
||||
* OVERLAY
|
||||
*/
|
||||
|
||||
.ladda-button[data-style=contract-overlay] {
|
||||
overflow: hidden;
|
||||
width: 100px;
|
||||
box-shadow: 0px 0px 0px 3000px rgba(0,0,0,0);
|
||||
}
|
||||
.ladda-button[data-style=contract-overlay] .ladda-spinner {
|
||||
left: 50%;
|
||||
margin-left: -16px;
|
||||
}
|
||||
|
||||
.ladda-button[data-style=contract-overlay][data-loading] {
|
||||
border-radius: 50%;
|
||||
width: 52px;
|
||||
|
||||
/*outline: 10000px solid rgba( 0, 0, 0, 0.5 );*/
|
||||
box-shadow: 0px 0px 0px 3000px rgba(0,0,0,0.8);
|
||||
}
|
||||
.ladda-button[data-style=contract-overlay][data-loading] .ladda-label {
|
||||
opacity: 0;
|
||||
}
|
||||
.ladda-button[data-style=contract-overlay][data-loading] .ladda-spinner {
|
||||
opacity: 1;
|
||||
}
|
||||
Reference in New Issue
Block a user