-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from plone/versionremoved
Add support for versionremoved directive
- Loading branch information
Showing
11 changed files
with
67 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add support for `versionremoved` directive. @stevepiercy |
21 changes: 4 additions & 17 deletions
21
src/plone_sphinx_theme/assets/styles/abstracts/_mixins.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 0 additions & 69 deletions
69
src/plone_sphinx_theme/assets/styles/abstracts/_variables.scss
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
src/plone_sphinx_theme/assets/styles/components/_versionmodified.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@import "../abstracts/mixins"; | ||
@import "../variables/layout"; | ||
@import "../variables/versionmodified"; | ||
|
||
div.versionremoved { | ||
vertical-align: middle; | ||
margin: 1.5625em auto; | ||
padding: 0 0.6rem; | ||
overflow: hidden; | ||
|
||
/* break-inside has replaced page-break-inside and is widely usable since 2019 */ | ||
page-break-inside: avoid; | ||
break-inside: avoid; | ||
border-left: 0.2rem solid; | ||
border-color: var(--pst-color-info); | ||
border-radius: $admonition-border-radius; | ||
background-color: var(--pst-color-on-background); | ||
|
||
@include box-shadow; | ||
|
||
position: relative; | ||
|
||
> p { | ||
margin-bottom: 0.6rem; | ||
margin-top: 0.6rem; | ||
} | ||
} | ||
|
||
div.versionremoved { | ||
border-color: var(--pst-color-danger); | ||
background-color: var(--pst-color-danger-bg); | ||
} | ||
|
||
span.versionmodified.removed { | ||
&::before { | ||
color: var(--pst-color-danger); | ||
content: var(--pst-icon-versionmodified-removed); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/* Snippets from src/pydata_sphinx_theme/assets/styles/variables/_layout.scss */ | ||
/******************************************************************************* | ||
* UI shaping and padding | ||
*/ | ||
$admonition-border-radius: 0.25rem; |
7 changes: 7 additions & 0 deletions
7
src/plone_sphinx_theme/assets/styles/variables/_versionmodified.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* Snippets from src/pydata_sphinx_theme/assets/styles/variables/_versionmodified.scss */ | ||
html { | ||
/***************************************************************************** | ||
* versionmodified | ||
**/ | ||
--pst-icon-versionmodified-removed: var(--pst-icon-exclamation-circle); | ||
} |
2 changes: 1 addition & 1 deletion
2
src/plone_sphinx_theme/theme/plone-sphinx-theme/static/styles/plone-sphinx-theme.css
Large diffs are not rendered by default.
Oops, something went wrong.