-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
170 lines (163 loc) · 3.29 KB
/
Copy pathstyle.css
File metadata and controls
170 lines (163 loc) · 3.29 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
:root{
--bg:#0b0c10;--text:#e7e8ea;
--muted:#a3a6ad;
--line:#1e222a;
--accent:#d1d5db;
--header-h:160px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
margin:0;
background:var(--bg);
color:var(--text);
font-family: 'IBM Plex Mono', monospace;
font-size:18px;
line-height:1.6;
padding-top:var(--header-h)
}
.container{
max-width:1100px;
margin:0 auto;
padding:28px
}
/* Header */
.site-header{
border-bottom:1px solid var(--line);
position:fixed;
top:0;left:0;right:0;
z-index:1000;
background:rgba(0,0,0,.7);
backdrop-filter:saturate(140%) blur(8px)
}
.site-header .container{
display:flex;
align-items:center;
justify-content:space-between;
gap:16px;
flex-wrap:wrap
}
#siteTitle{margin:0;font-size:34px;letter-spacing:.2px}
.brand{display:flex;align-items:center;gap:12px}
.avatar{
width:min(120px, calc(var(--header-h) - 24px));
height:min(120px, calc(var(--header-h) - 24px));
border-radius:50%;
object-fit:cover;
border:1px solid var(--line)
}
#siteTitle{
margin:0;
font-size:34px;
letter-spacing:.2px
}
.stack{
list-style:none;
display:flex;
gap:10px;
margin:0;
padding:0;
flex-wrap:wrap
}
.stack li{
border:1px solid var(--line);
padding:6px 10px;
border-radius:999px;
color:var(--muted)
}
/* Sections */
.block{padding:24px 0}
.block h2{
margin:0 0 12px 0;
font-size:22px
}
/* Tree list to echo the sketch “L” bullets */
.tree{
list-style:none;
margin:0;
padding:0 0 0 14px;
border-left:2px solid var(--line);
margin-left: 18px
}
.tree li{
position:relative;
padding:6px 0 6px 10px;
}
.tree li::before{
content:"";
position:absolute;
left:-14px;
top:18px;
width:14px;
height:2px;
background:var(--line)
}
.tree a{
color:var(--text);
text-decoration:none;
border-bottom:1px dashed transparent
}
.tree a:hover{
border-bottom-color:var(--accent)
}
.tree .meta{
color:var(--muted)
}
/* Project item layout */
.project{display:block}
.project-thumb{
width:100%;
max-width:560px;
height:auto;
object-fit:cover;
border:1px solid var(--line);
border-radius:8px;
background:#111
}
.project-body{flex:1}
.project-title{font-weight:500;font-size:20px}
.project-desc{margin:6px 0 0 0;color:var(--muted);white-space:pre-line}
.project-link{display:inline-block;margin-top:8px;color:var(--accent);border-bottom:1px dashed var(--accent);text-decoration:none}
.project-link:hover{opacity:.9}
/* Collapsible details */
.project-toggle{
all:unset;
display:inline-flex;
align-items:center;
gap:8px;
cursor:pointer
}
.project-toggle:after{
content:"▸";
font-size:12px;
color:var(--muted);
margin-left:6px;
transition:transform .2s ease
}
.project.open .project-toggle:after{transform:rotate(90deg)}
.project-toggle:hover .project-title{border-bottom:1px dashed var(--accent)}
.toggle-hint{
font-size:11px;
color:var(--muted);
border:1px dashed var(--line);
border-radius:999px;
padding:2px 6px
}
.project-details{display:none;padding:8px 0 0 0}
.project.open .project-details{display:block}
.project-details-row{display:block}
/* Footer */
.site-footer{
border-top:1px solid var(--line);
padding-top:16px;
color:var(--muted)
}
@media (max-width:600px){
:root{--header-h:88px}
#siteTitle{font-size:20px}
body{font-size:16px}
.container{padding:18px}
.brand{gap:8px}
.stack{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;gap:8px}
.stack li{flex:0 0 auto}
}