Skip to content

Commit de002fe

Browse files
committed
feat: add save changes image and new rule video in styles bar doc
1 parent a4ad67e commit de002fe

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

docs/02-Live Preview/03-styles-bar.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,19 @@ You can move the bar to the top of the Live Preview using the **dock button** at
2424

2525
Phoenix Code gives you control to choose where you want to save your edits. By default, all the changes are saved directly on the element as an inline style. If you want to save the changes in one of the CSS rules, you can click on the **Save changes to** button:
2626

27+
![Save changes to](../images/pro/styles-bar-save-changes.png "The Save changes to popover, with the number of elements each selector affects")
28+
2729
It shows all the available selectors for that element. Select the one you want, and all the changes made to that element will automatically get saved in that selector.
2830
> Each selector also shows the number of elements it affects on the page.
2931
3032
### Creating a New Rule
3133

3234
Click **Create new rule…** to save your edits in a new CSS rule. Type a class like `.card` or an id like `#hero` and click **Create**. Phoenix Code creates the rule and also adds the class or id to the element, so the rule applies right away.
3335

36+
<VideoPlayer
37+
src="https://docs-images.phcode.dev/videos/styles-bar/create-new-rule.mp4"
38+
/>
39+
3440
### Editing Element States
3541

3642
The **State** dropdown in the popover lets you style the element's `hover`, `focus`, and `active` states. Pick a state and the Live Preview turns it on while you edit, with a banner showing which state you are editing.
59 KB
Loading

0 commit comments

Comments
 (0)