-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
74 lines (66 loc) · 1.42 KB
/
styles.css
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
/* Custom titlebar styles */
.titlebar {
height: 24px;
background: rgba(33, 33, 33, 0.95);
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 9999999;
display: flex;
align-items: center;
justify-content: space-between;
-webkit-app-region: drag;
opacity: 0;
transition: opacity 0.2s ease-in-out;
transform: none;
}
.titlebar:hover {
opacity: 1;
}
.titlebar-trigger {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 2px;
z-index: 9999998;
}
.titlebar-title {
color: #fff;
font-size: 12px;
margin-left: 12px;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.titlebar-controls {
display: flex;
-webkit-app-region: no-drag;
}
.titlebar-button {
width: 36px;
height: 24px;
border: none;
background: transparent;
outline: none;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 0.8;
transition: background-color 0.2s, opacity 0.2s;
}
.titlebar-button:hover {
background: rgba(255, 255, 255, 0.1);
opacity: 1;
}
.titlebar-button.close:hover {
background: #e81123;
}
/* Adjust main content to account for titlebar */
.content {
margin-top: 2px;
height: calc(100vh - 2px);
position: relative;
background: #000;
}