-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindow.css
More file actions
189 lines (162 loc) · 4.16 KB
/
window.css
File metadata and controls
189 lines (162 loc) · 4.16 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/* ===== BODY & DESKTOP ===== */
body {
margin: 0;
background: radial-gradient(circle at top, #111 0%, #000 70%);
font-family: Segoe UI, Tahoma, sans-serif;
color: #f5d76e;
overflow: hidden;
}
#desktop {
width: 100vw;
height: 100vh;
position: relative;
}
/* ===== WINDOWS ===== */
/* ===== WINDOWS ===== */
.window {
position: absolute;
width: 480px;
max-width: 80vw;
height: auto; /* allow height to adjust */
max-height: 80vh;
background: linear-gradient(#1a1a1a, #050505);
border: 2px solid #c9a227;
box-shadow: 0 0 18px rgba(201,162,39,.5), 6px 6px #000;
display: flex;
flex-direction: column;
overflow: hidden; /* only outer scrollbars */
}
.window.viewer-window {
width: 80vw;
height: 80vh;
}
/* ===== TITLEBAR ===== */
.titlebar {
background: linear-gradient(90deg, #3a2f0b, #c9a227, #3a2f0b);
color: #000;
padding: 6px 10px;
font-weight: bold;
cursor: move;
user-select: none;
box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3);
border-bottom: 1px solid #7a6318;
}
/* ===== WINDOW CONTENT ===== */
.content {
padding: 10px 15px;
background: #000; /* dark windows */
color: #ffd700;
flex: 1; /* fill space */
overflow: auto;
min-height: 0; /* required for flex scrolling */
scrollbar-width: thin;
scrollbar-color: #c9a227 #000;
}
/* Scrollbars for Chrome/Edge/Safari */
.content::-webkit-scrollbar {
width: 10px;
}
.content::-webkit-scrollbar-track {
background: #000;
}
.content::-webkit-scrollbar-thumb {
background: #c9a227;
border: 2px solid #3a2f0b;
border-radius: 4px;
}
/* ===== FOOTER ===== */
.footer {
background: #000;
font-size: 11px;
padding: 4px 8px;
border-top: 1px solid #7a6318;
color: #9a822f;
}
/* ===== DIRECTORY ENTRIES ===== */
.entry {
display: flex;
align-items: center;
padding: 6px 8px;
cursor: pointer;
border-bottom: 1px solid #1f1a08;
}
.entry:hover {
background: linear-gradient(90deg,#2b2208,#5a470f);
}
.icon {
width: 26px;
text-align: center;
margin-right: 8px;
}
/* ===== HTML IFRAME ===== */
.html-frame {
padding: 10px;
width: 100%;
height: 100%;
border: none;
}
/* ===== MARKDOWN VIEWER ===== */
.content.md-viewer {
background: #ffffff;
color: #000;
padding: 20px;
line-height: 1.5;
font-size: 14px;
overflow: auto; /* outer scroll only */
word-wrap: break-word;
white-space: normal; /* normal wrap for markdown */
scrollbar-width: thin;
scrollbar-color: #c9a227 #f0f0f0;
}
.content.md-viewer::-webkit-scrollbar {
width: 10px;
}
.content.md-viewer::-webkit-scrollbar-track {
background: #f0f0f0;
}
.content.md-viewer::-webkit-scrollbar-thumb {
background: #c9a227;
border: 2px solid #d4af37;
}
/* Markdown inner wrapper */
.md-inner {
padding: 10px 20px 30px 40px;
box-sizing: border-box;
font-size: 16px;
line-height: 1.5;
color: #000000;
background: #ffffff;
word-wrap: break-word;
white-space: normal; /* wrap text */
overflow: visible; /* prevent inner scrollbars */
}
.md-inner a { color: #c9a227; text-decoration: underline; }
.md-inner a:hover { color: #f5d76e; }
/* ===== CONTENT (DIRECTORY & VIEWER) ===== */
.content, .viewer {
flex: 1;
overflow: auto; /* only outer scrollbars */
padding: 10px 15px;
background: #000;
color: #ffd700;
word-wrap: break-word; /* wrap long lines */
white-space: pre-wrap; /* wrap preformatted text */
scrollbar-width: thin;
scrollbar-color: #c9a227 #000;
}
/* Scrollbars for all windows */
.content::-webkit-scrollbar,
.viewer::-webkit-scrollbar {
width: 10px;
height: 10px;
}
.content::-webkit-scrollbar-track,
.viewer::-webkit-scrollbar-track {
background: #000;
}
.content::-webkit-scrollbar-thumb,
.viewer::-webkit-scrollbar-thumb {
background: #c9a227;
border: 2px solid #3a2f0b;
border-radius: 4px;
}