gitlab-org--gitlab-foss/app/assets/stylesheets/framework/forms.scss

230 lines
3.6 KiB
SCSS
Raw Normal View History

textarea {
resize: vertical;
}
input {
border-radius: $border-radius-base;
}
2013-08-29 14:45:19 -04:00
input[type='text'].danger {
2016-11-30 08:25:25 -05:00
background: $input-danger-bg !important;
border-color: $input-danger-border;
text-shadow: 0 1px 1px $white-light;
2013-08-29 14:45:19 -04:00
}
.datetime-controls {
select {
width: 100px;
}
}
.form-actions {
2015-12-02 08:48:06 -05:00
margin-top: 0;
margin-bottom: -$gl-padding;
padding: $gl-padding;
2016-12-12 17:26:21 -05:00
background-color: $gray-light;
border-top: 1px solid $border-color;
}
label {
&.inline-label {
margin: 0;
}
2016-02-29 06:37:27 -05:00
&.label-light {
font-weight: $gl-font-weight-bold;
2016-02-29 06:37:27 -05:00
}
}
.control-label {
@extend .col-sm-2;
}
.inline-input-group {
width: 250px;
}
.custom-form-control {
width: 150px;
}
@media (min-width: $screen-sm-min) {
.custom-form-control {
width: 150px;
}
}
/* Medium devices (desktops, 992px and up) */
@media (min-width: $screen-md-min) {
.custom-form-control {
width: 170px;
}
}
/* Large devices (large desktops, 1200px and up) */
@media (min-width: $screen-lg-min) {
.custom-form-control {
width: 200px;
}
}
2016-11-21 17:11:21 -05:00
.help-form .form-group {
margin-left: 0;
margin-right: 0;
2016-11-21 17:11:21 -05:00
.control-label {
font-weight: $gl-font-weight-bold;
2016-11-21 17:11:21 -05:00
padding-top: 4px;
}
2016-11-21 17:11:21 -05:00
.form-control {
height: 29px;
background: $white-light;
font-family: $monospace_font;
}
2016-11-21 17:11:21 -05:00
.input-group-btn .btn {
padding: 3px $gl-btn-padding;
background-color: $gray-light;
border: 1px solid $border-color;
}
.text-block {
line-height: 0.8;
padding-top: 9px;
2016-11-21 17:11:21 -05:00
code {
line-height: 1.8;
}
img {
margin-right: $gl-padding;
}
2016-11-21 17:11:21 -05:00
}
2016-12-01 00:27:58 -05:00
@media(max-width: $screen-xs-max) {
2016-11-21 17:11:21 -05:00
padding: 0 $gl-padding;
2016-11-21 17:11:21 -05:00
.control-label,
.text-block {
padding-left: 0;
}
}
}
.fieldset-form fieldset {
margin-bottom: 20px;
}
.form-control {
@include box-shadow(none);
border-radius: 2px;
2016-06-06 14:11:49 -04:00
padding: $gl-vert-padding $gl-input-padding;
}
2016-04-25 09:55:03 -04:00
.select-wrapper {
position: relative;
.fa-chevron-down {
2016-04-25 09:55:03 -04:00
position: absolute;
font-size: 10px;
2016-04-25 09:55:03 -04:00
right: 10px;
top: 12px;
2016-04-25 09:55:03 -04:00
color: $gray-darkest;
pointer-events: none;
}
}
.select-control {
padding-left: 10px;
padding-right: 10px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
&::-ms-expand {
display: none;
}
2016-04-25 09:55:03 -04:00
}
2015-12-31 15:08:42 -05:00
.form-control-inline {
display: inline;
}
2014-12-24 09:52:40 -05:00
.wiki-content {
margin-top: 35px;
}
.form-group .control-label,
.form-group .control-label-full-width {
font-weight: $gl-font-weight-normal;
}
.form-control::-webkit-input-placeholder {
2016-12-30 15:18:27 -05:00
color: $gl-text-color-secondary;
}
.input-group {
.select2-container {
display: table-cell;
width: 200px !important;
}
.input-group-addon {
2016-11-30 08:25:25 -05:00
background-color: $input-group-addon-bg;
}
.input-group-addon:not(:first-child):not(:last-child) {
border-left: 0;
border-right: 0;
}
}
.help-block {
margin-bottom: 0;
}
.gl-field-error {
color: $red-500;
}
.gl-show-field-errors {
.gl-field-success-outline {
border: 1px solid $green-600;
&:focus {
box-shadow: 0 0 0 1px $green-600 inset, 0 1px 1px $gl-field-focus-shadow inset, 0 0 4px 0 $green-600;
border: 0 none;
}
}
.gl-field-error-outline {
border: 1px solid $red-500;
&:focus {
box-shadow: 0 0 0 1px $red-500 inset, 0 1px 1px $gl-field-focus-shadow inset, 0 0 4px 0 $gl-field-focus-shadow-error;
border: 0 none;
}
}
.gl-field-success-message {
color: $green-600;
}
.gl-field-error-message {
color: $red-500;
}
.gl-field-hint {
color: $gl-text-color;
}
}
@media(max-width: $screen-xs-max) {
.remember-me {
.remember-me-checkbox {
margin-top: 0;
}
}
}