mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2024-12-28 18:36:21 +00:00
Fix notifications, change look of buttons
This commit is contained in:
parent
4f339d5ec5
commit
5a991a6e58
|
@ -1,12 +1,12 @@
|
||||||
@mixin btn-block($color)
|
@mixin btn-block($color)
|
||||||
color: RGB($color)
|
color: RGB($color)
|
||||||
|
box-shadow: 0 1px 0 RGBA($black, 0.2), 0 -1px 0 RGBA($white, 0.2)
|
||||||
|
|
||||||
&:hover
|
&:hover, &:focus-visible
|
||||||
background-color: RGBA($color, 0.1)
|
background-color: RGBA($color, 0.1)
|
||||||
color: RGB($color)
|
color: RGB($color)
|
||||||
|
box-shadow: 0 1px 0 RGBA($black, 0.2), 0 -1px 0 RGBA($color, 0.2)
|
||||||
|
|
||||||
&:focus-visible
|
|
||||||
outline: 2px solid RGBA($color, 0.3)
|
|
||||||
|
|
||||||
.btn-block
|
.btn-block
|
||||||
padding: 0.4rem 0.7rem
|
padding: 0.4rem 0.7rem
|
||||||
|
@ -25,19 +25,19 @@
|
||||||
font-weight: 400
|
font-weight: 400
|
||||||
text-align: center
|
text-align: center
|
||||||
|
|
||||||
background-color: transparent
|
background-color: RGBA($white, 0.1)
|
||||||
color: RGB($white)
|
color: RGB($white)
|
||||||
border: none
|
border: none
|
||||||
border-radius: $rad-inner
|
border-radius: $rad-inner
|
||||||
|
box-shadow: 0 1px 0 RGBA($black, 0.2), 0 -1px 0 RGBA($white, 0.2)
|
||||||
|
outline: none
|
||||||
|
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out
|
transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, box-shadow 0.15s ease-in-out
|
||||||
|
|
||||||
&:hover
|
&:hover, &:focus-visible
|
||||||
background-color: RGBA($white, 0.1)
|
background-color: RGBA($white, 0.2)
|
||||||
|
box-shadow: 0 1px 0 RGBA($black, 0.3), 0 -1px 0 RGBA($white, 0.3)
|
||||||
&:focus-visible
|
|
||||||
outline: 2px solid RGBA($white, 0.3)
|
|
||||||
|
|
||||||
&.primary
|
&.primary
|
||||||
@include btn-block($primary)
|
@include btn-block($primary)
|
||||||
|
@ -91,10 +91,11 @@
|
||||||
|
|
||||||
background-color: RGBA($white, 0.1)
|
background-color: RGBA($white, 0.1)
|
||||||
color: RGB($white)
|
color: RGB($white)
|
||||||
|
|
||||||
border: none
|
border: none
|
||||||
border-bottom: 3px solid RGBA($white, 0.1)
|
border-bottom: 3px solid RGBA($white, 0.1)
|
||||||
border-radius: $rad-inner
|
border-radius: $rad-inner
|
||||||
|
box-shadow: 0 1px 0 RGBA($black, 0.2), 0 -1px 0 RGBA($white, 0.2)
|
||||||
|
outline: none
|
||||||
|
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out
|
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out
|
||||||
|
@ -107,7 +108,6 @@
|
||||||
|
|
||||||
&:focus
|
&:focus
|
||||||
border-color: RGB($primary)
|
border-color: RGB($primary)
|
||||||
outline: none
|
|
||||||
|
|
||||||
&.black
|
&.black
|
||||||
@include btn-block($black)
|
@include btn-block($black)
|
||||||
|
@ -132,13 +132,14 @@
|
||||||
|
|
||||||
background-color: RGBA($white, 0.1)
|
background-color: RGBA($white, 0.1)
|
||||||
color: RGB($white)
|
color: RGB($white)
|
||||||
|
|
||||||
border: none
|
border: none
|
||||||
border-radius: $rad-inner
|
border-radius: $rad-inner
|
||||||
|
box-shadow: 0 1px 0 RGBA($black, 0.2), 0 -1px 0 RGBA($white, 0.2)
|
||||||
|
outline: none
|
||||||
|
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out
|
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.15s ease-in-out
|
||||||
|
|
||||||
input
|
input
|
||||||
position: absolute
|
position: absolute
|
||||||
|
@ -153,20 +154,20 @@
|
||||||
text-align: center
|
text-align: center
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
|
|
||||||
&:hover
|
&:hover, &:focus-visible
|
||||||
background-color: RGBA($white, 0.2)
|
background-color: RGBA($white, 0.2)
|
||||||
color: RGB($white)
|
color: RGB($white)
|
||||||
|
box-shadow: 0 1px 0 RGBA($black, 0.3), 0 -1px 0 RGBA($white, 0.3)
|
||||||
&:focus-visible
|
|
||||||
outline: 2px solid RGBA($white, 0.3)
|
|
||||||
|
|
||||||
&.active
|
&.active
|
||||||
background-color: RGBA($primary, 0.2)
|
background-color: RGBA($primary, 0.2)
|
||||||
color: RGB($primary)
|
color: RGB($primary)
|
||||||
|
box-shadow: 0 1px 0 RGBA($black, 0.3), 0 -1px 0 RGBA($primary, 0.3)
|
||||||
|
|
||||||
&.edging
|
&.edging
|
||||||
background-color: RGBA($white, 0.2)
|
background-color: RGBA($white, 0.2)
|
||||||
color: RGB($white)
|
color: RGB($white)
|
||||||
|
box-shadow: 0 1px 0 RGBA($black, 0.3), 0 -1px 0 RGBA($white, 0.3)
|
||||||
|
|
||||||
input
|
input
|
||||||
display: none // So it doesnt get in the way of the drop as that breaks things
|
display: none // So it doesnt get in the way of the drop as that breaks things
|
||||||
|
@ -174,3 +175,4 @@
|
||||||
&.error
|
&.error
|
||||||
background-color: RGBA($critical, 0.2)
|
background-color: RGBA($critical, 0.2)
|
||||||
color: RGB($critical)
|
color: RGB($critical)
|
||||||
|
box-shadow: 0 1px 0 RGBA($black, 0.3), 0 -1px 0 RGBA($critical, 0.3)
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
background-color: RGB($bg-200)
|
background-color: RGB($bg-200)
|
||||||
border-radius: $rad
|
border-radius: $rad
|
||||||
|
box-shadow: 0 1px 0 RGB($bg-100), 0 -1px 0 RGB($bg-300)
|
||||||
|
|
||||||
.pill-text
|
.pill-text
|
||||||
margin: 0
|
margin: 0
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
&::after
|
&::after
|
||||||
content: ""
|
content: ""
|
||||||
|
|
||||||
width: 450px
|
width: 100%
|
||||||
height: 3px
|
height: 3px
|
||||||
|
|
||||||
position: absolute
|
position: absolute
|
||||||
|
|
Loading…
Reference in a new issue