UNPKG

metro4

Version:

The front-end framework for Build responsive, mobile-first projects on the web with the first front-end component library in Metro Style

66 lines (55 loc) 1.13 kB
@import (once) "include/vars"; @import (once) "include/mixins"; [data-role*=dropdown] { //display: block; } .dropdown-toggle { .toggle(); &.drop-marker-light, &.marker-light { &::before { border-color: @white; } } &.no-marker { &::before { display: none; } } &.active-toggle, &.active-container { &::before { .rotate(135deg); transition: @transition-short; } } &.marker-center { &::before { left: 50%; top: 50%; margin-left: 0; margin-top: 0; .translateX(-50%); .translateY(-50%); .rotate(-45deg); } &.active-toggle, &.active-container { &::before { .translateX(-50%); .translateY(-50%); .rotate(135deg); transition: @transition-short; } } } } .drop-left { right: 100%; top: 0; } .drop-right { left: 100%; top: 0; } .drop-up { top: auto; bottom: 100%; }