Archive: Namaste PHP AMQP framework v1.0 (2017-2020)
952 days continuous production uptime, 40k+ tp/s single node. Original corpo Bitbucket history not included — clean archive commit.
This commit is contained in:
51
html/scss/pro/_switch.scss
Executable file
51
html/scss/pro/_switch.scss
Executable file
@@ -0,0 +1,51 @@
|
||||
// Switch
|
||||
.switch label {
|
||||
cursor: pointer;
|
||||
input[type=checkbox] {
|
||||
opacity: 0;
|
||||
@include switch-width-height(0, 0);
|
||||
&:checked + .lever {
|
||||
background-color: map-get($switch-colors, "checked-lever-bg");
|
||||
}
|
||||
&:checked + .lever:after {
|
||||
background-color: map-get($switch-colors, "bg");
|
||||
left: $switch-input-checkbox-checked-lever-after-left;
|
||||
}
|
||||
&:checked:not(:disabled) ~ .lever:active:after {
|
||||
@include box-shadows($switch-lever-after-box-shadow-darker, $switch-lever-after-box-shadow-transp);
|
||||
}
|
||||
&:not(:disabled) ~ .lever:active:after {
|
||||
@include box-shadows($switch-lever-after-box-shadow-darker, $switch-lever-after-box-shadow-lighter);
|
||||
}
|
||||
&:disabled + .lever {
|
||||
cursor: default;
|
||||
}
|
||||
&:disabled + .lever:after, &:disabled:checked + .lever:after {
|
||||
background-color: $input-disabled-solid-color;
|
||||
}
|
||||
}
|
||||
.lever {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
background-color: map-get($switch-colors, "unchecked-lever-bg");
|
||||
border-radius: $switch-lever-border-radius-small;
|
||||
margin-right: $switch-lever-mr;
|
||||
vertical-align: middle;
|
||||
margin: $switch-lever-margin;
|
||||
@include switch-width-height(2.5rem, 0.9375rem);
|
||||
@include transition-main($switch-lever-after-transition-bg);
|
||||
&:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
background-color: map-get($switch-colors, "unchecked-bg");
|
||||
border-radius: $switch-lever-after-border-radius-high;
|
||||
left: $switch-lever-after-left;
|
||||
top: $switch-lever-after-top;
|
||||
@include box-shadows($switch-lever-after-box-shadow-darker);
|
||||
@include switch-width-height(1.3125rem, 1.3125rem);
|
||||
@include transition-main($switch-lever-after-transition-left, $switch-lever-after-transition-bg, $switch-lever-after-transition-box);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user