// CSS Icons .icon { box-sizing: border-box; display: inline-block; font-size: inherit; height: 1em; position: relative; text-indent: -999rem; vertical-align: middle; width: 1em; &::before, &::after { display: block; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); } } // Icon arrows .icon-arrow-down, .icon-arrow-left, .icon-arrow-right, .icon-arrow-up, .icon-downward, .icon-back, .icon-forward, .icon-upward { &::before { border: @icon-border-width solid currentColor; border-bottom: 0; border-right: 0; content: ""; height: .65em; width: .65em; transform: translate(-25%, -50%) rotate(-45deg); } } .icon-arrow-down, .icon-downward { transform: rotate(-90deg); } .icon-arrow-right, .icon-forward { transform: rotate(180deg); } .icon-arrow-up, .icon-upward { transform: rotate(90deg); } .icon-downward, .icon-back, .icon-forward, .icon-upward { &::before { transform: translate(-50%, -50%) rotate(-45deg); } &::after { background: currentColor; content: ""; height: @icon-border-width; left: 60%; width: 80%; } } // Icon caret .icon-caret { &::before { border-top: .3em solid currentColor; border-right: .3em solid transparent; border-left: .3em solid transparent; content: ""; height: 0; width: 0; transform: translate(-50%, -25%); } } // Icon menu .icon-menu { &::before { background: currentColor; box-shadow: 0 -.35em, 0 .35em; content: ""; height: @icon-border-width; width: 100%; } } // Icon more .icon-more-horiz, .icon-more-vert { &::before { background: currentColor; box-shadow: -.4em 0, .4em 0; border-radius: 50%; content: ""; height: @icon-border-width * 2; width: @icon-border-width * 2; } } .icon-more-vert { &::before { box-shadow: 0 -.4em, 0 .4em; } } // Icon plus, minus, cross .icon-plus, .icon-minus, .icon-cross { &::before { background: currentColor; content: ""; height: @icon-border-width; width: 90%; } } .icon-plus, .icon-cross { &::after { background: currentColor; content: ""; height: 90%; width: @icon-border-width; } } .icon-cross { &::before { width: 100%; } &::after { height: 100%; } &::before, &::after { transform: translate(-50%, -50%) rotate(45deg); } } // Icon check .icon-check { &::before { border: @icon-border-width solid currentColor; border-right: 0; border-top: 0; content: ""; height: .5em; width: .9em; transform: translate(-50%, -75%) rotate(-45deg); } } // Icon mail .icon-mail { &::before { border: @icon-border-width solid currentColor; border-radius: @border-radius; content: ""; height: 75%; width: 100%; } &::after { border: @icon-border-width solid currentColor; border-right: 0; border-top: 0; content: ""; height: 50%; transform: translate(-50%, -90%) rotate(-45deg) skew(10deg, 10deg); width: 50%; } } // Components with icons .btn, .toast, .menu { .icon { vertical-align: -10%; } }