Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
154 lines (151 loc) · 3.95 KB
/
Copy pathstyles.css
File metadata and controls
154 lines (151 loc) · 3.95 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
/* Shared across all pages: base reset + site header.
Page-specific html/body rules (background, overflow) stay inline per page. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Visible to assistive tech only; removes content from the visual layout. */
.visually-hidden {
position: absolute !important;
width: 1px; height: 1px;
padding: 0; margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.visually-hidden a { color: #FFE81F; }
/* ── Shared header ── */
.site-header {
position: fixed;
top: 0; left: 0; right: 0;
height: 60px;
background: rgba(0,0,0,0.92);
border-bottom: 1px solid rgba(255,232,31,0.25);
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0 1.5rem;
z-index: 100;
}
.site-header img {
height: 38px;
width: 56px;
object-fit: cover;
object-position: center;
border-radius: 5px;
flex-shrink: 0;
}
/* Clickable portrait that opens the lightbox */
.portrait-btn {
padding: 0;
border: 0;
background: none;
cursor: pointer;
display: inline-flex;
flex-shrink: 0;
border-radius: 5px;
}
.portrait-btn:focus-visible {
outline: 2px solid #FFE81F;
outline-offset: 2px;
}
.site-name {
color: #FFE81F;
font-family: 'News Cycle', sans-serif;
font-size: 1.1rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
flex: 1;
}
.site-nav { display: flex; gap: 0.25rem; }
.site-nav a {
display: inline-flex;
align-items: center;
gap: 0.3rem;
color: rgba(255,255,255,0.7);
text-decoration: none;
font-family: 'News Cycle', sans-serif;
font-size: 0.9rem;
letter-spacing: 0.05em;
padding: 0.35rem 0.75rem;
border-radius: 4px;
transition: color 0.15s, background 0.15s;
}
.site-nav a:hover, .site-nav a.active {
color: #FFE81F;
background: rgba(255,232,31,0.08);
}
.site-nav svg { width: 14px; height: 14px; flex-shrink: 0; }
/* ── Hamburger ── */
.hamburger {
display: none; flex-direction: column; justify-content: center;
gap: 5px; background: none; border: none;
cursor: pointer; padding: 4px; flex-shrink: 0;
}
.hamburger span {
display: block; width: 20px; height: 2px;
background: #FFE81F; border-radius: 2px; transition: 0.2s;
}
@media (max-width: 650px) {
.hamburger { display: flex; }
.site-nav {
display: none; flex-direction: column;
position: absolute; top: 100%; left: 0; right: 0;
background: rgba(0,0,0,0.97);
border-bottom: 1px solid rgba(255,232,31,0.25);
padding: 0.5rem 1rem 1rem; z-index: 99;
}
.site-nav.open { display: flex; }
.site-nav a {
padding: 0.75rem 0.5rem; border-radius: 0;
border-bottom: 1px solid rgba(255,255,255,0.05);
}
.site-nav a:last-child { border-bottom: none; }
}
/* ── Portrait lightbox ── */
.portrait-lightbox {
position: fixed;
inset: 0;
z-index: 200;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
background: rgba(0,0,0,0.85);
}
.portrait-lightbox[hidden] { display: none; }
.portrait-lightbox img {
max-width: min(92vw, 900px);
max-height: 90vh;
width: auto;
height: auto;
border-radius: 8px;
box-shadow: 0 0 40px rgba(0,0,0,0.6);
}
.portrait-lightbox__close {
position: absolute;
top: 1rem; right: 1rem;
width: 44px; height: 44px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0,0,0,0.5);
border: 1px solid rgba(255,232,31,0.5);
border-radius: 50%;
color: #FFE81F;
font-size: 1.3rem;
line-height: 1;
cursor: pointer;
}
.portrait-lightbox__close:hover,
.portrait-lightbox__close:focus-visible {
background: rgba(255,232,31,0.15);
outline: none;
}
@media (prefers-reduced-motion: no-preference) {
.portrait-lightbox { animation: portrait-lightbox-fade 0.15s ease; }
@keyframes portrait-lightbox-fade { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 600px) {
.portrait-lightbox { padding: 0; }
.portrait-lightbox img { max-width: 100vw; max-height: 100vh; border-radius: 0; }
}