123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- // =============================================================================
- // Listing view smaller dropdowns
- // =============================================================================
- // .c-dropdown {
- // }
- .c-dropdown__button {
- display: inline-block;
- box-sizing: border-box;
- padding-left: 0.5rem;
- padding-right: 0.25rem;
- // Make this the same as the other buttons
- line-height: 1.85;
- border: solid 1px transparent;
- border-radius: 2px;
- font-size: 0.95em;
- cursor: pointer;
- -webkit-font-smoothing: subpixel-antialiased;
- user-select: none;
- }
- .c-dropdown--large .c-dropdown__button {
- line-height: 2.9em;
- padding-left: 0.5rem;
- padding-right: 0.5rem;
- .icon-site {
- padding-right: 0.2rem;
- }
- }
- .c-dropdown__toggle {
- display: inline-block;
- }
- .c-dropdown__togle--icon {
- &:before {
- display: none; // TODO: remove when iconfont styles are removed
- }
- .icon {
- @include svg-icon(1em, middle);
- }
- .icon-arrow-up {
- display: none;
- }
- }
- .is-open .c-dropdown__togle--icon {
- .icon-arrow-up {
- display: inline-block;
- }
- .icon-arrow-down {
- display: none;
- }
- }
- .c-dropdown__menu.c-dropdown__menu {
- margin-top: 0.75rem;
- padding: 0.75rem 1rem;
- min-width: 8rem;
- text-transform: none;
- position: absolute;
- z-index: 1000;
- animation: dropdownIn 0.1s ease-out backwards;
- list-style: none;
- // Override any right alignment that might've been set by a parent element
- // (such as the snippets header)
- text-align: left;
- }
- .c-dropdown__item {
- margin-bottom: 0.375rem;
- &:hover {
- .c-dropdown__indicator {
- opacity: 0.6;
- }
- }
- }
- .c-dropdown__item:last-child {
- margin-bottom: 0;
- }
- .c-dropdown__divider {
- border-color: #555;
- border-style: dotted;
- margin-top: 12px;
- margin-bottom: 12px;
- }
- @keyframes dropdownIn {
- 0% {
- opacity: 0;
- }
- 100% {
- opacity: 1;
- }
- }
|