Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af43a4e
commit 176bc6f
Showing
39 changed files
with
1,251 additions
and
1,251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,138 +1,138 @@ | ||
@import "./mixins"; | ||
|
||
@mixin solid-button($color) { | ||
background-color: $color; | ||
background-color: $color; | ||
|
||
&:hover, | ||
&:focus { | ||
background-color: lighten($color, 7%); | ||
} | ||
&:hover, | ||
&:focus { | ||
background-color: lighten($color, 7%); | ||
} | ||
|
||
&:active { | ||
background-color: darken($color, 5%); | ||
} | ||
&:active { | ||
background-color: darken($color, 5%); | ||
} | ||
|
||
.#{$prefix}-tag > span { | ||
color: $color; | ||
} | ||
.#{$prefix}-tag > span { | ||
color: $color; | ||
} | ||
} | ||
|
||
.#{$prefix}-button { | ||
cursor: pointer; | ||
user-select: none; | ||
-webkit-tap-highlight-color: transparent; | ||
|
||
// ---------------------- | ||
// <Button> states | ||
// ---------------------- | ||
&:hover, | ||
&:focus { | ||
background-color: $c-comp-bg-hover; | ||
} | ||
|
||
&:active { | ||
background-color: $c-comp-bg-active; | ||
} | ||
|
||
// ---------------------- | ||
// <Button> variants | ||
// ---------------------- | ||
&--blue { | ||
color: $c-blue; | ||
} | ||
|
||
&--red { | ||
color: $c-red; | ||
} | ||
|
||
&--white { | ||
color: $c-white; | ||
} | ||
cursor: pointer; | ||
user-select: none; | ||
-webkit-tap-highlight-color: transparent; | ||
|
||
// ---------------------- | ||
// <Button> states | ||
// ---------------------- | ||
&:hover, | ||
&:focus { | ||
background-color: $c-comp-bg-hover; | ||
} | ||
|
||
&:active { | ||
background-color: $c-comp-bg-active; | ||
} | ||
|
||
// ---------------------- | ||
// <Button> variants | ||
// ---------------------- | ||
&--blue { | ||
color: $c-blue; | ||
} | ||
|
||
&--red { | ||
color: $c-red; | ||
} | ||
|
||
&--white { | ||
color: $c-white; | ||
} | ||
|
||
&--black { | ||
color: $c-black; | ||
} | ||
&--black { | ||
color: $c-black; | ||
} | ||
|
||
&--primary { | ||
font-weight: $font-weight-bold; | ||
} | ||
&--primary { | ||
font-weight: $font-weight-bold; | ||
} | ||
} | ||
|
||
// ---------------------- | ||
// Solid <Button> | ||
// ---------------------- | ||
.#{$prefix}-button--solid { | ||
color: $c-white; | ||
border-radius: rem($button-border-radius); | ||
box-shadow: inset 0 0 1px $c-black; | ||
|
||
// ---------------------- | ||
// Color variants | ||
// ---------------------- | ||
&.#{$prefix}-button--blue { | ||
@include solid-button($c-blue); | ||
} | ||
color: $c-white; | ||
border-radius: rem($button-border-radius); | ||
box-shadow: inset 0 0 1px $c-black; | ||
|
||
&.#{$prefix}-button--red { | ||
@include solid-button($c-red); | ||
} | ||
// ---------------------- | ||
// Color variants | ||
// ---------------------- | ||
&.#{$prefix}-button--blue { | ||
@include solid-button($c-blue); | ||
} | ||
|
||
&.#{$prefix}-button--white { | ||
background-color: $c-white; | ||
color: $c-black; | ||
&.#{$prefix}-button--red { | ||
@include solid-button($c-red); | ||
} | ||
|
||
&:hover, | ||
&:focus { | ||
background-color: $c-comp-bg-hover; | ||
} | ||
&.#{$prefix}-button--white { | ||
background-color: $c-white; | ||
color: $c-black; | ||
|
||
&:active { | ||
background-color: $c-comp-bg-active; | ||
} | ||
&:hover, | ||
&:focus { | ||
background-color: $c-comp-bg-hover; | ||
} | ||
|
||
&.#{$prefix}-button--black { | ||
background-color: $c-black; | ||
&:active { | ||
background-color: $c-comp-bg-active; | ||
} | ||
} | ||
|
||
&:hover, | ||
&:focus { | ||
background-color: lighten($c-black, 20%); | ||
} | ||
&.#{$prefix}-button--black { | ||
background-color: $c-black; | ||
|
||
&:active { | ||
background-color: darken($c-black, 10%); | ||
} | ||
&:hover, | ||
&:focus { | ||
background-color: lighten($c-black, 20%); | ||
} | ||
|
||
.#{$prefix}-tag > span { | ||
color: $c-black; | ||
} | ||
&:active { | ||
background-color: darken($c-black, 10%); | ||
} | ||
|
||
.#{$prefix}-tag > span { | ||
color: $c-black; | ||
} | ||
} | ||
} | ||
|
||
// ---------------------- | ||
// Icon-only <Button> | ||
// ---------------------- | ||
.#{$prefix}-button--icon-only { | ||
color: inherit; | ||
color: inherit; | ||
} | ||
|
||
.#{$prefix}-button--tinted { | ||
.#{$prefix}-icon { | ||
opacity: .5; | ||
} | ||
.#{$prefix}-icon { | ||
opacity: .5; | ||
} | ||
} | ||
|
||
// ---------------------- | ||
// Custom <Button> tag | ||
// ---------------------- | ||
button.#{$prefix}-button { | ||
background: transparent; | ||
border: 0; | ||
outline: 0; | ||
appearance: none; | ||
user-select: none; | ||
background: transparent; | ||
border: 0; | ||
outline: 0; | ||
appearance: none; | ||
user-select: none; | ||
} | ||
|
||
a.#{$prefix}-button { | ||
text-decoration: none; | ||
text-decoration: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
@import "./mixins"; | ||
|
||
.#{$prefix}-checkbox { | ||
&__icon-wrapper { | ||
position: relative; | ||
flex: 0 0 auto; | ||
} | ||
&__icon-wrapper { | ||
position: relative; | ||
flex: 0 0 auto; | ||
} | ||
|
||
&__input { | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
margin: 0; | ||
opacity: 0; | ||
z-index: 2; | ||
cursor: pointer; | ||
} | ||
&__input { | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
margin: 0; | ||
opacity: 0; | ||
z-index: 2; | ||
cursor: pointer; | ||
} | ||
|
||
&__button { | ||
position: relative; | ||
z-index: 1; | ||
background: url('../icons/svg/radio-empty.svg'); | ||
} | ||
&__button { | ||
position: relative; | ||
z-index: 1; | ||
background: url('../icons/svg/radio-empty.svg'); | ||
} | ||
|
||
&__input:checked + &__button, | ||
&__input:checked + .#{$prefix}-iconlayout > &__button { | ||
background: url('../icons/svg/radio-selected.svg'); | ||
} | ||
&__input:checked + &__button, | ||
&__input:checked + .#{$prefix}-iconlayout > &__button { | ||
background: url('../icons/svg/radio-selected.svg'); | ||
} | ||
|
||
&__input:indeterminate + &__button, | ||
&__input:indeterminate + .#{$prefix}-iconlayout > &__button { | ||
background: url('../icons/svg/radio-half.svg'); | ||
} | ||
&__input:indeterminate + &__button, | ||
&__input:indeterminate + .#{$prefix}-iconlayout > &__button { | ||
background: url('../icons/svg/radio-half.svg'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
@import "./mixins"; | ||
|
||
.#{$prefix}-closable { | ||
position: fixed; | ||
width: 100vw; | ||
height: 100vh; | ||
top: 0; | ||
left: 0; | ||
position: fixed; | ||
width: 100vw; | ||
height: 100vh; | ||
top: 0; | ||
left: 0; | ||
} |
Oops, something went wrong.