You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

114 lines
1.7 KiB

/* ==========================================================================
Forms
========================================================================== */
input,
label,
select {
display: block;
}
label {
font-family: $base-code-font-family;
font-size: 0.8em;
margin-bottom: 0.5em;
&.required::after {
content: "*";
}
abbr {
display: none;
}
}
input,
textarea,
select,
select[multiple="multiple"] {
background-color: #fff;
border-color: #d7d8da;
border-radius: .25em;
border-style: solid;
border-width: 1px 1px 4px 1px;
box-shadow: inset 0 1px 3px rgba(0,0,0,.06);
box-sizing: border-box;
font-family: Roboto,sans-serif;
font-size: 16px;
margin-bottom: 0.25em;
padding: 0.75em;
transition: border-color;
width: 100%;
&:hover {
border-color: $form-border-color-hover;
}
&:focus {
border-color: $form-border-color-focus;
box-shadow: $form-box-shadow-focus;
outline: none;
}
}
textarea {
resize: vertical;
}
input[type="search"] {
appearance: none;
}
input[type="checkbox"],
input[type="radio"] {
display: inline-block;
margin-right: 0.5em;
width: initial;
}
input[type="file"] {
width: 100%;
}
select {
max-width: 100%;
width: auto;
}
form button,
form .btn,
input[type="submit"] {
appearance: none;
cursor: pointer;
margin: 1em 0;
user-select: none;
vertical-align: middle;
white-space: nowrap;
}
form {
ul,
ol,
li {
list-style-type: none;
padding-left: 0;
}
}
.form-group {
margin-bottom: 0.5rem;
}
/* required */
.req,
.required {
color: $alert-primary-color !important;
font-weight: bold;
}
/* instructions */
.instruct {
font-size: 0.8em;
font-style: italic;
}