Skip to content

Commit 0d5f7aa

Browse files
committed
feat: add docking box model and layout videos in styles bar doc
1 parent 9354c2e commit 0d5f7aa

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ When you select an element in [Edit Mode](./live-preview-edit), a bar appears at
2020
2121
You can move the bar to the top of the Live Preview using the **dock button** at the right end of the bar.
2222

23+
<VideoPlayer
24+
src="https://docs-images.phcode.dev/videos/styles-bar/docking.mp4"
25+
/>
26+
2327
## Save Changes To
2428

2529
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:
@@ -163,6 +167,10 @@ The button in the center of the frame controls how the sides are linked:
163167

164168
Linked fields are color coded so you can see which sides move together.
165169

170+
<VideoPlayer
171+
src="https://docs-images.phcode.dev/videos/styles-bar/box-model.mp4"
172+
/>
173+
166174
## Layout
167175

168176
The popover has two tabs, **Display** and **Position**.
@@ -179,6 +187,10 @@ The **Position** tab:
179187

180188
To learn more about these properties, see MDN's guides on [display](https://developer.mozilla.org/en-US/docs/Web/CSS/display) and [position](https://developer.mozilla.org/en-US/docs/Web/CSS/position).
181189

190+
<VideoPlayer
191+
src="https://docs-images.phcode.dev/videos/styles-bar/layout.mp4"
192+
/>
193+
182194
## When a Change Is Overridden
183195

184196
Sometimes a more specific CSS rule wins over the rule you are editing, so your change has no visible effect. In that case, Phoenix Code automatically adds `!important` to your change to make it take effect.

0 commit comments

Comments
 (0)