hduvallh commited on
Commit
83cd630
·
verified ·
1 Parent(s): 86a38e5

Wrap org card in panel so labels/footer contrast in HF dark mode

Browse files
Files changed (1) hide show
  1. README.md +45 -31
README.md CHANGED
@@ -12,29 +12,35 @@ short_description: Soft X-ray vibes from the WSU Carbon Lab
12
  <style>
13
  .cl, .cl * { box-sizing: border-box; }
14
  .cl {
 
15
  --bg-hero: #fff7ed;
16
  --bg-card: #ffffff;
17
  --ink: #1c1917;
18
  --muted: #44403c;
19
- --soft: #78716c;
20
  --line: #d6d3d1;
21
  --accent: #0f766e;
22
  --accent-2: #b45309;
23
  --chip-bg: #ecfdf5;
24
- --chip-line: #99f6e4;
25
  --metric-n: #b45309;
26
  max-width: 44rem;
27
  margin: 0 auto;
 
 
 
 
28
  color: var(--ink) !important;
29
  font-family: ui-sans-serif, system-ui, sans-serif;
30
  }
31
  @media (prefers-color-scheme: dark) {
32
  .cl {
 
33
  --bg-hero: #1c1917;
34
  --bg-card: #292524;
35
  --ink: #fafaf9;
36
- --muted: #d6d3d1;
37
- --soft: #a8a29e;
38
  --line: #57534e;
39
  --accent: #5eead4;
40
  --accent-2: #fbbf24;
@@ -43,12 +49,21 @@ short_description: Soft X-ray vibes from the WSU Carbon Lab
43
  --metric-n: #fbbf24;
44
  }
45
  }
46
- :is(html.dark, body.dark, .dark) .cl {
 
 
 
 
 
 
 
 
 
47
  --bg-hero: #1c1917;
48
  --bg-card: #292524;
49
  --ink: #fafaf9;
50
- --muted: #d6d3d1;
51
- --soft: #a8a29e;
52
  --line: #57534e;
53
  --accent: #5eead4;
54
  --accent-2: #fbbf24;
@@ -57,33 +72,32 @@ short_description: Soft X-ray vibes from the WSU Carbon Lab
57
  --metric-n: #fbbf24;
58
  }
59
  .cl a { color: var(--accent) !important; }
60
- .cl p, .cl span, .cl div, .cl strong, .cl h1 { color: var(--ink) !important; }
61
  .cl-hero {
62
- border-radius: 1.25rem;
63
- padding: 1.05rem 1.1rem 0.95rem;
64
- margin-bottom: 0.7rem;
65
  background:
66
  radial-gradient(ellipse 65% 80% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
67
  linear-gradient(165deg, var(--bg-hero), var(--bg-card));
68
  border: 1px solid var(--line);
69
  }
70
- .cl-kicker {
71
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em;
72
  text-transform: uppercase; margin: 0 0 0.3rem;
73
  color: var(--accent-2) !important;
74
  }
75
- .cl-title {
76
  margin: 0 0 0.35rem; font-size: 1.5rem; font-weight: 800;
77
  letter-spacing: -0.02em; line-height: 1.15;
78
  color: var(--ink) !important;
79
  }
80
- .cl-title a { color: var(--ink) !important; text-decoration: none; }
81
- .cl-title a:hover { text-decoration: underline; text-decoration-color: var(--accent-2); }
82
- .cl-lede {
83
  margin: 0; font-size: 0.9rem; line-height: 1.45;
84
  color: var(--muted) !important;
85
  }
86
- .cl-lede a {
87
  color: var(--accent) !important; font-weight: 700;
88
  text-decoration: underline; text-underline-offset: 2px;
89
  }
@@ -91,7 +105,7 @@ short_description: Soft X-ray vibes from the WSU Carbon Lab
91
  display: flex; flex-wrap: wrap; gap: 0.35rem;
92
  margin: 0.7rem 0 0;
93
  }
94
- .cl-chip {
95
  display: inline-flex; align-items: center;
96
  padding: 0.26rem 0.6rem; border-radius: 999px;
97
  background: var(--chip-bg) !important;
@@ -104,23 +118,23 @@ short_description: Soft X-ray vibes from the WSU Carbon Lab
104
  display: flex; flex-wrap: wrap; gap: 0.4rem;
105
  margin: 0 0 0.65rem;
106
  }
107
- .cl-metric {
108
  flex: 1 1 5.2rem; min-width: 5.2rem; text-align: center;
109
  text-decoration: none !important;
110
  border-radius: 0.85rem; padding: 0.5rem 0.35rem;
111
  background: var(--bg-card) !important;
112
  border: 1px solid var(--line);
113
  }
114
- .cl-metric .n {
115
  font-size: 1.1rem; font-weight: 800; line-height: 1.1;
116
  color: var(--metric-n) !important;
117
  }
118
- .cl-metric .l {
119
  font-size: 0.62rem; font-weight: 750; text-transform: uppercase;
120
  letter-spacing: 0.04em; margin-top: 0.12rem;
121
  color: var(--soft) !important;
122
  }
123
- .cl-label {
124
  margin: 0 0 0.4rem; font-size: 0.72rem; font-weight: 800;
125
  letter-spacing: 0.06em; text-transform: uppercase;
126
  color: var(--soft) !important;
@@ -133,26 +147,26 @@ short_description: Soft X-ray vibes from the WSU Carbon Lab
133
  @media (min-width: 640px) {
134
  .cl-row { grid-template-columns: 1fr 1fr 1fr; }
135
  }
136
- .cl-card {
137
  display: block; text-decoration: none !important;
138
  border-radius: 0.95rem; padding: 0.7rem 0.8rem;
139
  background: var(--bg-card) !important;
140
  border: 1px solid var(--line);
141
  }
142
- .cl-card:hover { border-color: var(--accent); }
143
- .cl-card strong {
144
  display: block; font-size: 0.88rem; margin-bottom: 0.12rem;
145
  color: var(--ink) !important;
146
  }
147
- .cl-card span {
148
  font-size: 0.74rem; line-height: 1.35;
149
  color: var(--muted) !important;
150
  }
151
  .cl-venues {
152
  display: flex; flex-wrap: wrap; gap: 0.3rem;
153
- margin: 0 0 0.6rem;
154
  }
155
- .cl-venue {
156
  font-size: 0.68rem; font-weight: 700;
157
  padding: 0.18rem 0.45rem; border-radius: 999px;
158
  border: 1px solid var(--line);
@@ -160,12 +174,12 @@ short_description: Soft X-ray vibes from the WSU Carbon Lab
160
  color: var(--muted) !important;
161
  text-decoration: none !important;
162
  }
163
- .cl-venue:hover { border-color: var(--accent); color: var(--ink) !important; }
164
- .cl-foot {
165
  margin: 0; font-size: 0.7rem; text-align: center;
166
  color: var(--soft) !important;
167
  }
168
- .cl-foot a {
169
  color: var(--soft) !important;
170
  text-decoration: underline; text-underline-offset: 2px;
171
  }
 
12
  <style>
13
  .cl, .cl * { box-sizing: border-box; }
14
  .cl {
15
+ --bg-panel: #fafaf9;
16
  --bg-hero: #fff7ed;
17
  --bg-card: #ffffff;
18
  --ink: #1c1917;
19
  --muted: #44403c;
20
+ --soft: #57534e;
21
  --line: #d6d3d1;
22
  --accent: #0f766e;
23
  --accent-2: #b45309;
24
  --chip-bg: #ecfdf5;
25
+ --chip-line: #5eead4;
26
  --metric-n: #b45309;
27
  max-width: 44rem;
28
  margin: 0 auto;
29
+ padding: 0.85rem;
30
+ border-radius: 1.35rem;
31
+ background: var(--bg-panel) !important;
32
+ border: 1px solid var(--line);
33
  color: var(--ink) !important;
34
  font-family: ui-sans-serif, system-ui, sans-serif;
35
  }
36
  @media (prefers-color-scheme: dark) {
37
  .cl {
38
+ --bg-panel: #0c0a09;
39
  --bg-hero: #1c1917;
40
  --bg-card: #292524;
41
  --ink: #fafaf9;
42
+ --muted: #e7e5e4;
43
+ --soft: #d6d3d1;
44
  --line: #57534e;
45
  --accent: #5eead4;
46
  --accent-2: #fbbf24;
 
49
  --metric-n: #fbbf24;
50
  }
51
  }
52
+ :is(
53
+ html.dark,
54
+ html.dark body,
55
+ body.dark,
56
+ .dark,
57
+ [data-theme="dark"],
58
+ [data-theme="dark"] *,
59
+ .theme-dark
60
+ ) .cl {
61
+ --bg-panel: #0c0a09;
62
  --bg-hero: #1c1917;
63
  --bg-card: #292524;
64
  --ink: #fafaf9;
65
+ --muted: #e7e5e4;
66
+ --soft: #d6d3d1;
67
  --line: #57534e;
68
  --accent: #5eead4;
69
  --accent-2: #fbbf24;
 
72
  --metric-n: #fbbf24;
73
  }
74
  .cl a { color: var(--accent) !important; }
 
75
  .cl-hero {
76
+ border-radius: 1.1rem;
77
+ padding: 1rem 1.05rem 0.9rem;
78
+ margin-bottom: 0.65rem;
79
  background:
80
  radial-gradient(ellipse 65% 80% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
81
  linear-gradient(165deg, var(--bg-hero), var(--bg-card));
82
  border: 1px solid var(--line);
83
  }
84
+ .cl .cl-kicker {
85
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em;
86
  text-transform: uppercase; margin: 0 0 0.3rem;
87
  color: var(--accent-2) !important;
88
  }
89
+ .cl .cl-title {
90
  margin: 0 0 0.35rem; font-size: 1.5rem; font-weight: 800;
91
  letter-spacing: -0.02em; line-height: 1.15;
92
  color: var(--ink) !important;
93
  }
94
+ .cl .cl-title a { color: var(--ink) !important; text-decoration: none; }
95
+ .cl .cl-title a:hover { text-decoration: underline; text-decoration-color: var(--accent-2); }
96
+ .cl .cl-lede {
97
  margin: 0; font-size: 0.9rem; line-height: 1.45;
98
  color: var(--muted) !important;
99
  }
100
+ .cl .cl-lede a {
101
  color: var(--accent) !important; font-weight: 700;
102
  text-decoration: underline; text-underline-offset: 2px;
103
  }
 
105
  display: flex; flex-wrap: wrap; gap: 0.35rem;
106
  margin: 0.7rem 0 0;
107
  }
108
+ .cl .cl-chip {
109
  display: inline-flex; align-items: center;
110
  padding: 0.26rem 0.6rem; border-radius: 999px;
111
  background: var(--chip-bg) !important;
 
118
  display: flex; flex-wrap: wrap; gap: 0.4rem;
119
  margin: 0 0 0.65rem;
120
  }
121
+ .cl .cl-metric {
122
  flex: 1 1 5.2rem; min-width: 5.2rem; text-align: center;
123
  text-decoration: none !important;
124
  border-radius: 0.85rem; padding: 0.5rem 0.35rem;
125
  background: var(--bg-card) !important;
126
  border: 1px solid var(--line);
127
  }
128
+ .cl .cl-metric .n {
129
  font-size: 1.1rem; font-weight: 800; line-height: 1.1;
130
  color: var(--metric-n) !important;
131
  }
132
+ .cl .cl-metric .l {
133
  font-size: 0.62rem; font-weight: 750; text-transform: uppercase;
134
  letter-spacing: 0.04em; margin-top: 0.12rem;
135
  color: var(--soft) !important;
136
  }
137
+ .cl .cl-label {
138
  margin: 0 0 0.4rem; font-size: 0.72rem; font-weight: 800;
139
  letter-spacing: 0.06em; text-transform: uppercase;
140
  color: var(--soft) !important;
 
147
  @media (min-width: 640px) {
148
  .cl-row { grid-template-columns: 1fr 1fr 1fr; }
149
  }
150
+ .cl .cl-card {
151
  display: block; text-decoration: none !important;
152
  border-radius: 0.95rem; padding: 0.7rem 0.8rem;
153
  background: var(--bg-card) !important;
154
  border: 1px solid var(--line);
155
  }
156
+ .cl .cl-card:hover { border-color: var(--accent); }
157
+ .cl .cl-card strong {
158
  display: block; font-size: 0.88rem; margin-bottom: 0.12rem;
159
  color: var(--ink) !important;
160
  }
161
+ .cl .cl-card span {
162
  font-size: 0.74rem; line-height: 1.35;
163
  color: var(--muted) !important;
164
  }
165
  .cl-venues {
166
  display: flex; flex-wrap: wrap; gap: 0.3rem;
167
+ margin: 0 0 0.65rem;
168
  }
169
+ .cl .cl-venue {
170
  font-size: 0.68rem; font-weight: 700;
171
  padding: 0.18rem 0.45rem; border-radius: 999px;
172
  border: 1px solid var(--line);
 
174
  color: var(--muted) !important;
175
  text-decoration: none !important;
176
  }
177
+ .cl .cl-venue:hover { border-color: var(--accent); color: var(--ink) !important; }
178
+ .cl .cl-foot {
179
  margin: 0; font-size: 0.7rem; text-align: center;
180
  color: var(--soft) !important;
181
  }
182
+ .cl .cl-foot a {
183
  color: var(--soft) !important;
184
  text-decoration: underline; text-underline-offset: 2px;
185
  }