SIGN IN SIGN UP
connors / photon UNCLAIMED

The fastest way to build beautiful Electron apps using simple HTML and CSS

0 0 1 SCSS
2015-09-29 09:25:31 -07:00
//
// Forms.css
2015-10-03 14:18:32 -07:00
// Adapted from Bootstrap's forms.less (https://github.com/twbs/bootstrap/blob/master/less/forms.less)
2015-09-29 09:25:31 -07:00
// --------------------------------------------------
2015-10-03 14:18:32 -07:00
label {
display: inline-block;
2015-10-03 14:36:33 -07:00
font-size: $font-size-default;
2015-10-03 14:18:32 -07:00
margin-bottom: 5px;
2015-10-11 17:09:49 -07:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2015-10-03 14:18:32 -07:00
}
2015-10-03 21:57:01 -07:00
2015-10-03 14:18:32 -07:00
input[type="search"] {
box-sizing: border-box;
}
2015-10-03 21:57:01 -07:00
2015-10-03 14:18:32 -07:00
input[type="radio"],
input[type="checkbox"] {
margin: 4px 0 0;
line-height: normal;
}
2015-10-03 21:57:01 -07:00
2015-10-03 14:18:32 -07:00
.form-control {
2015-10-18 14:53:20 -07:00
display: inline-block;
2015-09-29 13:41:31 -07:00
width: 100%;
2015-10-03 14:18:32 -07:00
min-height: 25px;
2015-10-10 10:35:37 -07:00
padding: $padding-less $padding;
2015-10-03 14:18:32 -07:00
font-size: $font-size-default;
line-height: $line-height-default;
background-color: $chrome-color;
border: 1px solid $border-color;
border-radius: $default-border-radius;
outline: none;
2015-10-03 14:36:33 -07:00
&:focus {
border-color: $focus-input-color;
box-shadow: 0 0 0 3px $focus-input-color;
2015-10-03 14:36:33 -07:00
}
2015-10-03 14:18:32 -07:00
}
2015-10-03 21:57:01 -07:00
2015-10-03 14:18:32 -07:00
// Reset height for `textarea`s
textarea {
height: auto;
}
// Form groups
//
// Designed to help with the organization and spacing of vertical forms. For
// horizontal forms, use the predefined grid classes.
.form-group {
margin-bottom: 10px;
}
2015-09-27 22:24:14 -07:00
2015-10-03 14:18:32 -07:00
// Checkboxes and radios
//
// Indent the labels to position radios/checkboxes as hanging controls.
.radio,
.checkbox {
position: relative;
display: block;
margin-top: 10px;
margin-bottom: 10px;
label {
padding-left: 20px;
margin-bottom: 0;
font-weight: normal;
2015-09-27 22:24:14 -07:00
}
}
2015-10-03 21:57:01 -07:00
2015-10-03 14:18:32 -07:00
.radio input[type="radio"],
.radio-inline input[type="radio"],
.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
position: absolute;
margin-left: -20px;
2015-10-10 15:48:25 -07:00
margin-top: 4px;
2015-10-03 14:18:32 -07:00
}
2015-10-04 11:42:20 -07:00
// Form actions
.form-actions .btn {
margin-right: 10px;
&:last-child {
margin-right: 0;
}
}