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

132 lines
1.9 KiB
SCSS
Raw Normal View History

textarea {
resize: vertical;
}
input {
border-radius: $border-radius-base;
}
2013-08-29 18:45:19 +00:00
input[type='text'].danger {
background: #f2dede!important;
border-color: #d66;
2013-08-29 18:45:19 +00:00
text-shadow: 0 1px 1px #fff
}
.datetime-controls {
select {
width: 100px;
}
}
.form-actions {
2015-12-02 13:48:06 +00:00
margin-top: 0;
margin-bottom: -$gl-padding;
padding: $gl-padding;
background-color: $background-color;
border-top: 1px solid $border-color;
}
label {
&.inline-label {
margin: 0;
}
2016-02-29 11:37:27 +00:00
&.label-light {
2016-03-02 15:05:49 +00:00
font-weight: 600;
2016-02-29 11:37:27 +00: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;
}
}
.fieldset-form fieldset {
margin-bottom: 20px;
}
.form-control {
@include box-shadow(none);
border-radius: 3px;
2016-06-06 18:11:49 +00:00
padding: $gl-vert-padding $gl-input-padding;
}
2016-04-25 13:55:03 +00:00
.select-wrapper {
position: relative;
.caret {
position: absolute;
right: 10px;
top: $gl-padding;
color: $gray-darkest;
pointer-events: none;
}
}
.select-control {
padding-left: 10px;
padding-right: 10px;
-webkit-appearance: none;
}
2015-12-31 20:08:42 +00:00
.form-control-inline {
display: inline;
}
2014-12-24 14:52:40 +00:00
.wiki-content {
margin-top: 35px;
}
.form-group .control-label {
font-weight: normal;
}
.form-control::-webkit-input-placeholder {
color: $gl-placeholder-color;
}
.input-group {
.select2-container {
display: table-cell;
width: 200px !important;
}
.input-group-addon {
background-color: #f7f8fa;
}
.input-group-addon:not(:first-child):not(:last-child) {
border-left: 0;
border-right: 0;
}
}
2015-12-02 13:50:50 +00:00
.help-block {
margin-bottom: 0;
}