1
0
mirror of https://github.com/tabler/tabler.git synced 2026-07-29 14:34:37 +04:00

form elements, flags, payments refactoring

This commit is contained in:
codecalm
2020-01-10 20:55:55 +01:00
parent d1711c8194
commit 2d0ccfd551
25 changed files with 368 additions and 234 deletions
+14 -14
View File
@@ -1,19 +1,19 @@
/**
Image check
*/
.imagecheck {
.form-imagecheck {
position: relative;
margin: 0;
cursor: pointer;
}
.imagecheck-input {
.form-imagecheck-input {
position: absolute;
z-index: -1;
opacity: 0;
}
.imagecheck-figure {
.form-imagecheck-figure {
position: relative;
display: flex;
margin: 0;
@@ -21,12 +21,12 @@ Image check
border: 1px solid $border-color;
border-radius: 3px;
.imagecheck-input:focus ~ & {
.form-imagecheck-input:focus ~ & {
border-color: $primary;
box-shadow: $input-btn-focus-box-shadow;
}
.imagecheck-input:checked ~ & {
.form-imagecheck-input:checked ~ & {
border-color: $border-color;
}
@@ -47,7 +47,7 @@ Image check
border-radius: 3px;
transition: .3s opacity;
.imagecheck-input:checked ~ & {
.form-imagecheck-input:checked ~ & {
background-color: $form-check-input-checked-bg-color;
background-image: escape-svg($form-check-input-checked-bg-image);
background-repeat: $form-check-input-checked-bg-repeat;
@@ -58,7 +58,7 @@ Image check
}
}
.imagecheck-image {
.form-imagecheck-image {
max-width: 100%;
opacity: .64;
transition: .3s opacity;
@@ -73,23 +73,23 @@ Image check
border-bottom-left-radius: 2px;
}
.imagecheck:hover &,
.imagecheck-input:focus ~ .imagecheck-figure &,
.imagecheck-input:checked ~ .imagecheck-figure & {
.form-imagecheck:hover &,
.form-imagecheck-input:focus ~ .form-imagecheck-figure &,
.form-imagecheck-input:checked ~ .form-imagecheck-figure & {
opacity: 1;
}
}
.imagecheck-caption {
.form-imagecheck-caption {
padding: .25rem;
font-size: $font-size-sm;
color: $text-muted;
text-align: center;
transition: .3s color;
.imagecheck:hover &,
.imagecheck-input:focus ~ .imagecheck-figure &,
.imagecheck-input:checked ~ .imagecheck-figure & {
.form-imagecheck:hover &,
.form-imagecheck-input:focus ~ .form-imagecheck-figure &,
.form-imagecheck-input:checked ~ .form-imagecheck-figure & {
color: $body-color;
}
}