feat(web): pick an element on the page to style it in custom styles

With Custom Styles open, clicking a section or entry on the page adds a
rule for it under a comment naming it (or moves the cursor into its
existing rule). While the cursor is in a rule, everything it matches is
outlined on the page. Autocomplete offers sections and entries by name
and inserts their selector, instead of escaped UUIDs. The guide gains a
Style one element section, including the :nth-of-type form.
This commit is contained in:
Amruth Pillai
2026-09-29 14:53:23 +02:00
parent 9acf289b11
commit cfb272229b
65 changed files with 810 additions and 7 deletions
+29
View File
@@ -53,6 +53,35 @@ section[type="experience"] > section-heading {
</Step>
</Steps>
## Style one element
The quickest way to style a single section or entry is to pick it on the page:
1. Open **Design → Advanced → Custom Styles**.
2. Click the section or entry on the page. The editor adds a rule for it, named in a comment, and puts the cursor
inside:
```css
/* Experience › Senior Game Developer */
section[id="experience"] item[id="019bef5a-93e4-7746-ad39-3a132360f823"] {
color: #0f766e;
}
```
3. Type the declarations you want. Clicking an element that already has a rule moves the cursor into it.
While the cursor is inside a rule, everything that rule styles is outlined on the page. You can also type part of an
entry's name (for example `Senior`) in a selector and pick it from the suggestions.
To style an entry by position instead, use `:nth-of-type`, which counts entries only:
```css
/* The first experience entry */
section[type="experience"] item:nth-of-type(1) {
margin-bottom: 12pt;
}
```
## Target the right part of your resume
Semantic CSS selectors describe resume content rather than a template's internal HTML. Selector and attribute names are