gitlabhq/app/assets/stylesheets/selects.scss

129 lines
2.2 KiB
SCSS
Raw Normal View History

.ajax-users-select {
width: 400px;
}
.user-result {
.user-image {
float: left;
}
.user-name {
}
.user-username {
color: #999;
}
}
2012-02-26 23:41:53 +01:00
/** Branch/tag selector **/
.project-refs-form {
margin: 0;
2012-02-26 23:41:53 +01:00
span {
background:none !important;
position:static !important;
width:auto !important;
height:auto !important;
}
}
.project-refs-select {
width: 120px;
2012-02-26 23:41:53 +01:00
}
.project-refs-form .chzn-container {
position: relative;
top: 0;
left: 0;
margin-right: 10px;
2012-02-26 23:41:53 +01:00
.chzn-drop {
min-width: 400px;
.chzn-results {
max-height: 300px;
}
.chzn-search input {
min-width: 365px;
}
}
}
/** Fix for Search Dropdown Border **/
.chzn-container {
.chzn-search {
input:focus {
@include box-shadow(none);
}
}
.chzn-drop {
margin: 7px 0;
min-width: 200px;
border: 1px solid #bbb;
@include border-radius(0);
2012-02-26 23:41:53 +01:00
.chzn-results {
margin-top: 5px;
max-height: 300px;
.group-result {
color: $style_color;
border-bottom: 1px solid #EEE;
padding: 8px;
}
.active-result {
@include border-radius(0);
&.highlighted {
background: $hover;
color: $style_color;
}
&.result-selected {
background: #EEE;
border-left: 4px solid #CCC;
}
}
2012-02-26 23:41:53 +01:00
}
.chzn-search {
@include bg-gray-gradient;
input {
min-width: 165px;
border-color: #CCC;
}
2012-02-26 23:41:53 +01:00
}
}
.chzn-single {
@include bg-light-gray-gradient;
2012-02-26 23:41:53 +01:00
div {
background: transparent;
border-left: none;
2012-02-26 23:41:53 +01:00
}
span {
2012-02-26 23:41:53 +01:00
font-weight: normal;
}
}
}
/** Select2 styling **/
.select2-container .select2-choice {
background: #f1f1f1;
background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, whitesmoke), to(#e1e1e1));
background-image: -webkit-linear-gradient(whitesmoke 6.6%, #e1e1e1);
background-image: -moz-linear-gradient(whitesmoke 6.6%, #e1e1e1);
background-image: -o-linear-gradient(whitesmoke 6.6%, #e1e1e1);
}
.select2-container .select2-choice div {
border: none;
background: none;
}
.select2-drop {
padding-top: 8px;
}
.select2-no-results, .select2-searching {
padding: 7px;
color: #666;
}