/* # ----------------------------------------------------------------------------- # ~/assets/themes/j1/modules/msDropdown/css/msDropdown.css # Provides CSS core styles for MSDropdown # # Product/Info: # http://jekyll.one # https://www.marghoobsuleman.com/ # # Copyright (C) 2022 Juergen Adams # # msDropdown is licensed under MIT License. # See: https://github.com/marghoobsuleman/ms-Dropdown/blob/master/MIT-LICENSE.txt # J1 Template is licensed under MIT License. # See: https://github.com/jekyll-one/J1 Template/blob/master/LICENSE # ----------------------------------------------------------------------------- # NOTE: # https://github.com/marghoobsuleman/ms-Dropdown # https://www.marghoobsuleman.com/image-dropdown/help # https://www.marghoobsuleman.com/image-dropdown/advanced-help # ----------------------------------------------------------------------------- /*! * /** * * MSDropdown - msDropdown.js * * @author: Marghoob Suleman * * @website: https://www.marghoobsuleman.com/ * * @version: 4.0.2 * * @date: Sun Oct 24 2021 10:46:05 GMT+0200 (GMT+02:00) * * msDropdown is free web component: you can redistribute it and/or modify * * it under the terms of the either the MIT License or the Gnu General Public License (GPL) Version 2 * * / */ .ms-pr { position: relative } .ms-dd:focus-visible { box-shadow: 0 1px 5px #ddd; outline: none; outline-width: 0 } .ms-dd { background: #eee; display: inline-block; font-family: Sans-Serif; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; vertical-align: top; width: 260px } .ms-dd button:focus, .ms-dd input:focus, .ms-dd select:focus, .ms-dd textarea:focus { outline: none } .ms-dd .ms-value-input { border: 0; left: 20px; position: absolute; top: 10px; width: 50% } .ms-dd .ms-dd-header { border: 1px solid #ccc; border-bottom: none; border-radius: 2px; cursor: pointer; min-height: 35px; position: relative; width: 100% } .ms-dd .ms-dd-header .option-selected { color: #000; display: block; font-weight: 600; overflow: hidden; padding: 10px 20px 10px 10px; pointer-events: none } .ms-dd .ms-dd-header a { display: block } .ms-dd .ms-dd-header .ms-list-counter, .ms-dd .ms-dd-header input[type=checkbox] { display: none } .ms-dd .ms-dd-header .ms-header-counter { color: #0e76a8; font-weight: 400 } .ms-dd .ms-dd-header .ms-filter-box { border-bottom: 1px solid #ccc; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; padding: 6px 10px } .ms-dd .ms-dd-header .ms-filter-box input, .ms-dd .ms-dd-header .ms-filter-box input:focus, .ms-dd .ms-dd-header .ms-filter-box input:focus-visible { border: 1px solid #c3c3c3; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; height: 25px; padding-left: 6px; width: 100% } .ms-dd .ms-dd-header .ms-filter-box input:focus-visible { outline: 1px solid transparent } .ms-dd .ms-dd-option-image, .ms-dd .ms-dd-selected-img { margin-right: 5px; max-width: 64px; vertical-align: middle } .ms-dd .ms-dd-arrow { height: 0; margin-top: -3px; position: absolute; right: 10px; top: 50%; width: 0 } .ms-dd .ms-dd-arrow.ms-dd-pointer-down { border: 5px solid transparent; border-top-color: #000 } .ms-dd .ms-dd-arrow.ms-dd-pointer-up { border: 5px solid transparent; border-bottom-color: #000; margin-top: -8px } .ms-dd .ms-options { background: #fff; border: 1px solid #ccc; border-top: none; box-shadow: 0 1px 5px #ddd; display: none; list-style: none; margin: 0; overflow: auto; padding: 0; position: absolute; width: 100%; z-index: 9999 } .ms-dd .ms-list-option, .ms-dd .ms-optgroup ul .ms-list-option { align-items: center; border-bottom: 1px solid #ddd; color: #333; cursor: pointer; display: flex; justify-content: flex-start; overflow: hidden; padding: 10px; position: relative; text-decoration: none } .ms-dd .ms-list-option input[type=checkbox], .ms-dd .ms-optgroup ul .ms-list-option input[type=checkbox] { margin-right: 5px; vertical-align: middle } .ms-dd .ms-list-option:last-child, .ms-dd .ms-optgroup ul .ms-list-option:last-child { border-bottom: none } .ms-dd .ms-list-option:hover, .ms-dd .ms-optgroup ul .ms-list-option:hover { background: #f3f3f3; color: #000 } .ms-dd .ms-list-option.option-selected, .ms-dd .ms-optgroup ul .ms-list-option.option-selected { background: #f6f6f6 } .ms-dd .ms-list-option.ico-align-right .ms-dd-option-image, .ms-dd .ms-list-option.ico-align-right .ms-dd-selected-img, .ms-dd .ms-optgroup ul .ms-list-option.ico-align-right .ms-dd-option-image, .ms-dd .ms-optgroup ul .ms-list-option.ico-align-right .ms-dd-selected-img { order: 2 } .ms-dd .ms-list-option.disabled, .ms-dd .ms-list-option:disabled, .ms-dd .ms-optgroup ul .ms-list-option.disabled, .ms-dd .ms-optgroup ul .ms-list-option:disabled { cursor: default; opacity: .4 } .ms-dd .ms-list-option .ms-dd-desc, .ms-dd .ms-optgroup ul .ms-list-option .ms-dd-desc { color: #aaa; display: block; font-weight: 400; line-height: 1.5em; overflow: hidden; text-shadow: 0 1px .5px #fff } .ms-dd .ms-header-middle-content, .ms-dd .ms-middle { display: flex; justify-content: flex-start; width: 100% } .ms-dd.disabled, .ms-dd:disabled { cursor: default; opacity: .4; pointer-events: none } .ms-dd .ms-optgroup-padding { font-weight: 700; padding: 10px 10px 0 } .ms-dd .ms-optgroup { display: block } .ms-dd .ms-optgroup:hover { background: #fff; color: #000 } .ms-dd .ms-optgroup ul { margin: 0; padding: 0 } .ms-dd .ms-optgroup ul .ms-list-option { padding-left: 20px } .ms-dd .ms-optgroup ul:last-child { border-bottom: 1px solid #ddd } .ms-dd .ms-dd-option-content { width: 100% } :focus { outline: none }