UNPKG

1.24 kBSCSSView Raw
1// Icons
2// --------------------------------------------------
3
4@import '~@kano/kbc-base-styles/src/tools.scss';
5
6.icon {
7 width: 22px;
8 height: 22px;
9 display: inline-block;
10 vertical-align: middle;
11}
12
13.icon--smaller {
14 width: 12px;
15 height: 12px;
16}
17
18.icon--small {
19 width: 16px;
20 height: 16px;
21}
22
23.icon--base {
24 width: 22px;
25 height: 22px;
26}
27
28.icon--mid {
29 width: 30px;
30 height: 30px;
31}
32
33.icon--large {
34 width: 36px;
35 height: 36px;
36}
37
38.icon--larger {
39 width: 64px;
40 height: 64px;
41}
42
43.icon--largest {
44 width: 112px;
45 height: 112px;
46}
47
48.has-icon {
49 position: relative;
50
51 &:before {
52 content: '';
53 display: inline-block;
54 margin-right: $spacing-smallest / 2;
55 }
56
57 &.kbc-button,
58 &.nav__link {
59
60 &:before {
61 width: 22px;
62 }
63
64 .icon {
65 width: auto;
66 height: auto;
67 display: flex;
68 align-items: center;
69 position: absolute;
70 top: 0;
71 bottom: 0;
72 left: 0;
73 padding-left: inherit;
74 }
75 }
76}
77
78@each $color, $value in $all-colors-map {
79 .icon--color-#{$color} {
80 color: $value;
81 fill: $value;
82 }
83}