2012-09-10 11:39:34 -04:00
|
|
|
/* #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;
|
2012-09-10 11:39:34 -04:00
|
|
|
display: inline-block;
|
2013-04-23 15:56:43 -04:00
|
|
|
font-size: $form_button_font_size;
|
2012-09-10 11:39:34 -04:00
|
|
|
font-weight: bold;
|
|
|
|
text-decoration: none;
|
2013-01-31 13:49:28 -05:00
|
|
|
text-shadow: $form_button_text_shadow;
|
2012-09-10 11:39:34 -04:00
|
|
|
cursor: pointer;
|
2013-04-23 15:56:43 -04:00
|
|
|
margin: $form_input_margin;
|
2012-09-10 11:39:34 -04:00
|
|
|
line-height: normal;
|
2013-04-23 15:56:43 -04:00
|
|
|
padding: $form_button_padding;
|
2012-09-10 11:39:34 -04:00
|
|
|
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);
|
2012-09-10 11:39:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
2012-09-10 11:39:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
2012-09-10 11:39:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
fieldset {
|
2013-04-23 15:56:43 -04:00
|
|
|
margin: $form_fieldset_margin;
|
2012-09-10 11:39:34 -04:00
|
|
|
}
|
|
|
|
|
2013-04-23 16:16:12 -04:00
|
|
|
input[type="search"],
|
|
|
|
input[type="url"] {
|
|
|
|
-webkit-appearance: textfield;
|
|
|
|
-moz-appearance: textfield;
|
|
|
|
}
|
|
|
|
|
2012-09-10 11:39:34 -04:00
|
|
|
input[type="text"],
|
|
|
|
input[type="password"],
|
|
|
|
input[type="email"],
|
2013-04-23 16:16:12 -04:00
|
|
|
input[type="search"],
|
|
|
|
input[type="url"],
|
2013-04-23 16:18:19 -04:00
|
|
|
input[type="number"],
|
2013-04-23 16:19:04 -04:00
|
|
|
input[type="tel"],
|
2012-09-10 11:39:34 -04:00
|
|
|
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;
|
2012-09-10 11:39:34 -04:00
|
|
|
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;
|
2012-09-10 11:39:34 -04:00
|
|
|
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;
|
2012-09-10 11:39:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
select {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="text"]:focus,
|
|
|
|
input[type="password"]:focus,
|
|
|
|
input[type="email"]:focus,
|
2013-04-23 16:16:12 -04:00
|
|
|
input[type="search"]:focus,
|
|
|
|
input[type="url"]:focus,
|
2013-04-23 16:18:19 -04:00
|
|
|
input[type="number"]:focus,
|
2013-04-23 16:19:04 -04:00
|
|
|
input[type="tel"]:focus,
|
2012-09-10 11:39:34 -04:00
|
|
|
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))
|
2012-09-10 11:39:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
2012-09-10 11:39:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
select {
|
2013-04-23 15:56:43 -04:00
|
|
|
width: $form_input_select_width;
|
2012-09-10 11:39:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
2012-09-10 11:39:34 -04:00
|
|
|
}
|