mirror of
https://github.com/google/pebble.git
synced 2025-03-23 20:21:55 +00:00
95 lines
2 KiB
SCSS
95 lines
2 KiB
SCSS
|
/**
|
||
|
* Copyright 2025 Google LLC
|
||
|
*
|
||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
* you may not use this file except in compliance with the License.
|
||
|
* You may obtain a copy of the License at
|
||
|
*
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* Unless required by applicable law or agreed to in writing, software
|
||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
* See the License for the specific language governing permissions and
|
||
|
* limitations under the License.
|
||
|
*/
|
||
|
|
||
|
fieldset {
|
||
|
background: lighten($base-border-color, 10);
|
||
|
border: 1px solid $base-border-color;
|
||
|
margin: 0 0 ($base-line-height / 2) 0;
|
||
|
padding: $base-line-height;
|
||
|
}
|
||
|
|
||
|
input,
|
||
|
label,
|
||
|
select {
|
||
|
display: block;
|
||
|
font-family: $form-font-family;
|
||
|
font-size: $form-font-size;
|
||
|
}
|
||
|
|
||
|
label {
|
||
|
font-weight: bold;
|
||
|
margin-bottom: $base-line-height / 4;
|
||
|
|
||
|
&.required:after {
|
||
|
content: "*";
|
||
|
}
|
||
|
|
||
|
abbr {
|
||
|
display: none;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
textarea,
|
||
|
#{$all-text-inputs},
|
||
|
select[multiple=multiple] {
|
||
|
@include box-sizing(border-box);
|
||
|
@include transition(border-color);
|
||
|
background-color: white;
|
||
|
border-radius: $form-border-radius;
|
||
|
border: 1px solid $form-border-color;
|
||
|
box-shadow: $form-box-shadow;
|
||
|
font-family: $form-font-family;
|
||
|
font-size: $form-font-size;
|
||
|
margin-bottom: $base-line-height / 2;
|
||
|
padding: ($base-line-height / 3) ($base-line-height / 3);
|
||
|
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"] {
|
||
|
@include appearance(none);
|
||
|
}
|
||
|
|
||
|
input[type="checkbox"], input[type="radio"] {
|
||
|
display: inline;
|
||
|
margin-right: $base-line-height / 4;
|
||
|
}
|
||
|
|
||
|
input[type="file"] {
|
||
|
margin-bottom: $base-line-height / 2;
|
||
|
padding-bottom: ($base-line-height / 3);
|
||
|
width: 100%;
|
||
|
}
|
||
|
|
||
|
select {
|
||
|
width: auto;
|
||
|
max-width: 100%;
|
||
|
margin-bottom: $base-line-height;
|
||
|
}
|