forked from kapetan/titlebar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
92 lines (77 loc) · 1.64 KB
/
index.css
File metadata and controls
92 lines (77 loc) · 1.64 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
.titlebar {
padding: 0 3px;
background-color: #f6f6f6;
}
.titlebar.webkit-draggable {
-webkit-app-region: drag;
}
.titlebar-stoplight {
float: left;
}
.titlebar:after,
.titlebar-stoplight:after {
content: ' ';
display: table;
clear: both;
}
.titlebar-stoplight:hover .titlebar-close {
background-position: -26px 0;
}
.titlebar-stoplight:hover .titlebar-minimize {
background-position: 0 0;
}
.titlebar-stoplight:hover .titlebar-fullscreen {
background-position: -13px 0;
}
.titlebar.alt .titlebar-stoplight:hover .titlebar-close {
background-position: -104px 0;
}
.titlebar.alt .titlebar-stoplight:hover .titlebar-minimize {
background-position: -78px 0;
}
.titlebar.alt .titlebar-stoplight:hover .titlebar-fullscreen {
background-position: -91px 0;
}
.titlebar-close,
.titlebar-minimize,
.titlebar-fullscreen {
float: left;
margin: 6px 4px;
background-repeat: no-repeat;
background-image: url(%s);
background-size: auto 12px;
width: 12px;
height: 12px;
border-radius: 6px;
}
.titlebar.webkit-draggable .titlebar-close,
.titlebar.webkit-draggable .titlebar-minimize,
.titlebar.webkit-draggable .titlebar-fullscreen {
-webkit-app-region: no-drag;
}
.titlebar-close {
position: relative;
margin-left: 6px;
background-position: -65px 0;
}
.titlebar-fullscreen {
position: relative;
background-position: -52px 0;
}
.titlebar-minimize {
position: relative;
background-position: -39px 0;
}
.titlebar-close:active::after,
.titlebar-minimize:active::after,
.titlebar-fullscreen:active::after {
display: block;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
content: "";
background: rgba(0, 0, 0, .25);
border-radius: 100%;
}