From ff579ea526d0f55266b4cf41335816d38fc43557 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Fri, 26 Aug 2022 10:58:46 +0100 Subject: [PATCH] Review changes --- docs/examples/demo.py | 1 - docs/guide/CSS.md | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/examples/demo.py b/docs/examples/demo.py index d4e583323..fcea3e753 100644 --- a/docs/examples/demo.py +++ b/docs/examples/demo.py @@ -130,7 +130,6 @@ class BasicApp(App, css_path="basic.css"): classes="scrollable", ), table, - Widget(DirectoryTree("~/projects/textual"), id="tree-container"), Error(), Tweet(TweetBody(), classes="scrollbar-size-custom"), Warning(), diff --git a/docs/guide/CSS.md b/docs/guide/CSS.md index 8ffb06928..b56517626 100644 --- a/docs/guide/CSS.md +++ b/docs/guide/CSS.md @@ -56,8 +56,6 @@ The lines inside the curly braces contains CSS _rules_, which consist of a rule The first rule in the above example reads `"dock: top;"`. The rule name is `dock` which tells Textual to place the widget on an edge of the screen. The text after the colon is `top` which tells Textual to dock to the _top_ of the screen. Other valid values for `dock` are "right", "bottom", or "left"; but `top` is most appropriate for a header. -You may be able to guess what some of the the other rules do. We will cover those later. - ## The DOM The DOM, or _Document Object Model_, is a term borrowed from the web world. Textual doesn't use documents but the term has stuck. In Textual CSS, the DOM is a an arrangement of widgets you can visualize as a tree-like structure. @@ -189,7 +187,7 @@ Let's look at the selectors supported by Textual CSS. ### Type selector -The _type_ selector matches the name of the (Python) class, which is literally the name of the class in your Python code. For example, the following widget can be matched with a `Button` selector: +The _type_ selector matches the name of the (Python) class. For example, the following widget can be matched with a `Button` selector: ```python from textual.widgets import Widget @@ -320,7 +318,7 @@ Here are some other pseudo classes: ## Combinators -More sophisticated selectors can be created by combining simple selectors. The rule that combines selectors is know as a _combinator_. +More sophisticated selectors can be created by combining simple selectors. The logic used to combine selectors is know as a _combinator_. ### Descendant combinator