2014-07-27 23:44:36 +02:00
|
|
|
form {
|
2013-10-09 12:30:53 +02:00
|
|
|
@extend %reset-margin;
|
|
|
|
@extend %reset-padding;
|
|
|
|
}
|
2012-11-28 12:09:54 +01:00
|
|
|
|
2013-10-09 12:30:53 +02:00
|
|
|
label {
|
|
|
|
@extend %bold-elements;
|
|
|
|
@include padding-leader;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2012-11-28 12:09:54 +01:00
|
|
|
|
|
|
|
input,
|
2014-07-27 08:42:13 +02:00
|
|
|
%button { background-image: none; }
|
2013-02-09 04:10:33 +01:00
|
|
|
|
2013-10-09 12:30:53 +02:00
|
|
|
input[type="text"],
|
2013-10-11 22:06:20 +02:00
|
|
|
%button {
|
2013-10-12 17:51:13 +02:00
|
|
|
@include rhythm-borders(1px, .5);
|
2013-10-09 12:30:53 +02:00
|
|
|
display: block;
|
|
|
|
border: {
|
|
|
|
color: $color-border;
|
|
|
|
radius: $border-radius;
|
|
|
|
}
|
|
|
|
padding: {
|
|
|
|
right: $gutter-width;
|
|
|
|
left: $gutter-width;
|
|
|
|
}
|
|
|
|
width: 100%;
|
|
|
|
vertical-align: middle;
|
|
|
|
|
2013-10-11 22:06:20 +02:00
|
|
|
@include breakpoint($mobile-large) {
|
2013-10-09 12:30:53 +02:00
|
|
|
display: inline-block;
|
|
|
|
width: auto;
|
|
|
|
}
|
2012-11-28 12:09:54 +01:00
|
|
|
}
|
|
|
|
|
2013-02-09 04:10:33 +01:00
|
|
|
|
2013-10-09 12:30:53 +02:00
|
|
|
input {
|
|
|
|
&[type="text"] {
|
|
|
|
@each $placeholder in "-moz", ":-moz", "-ms", ":-webkit" {
|
|
|
|
&:#{$placeholder}-placeholder { color: $color-text-weak; }
|
|
|
|
}
|
|
|
|
@include box-shadow(0 1px 1px $color-shadow inset);
|
|
|
|
@include transition(color-border ease-in-out 0.15s, box-shadow ease-in-out 0.15s);
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
@include box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(red($color-accent), green($color-accent), blue($color-accent), 0.6));
|
|
|
|
color-border: $color-accent;
|
|
|
|
outline: 0;
|
|
|
|
background: $color-background;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&[type="radio"],
|
|
|
|
&[type="checkbox"] {
|
|
|
|
@extend %tab-focus;
|
|
|
|
margin: 4px 0 0 {
|
|
|
|
top: 1px \9;
|
|
|
|
}
|
|
|
|
line-height: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-10-11 22:06:20 +02:00
|
|
|
%button {
|
2013-10-09 12:30:53 +02:00
|
|
|
@extend %bold-elements;
|
|
|
|
@include box-shadow(0 2px 1px $color-shadow);
|
|
|
|
white-space: nowrap;
|
|
|
|
background: $color-background-shade;
|
2013-10-12 17:51:13 +02:00
|
|
|
vertical-align: middle;
|
2013-10-09 12:30:53 +02:00
|
|
|
cursor: pointer;
|
2013-10-11 22:06:20 +02:00
|
|
|
text-align: center;
|
2013-10-09 12:30:53 +02:00
|
|
|
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus { color: $color-text-strong; }
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background: lighten(mix($color-background-shade, $color-accent), 25);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus { @extend %tab-focus; }
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
&.active {
|
|
|
|
@include box-shadow(inset 0 3px 5px $color-shadow);
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-27 08:42:13 +02:00
|
|
|
button { @extend %button; }
|
2013-10-11 22:06:20 +02:00
|
|
|
|
2013-10-09 12:30:53 +02:00
|
|
|
%tab-focus {
|
|
|
|
outline: thin dotted $color-text;
|
|
|
|
outline: 5px auto -webkit-focus-ring-color {
|
|
|
|
offset: -2px;
|
|
|
|
}
|
|
|
|
}
|