提交 e91dbbf0 编写于 作者: J Josh Schmidt

clean-up, remove choices

上级 978abc8a
......@@ -14,8 +14,7 @@
"mapbox": "https://api.mapbox.com/mapbox-gl-js/v1.8.0/mapbox-gl.js",
"google-maps": "https://maps.googleapis.com/maps/api/js?key=GOOGLE_MAPS_KEY",
"litepicker": "litepicker/dist/litepicker.js",
"choices": "choices.js/public/assets/scripts/choices.js",
"tom-select": "tom-select/dist/js/tom-select.complete.min.js"
"tom-select": "tom-select/dist/js/tom-select.complete.min.js"
},
"css": {
"mapbox": "https://api.mapbox.com/mapbox-gl-js/v1.8.0/mapbox-gl.css"
......
......@@ -57,7 +57,6 @@
window.TomSelect && ({% if jekyll.environment == 'development' %}window.tabler_select["select-{{ id }}"] = {% endif %}new TomSelect(el = document.getElementById('select-{{ id }}'), {
copyClassesToDropdown: false,
dropdownClass: 'dropdown-menu',
//dropdownContentClass: 'ts-dropdown-content',
optionClass:'dropdown-item',
{% unless include.show-search %}
......
......@@ -2,7 +2,7 @@
title: Form elements
page-header: Form elements
menu: forms
libs: nouislider, autosize, tabler-flags, tabler-payments, litepicker, choices, tom-select
libs: nouislider, autosize, tabler-flags, tabler-payments, litepicker, tom-select
---
<div class="row row-cards">
......
@import "~choices.js/public/assets/styles/choices";
.choices {
margin: 0;
font-size: inherit;
position: relative;
cursor: pointer;
&:focus {
outline: none;
}
&:after {
content: none !important;
}
&.is-focused .form-select {
border-color: $form-select-focus-border-color;
box-shadow: $form-select-focus-box-shadow;
}
.dropdown-menu {
width: 100%;
height: auto;
.choices__list {
max-height: $dropdown-scrollable-height;
overflow-x: hidden;
}
.dropdown-item {
padding-left: $input-padding-x;
padding-right: $input-padding-x;
&.active {
background: transparent;
color: inherit;
}
&.is-highlighted {
color: $dropdown-link-active-color;
background-color: $dropdown-link-active-bg;
}
}
}
}
.choices__placeholder {
color: $input-placeholder-color;
opacity: 1;
}
.choices__list--single {
padding: 0;
}
.choices__list--dropdown {
.choices__item--selectable:after {
content: none;
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册