UNPKG

multiselect-qa

Version:

Select с мультивыбором

198 lines (148 loc) 3.69 kB
@import "./_variables.less"; .Multiselect { &.true { > .formElement { > .input { .box-shadow(inset 0 0 15px rgba(0, 0, 0, .175)); } } } > .label { font-size: @fontSizeUpLabel; } > .formElement { position: relative; width: 137px; //+15 padding, +2 border > .input { .simpleFormElement; width: 120px; height: 17px; overflow: hidden; font-size: @fontSizeOption; padding: 2px 10px 2px 5px; } &:hover { cursor: pointer; } > ._arrowChange { position: absolute; right: 8px; top: 11px; } > ._arrowCross{ position: absolute; top: 3px; right: 3px; width: 15px; height: 15px; border: 1px solid #111; .border-radius(15px); &:hover { border-color: @buttonColor_hover; span { background: @buttonColor_hover; } } span { display: block; position: absolute; top: 7px; height: 1px; width: 100%; background: #111; .border-radius(9px); transform: rotate(0deg); } span:nth-child(1) { transform: rotate(-45deg); } span:nth-child(2) { transform: rotate(45deg); } } > .options { .simpleFormElement; position: absolute; z-index: 2; margin-top: 2px; .box-shadow(0 6px 12px rgba(0,0,0,.175)); height: 0; opacity: 0; transition: .25s linear; overflow: hidden; // это для того, чтобы не мешал соседним элементам в собранном виде &.true { height: auto; opacity: 1; } > .up-margin { padding-top: 8px; } > ._button { .simplebutton; margin: 10px 10px 10px 8px; } > .SimpleOption { font-size: @fontSizeOption; padding: 2px 5px; min-width: 125px; &.true { background-color: @bgColorElement_hover; } } > .CheckboxOption { min-width: 125px; padding: 2px 5px; > .checkbox { float: left; margin: 0 4px; input { width: 14px; height: 14px; } &:hover { cursor: pointer; } } > .label { float: left; font-size: @fontSizeOption; &:hover { cursor: pointer; text-decoration: underline; } } } > .ColorOption { position: relative; float: left; width: 20px; height: 20px; border: 1px solid @lineColorElement; margin: 0 0 8px 8px; .border-radius(3px); transition: .25s linear; &:hover { .border-radius(20px); > .tooltip { display: block; } } > .tick { width: 20px; height: 20px; } > .tooltip { display: none; position: absolute; z-index: 3; top: 28px; left: -10px; background-color: #4D5B61; padding: 3px 7px; .border-radius(3px); > ._arrow { position: absolute; top: -5px; left: 15px; width: 10px; height: 5px; } > .text { font-size: 12px; color: #ffffff; } } } } } }