2014-09-02 18:07:02 +05:30
|
|
|
/** Select2 selectbox style override **/
|
2016-06-02 11:05:42 +05:30
|
|
|
.select2-container {
|
|
|
|
width: 100% !important;
|
|
|
|
}
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.select2-container,
|
|
|
|
.select2-container.select2-drop-above {
|
2014-09-02 18:07:02 +05:30
|
|
|
.select2-choice {
|
2017-08-17 22:00:37 +05:30
|
|
|
background: $white-light;
|
2016-06-02 11:05:42 +05:30
|
|
|
border-color: $input-border;
|
|
|
|
height: 35px;
|
2016-06-16 23:09:34 +05:30
|
|
|
padding: $gl-vert-padding $gl-input-padding;
|
2015-09-25 12:07:36 +05:30
|
|
|
font-size: $gl-font-size;
|
2015-04-26 12:48:37 +05:30
|
|
|
line-height: 1.42857143;
|
2016-06-02 11:05:42 +05:30
|
|
|
border-radius: $border-radius-base;
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
.select2-arrow {
|
2016-06-02 11:05:42 +05:30
|
|
|
background-image: none;
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
padding-top: 6px;
|
|
|
|
padding-right: 10px;
|
|
|
|
|
|
|
|
b {
|
2016-11-03 12:29:30 +05:30
|
|
|
display: inline-block;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
margin-left: 2px;
|
|
|
|
vertical-align: middle;
|
2017-08-17 22:00:37 +05:30
|
|
|
border-top: 5px dashed;
|
|
|
|
border-right: 5px solid transparent;
|
|
|
|
border-left: 5px solid transparent;
|
2016-06-02 11:05:42 +05:30
|
|
|
color: $gray-darkest;
|
|
|
|
}
|
2014-09-02 18:07:02 +05:30
|
|
|
}
|
2015-12-23 02:04:40 +05:30
|
|
|
|
|
|
|
.select2-chosen {
|
2016-06-02 11:05:42 +05:30
|
|
|
margin-right: 15px;
|
2015-12-23 02:04:40 +05:30
|
|
|
}
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
&:hover {
|
2017-08-17 22:00:37 +05:30
|
|
|
background-color: $white-normal;
|
2016-06-02 11:05:42 +05:30
|
|
|
border-color: $border-white-normal;
|
|
|
|
color: $gl-text-color;
|
2015-12-23 02:04:40 +05:30
|
|
|
}
|
2014-09-02 18:07:02 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-24 18:46:33 +05:30
|
|
|
.select2-drop {
|
2017-08-17 22:00:37 +05:30
|
|
|
box-shadow: $select2-drop-shadow1 0 0 1px 0, $select2-drop-shadow2 0 2px 18px 0;
|
2016-11-03 12:29:30 +05:30
|
|
|
border-radius: $border-radius-default;
|
2016-06-02 11:05:42 +05:30
|
|
|
border: none;
|
|
|
|
min-width: 175px;
|
2015-10-24 18:46:33 +05:30
|
|
|
}
|
|
|
|
|
2016-09-29 09:46:39 +05:30
|
|
|
.select2-results .select2-result-label,
|
|
|
|
.select2-more-results {
|
2016-06-02 11:05:42 +05:30
|
|
|
padding: 10px 15px;
|
2015-10-24 18:46:33 +05:30
|
|
|
}
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.select2-drop {
|
2017-08-17 22:00:37 +05:30
|
|
|
color: $gl-grayish-blue;
|
2015-10-24 18:46:33 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.select2-highlighted {
|
2017-08-17 22:00:37 +05:30
|
|
|
background: $gl-link-color !important;
|
2015-10-24 18:46:33 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.select2-results li.select2-result-with-children > .select2-result-label {
|
|
|
|
font-weight: 600;
|
2016-06-02 11:05:42 +05:30
|
|
|
color: $gl-text-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-container-active {
|
2017-08-17 22:00:37 +05:30
|
|
|
.select2-choice,
|
|
|
|
.select2-choices {
|
2016-11-03 12:29:30 +05:30
|
|
|
box-shadow: none;
|
2016-06-02 11:05:42 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-dropdown-open {
|
|
|
|
.select2-choice {
|
|
|
|
border-color: $border-white-normal;
|
|
|
|
outline: 0;
|
|
|
|
background-image: none;
|
|
|
|
background-color: $white-dark;
|
2016-11-03 12:29:30 +05:30
|
|
|
box-shadow: $gl-btn-active-gradient;
|
2016-06-02 11:05:42 +05:30
|
|
|
}
|
2015-10-24 18:46:33 +05:30
|
|
|
}
|
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
.select2-container-multi {
|
|
|
|
.select2-choices {
|
2016-11-03 12:29:30 +05:30
|
|
|
border-radius: $border-radius-default;
|
2015-12-23 02:04:40 +05:30
|
|
|
border-color: $input-border;
|
2016-06-02 11:05:42 +05:30
|
|
|
background: none;
|
2015-12-23 02:04:40 +05:30
|
|
|
|
|
|
|
.select2-search-field input {
|
2016-11-03 12:29:30 +05:30
|
|
|
padding: 5px $gl-padding / 2;
|
2015-12-23 02:04:40 +05:30
|
|
|
font-size: 13px;
|
|
|
|
height: auto;
|
|
|
|
font-family: inherit;
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
2015-10-24 18:46:33 +05:30
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
.select2-search-choice {
|
2016-11-03 12:29:30 +05:30
|
|
|
margin: 5px 0 0 8px;
|
2015-12-23 02:04:40 +05:30
|
|
|
box-shadow: none;
|
|
|
|
border-color: $input-border;
|
|
|
|
color: $gl-text-color;
|
|
|
|
line-height: 15px;
|
2017-08-17 22:00:37 +05:30
|
|
|
background-color: $gray-light;
|
2016-06-02 11:05:42 +05:30
|
|
|
background-image: none;
|
2015-12-23 02:04:40 +05:30
|
|
|
|
|
|
|
.select2-search-choice-close {
|
2016-06-02 11:05:42 +05:30
|
|
|
top: 4px;
|
|
|
|
left: 3px;
|
2015-12-23 02:04:40 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.select2-search-choice-focus {
|
|
|
|
border-color: $gl-text-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
&.select2-container-active .select2-choices,
|
|
|
|
&.select2-dropdown-open .select2-choices {
|
|
|
|
border-color: $border-white-normal;
|
2016-11-03 12:29:30 +05:30
|
|
|
box-shadow: $gl-btn-active-gradient;
|
2016-06-02 11:05:42 +05:30
|
|
|
}
|
2014-09-02 18:07:02 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.select2-drop-active {
|
2016-06-02 11:05:42 +05:30
|
|
|
margin-top: 6px;
|
|
|
|
font-size: 14px;
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
&.select2-drop-above {
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-results {
|
|
|
|
max-height: 350px;
|
2016-11-03 12:29:30 +05:30
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
.select2-highlighted {
|
2015-04-26 12:48:37 +05:30
|
|
|
background: $gl-primary;
|
2014-09-02 18:07:02 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.select2-search {
|
|
|
|
padding: 15px 15px 5px;
|
|
|
|
|
|
|
|
.select2-drop-auto-width & {
|
|
|
|
padding: 15px 15px 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-search input {
|
|
|
|
padding: 2px 25px 2px 5px;
|
2017-08-17 22:00:37 +05:30
|
|
|
background: $white-light image-url('select2.png');
|
2016-06-02 11:05:42 +05:30
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: right 0 bottom 6px;
|
|
|
|
border: 1px solid $input-border;
|
2016-11-03 12:29:30 +05:30
|
|
|
border-radius: $border-radius-default;
|
2016-09-29 09:46:39 +05:30
|
|
|
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
&:focus {
|
|
|
|
border-color: $input-border-focus;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-search input.select2-active {
|
2017-08-17 22:00:37 +05:30
|
|
|
background-color: $white-light;
|
2016-06-02 11:05:42 +05:30
|
|
|
background-image: image-url('select2-spinner.gif') !important;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: right 5px center !important;
|
|
|
|
background-size: 16px 16px !important;
|
2014-09-02 18:07:02 +05:30
|
|
|
}
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.select2-results .select2-no-results,
|
|
|
|
.select2-results .select2-searching,
|
|
|
|
.select2-results .select2-ajax-error,
|
|
|
|
.select2-results .select2-selection-limit {
|
|
|
|
background: $gray-light;
|
|
|
|
display: list-item;
|
|
|
|
padding: 10px 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.select2-results {
|
|
|
|
margin: 0;
|
|
|
|
padding: 10px 0;
|
2014-09-02 18:07:02 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.ajax-users-select {
|
|
|
|
width: 400px;
|
|
|
|
|
|
|
|
&.input-large {
|
|
|
|
width: 210px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.input-clamp {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.select2-highlighted {
|
|
|
|
.group-result {
|
|
|
|
.group-path {
|
2017-08-17 22:00:37 +05:30
|
|
|
color: $white-light;
|
2016-06-02 11:05:42 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
.group-result {
|
|
|
|
.group-image {
|
|
|
|
float: left;
|
|
|
|
}
|
2016-11-03 12:29:30 +05:30
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
.group-name {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2016-11-03 12:29:30 +05:30
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
.group-path {
|
2017-08-17 22:00:37 +05:30
|
|
|
color: $group-path-color;
|
2015-04-26 12:48:37 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
.user-result {
|
2015-12-23 02:04:40 +05:30
|
|
|
min-height: 24px;
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
.user-image {
|
|
|
|
float: left;
|
|
|
|
}
|
2015-12-23 02:04:40 +05:30
|
|
|
|
|
|
|
&.no-username {
|
|
|
|
.user-name {
|
|
|
|
line-height: 24px;
|
|
|
|
}
|
2014-09-02 18:07:02 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.namespace-result {
|
|
|
|
.namespace-kind {
|
2017-08-17 22:00:37 +05:30
|
|
|
color: $namespace-kind-color;
|
2014-09-02 18:07:02 +05:30
|
|
|
font-weight: normal;
|
|
|
|
}
|
2016-11-03 12:29:30 +05:30
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
.namespace-path {
|
|
|
|
margin-left: 10px;
|
|
|
|
font-weight: bolder;
|
|
|
|
}
|
|
|
|
}
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
.ajax-users-dropdown {
|
2015-10-24 18:46:33 +05:30
|
|
|
min-width: 250px !important;
|
2015-12-23 02:04:40 +05:30
|
|
|
}
|