forked from max1220/window_manager_library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindow_flat.css
112 lines (111 loc) · 2.01 KB
/
window_flat.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
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
.win {
display: flex;
flex-direction: column;
border: 1px solid #888;
overflow: hidden;
box-shadow: 4px 4px 10px rgba(127,127,127,0.3);
}
.win.focused {
border: 1px solid #666;
box-shadow: 4px 4px 12px rgba(127,127,127,0.6);
}
.win.maximized {
border: none;
border-radius: 0;
box-shadow: none;
}
.win.snapped-left {
border-right: 1px solid #888;
}
.win.snapped-right {
border-left: 1px solid #888;
}
.win.disabled .win-iframe {
filter: blur(2px);
}
.win .win-titlebar {
border-bottom: 1px solid #888;
background: #d8d8d8;
color: #222;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
user-select: none;
display: flex;
align-items: center;
line-height: 1.1;
}
.win.maximized .win-titlebar {
border: none;
border-bottom: 1px solid #888;
}
.win.focused .win-titlebar {
background: #efefef;
}
.win.focused .win-title {
text-decoration: 1px underline dotted;
text-decoration-color: #888;
}
.win .win-btn {
border: none;
background: transparent;
width: 24px;
height: 24px;
}
.win .win-btn:hover {
background: rgba(127,127,127,0.2);
}
.win .win-btn:active {
background: rgba(127,127,127,0.4);
}
.win .win-btn-close {
background: #c33;
}
.win .win-btn-close:hover {
background: #f33;
}
.win .win-btn-close:active {
background: #f00;
}
.win .win-title {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
flex-grow: 1;
line-height: 1.2;
}
.win .win-icon {
margin: 0 5px;
padding: 0;
line-height: 1;
}
.win .win-iframe {
min-height: 0;
min-width: 0;
border: none;
background: #fff;
flex-grow: 1;
}
.win .win-resize-handle {
width: 10px;
height: 10px;
background-color: #888;
border-top-left-radius: 100%;
cursor: nwse-resize;
position: absolute;
bottom: 0;
right: 0;
}
@media (prefers-color-scheme: dark) {
.win .win-titlebar {
background: #333;
color: #fff;
}
.win.focused .win-titlebar {
background: #444;
}
.win .win-iframe {
background: #bbb;
}
.win .win-btn {
color: #fff;
}
}