-
Notifications
You must be signed in to change notification settings - Fork 1
/
titlebar.css
87 lines (75 loc) · 1.45 KB
/
titlebar.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
75
76
77
78
79
80
81
82
83
84
85
86
87
html.linux #titlebar {display: none;}
html.mac #titlebar {display: none;}
#titlebar {
display: block;
position: fixed;
height: 33px;
width: 100%;
background: transparent;
top: 0px;
left: 0px;
-webkit-app-region: drag;
color: #FFF;
z-index: 1;
}
#window-title span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 1.5;
}
#window-controls {
display: grid;
grid-template-columns: repeat(3, 46px);
position: absolute;
top: 0;
right: 0;
height: 100%;
z-index: 1000;
}
#window-controls {
-webkit-app-region: no-drag;
}
#window-controls .button {
grid-row: 1 / span 1;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
@media (-webkit-device-pixel-ratio: 1.5), (device-pixel-ratio: 1.5),
(-webkit-device-pixel-ratio: 2), (device-pixel-ratio: 2),
(-webkit-device-pixel-ratio: 3), (device-pixel-ratio: 3) {
#window-controls .icon {
width: 10px;
height: 10px;
}
}
#window-controls .button {
user-select: none;
}
#window-controls .button:hover {
background: rgba(255,255,255,0.1);
}
#window-controls .button:active {
background: rgba(255,255,255,0.2);
}
#close-button:hover {
background: #E81123 !important;
}
#close-button:active {
background: #F1707A !important;
}
#close-button:active .icon {
filter: invert(1);
}
#min-button {
grid-column: 2;
}
#max-button, #restore-button {
grid-column: 2;
}
#close-button {
grid-column: 3;
}