From 130d8b8d059339812842002235a53f4069a53be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Mon, 9 Jan 2023 16:34:24 +0000 Subject: [PATCH] Increase negative y offset. --- docs/examples/styles/offset.css | 2 +- docs/examples/styles/offset.py | 2 +- docs/styles/offset.md | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/examples/styles/offset.css b/docs/examples/styles/offset.css index 673f9fe1c..c659a00ed 100644 --- a/docs/examples/styles/offset.css +++ b/docs/examples/styles/offset.css @@ -24,7 +24,7 @@ Label { } .chani { - offset: 0 -2; + offset: 0 -3; background: blue 20%; border: outer blue; color: blue; diff --git a/docs/examples/styles/offset.py b/docs/examples/styles/offset.py index 337e1112a..01ceccc42 100644 --- a/docs/examples/styles/offset.py +++ b/docs/examples/styles/offset.py @@ -6,7 +6,7 @@ class OffsetApp(App): def compose(self): yield Label("Paul (offset 8 2)", classes="paul") yield Label("Duncan (offset 4 10)", classes="duncan") - yield Label("Chani (offset 0 -2)", classes="chani") + yield Label("Chani (offset 0 -3)", classes="chani") app = OffsetApp(css_path="offset.css") diff --git a/docs/styles/offset.md b/docs/styles/offset.md index 3c9b69711..2a5ffefce 100644 --- a/docs/styles/offset.md +++ b/docs/styles/offset.md @@ -39,13 +39,13 @@ In this example, we have 3 widgets with differing offsets. ## CSS ```sass -/* Move the widget 8 cells in the x direction and 2 in tye y direction */ +/* Move the widget 8 cells in the x direction and 2 in the y direction */ offset: 8 2; /* Move the widget 4 cells in the x direction offset-x: 4; -/* Move the widget -2 cells in the y direction -offset-y: -2; +/* Move the widget -3 cells in the y direction +offset-y: -3; ``` ## Python