Create test design
This commit is contained in:
58
webui/src/common/components/Input/styles.sass
Normal file
58
webui/src/common/components/Input/styles.sass
Normal file
@@ -0,0 +1,58 @@
|
||||
.field
|
||||
display: flex
|
||||
flex-direction: column
|
||||
gap: .35rem
|
||||
font-size: .8rem
|
||||
font-weight: 500
|
||||
color: #374048
|
||||
|
||||
.field__label
|
||||
letter-spacing: .5px
|
||||
|
||||
.field__control
|
||||
position: relative
|
||||
display: flex
|
||||
align-items: center
|
||||
background: #ffffff
|
||||
border: 1px solid #d0d7de
|
||||
border-radius: 6px
|
||||
padding: .55rem .7rem
|
||||
transition: border-color .15s ease, background .15s ease, box-shadow .15s ease
|
||||
&.has-icon .field__input
|
||||
padding-left: 1.6rem
|
||||
&.has-error
|
||||
border-color: #d93025
|
||||
box-shadow: 0 0 0 1px #d93025
|
||||
&:focus-within
|
||||
border-color: #0f62fe
|
||||
box-shadow: 0 0 0 1px #0f62fe20
|
||||
|
||||
.field__icon
|
||||
position: absolute
|
||||
left: .55rem
|
||||
top: 50%
|
||||
transform: translateY(-50%)
|
||||
display: inline-flex
|
||||
font-size: 1rem
|
||||
color: #6b7781
|
||||
pointer-events: none
|
||||
|
||||
.field__input
|
||||
appearance: none
|
||||
outline: none
|
||||
background: transparent
|
||||
border: 0
|
||||
color: #1f2429
|
||||
font: inherit
|
||||
width: 100%
|
||||
line-height: 1.2
|
||||
&::placeholder
|
||||
color: #a0abb4
|
||||
&:focus
|
||||
outline: none
|
||||
|
||||
.field__error
|
||||
font-size: .65rem
|
||||
font-weight: 600
|
||||
color: #d93025
|
||||
letter-spacing: .5px
|
Reference in New Issue
Block a user