aboutsummaryrefslogtreecommitdiffstats
path: root/src/browser/src/styles/codyframe/base/_icons.scss
blob: 5309572e481e8569099a44f2e1613d978a64f23a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// basic icons style - we suggest you don't modify this file
// use the 📁custom-style/_icons.scss file to set the custom icons style

@if variable-exists('cody-base-partials') == false or index($cody-base-partials, 'icons') {
  :root {
    // default icon sizes
    --icon-xxxs: 8px;
    --icon-xxs:  12px;
    --icon-xs:   16px;
    --icon-sm:   24px;
    --icon-md:   32px;
    --icon-lg:   48px;
    --icon-xl:   64px;
    --icon-xxl:  96px;
    --icon-xxxl: 128px;
  }

  .icon {
    display: inline-block;
    color: inherit;
    fill: currentColor;
    height: 1em;
    width: 1em;
    line-height: 1;
    flex-shrink: 0;
    max-width: initial;
  }

  // icon size
  .icon--xxxs { font-size: var(--icon-xxxs); }
  .icon--xxs  { font-size: var(--icon-xxs); }
  .icon--xs   { font-size: var(--icon-xs); }
  .icon--sm   { font-size: var(--icon-sm); }
  .icon--md   { font-size: var(--icon-md); }
  .icon--lg   { font-size: var(--icon-lg); }
  .icon--xl   { font-size: var(--icon-xl); }
  .icon--xxl  { font-size: var(--icon-xxl); }
  .icon--xxxl { font-size: var(--icon-xxxl); }

  .icon--is-spinning { // rotate the icon infinitely
    animation: icon-spin 1s infinite linear;
  }

  @keyframes icon-spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  /// SVG <symbol>

  // enable icon color corrections
  .icon use {
    color: inherit;
    fill: currentColor;
  }
}