81 lines
1.5 KiB
SCSS
Raw Normal View History

label{
cursor: pointer;
margin-right: 13px;
font-size: 16px;
}
2021-11-05 16:43:46 +01:00
input {
&[type="text"] {
2021-11-05 16:43:46 +01:00
border: 1px solid $gray;
box-sizing: border-box;
border-radius: 2px;
width: 245px;
&.large {
height: 40px;
}
&.medium {
height: 32px;
}
&.small {
height: 26px;
}
&:focus {
outline-style: none;
box-shadow: none;
border-color: transparent;
border: 2px solid $black;
}
}
2021-11-05 16:43:46 +01:00
// Radio button and checkbox
&[type=radio],
&[type=checkbox]{
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
2021-11-05 16:43:46 +01:00
}
&[type=radio] + label:before,
&[type=checkbox] + label:before {
cursor: pointer;
font-family: $fontawesome;
2021-11-05 16:43:46 +01:00
display: inline-block;
color: $dark-gray;
letter-spacing: 8px;
font-size: 18px;
vertical-align: -1px;
}
&[type=radio]:checked + label:before,
&[type=checkbox]:checked + label:before {
color: $blue;
2021-11-05 16:43:46 +01:00
}
&[type=checkbox] + label:before {
content: "\f0c8";
}
&[type=checkbox]:checked + label:before {
content: "\f14a";
font-weight: bold;
2021-11-05 16:43:46 +01:00
}
&[type=radio] + label:before {
content: "\f111";
}
&[type=radio]:checked + label:before {
content: "\f192";
}
}