/** override select2.css **/ @select2-border-radius: 3px; @select2-image-path: "../javascripts/lib/select2"; .select2-container { .avatar-wrap { margin-top:0; } background-color:#fff; border:1px solid rgba(0,0,0,0.15); .border-radius(@select2-border-radius); .box-shadow(0 1px 0 rgba(0,0,0,0.05)); .transition(all 0.3s ease); &:hover { background-color:#e6e6e6; .transition(all 0.1s linear); } .select2-choice { padding:1px 0 1px 12px; border:none; .border-radius(@select2-border-radius); background-color:transparent; background-image:none; filter:none; > .select2-chosen { white-space: nowrap; } .select2-arrow { width:auto; padding:4px 9px; .border-radius(0 @select2-border-radius @select2-border-radius 0); border-left:none; background:transparent; background-image:none; filter:none; b { display: inline-block; width: 0; height: 0; vertical-align: top; border-top: 4px solid #4f4f4f; border-right: 4px solid transparent; border-left: 4px solid transparent; content: ""; margin-top: 8px; margin-left: 0; } } } &.select2-drop-above { .select2-choice { .border-radius(0 0 @select2-border-radius @select2-border-radius); } } &.select2-container-disabled { color:#333 !important; border:1px solid rgba(0,0,0,0.22); &:hover { background-color:#e6e6e6; } .box-shadow(none); .opacity(35); .select2-choice { background-color:#e6e6e6; border:none; .select2-arrow { background-color:#e6e6e6; b { border-top-color:#aaa; } } } } &.select2-dropdown-open { .select2-choice { .border-radius(@select2-border-radius @select2-border-radius 0 0); } } } .select2-results { max-height: 400px; padding:4px; margin:4px 0 0 0; li { margin-bottom:1px; } .avatar-wrap { margin-top:0; } .select2-highlighted { background: @secondary; color: #fff; .loginid { color:#fff; } } .select2-result-label { padding:3px 7px 4px 8px; white-space: nowrap; } .select2-no-results, .select2-searching, .select2-selection-limit { padding:3px 7px 4px 8px; background:#fafafa; color:#aaa; } .select2-result-with-children { border-top:1px solid #eee; padding-top:4px; margin-top:4px; } } .select2-drop { border:1px solid rgba(0,0,0,0.15); border-top: none; .border-radius(0 0 @select2-border-radius @select2-border-radius); .box-shadow(0 1px 0 rgba(0,0,0,.05)); &.select2-drop-above { border-top:1px solid rgba(0,0,0,0.15); .border-radius(@select2-border-radius @select2-border-radius 0 0); .box-shadow(0 -2px 0 rgba(0,0,0,0.05)); &.select2-drop-active { border:1px solid rgba(0,0,0,0.15); border-top:0; border-bottom:0; } } &.select2-drop-active { border:1px solid rgba(0,0,0,0.15); border-top:0; } } .select2-drop-auto-width { border-top:1px solid rgba(0,0,0,0.15); } .select2-search { margin-top:4px; input { border: 1px solid rgba(0,0,0,0.15); background: #fff url('@{select2-image-path}/select2.png') no-repeat 100% -22px; &.select2-active { background: #fff url('@{select2-image-path}/select2-spinner.gif') no-repeat 100%; } } } .select2-container-active .select2-choices { border: 1px solid rgba(0,0,0,0.15); outline: none; .box-shadow(none); } .select2-dropdown-open { .select2-choice { border-bottom-color: transparent; border-bottom-left-radius: 0; border-bottom-right-radius: 0; background-color:inherit; background-image:none; filter:none; .box-shadow(none); } &.select2-drop-above { border-top:1px solid transparent; .border-radius(0 0 @select2-border-radius @select2-border-radius); .select2-choice, .select2-choices { border: none; background-color:transparent; background-image:none; filter:none; } } } .select2-container-multi { .select2-choices { background: none; filter: none; border: none; .select2-search-choice { border: none; background-image:none; filter:none; } } &.issue-labels { width:auto !important; min-width:220px; .select2-choices { .select2-search-choice { background:transparent; filter:none; border:none; .box-shadow(none); } .select2-search-choice-close { top:6px; } } } &.select2-container-active { .select2-choices { border: 1px solid rgba(0,0,0,0.15); border-bottom:0; background-image:none; outline:none; .box-shadow(none); } } }