Bones/scss/_forms.scss

141 lines
3.1 KiB
SCSS
Raw Normal View History

/* #Buttons
================================================== */
.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
2013-01-31 13:49:28 -05:00
@include vertical-gradient($form_button_gradient_start, $form_button_gradient_end);
@include button_border($form_button_border_rightbottom, $form_button_border_topleft);
@include border-radius($form_button_border_radius);
color: $form_button_text_colour;
display: inline-block;
2013-04-23 15:56:43 -04:00
font-size: $form_button_font_size;
font-weight: bold;
text-decoration: none;
2013-01-31 13:49:28 -05:00
text-shadow: $form_button_text_shadow;
cursor: pointer;
2013-04-23 15:56:43 -04:00
margin: $form_input_margin;
line-height: normal;
2013-04-23 15:56:43 -04:00
padding: $form_button_padding;
font-family: $form_element_font;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
2013-01-31 13:49:28 -05:00
@include vertical-gradient($form_button_hover_gradient_start, $form_button_hover_gradient_end);
color: $form_button_hover_text_colour;
@include button_border($form_button_hover_border_rightbottom, $form_button_hover_border_topleft);
}
.button:active,
button:active,
input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active {
2013-01-31 13:49:28 -05:00
@include vertical-gradient($form_button_active_gradient_start, $form_button_active_gradient_end);
border: $form_button_active_border;
}
.button.full-width,
button.full-width,
input[type="submit"].full-width,
input[type="reset"].full-width,
input[type="button"].full-width {
width: 100%;
padding-left: 0 !important;
padding-right: 0 !important;
text-align: center;
}
/* Fix for odd Mozilla border & padding issues */
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/* #Forms
================================================== */
form {
2013-04-23 15:56:43 -04:00
margin: $form_fieldset_margin;
}
fieldset {
2013-04-23 15:56:43 -04:00
margin: $form_fieldset_margin;
}
input[type="search"],
input[type="url"] {
-webkit-appearance: textfield;
-moz-appearance: textfield;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="url"],
2013-04-23 16:18:19 -04:00
input[type="number"],
input[type="tel"],
textarea,
select {
2013-01-31 13:49:28 -05:00
border: $form_input_border;
2013-04-23 15:56:43 -04:00
padding: $form_input_padding;
outline: none;
2013-01-31 13:49:28 -05:00
@include border-radius(2px);
2013-04-23 15:56:43 -04:00
font: $form_input_font_size $form_element_font;
2013-01-31 13:49:28 -05:00
color: $form_input_text_colour;
2013-04-23 15:56:43 -04:00
width: $form_input_width;
max-width: 100%;
display: block;
2013-04-23 15:56:43 -04:00
margin: $form_input_margin;
2013-01-31 13:49:28 -05:00
background: $form_input_background;
}
select {
padding: 0;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
2013-04-23 16:18:19 -04:00
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus {
2013-01-31 13:49:28 -05:00
border: $form_input_focus_border;
color: $form_input_focus_text_colour;
@include box-shadow(0, 0, 3px, rgba(0, 0, 0, .2))
}
textarea {
min-height: 60px;
}
label,
legend {
display: block;
2013-04-23 15:56:43 -04:00
font-weight: $legend_font_weight;
font-size: $legend_font_size;
}
select {
2013-04-23 15:56:43 -04:00
width: $form_input_select_width;
}
input[type="checkbox"] {
display: inline;
}
label span,
legend span {
font-weight: normal;
2013-04-23 15:56:43 -04:00
font-size: $form_input_font_size;
2013-01-31 13:49:28 -05:00
color: $form_label_legend_colour;
}