📦 EqualifyEverything / equalify

📄 Audits.module.scss · 84 lines
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84@use "../global-styles/variables.module.scss";
@use "../global-styles/fonts.scss";

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spinning {
  animation: spin 1s linear infinite;
}

.processing-icon {
  display: flex;
  margin-left: auto;

  svg {
    color: variables.$green;
  }
}

.Audits {
  h2 {
    margin-bottom: calc(variables.$spacing);
    line-height: 1.1em;
    svg {
      color: variables.$black;
    }
    .processing-icon svg {
      color: variables.$green;
      min-width: 17px;
      min-height: 17px;
      width: 17px;
      height: 17px;
    }
  }

  .audits-header {
    display: inline-flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    width: 100%;
  }

  .filter-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: calc(variables.$spacing*2);
    @media screen and (max-width: variables.$breakpoint-small) {
      flex-direction: column-reverse;
    }
  }
  .filter-controls-left {
    display: flex;
    
    @media screen and (max-width: variables.$breakpoint-small) {
      flex-direction: column;
    }
  }
  .audits-view-selector {
    display: inline-flex;
    align-content: flex-end;
    align-items: flex-end;
    justify-content: flex-end;

    button[data-state="active"] {
      opacity:1;
    }
  }
}

:global(body.dark) {
  .Audits {
    h2 {
      svg {
        color: variables.$paper;
      }
    }
  }
}