react-jam-ui
Version:
React JAM UI components
95 lines (90 loc) • 2.19 kB
text/stylus
select-material($params) {
.select {
border-radius: 0;
border-left: none;
border-right: none;
border-top: none;
padding-left: 0;
outline: none;
box-shadow: none;
background: none;
&:focus {
box-shadow: none;
}
}
.select {
border-radius: 0;
border: none;
padding: 0;
}
.select {
background: $params.default.bg;
color: $params.default.color;
border-radius: $params.default.radius;
border-bottom: 1px solid $params.default.border;
}
&:after {
display: block;
left: 50%;
width: 0;
background: $params.default.border;
height: 1px;
bottom: 0;
position: absolute;
transition: left 0.2s ease, width 0.2s ease;
content: "";
z-index: 4;
}
&.focus {
.input {
background: $params.focus.bg;
color: $params.focus.color;
border-radius: $params.focus.radius;
}
&:after {
width: 100%;
left: 0;
background: $params.focus.border
}
}
&.valid {
.input {
background: $params.valid.bg;
color: $params.valid.color;
border-radius: $params.valid.radius;
}
&:after {
width: 100%;
left: 0;
background: $params.valid.border
}
.input-msg {
border-left: 2px solid $params.valid.border;
}
}
&.error {
.input {
background: $params.error.bg;
color: $params.error.color;
border-radius: $params.error.radius;
}
&:after {
width: 100%;
left: 0;
background: $params.error.border
}
.input-msg {
border-left: 2px solid $params.error.border;
color: $params.error.border;
}
}
.input-msg {
position: absolute;
left: 100%;
margin: 0 0 0 15px;
bottom: 0;
padding: 15px;
background: #FFFFFF;
z-index: 20;
}
}