UNPKG

fonteva-design-guide

Version:

## Dev, Build and Test

75 lines (65 loc) 1.7 kB
.pfm-dropdown { position: relative; display: inline-block; } .pfm-dropdown_content { position: absolute; z-index: 7000; left: 50%; float: left; min-width: 6rem; max-width: 20rem; border-radius: 0.25rem; font-size: 0.75rem; transform: translateX(-50%); visibility: hidden; opacity: 0; top: 100%; box-shadow: rgba(0, 0, 0, 0.16) 0px 2px 3px 0px; background: rgb(255, 255, 255); border: 1px solid var(--lwc-colorBorder); transition: opacity 0.1s linear, visibility 0.1s linear; } .pfm-dropdown_content ul { list-style: none; } .pfm-dropdown_content li.pfm-dropdown_item { line-height: 1.5; } .pfm-dropdown:hover { outline: 0; } .pfm-dropdown:hover .pfm-dropdown_content, :host(.js-dropdown_open) .pfm-dropdown_content{ visibility: visible; opacity: 1; transition: opacity 0.1s linear, visibility 0.1s linear; } .pfm-dropdown_content.pfm-dropdown_content-right { left: auto; right: 0; transform: translateX(0); } .pfm-dropdown_content.pfm-dropdown_content-left { left: 0; transform: translateX(0); } .pfm-dropdown_item > a { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; white-space: nowrap; cursor: pointer; text-overflow: ellipsis; max-width: 100%; overflow: hidden; display: block; } .pfm-dropdown_item > a:hover, .pfm-dropdown_item > a:focus { background-color: var(--lwc-colorBorderButtonBrand, #2574a9); color: var(--lwc-colorTextButtonBrand, white); text-decoration: none; }