Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/css_classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ For example, using `sd-d-flex-column` and `sd-align-major-center` will center th
- `sd-align-minor-end`
- `sd-align-minor-center`

For more information, see [this guide to flexbox](https://css-tricks.com/snippets/css/a-guide-to-flexbox/).

## Sizing

Size objects width/height by percentage:
Expand Down
14 changes: 10 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ sd_hide_title: true

# sphinx-design

::::::{div} landing-title
: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%);"

::::{grid}
:reverse:
:gutter: 2 1 1 1
:margin: 4 4 1 1
:gutter: 2 3 3 3
:margin: 4 4 1 2

:::{grid-item}
:columns: 12 4 4 4
Expand All @@ -21,12 +24,13 @@ sd_hide_title: true
:::{grid-item}
:columns: 12 8 8 8
:child-align: justify
:class: sd-fs-3
:class: sd-text-white sd-fs-3

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

```{button-ref} get_started
:color: primary
:outline:
:color: white
:class: sd-fs-5

Get Started
Expand All @@ -35,6 +39,8 @@ Get Started
:::
::::

::::::

Conflict free CSS
: All CSS classes are prefixed, to avoid conflicts with other frameworks.

Expand Down
2 changes: 1 addition & 1 deletion sphinx_design/compiled/style.min.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions sphinx_design/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"light",
"muted",
"dark",
"white",
"black",
)


Expand Down
2 changes: 1 addition & 1 deletion style/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ $semantic-colors: (
}

@each $color, $value in $semantic-colors {
.sd-text-#{$color} {
.sd-text-#{$color}, .sd-text-#{$color} > p {
color: var(--sd-color-#{$color}) !important;
}
a {
Expand Down