first commit

This commit is contained in:
2019-05-25 23:11:05 -04:00
commit 16f48376bc
6139 changed files with 990356 additions and 0 deletions
@@ -0,0 +1,391 @@
/* ------------------------------------------------------------------------------
*
* # Bootstrap select
*
* Styles for bootstrap_select.js - custom select boxes plugin
*
* Version: 1.2
* Latest update: Aug 20, 2016
*
* ---------------------------------------------------------------------------- */
// Core
// ------------------------------
// Base
.bootstrap-select {
width: 100%;
// Button
> .btn {
width: 100%;
padding-right: ((@padding-base-horizontal * 2) + @content-padding-small);
// Default light button
&.btn-default {
&,
&.disabled {
background-color: @input-bg;
border-color: @input-border;
}
// When dropdown is opened
&:active,
.btn-group.open & {
border-color: @input-border;
}
}
}
// Form control
&.form-control {
padding: 0;
border: 0;
// Make it full width
&:not([class*="col-"]) {
width: 100%;
}
}
// Menu title
.popover-title {
font-size: @font-size-mini;
line-height: @line-height-mini;
margin: @list-spacing 0;
padding: @padding-base-vertical @padding-base-horizontal;
}
// Custom border color
&[class*=border-] {
.btn,
.dropdown-menu {
border-color: inherit;
}
}
//
// Width variations
//
&:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) {
width: 220px;
}
&.fit-width {
width: auto !important;
}
//
// Button group
//
&.btn-group {
// Menu container
&.bs-container {
position: absolute;
}
// Base
&:not(.input-group-btn),
&[class*="col-"] {
float: none;
display: inline-block;
margin-left: 0;
}
// Dropdowns
&.dropdown-menu-right,
&[class*="col-"].dropdown-menu-right {
float: right;
}
// Disabled
> .disabled {
cursor: @cursor-disabled;
&:focus {
outline: 0;
}
}
// Button
.btn {
// Filter
.filter-option {
display: inline-block;
overflow: hidden;
width: 100%;
text-align: left;
text-overflow: ellipsis;
> i {
margin-right: @element-horizontal-spacing;
float: left;
margin-top: ((@line-height-computed - @icon-font-size) / 2);
top: 0;
}
}
// Caret
.caret {
position: absolute;
top: 50%;
width: @icon-font-size;
text-align: right;
right: @padding-base-horizontal;
margin-top: -(@icon-font-size / 2);
}
}
&[class*="col-"] .btn {
width: 100%;
}
// Button sizes caret
.btn-lg > .caret {
right: @padding-large-horizontal;
}
.btn-sm > .caret {
right: @padding-small-horizontal;
}
.btn-xs > .caret {
right: @padding-xs-horizontal;
}
// Dropdown menu
.dropdown-menu {
min-width: 100%;
// Item
> li {
// Links
> a {
// Add icon soacing
[class*=icon-]:extend(.bootstrap-select.btn-group .btn .filter-option > i) {}
// Check indicator
.check-mark {
position: absolute;
top: 50%;
margin-top: -(@icon-font-size / 2);
right: @padding-base-horizontal;
margin-right: 0;
color: @dropdown-link-active-color;
.opacity(0);
}
// Main text
.text {
display: inline-block;
}
// Labels and badges
> .label,
> .badge {
float: none;
}
// Custom option class
&.special-class {
&,
&:hover {
font-weight: 700;
color: #fff;
background: @brand-danger;
.transition(none);
}
}
}
// Disabled links
&.disabled a {
cursor: @cursor-disabled;
}
// Small inline note
small {
padding-left: @content-padding-small;
}
}
// Active item text
> .selected > a {
background-color: @dropdown-link-active-bg;
color: @dropdown-link-active-color;
small {
color: @dropdown-link-active-color;
}
}
// Inner content
&.inner {
position: static;
border: 0;
padding: 0;
margin: 0;
border-radius: 0;
.box-shadow(none);
}
// Bottom info
.notify {
position: absolute;
bottom: 0;
width: 100%;
text-align: center;
padding: @padding-base-vertical @padding-base-horizontal;
background-color: @dropdown-annotation-bg;
border-top: 1px solid @dropdown-border;
pointer-events: none;
}
}
// Optgroups side spacing
.dropdown-header ~ li > a {
padding-left: (@padding-base-horizontal * 2);
}
// If no results
.no-results {
padding: @padding-base-vertical @padding-base-horizontal;
background: @dropdown-annotation-bg;
margin-bottom: -(@list-spacing);
border-top: 1px solid @dropdown-border;
}
// Auto width
&.fit-width {
.btn {
.filter-option,
.caret {
position: static;
}
}
}
// Show tick
&.show-tick .dropdown-menu > li {
a .text {
margin-right: ((@padding-base-horizontal * 2) + @icon-font-size);
}
&.selected a .check-mark {
.opacity(1);
}
}
}
}
// Inside input group
.input-group {
// Remove border radius
.bootstrap-select > .btn {
border-radius: 0;
}
// Add side border radius to the first child
> .bs-select-hidden:first-child + .bootstrap-select > .btn,
> .bootstrap-select:first-child > .btn {
.border-left-radius(@border-radius-base);
}
// Add side border radius to the simulated last child
> .bootstrap-select:last-child > .btn {
.border-right-radius(@border-radius-base);
}
}
// Error
// ------------------------------
.error .bootstrap-select .btn {
border: 1px solid @brand-danger;
}
.control-group.error .bootstrap-select .dropdown-toggle {
border-color: @brand-danger;
}
// Search and action boxes
// ------------------------------
// Set paddings
.bs-searchbox,
.bs-actionsbox {
padding: (@padding-base-horizontal - @list-spacing) @padding-base-horizontal;
margin-bottom: (@padding-base-horizontal - @list-spacing);
}
// Search box
.bs-searchbox {
position: relative;
// Add more left space for icon
> .form-control {
padding-left: @input-height-base;
}
// Search icon
&:after {
content: '\e98e';
font-family: 'icomoon';
position: absolute;
top: 50%;
left: (@padding-base-horizontal * 2);
color: inherit;
display: block;
font-size: @font-size-small;
margin-top: -(@font-size-small / 2);
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
.opacity(0.6);
}
}
// Actions box
.bs-actionsbox {
float: left;
width: 100%;
position: relative;
.btn-group button {
width: 50%;
}
.bs-searchbox + & {
padding: 0 @padding-base-horizontal @padding-base-vertical;
}
}
// On mobile
.mobile-device {
position: absolute;
top: 0;
left: 0;
display: block !important;
width: 100%;
height: 100% !important;
opacity: 0;
}
select.bs-select-hidden,
select.selectpicker {
display: none !important;
}
.bootstrap-select > select {
position: absolute!important;
bottom: 0;
left: 50%;
display: block!important;
width: .5px!important;
height: 100%!important;
padding: 0!important;
opacity: 0!important;
border: none;
}
@@ -0,0 +1,270 @@
/* ------------------------------------------------------------------------------
*
* # Bootstrap multiselect
*
* Styles for multiselect.js - custom multiple select plugin
*
* Version: 1.0
* Latest update: May 25, 2015
*
* ---------------------------------------------------------------------------- */
// Core
// ------------------------------
.multiselect {
width: 100%;
min-width: 100%;
text-align: left;
padding-left: @padding-base-horizontal;
padding-right: ((@padding-base-horizontal * 2) + 5);
text-overflow: ellipsis;
overflow: hidden;
// Default button overrides
&.btn-default {
&,
&.disabled {
background-color: @input-bg;
border-color: @input-border;
}
&:active,
.btn-group.open & {
border-color: @input-border;
}
}
// Caret
.caret {
position: absolute;
top: 50%;
right: @padding-base-horizontal;
margin-top: -(@icon-font-size / 2);
width: @icon-font-size;
text-align: right;
}
//
// Make it as an input instead of button
//
// Large
&.btn-lg {
padding-left: @padding-large-horizontal;
padding-right: (@padding-large-horizontal * 2);
.caret {
right: @padding-large-horizontal;
}
}
// Small
&.btn-sm {
padding-left: @padding-small-horizontal;
padding-right: (@padding-small-horizontal * 2);
.caret {
right: @padding-small-horizontal;
}
}
// Mini
&.btn-xs {
padding-left: @padding-xs-horizontal;
padding-right: (@padding-xs-horizontal * 2);
.caret {
right: @padding-xs-horizontal;
}
}
}
// Container
// ------------------------------
.multiselect-container {
min-width: 180px;
max-height: 250px;
overflow-y: auto;
> li {
padding: 0;
// Links
> a {
padding: 0;
// Label
> label {
margin: 0;
height: 100%;
cursor: pointer;
padding: (@padding-base-vertical + 1) @padding-base-horizontal;
padding-left: (@padding-base-horizontal + @checkbox-size + 10);
// Inside navbar form
.navbar-form & {
display: block;
}
}
// Checkboxes and radios
.checker,
.choice {
top: 50%;
margin-top: -(@checkbox-size / 2);
left: @padding-base-horizontal;
}
// Select all link
&.multiselect-all label {
font-weight: 500;
}
}
// Disabled item
&.disabled > a {
background-color: transparent;
> label {
cursor: @cursor-disabled;
}
}
// Optgroup title
&.multiselect-group {
> label,
&.active > label {
margin: 0;
padding: (@padding-base-vertical + 1) @content-padding-base;
font-size: @font-size-mini;
line-height: @line-height-mini;
color: @text-muted;
text-transform: uppercase;
margin-top: (@list-spacing * 2);
background-color: transparent;
cursor: default;
}
// Disabled color
&.disabled {
color: @text-muted;
}
// First item
&:first-child {
> label,
&.active > label {
margin-top: @list-spacing;
}
}
// Clickable group
&.multiselect-group-clickable > label {
cursor: pointer;
}
// Disabled group
&.disabled {
&,
&:hover,
&:focus {
label {
background-color: transparent;
cursor: @cursor-disabled;
}
}
}
}
}
}
// Width sizing
// ------------------------------
// Full width
.multi-select-full > .btn-group {
width: 100%;
.multiselect-container {
width: inherit;
}
}
// Fixed width
.multi-select-fixed > .btn-group > .btn {
width: 250px;
}
// Auto width
.multi-select-auto > .btn-group > .btn {
width: auto;
}
// Misc
// ------------------------------
// Border color
div[class*=border-] > .btn-group {
border-color: inherit;
> .multiselect {
border-color: inherit;
}
}
// Filter
li.multiselect-filter {
position: relative;
padding: (@padding-base-horizontal - @list-spacing) @padding-base-horizontal;
margin-bottom: (@padding-base-horizontal - @list-spacing);
// Center icon vertically
i {
font-size: @font-size-small;
position: absolute;
left: (@padding-base-horizontal * 2);
top: 50%;
margin-top: -(@font-size-small / 2);
.opacity(0.5);
}
// Input horizontal padding
.form-control {
padding-left: (@padding-base-horizontal * 3);
}
}
// Remove left rounded corners
.input-group-btn,
.input-group-addon {
& + .multi-select-full,
& + .multi-select-auto,
& + .multi-select-fixed,
& + .btn-group {
.multiselect:first-child {
.border-left-radius(0);
}
}
}
// Button group styles
.btn-group-multiselect {
width: 100%;
.btn {
float: none;
}
.multiselect {
min-width: 0;
}
}
.btn-group > .btn-group:nth-child(2) > .multiselect.btn {
.border-left-radius(@border-radius-small);
}
@@ -0,0 +1,798 @@
/* ------------------------------------------------------------------------------
*
* # Select2 selects
*
* Styles for select2.js - custom select plugin
*
* Version: 1.3
* Latest update: Mar 10, 2016
*
* ---------------------------------------------------------------------------- */
// Select base
// ------------------------------
.select2-container {
outline: 0;
position: relative;
display: inline-block;
vertical-align: middle;
text-align: left;
}
// Single select
// ------------------------------
.select2-selection--single {
cursor: pointer;
outline: 0;
display: block;
height: @input-height-base;
padding: @padding-base-vertical 0;
line-height: @line-height-base;
position: relative;
border: 1px solid transparent;
white-space: nowrap;
border-radius: @input-border-radius;
.user-select(none);
// Darken on hover
&:hover,
&:focus,
.select2-container--open & {
.box-shadow(0 0 0 100px fade(#000, 1%) inset);
}
// Allow custom background color
&:not([class*=bg-]) {
background-color: @input-bg;
color: @text-color;
// Allow custom border color
&:not([class*=border-]) {
border-color: @input-border;
}
}
// Apply darker hover color
&[class*=bg-] {
&:hover,
&:focus,
.select2-container--open & {
.box-shadow(0 0 0 100px fade(#000, 2.5%) inset);
}
// Placeholder
.select2-selection__placeholder {
color: #fff;
// In disabled mode
.select2-container--disabled & {
color: fade(#fff, 75%);
}
}
}
// Result text
.select2-selection__rendered {
display: block;
padding-left: @padding-base-horizontal;
padding-right: ((@padding-base-horizontal * 2) + @padding-base-vertical);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
// Icons
> i {
margin-right: @content-padding-small;
}
}
// Clear selection button
.select2-selection__clear {
position: relative;
cursor: pointer;
float: right;
font-size: 0;
line-height: 1;
margin-top: ((@line-height-computed - @icon-font-size) / 2);
margin-left: 5px;
.opacity(0.75);
// Add hover state effect
&:hover {
.opacity(1);
}
// Cross icon
&:after {
content: '\ed6b';
font-family: 'icomoon';
display: inline-block;
font-size: @icon-font-size;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
}
// Placeholder
.select2-selection__placeholder {
color: @text-muted;
}
// Dropdown arrow
.select2-selection__arrow {
// Arrow icon
&:after {
content: '\e9c5';
font-family: 'Icomoon';
display: inline-block;
position: absolute;
top: 50%;
right: @padding-base-horizontal;
margin-top: -(@icon-font-size / 2);
font-size: @icon-font-size;
line-height: 1;
color: inherit;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
// Change icon when menu is opened
.select2-container--open &:after {
content: '\e9c6';
}
// Hide default arrow
b {
display: none;
}
}
// Disabled menu
.select2-container--disabled & {
cursor: @cursor-disabled;
.box-shadow(none);
// Disabled state for container
&:not([class*=bg-]) {
background-color: @input-bg-disabled;
color: @gray-light;
}
// Disabled state for custom colored container
&[class*=bg-] {
.box-shadow(0 0 0 100px fade(#fff, 25%) inset);
}
// Hide clear button
.select2-selection__clear {
display: none;
}
}
}
// Multiple select
// ------------------------------
.select2-selection--multiple {
display: block;
border: 1px solid transparent;
border-radius: @input-border-radius;
cursor: text;
outline: 0;
.user-select(none);
// Allow custom background color
&:not([class*=bg-]) {
background-color: @input-bg;
// Allow custom border color
&:not([class*=border-]) {
border-color: @input-border;
}
}
// Result text
.select2-selection__rendered {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
list-style: none;
margin: 0;
padding: 0 @tags-spacing @tags-spacing @tags-spacing;
width: 100%;
}
// Placeholder
.select2-selection__placeholder {
color: @text-muted;
}
// Disabled multiselect
.select2-container--disabled & {
// Disabled state for container
&:not([class*=bg-]) {
background-color: @input-bg-disabled;
color: @gray-light;
}
// Disabled state for custom colored container
&[class*=bg-] {
.box-shadow(0 0 0 100px fade(#fff, 25%) inset);
.select2-selection__choice {
.opacity(0.9);
}
}
// Apply disabled cursor for all elements
&,
.select2-selection__choice,
.select2-search__field {
cursor: @cursor-disabled;
}
}
// Choices
.select2-selection__choice {
background-color: @color-slate-700;
color: #fff;
border-radius: @border-radius-base;
cursor: default;
float: left;
margin-right: @tags-spacing;
margin-top: @tags-spacing;
padding: @padding-base-vertical @padding-base-horizontal;
// Icons
> i {
margin-right: @content-padding-small;
}
// Remover
.select2-selection__choice__remove {
cursor: pointer;
float: right;
font-size: @font-size-large;
margin-top: ((@line-height-computed - @font-size-large) / 2);
line-height: 1;
margin-left: @element-horizontal-spacing;
.opacity(0.75);
// Highlight on hover
&:hover {
.opacity(1);
}
}
// Disable choice
.select2-container--disabled & {
.opacity(0.6);
// Hide remover
.select2-selection__choice__remove {
display: none;
}
}
}
// Search
.select2-search--inline {
float: left;
// Search field
.select2-search__field {
font-size: 100%;
margin-top: @tags-spacing;
padding: @padding-base-vertical 0;
background-color: transparent;
border: 0;
outline: 0;
margin-left: @padding-base-vertical;
-webkit-appearance: textfield;
// Cancel button
&::-webkit-search-cancel-button {
-webkit-appearance: none;
}
}
}
}
// Select results
// ------------------------------
// Dropdown
.select2-dropdown {
background-color: @dropdown-bg;
color: @dropdown-link-color;
border: 1px solid @dropdown-border;
border-radius: @border-radius-base;
display: block;
position: absolute;
left: -100000px;
width: 100%;
z-index: 9999;
.box-shadow(0 1px 3px fade(#000, 10%));
}
// Results container
.select2-results {
display: block;
}
// Options list
.select2-results__options {
list-style: none;
margin: 0;
padding: 0;
// Add scrollbar to first level list
.select2-results > & {
padding-bottom: @list-spacing;
max-height: 250px;
overflow-y: auto;
// Add top spacing if search is hidden
.select2-search--hide + & {
padding-top: @list-spacing;
}
}
.select2-results:first-child > & {
padding-top: @list-spacing;
}
}
// Option
.select2-results__option {
padding: @padding-base-vertical @padding-base-horizontal;
cursor: pointer;
.user-select(none);
// Add 1px gap between options
& + & {
margin-top: 1px;
}
// Icons
i {
margin-right: @content-padding-small;
// Do not display empty icon
&.icon-undefined {
display: none;
}
}
// Option group
&[role=group] {
padding: 0;
}
// Highlighted option (hover state)
&.select2-results__option--highlighted {
background-color: @dropdown-link-hover-bg;
}
// Disabled option
&[aria-disabled=true] {
color: @text-muted;
cursor: @cursor-disabled;
// In colored menu
.select2-dropdown[class*=bg-] & {
color: fade(#fff, 60%);
}
}
// Selected option
&[aria-selected=true] {
background-color: @dropdown-link-active-bg;
color: #fff;
}
// Add double horizontal spacing for nested options
.select2-results__options--nested > & {
padding-left: (@padding-base-horizontal * 2);
padding-right: (@padding-base-horizontal * 2);
}
}
// Option group title
.select2-results__group {
display: block;
padding: @padding-base-vertical @padding-base-horizontal;
font-size: @font-size-mini;
line-height: @line-height-mini;
text-transform: uppercase;
cursor: default;
margin-top: @list-spacing;
margin-bottom: @list-spacing;
// Remove top spacing from the first group title
.select2-results__option:first-child > & {
margin-top: 0;
}
}
//
// Messages
//
// Results
.select2-results__message {
color: @text-muted;
cursor: default;
// Mute if in colored dropdown
.select2-dropdown[class*=bg-] & {
color: fade(#fff, 75%);
}
}
// Loading
.select2-results__option.loading-results {
padding-top: 0;
// Add extra top spacing
+ .select2-results__option {
margin-top: @list-spacing;
}
}
// Load more for infinite scroll
.select2-results__option--load-more {
text-align: center;
margin-top: @list-spacing;
cursor: default;
}
//
// Opened dropdown
//
.select2-container--open {
// Dropdown
.select2-dropdown {
left: 0;
}
// If opened above
.select2-dropdown--above {
border-bottom: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
// Add border for colored menu
&[class*=bg-] {
border-bottom: 1px solid fade(#fff, 20%);
}
}
&.select2-container--above {
.select2-selection--single,
.select2-selection--multiple {
.border-top-radius(0);
}
}
// If opened below
.select2-dropdown--below {
border-top: none;
border-top-left-radius: 0;
border-top-right-radius: 0;
// Add border for colored menu
&[class*=bg-] {
border-top: 1px solid fade(#fff, 20%);
}
}
&.select2-container--below {
.select2-selection--single,
.select2-selection--multiple {
.border-bottom-radius(0);
}
}
}
//
// Search inside dropdown
//
.select2-search--dropdown {
display: block;
position: relative;
padding: @padding-base-horizontal;
// Add search icon
&:after {
content: '\e98e';
font-family: 'icomoon';
position: absolute;
top: 50%;
left: (@padding-base-horizontal * 2);
color: inherit;
display: block;
font-size: @font-size-small;
margin-top: -(@font-size-small / 2);
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
.opacity(0.6);
}
// Remove top spacing from the results message
+ .select2-results .select2-results__message:first-child {
padding-top: 0;
}
// Search field
.select2-search__field {
height: @input-height-base;
padding: @padding-base-vertical @padding-base-horizontal;
padding-left: ((@padding-base-horizontal * 2) + @font-size-small);
border-radius: @input-border-radius;
border: 1px solid @input-border;
outline: 0;
width: 100%;
// Cancel button
&::-webkit-search-cancel-button {
-webkit-appearance: none;
}
}
// Hidden search field
&.select2-search--hide {
display: none;
}
}
// Optional sizing
// ------------------------------
// Large
.select-lg {
// Single
&.select2-selection--single {
height: @input-height-large;
padding: @padding-large-vertical 0;
font-size: @font-size-large;
.select2-selection__rendered {
padding-left: @padding-large-horizontal;
padding-right: ((@padding-large-horizontal * 2) + 4);
}
.select2-selection__arrow:after {
right: @padding-large-horizontal;
}
}
// Multiple
&.select2-selection--multiple {
.select2-selection__choice {
padding: @padding-large-vertical @padding-large-horizontal;
font-size: @font-size-large;
}
.select2-search--inline .select2-search__field {
padding: @padding-large-vertical 0;
font-size: @font-size-large;
}
}
}
// Small
.select-sm {
// Single
&.select2-selection--single {
height: @input-height-small;
padding: @padding-small-vertical 0;
font-size: @font-size-small;
line-height: @line-height-small;
.select2-selection__rendered {
padding-left: @padding-small-horizontal;
padding-right: ((@padding-small-horizontal * 2) + 4);
}
.select2-selection__arrow:after {
right: @padding-small-horizontal;
}
}
// Multiple
&.select2-selection--multiple {
.select2-selection__choice {
padding: @padding-small-vertical @padding-small-horizontal;
font-size: @font-size-small;
line-height: @line-height-small;
}
.select2-search--inline .select2-search__field {
padding: @padding-small-vertical 0;
}
}
}
// Mini
.select-xs {
// Single
&.select2-selection--single {
height: @input-height-mini;
padding: @padding-xs-vertical 0;
font-size: @font-size-small;
line-height: @line-height-small;
.select2-selection__rendered {
padding-left: @padding-xs-horizontal;
padding-right: ((@padding-xs-horizontal * 2) + 4);
}
.select2-selection__arrow:after {
right: @padding-xs-horizontal;
}
}
// Multiple
&.select2-selection--multiple {
.select2-selection__choice {
padding: @padding-xs-vertical @padding-xs-horizontal;
font-size: @font-size-small;
line-height: @line-height-small;
}
.select2-search--inline .select2-search__field {
padding: @padding-xs-vertical 0;
font-size: @font-size-small;
line-height: @line-height-small;
}
}
}
// Custom colors
// ------------------------------
// Multiple selection choices
.select2-selection--multiple[class*=bg-] {
.select2-selection__choice {
background-color: fade(#000, 25%);
}
}
// Dropdown menu
.select2-dropdown[class*=bg-] {
// Search field
.select2-search--dropdown .select2-search__field {
background-color: fade(#000, 20%);
border-color: transparent;
color: #fff;
}
// Selected item
.select2-results__option[aria-selected=true] {
background-color: fade(#000, 20%);
}
// Hovered item
.select2-results__option--highlighted {
background-color: fade(#000, 10%);
}
}
// Misc
// ------------------------------
// Mask
.select2-close-mask {
border: 0;
margin: 0;
padding: 0;
display: block;
position: fixed;
left: 0;
top: 0;
min-height: 100%;
min-width: 100%;
height: auto;
width: auto;
z-index: 99;
background-color: #fff;
.opacity(0);
}
// Accessible
.select2-hidden-accessible {
border: 0 !important;
clip: rect(0 0 0 0) !important;
height: 1px !important;
margin: -1px !important;
overflow: hidden !important;
padding: 0 !important;
position: fixed !important;
width: 1px !important;
}
// Loading remote data example demo
// ------------------------------
// Results
.select2-result-repository {
padding-top: @padding-base-vertical;
padding-bottom: @padding-base-vertical;
}
// Avatar
.select2-result-repository__avatar {
float: left;
width: 60px;
margin-right: @content-padding-base;
img {
width: 100%;
height: auto;
border-radius: 100px;
}
}
// Meta
.select2-result-repository__meta {
margin-left: 70px;
}
// Title
.select2-result-repository__title {
font-weight: 500;
word-wrap: break-word;
margin-bottom: 2px;
}
// Data
.select2-result-repository__forks,
.select2-result-repository__stargazers,
.select2-result-repository__watchers {
display: inline-block;
font-size: @font-size-small;
}
// Description
.select2-result-repository__description {
font-size: @font-size-small;
}
// Add spacing for data
.select2-result-repository__forks,
.select2-result-repository__stargazers {
margin-right: @content-padding-base;
}
@@ -0,0 +1,398 @@
/* ------------------------------------------------------------------------------
*
* # SelectBoxIt
*
* Styles for selectbox.js - custom select boxes plugin
*
* Version: 1.2
* Latest update: Mar 10, 2016
*
* ---------------------------------------------------------------------------- */
/* # Core
-------------------------------------------------- */
// SelectBoxIt container
.selectboxit-container {
position: relative;
display: inline-block;
vertical-align: middle;
width: 100%;
border-radius: @border-radius-base;
// All children elements
* {
-webkit-touch-callout: none;
outline: 0;
white-space: nowrap;
.user-select(none);
}
// Button
.selectboxit {
width: 100%;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
position: relative;
// Remove outline
&:focus {
outline: 0;
}
}
span,
.selectboxit-options a {
display: block;
}
// Options list
.selectboxit-options {
width: 100%;
max-height: 250px;
padding: @list-spacing 0;
overflow-x: hidden;
overflow-y: auto;
z-index: 999;
text-align: left;
}
}
// Disabled mouse interaction
.selectboxit.selectboxit-disabled,
.selectboxit-options .selectboxit-disabled {
&,
&:hover,
&:focus {
cursor: @cursor-disabled;
.box-shadow(none);
.opacity(0.65);
}
}
// Hide original select
.selectboxit-rendering {
display: inline-block !important;
visibility: visible !important;
position: absolute !important;
top: -9999px !important;
left: -9999px !important;
}
// Dropdown menu
.selectboxit-list {
background-color: @dropdown-bg;
border: 1px solid @dropdown-border;
margin: 2px 0 0;
width: 100%;
min-width: 200px;
list-style: none;
position: absolute;
cursor: pointer;
display: none;
border-radius: @border-radius-base;
.box-shadow(0 1px 3px fade(#000, 10%));
// Link
.selectboxit-option-anchor {
color: @dropdown-link-color;
}
// Focused link
> .selectboxit-focus > .selectboxit-option-anchor {
display: block;
background-color: @dropdown-link-hover-bg;
color: @dropdown-link-hover-color;
}
// Selected link
> .selectboxit-selected > .selectboxit-option-anchor {
background-color: @dropdown-link-active-bg;
color: @dropdown-link-active-color;
}
// Disabled link
> .selectboxit-disabled > .selectboxit-option-anchor {
color: @dropdown-link-disabled-color;
cursor: @cursor-disabled;
}
// Custom border color
.selectbox-container[class*=border-] > & {
border-color: inherit;
}
// Solid color
.selectbox-container[class*=bg-] > & {
background-color: inherit;
border-color: inherit;
.selectboxit-option-anchor {
color: #fff;
}
> .selectboxit-focus .selectboxit-option-anchor {
background-color: fade(#000, 10%);
}
}
}
// Buttons
// ------------------------------
// Button
.selectboxit-btn {
background-color: @input-bg;
border: 1px solid @input-border;
color: @input-color;
border-radius: @input-border-radius;
height: @input-height-base;
padding: @padding-base-vertical @padding-base-horizontal;
padding-right: ((@padding-base-horizontal * 2) + 5);
// When hovered
&:hover {
.box-shadow(0 0 0 100px fade(#000, 1%) inset);
}
// When opened
&.selectboxit-open,
&:focus {
.box-shadow(0 0 0 100px fade(#000, 3%) inset);
}
// Inherit colors if custom bg color
.selectboxit-container[class*=bg-] & {
background-color: inherit;
border-color: inherit;
color: inherit;
}
// Inherit border color if custom bg color
.selectboxit-container[class*=border-] & {
border-color: inherit;
}
// Darken on hover and focus
&[class*=bg-],
.selectboxit-container[class*=bg-] & {
&:hover {
.box-shadow(0 0 0 100px fade(#000, 5%) inset);
}
&.selectboxit-open,
&:focus {
.box-shadow(0 0 0 100px fade(#000, 10%) inset);
}
}
}
// Inside input group
.input-group {
.selectboxit-container {
// Remove border radius
> .selectboxit-btn {
border-radius: 0;
}
// Add side border radius to the first child
&:last-child > .selectboxit-btn {
.border-right-radius(@input-border-radius);
}
}
// Add side border radius to the simulated last child
> select:first-child + .selectboxit-container > .selectboxit-btn {
.border-left-radius(@input-border-radius);
}
}
// Button text
.selectboxit-text {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
float: left;
}
// Arrow
.selectboxit-default-arrow {
position: relative;
font-style: normal;
&:after {
content: '\e9c5';
display: block;
font-family: 'icomoon';
font-size: @icon-font-size;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.selectboxit-open &:after {
content: '\e9c6';
}
}
// Options
// ------------------------------
// Individual option
.selectboxit-option {
margin: 0;
list-style-type: none;
.selectboxit-option-anchor{
padding: @padding-base-vertical @padding-base-horizontal;
}
}
// Optgroup header
.selectboxit-optgroup-header {
margin: 0;
list-style-type: none;
padding: @padding-base-vertical @padding-base-horizontal;
font-weight: 700;
color: @text-color;
font-size: @font-size-mini;
line-height: @line-height-mini;
text-transform: uppercase;
&:hover {
cursor: default;
}
}
// Optgroup option
.selectboxit-optgroup-option .selectboxit-option-anchor {
padding-left: (@padding-base-horizontal * 2);
padding-right: (@padding-base-horizontal * 2);
}
// Dropdown arrow container
.selectboxit-arrow-container {
position: absolute;
top: 50%;
width: @icon-font-size;
right: @padding-base-horizontal;
margin-top: -(@icon-font-size / 2);
text-align: right;
line-height: 1;
// Remove top edge from arrow
.selectboxit-arrow {
&[class*=icon-] {
top: 0;
}
}
// Caret
.caret {
&:after {
text-align: right;
}
}
}
// Dropdown individual option icon positioning
.selectboxit-option-icon-container {
float: left;
// Icon
> [class*=icon-] {
margin-right: @content-padding-small;
width: auto;
}
// Image
.selectboxit-option-icon-url {
height: @line-height-computed;
width: @line-height-computed;
background-size: @line-height-computed @line-height-computed;
border-radius: 100px;
background-repeat: no-repeat;
background-position: center;
display: block;
}
}
// Options border radius
.selectboxit-option-first {
.border-top-radius(@border-radius-base - 1);
}
.selectboxit-optgroup-header + .selectboxit-option-first {
.border-top-radius(0);
}
.selectboxit-option-last {
.border-bottom-radius(@border-radius-base - 1);
}
/* # Sizing
-------------------------------------------------- */
// Horizontal
// ------------------------------
// Fixed width
.selectbox-fixed {
& + .selectboxit-container,
& + .selectboxit-options {
width: 250px;
}
}
// Auto width
.selectbox-auto {
& + .selectboxit-container,
& + .selectboxit-options {
width: auto;
}
}
// Vertical
// ------------------------------
// Large
.selectbox-lg + .selectboxit-container .selectboxit {
padding: @padding-large-vertical @padding-large-horizontal;
padding-right: (@padding-large-horizontal * 2);
height: @input-height-large;
font-size: @font-size-large;
.selectboxit-arrow-container {
right: @padding-large-horizontal;
}
}
// Small
.selectbox-sm + .selectboxit-container .selectboxit {
padding: @padding-small-vertical @padding-small-horizontal;
padding-right: (@padding-small-horizontal * 2);
height: @input-height-small;
.selectboxit-arrow-container {
right: @padding-small-horizontal;
}
}
// Mini
.selectbox-xs + .selectboxit-container .selectboxit {
padding: @padding-xs-vertical @padding-xs-horizontal;
padding-right: ((@padding-xs-horizontal * 2) + 5);
height: @input-height-mini;
font-size: @font-size-small;
line-height: @line-height-small;
.selectboxit-arrow-container {
right: @padding-xs-horizontal;
}
}