Skip to content

Commit

Permalink
docs(sass): Update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Dec 1, 2024
1 parent 84a4416 commit e932855
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/_sass/demo.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@use "bulma/sass/utilities/extends";

.my-control {
.sass-demo-bulma-content {
@extend %control;
background-color: purple;
color: white;
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/fontawesome.min.css",
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/solid.min.css",
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/brands.min.css",
"css/demo.css",
]
html_theme_options = {
"footer_icons": [
Expand Down
17 changes: 16 additions & 1 deletion docs/extensions/sass/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,22 @@ There are not configuration options.
Demo
====

.. todo:: Add example.
This content is used generated CSS from SASS.

.. code:: rst
.. container:: sass-demo-bulma-content
This paragraph is colored by "purplel".
.. literalinclude:: ../../_sass/demo.scss
:caption: docs/_sass/demo.scss

Result:

.. container:: sass-demo-bulma-content

This paragraph is colored by "purplel".

Refs
====
Expand Down

0 comments on commit e932855

Please sign in to comment.