Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8815bce

Browse filesBrowse files
authored
DOC Updates css consistent admonition styling (#19249)
1 parent cd06652 commit 8815bce
Copy full SHA for 8815bce

File tree

1 file changed

+9
-13
lines changed
Filter options
  • doc/themes/scikit-learn-modern/static/css

1 file changed

+9
-13
lines changed

‎doc/themes/scikit-learn-modern/static/css/theme.css

Copy file name to clipboardExpand all lines: doc/themes/scikit-learn-modern/static/css/theme.css
+9-13Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -786,43 +786,39 @@ div.admonition p.admonition-title + p, div.deprecated p {
786786
display: inline;
787787
}
788788

789-
div.admonition, div.deprecated {
789+
div.admonition, div.deprecated,
790+
div.versionchanged, div.versionadded{
791+
margin-top: 0.5rem;
790792
padding: 0.5rem;
791793
border-radius: 0.5rem;
794+
margin-bottom: 0.5rem;
792795
border: 1px solid #ddd;
793-
margin-bottom: 1rem;
794796
}
795797

796798
div.admonition {
797799
background-color: #eee;
798800
}
799801

800-
div.admonition p, div.admonition dl, div.admonition dd {
802+
div.admonition p, div.admonition dl, div.admonition dd,
803+
div.deprecated p, div.versionchanged p, div.versionadded p{
801804
margin-bottom: 0
802805
}
803806

804807
div.deprecated {
805808
color: #b94a48;
806809
background-color: #F3E5E5;
807-
border: 1px solid #eed3d7;
810+
border-color: #eed3d7;
808811
}
809812

810813
div.seealso {
811814
background-color: #FFFBE8;
812-
border: 1px solid #fbeed5;
815+
border-color: #fbeed5;
813816
color: #AF8A4B;
814817
}
815818

816819
div.versionchanged {
817-
margin-top: 0.5rem;
818-
padding: 0.5rem;
819820
background-color: #FFFBE8;
820-
border: 1px solid #fbeed5;
821-
border-radius: 0.5rem;
822-
}
823-
824-
div.versionchanged p {
825-
margin-bottom: 0;
821+
border-color: #fbeed5;
826822
}
827823

828824
dt.label {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.