forked from stephanebouget/github-security-alerts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.component.scss
More file actions
117 lines (101 loc) · 2 KB
/
header.component.scss
File metadata and controls
117 lines (101 loc) · 2 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/*
* Software Name : GitHub Security Alerts
* SPDX-FileCopyrightText: Copyright (c) Orange
* SPDX-License-Identifier: MIT
*
* This software is distributed under the MIT,
* see the "LICENSE.txt" file for more details or https://opensource.org/license/mit
*
* Software description: A modern desktop application that monitors security vulnerabilities across your GitHub repositories in real-time.
*/
@use "sass:color";
@use "../../../../styles/colors" as colors;
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background: colors.$bg-secondary;
border-bottom: 1px solid colors.$border-color;
-webkit-app-region: drag;
.header-left {
display: flex;
align-items: center;
cursor: pointer;
gap: 8px;
-webkit-app-region: no-drag;
transition: opacity 0.2s;
&:hover {
opacity: 0.8;
}
.logo {
font-size: 22px;
color: colors.$accent-color;
}
.title {
font-weight: 600;
font-size: 14px;
}
}
.header-right {
display: flex;
gap: 4px;
-webkit-app-region: no-drag;
}
}
.icon-btn {
background: transparent;
border: none;
color: colors.$text-secondary;
cursor: pointer;
padding: 6px 8px;
border-radius: 4px;
font-size: 18px;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
&:hover {
background: colors.$bg-tertiary;
color: colors.$text-primary;
}
&:disabled {
opacity: 0.5;
cursor: not-allowed;
}
&.active {
background: colors.$bg-tertiary;
color: colors.$accent-color;
}
i {
font-size: 20px;
}
.spinning {
display: inline-block;
animation: spin 1s linear infinite;
}
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(-360deg);
}
}
@keyframes pulse {
0% {
opacity: 1;
}
50% {
opacity: 0.6;
}
100% {
opacity: 1;
}
}
.update-btn {
&:hover {
background: rgba(34, 197, 94, 0.1) !important;
}
}