summaryrefslogtreecommitdiff
path: root/src/components/Rules.module.scss
blob: f764d09c54fa698df9b6b64f91a8d92a807646d1 (plain)
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
85
86
87
88
89
90
91
92
93
94
95
96
97
@use '~/styles/utils/custom-media' as *;

.container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.filterWrapper {
  width: 100%;
  max-width: 300px;

  @media (max-width: 768px) {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin-top: 8px;
  }
}

.listWrapper {
  margin: 10px 45px 20px;
  background-color: var(--bg-log-info-card);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-separator);
  overflow: hidden;

  @media (max-width: 768px) {
    margin: 10px 15px 15px;
  }
}

.RuleProviderItemWrapper {
  border-bottom: 1px solid var(--color-separator);
}

.tabsContainer {
  display: flex;
  align-items: center;
  background-color: var(--color-bg-sidebar);
  border-radius: 12px;
  padding: 4px;

  @media (max-width: 768px) {
    order: 1;
    flex: 1 1 100%;
    width: 100%;
  }
}

.tab {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
  user-select: none;

  @media (max-width: 768px) {
    padding: 6px 10px;
    font-size: 0.85em;
    flex: 1;
    justify-content: center;
    min-width: 0;
    white-space: nowrap;
  }

  &:hover {
    color: var(--color-focus-blue);
    background: rgba(176, 206, 255, 0.221);
  }

  &.active {
    background-color: var(--color-focus-blue);
    color: #fff;
  }
}

.tabCount {
  font-family: var(--font-normal);
  font-size: 0.7em;
  margin-left: 6px;
  padding: 2px 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  font-weight: 600;
  min-width: 20px;
  flex-shrink: 0;
}