Skip to content

Commit

Permalink
Merge pull request #46 from plone/menuselection-guilabel-override
Browse files Browse the repository at this point in the history
Override styles for `menuselection` and `guilabel` from PyData Sphinx…
  • Loading branch information
stevepiercy authored Dec 5, 2024
2 parents dd3c3fb + e95d89c commit 57fc6bb
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ build:
# If there are no changes (git diff exits with 0) we force the command to return with 183.
# This is a special exit code on Read the Docs that will cancel the build immediately.
- |
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- docs/ .readthedocs.yaml requirements.txt requirements-docs.txt;
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- docs/ .readthedocs.yaml \
requirements.txt requirements-docs.txt \
src/plone_sphinx_theme/theme/plone-sphinx-theme/static/styles/plone-sphinx-theme.css \
src/plone_sphinx_theme/theme/plone-sphinx-theme/static/scripts/plone-sphinx-theme.js;
then
exit 183;
fi
Expand Down
1 change: 1 addition & 0 deletions news/46.documentation
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Override styles for `menuselection` and `guilabel` from PyData Sphinx Theme. @stevepiercy
1 change: 1 addition & 0 deletions news/46.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Build the pull request preview for CSS and JavaScript changes. @stevepiercy
11 changes: 11 additions & 0 deletions src/plone_sphinx_theme/assets/styles/content/_spans.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Apply the same style to both spans, overriding PyData Sphinx Theme
span.guilabel,
span.menuselection {
border: 1px solid var(--pst-color-info);
font-size: 1em;
font-weight: 700;
border-radius: 0.25rem;
padding: 0.1rem 0.4rem;
margin: auto 0.1rem;
background-color: var(--pst-color-info-bg);
}
1 change: 1 addition & 0 deletions src/plone_sphinx_theme/assets/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

@use "content/code";
@use "content/lists";
@use "content/spans";

@use "extensions/todo";
@use "extensions/video";

Large diffs are not rendered by default.

0 comments on commit 57fc6bb

Please sign in to comment.