-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspe.css
More file actions
59 lines (53 loc) · 1.92 KB
/
Copy pathspe.css
File metadata and controls
59 lines (53 loc) · 1.92 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
/* SPE additions on top of the vendored DCS files (base.css / site.css / base.js from
* https://dcs.spa — never edit those here, see dcs-upstream.json + _bin/dcs-sync).
* Copyright (C) 2015-2026 Mark Constable <mc@netserva.org> (MIT License)
*
* Load order: base.css, site.css, spe.css. OKLCH only. */
@layer site-tokens {
:root {
/* Brand: the PHP purple, used by the tutorial cards and the Blog hero. */
--php: oklch(55% 0.1 285);
--php-deep: oklch(30% 0.08 285);
--php-night: oklch(16% 0.04 285);
}
html.dark {
--php: oklch(70% 0.1 285);
}
}
@layer site-components {
/* dcs.spa paints its server-room photo behind everything; SPE has no image, so the
page is simply the scheme's primary surface. */
body {
background: var(--bg-primary);
}
/* dcs.spa zeroes main's padding for edge-to-edge marketing sections; SPE's pages are
cards and prose, so the base padding comes back. The Blog hero is the one full-bleed
section: it cancels the padding on its three outer sides. */
main {
padding: var(--space-4);
}
main > .hero-bg:first-child {
margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) 0;
}
/* The Blog home hero: a dark PHP-purple gradient instead of the photo, so the white
hero text and the shimmer accent keep their contrast in every scheme and mode. */
.hero-bg {
background: linear-gradient(135deg, var(--php-deep), var(--php-night));
}
.hero-bg::before {
background: rgb(0 0 0 / 0.25);
}
.btn-php {
background: var(--php);
color: oklch(98% 0 0);
}
/* Signed-in name in the Settings panel (chapters 08-09). */
.sidebar-user {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-2) var(--space-4);
color: var(--fg-secondary);
font-weight: 500;
}
}