Files
Iris/src/scss/global/_forms.scss

152 lines
2.0 KiB
SCSS
Raw Normal View History

2016-10-26 21:20:48 +13:00
button,
textarea,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="email"],
input[type="date"] {
padding: 10px 14px;
background: #FFFFFF;
color: #000000;
font-family: "Archivo Narrow", Helvetica, Arial, sans-serif;
font-size: 14px;
}
2016-10-26 21:20:48 +13:00
.button,
button,
input[type="button"],
input[type="submit"] {
2016-10-26 21:20:48 +13:00
@include animate();
padding: 10px 20px;
border: 0;
2016-10-26 21:20:48 +13:00
color: #000000;
background: $light_grey;
&:hover{
cursor: pointer;
background: darken( $light_grey, 6%);
}
&.primary {
background: $turquoise;
color: #FFFFFF;
&:hover {
background: darken( $turquoise, 6% );
}
}
2016-10-27 16:58:11 +13:00
&.secondary {
background: #000000;
color: #FFFFFF;
&:hover {
background: lighten( #000000, 20% );
}
}
2016-10-26 21:20:48 +13:00
&.confirming,
&.destructive {
background: $red;
color: #FFFFFF;
&:hover {
background: darken( $red, 6% );
}
}
2016-10-27 16:58:11 +13:00
&.timing-out {
position: relative;
&::before {
@include animate_timeout(2s);
content: '';
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 0;
background: rgba(255,255,255,0.15);
}
}
2016-10-26 21:20:48 +13:00
&[disabled],
&[disabled="disabled"] {
background: $light_grey !important;
color: $mid_grey !important;
cursor: not-allowed !important;
}
}
label {
display: block;
padding-bottom: 8px;
@include clearfix;
.label {
display: block;
padding-top: 10px;
width: 15%;
float: left;
}
.input {
width: 85%;
float: left;
input {
width: 60%;
}
2016-10-26 21:20:48 +13:00
}
}
.slider {
position: relative;
cursor: pointer;
2016-11-04 13:51:17 +13:00
.track {
position: absolute;
background: rgba(255,255,255,0.3);
@include animate()
.progress {
position: absolute;
background: $turquoise;
pointer-events: none;
left: 0;
}
}
&.horizontal {
margin: 10px 0;
height: 20px;
.track {
height: 2px;
top: 9px;
right: 0;
left: 0;
.progress {
top: 0;
height: 100%;
}
}
}
&.vertical {
margin: 10px 0;
width: 20px;
2016-10-26 21:20:48 +13:00
height: 100%;
2016-11-04 13:51:17 +13:00
.track {
width: 2px;
top: 0;
bottom: 0;
left: 9px;
.progress {
bottom: 0;
width: 100%;
}
}
2016-10-26 21:20:48 +13:00
}
}