Skip to content

Commit fd7912f

Browse files
authored
📚 DOCS: Improve landing page (#18)
1 parent 670ea79 commit fd7912f

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

docs/css_classes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ For example, using `sd-d-flex-column` and `sd-align-major-center` will center th
9191
- `sd-align-minor-end`
9292
- `sd-align-minor-center`
9393

94+
For more information, see [this guide to flexbox](https://css-tricks.com/snippets/css/a-guide-to-flexbox/).
95+
9496
## Sizing
9597

9698
Size objects width/height by percentage:

docs/index.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ sd_hide_title: true
44

55
# sphinx-design
66

7+
::::::{div} landing-title
8+
:style: "padding: 0.1rem 0.5rem 0.6rem 0; background-image: linear-gradient(315deg, #438ff9 0%, #1572f4 74%); clip-path: polygon(0px 0px, 100% 0%, 100% 100%, 0% 91%);"
9+
710
::::{grid}
811
:reverse:
9-
:gutter: 2 1 1 1
10-
:margin: 4 4 1 1
12+
:gutter: 2 3 3 3
13+
:margin: 4 4 1 2
1114

1215
:::{grid-item}
1316
:columns: 12 4 4 4
@@ -21,12 +24,13 @@ sd_hide_title: true
2124
:::{grid-item}
2225
:columns: 12 8 8 8
2326
:child-align: justify
24-
:class: sd-fs-3
27+
:class: sd-text-white sd-fs-3
2528

2629
A sphinx extension for designing beautiful, screen-size responsive web-components.
2730

2831
```{button-ref} get_started
29-
:color: primary
32+
:outline:
33+
:color: white
3034
:class: sd-fs-5
3135
3236
Get Started
@@ -35,6 +39,8 @@ Get Started
3539
:::
3640
::::
3741

42+
::::::
43+
3844
Conflict free CSS
3945
: All CSS classes are prefixed, to avoid conflicts with other frameworks.
4046

sphinx_design/compiled/style.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sphinx_design/shared.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"light",
1818
"muted",
1919
"dark",
20+
"white",
21+
"black",
2022
)
2123

2224

style/_colors.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ $semantic-colors: (
6868
}
6969

7070
@each $color, $value in $semantic-colors {
71-
.sd-text-#{$color} {
71+
.sd-text-#{$color}, .sd-text-#{$color} > p {
7272
color: var(--sd-color-#{$color}) !important;
7373
}
7474
a {

0 commit comments

Comments
 (0)