summaryrefslogtreecommitdiff
path: root/templates/assets/sass/material-kit/_radios.scss
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-22 19:19:26 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-22 19:19:26 +0100
commitd42c8b528eb595101954f478e0024e3f079f6fbf (patch)
tree61a528cf94f1f6941f4683ae8736a4a0135c035e /templates/assets/sass/material-kit/_radios.scss
downloadminionlivesmatter-d42c8b528eb595101954f478e0024e3f079f6fbf.tar.gz
minionlivesmatter-d42c8b528eb595101954f478e0024e3f079f6fbf.zip
first implementation of fun stats site
Diffstat (limited to 'templates/assets/sass/material-kit/_radios.scss')
-rwxr-xr-xtemplates/assets/sass/material-kit/_radios.scss114
1 files changed, 114 insertions, 0 deletions
diff --git a/templates/assets/sass/material-kit/_radios.scss b/templates/assets/sass/material-kit/_radios.scss
new file mode 100755
index 0000000..5640109
--- /dev/null
+++ b/templates/assets/sass/material-kit/_radios.scss
@@ -0,0 +1,114 @@
+// This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten.
+
+@mixin radio-color($color, $opacity){
+ & ~ .check,
+ & ~ .circle {
+ opacity: $opacity;
+ }
+
+ & ~ .check {
+ background-color: $color;
+ }
+
+ & ~ .circle {
+ border-color: $color;
+ }
+}
+
+.radio {
+ label {
+ cursor: pointer;
+ padding-left: 35px;
+ position: relative;
+ color: $mdb-radio-label-color;
+ @include mdb-label-color-toggle-focus();
+
+ span {
+ display: block;
+ position: absolute;
+ left: 10px;
+ top: 2px;
+ transition-duration: 0.2s;
+ }
+ .circle {
+ border: 1px solid $mdb-radio-color-off;
+ height: 15px;
+ width: 15px;
+ border-radius: 100%;
+ }
+ .check {
+ height: 15px;
+ width: 15px;
+ border-radius: 100%;
+ background-color: $mdb-radio-color-on;
+ @include transform-scale3d(unquote('0,0,0'));
+ }
+ .check:after {
+ display: block;
+ position: absolute;
+ content: "";
+ background-color: $mdb-text-color-primary;
+ left: -18px;
+ top: -18px;
+ height: 50px;
+ width: 50px;
+ border-radius: 100%;
+ z-index: 1;
+ opacity: 0;
+ margin: 0;
+ @include transform-scale3d(unquote('1.5,1.5,1'));
+ }
+ input[type=radio]:not(:checked) ~ .check:after {
+ @include animation(rippleOff 500ms);
+ }
+ input[type=radio]:checked ~ .check:after {
+ @include animation(rippleOff 500ms);
+ }
+
+ }
+
+ input[type=radio] {
+ opacity: 0;
+ height: 0;
+ width: 0;
+ overflow: hidden;
+
+ &:checked {
+ @include radio-color($mdb-radio-color-on, 1);
+ }
+ &:checked ~ .check {
+ @include transform-scale3d(unquote('0.65, 0.65, 1'));
+ }
+ }
+
+ input[type=radio][disabled] {
+
+ // light theme spec: Disabled: #000000, Opacity 26%
+ @include radio-color($black, 0.26);
+
+ }
+}
+
+@keyframes rippleOn {
+ 0% {
+ opacity: 0;
+ }
+ 50% {
+ opacity: 0.2;
+ }
+ 100% {
+ opacity: 0;
+ }
+}
+
+@keyframes rippleOff {
+ 0% {
+ opacity: 0;
+ }
+ 50% {
+ opacity: 0.2;
+ }
+ 100% {
+ opacity: 0;
+ }
+}