Skip to content

Commit c79d0ba

Browse files
authored
Merge pull request #30121 from adellape/admonition_tweaks
2 parents 7fc22f6 + d270bc6 commit c79d0ba

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

_stylesheets/docs.css

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,8 +868,29 @@ table > tbody > tr > td > div > div > p > code {
868868
border: 0;
869869
background: none;
870870
width: 100%;
871+
}
872+
.admonitionblock.note {
873+
background: #4e9fde15;
874+
border-left: solid #4e9fde;
875+
}
876+
.admonitionblock.important {
877+
background: #ee210015;
878+
border-left: solid #ee2100;
879+
}
880+
.admonitionblock.warning {
881+
background: #ec7a0915;
882+
border-left: solid #ec7a09;
883+
}
884+
.admonitionblock.caution {
885+
background: #ec7a0915;
886+
border-left: solid #ec7a09;
887+
}
888+
.admonitionblock.tip {
889+
background: #32859615;
890+
border-left: solid #328596;
871891
}
872892
.admonitionblock > table td.icon {
893+
vertical-align: top;
873894
text-align: center;
874895
width: 80px;
875896
}
@@ -884,6 +905,37 @@ table > tbody > tr > td > div > div > p > code {
884905
padding-left: 0;
885906
padding-right: 1.25em;
886907
color: #6e6e6e;
908+
font-size: .85rem;
909+
}
910+
.admonitionblock.note td.content:before {
911+
content: "NOTE\a";
912+
white-space: pre;
913+
color: #404040;
914+
font-weight: bold;
915+
}
916+
.admonitionblock.important td.content:before {
917+
content: "IMPORTANT\a";
918+
white-space: pre;
919+
color: #404040;
920+
font-weight: bold;
921+
}
922+
.admonitionblock.warning td.content:before {
923+
content: "WARNING\a";
924+
white-space: pre;
925+
color: #404040;
926+
font-weight: bold;
927+
}
928+
.admonitionblock.tip td.content:before {
929+
content: "TIP\a";
930+
white-space: pre;
931+
color: #404040;
932+
font-weight: bold;
933+
}
934+
.admonitionblock.caution td.content:before {
935+
content: "CAUTION\a";
936+
white-space: pre;
937+
color: #404040;
938+
font-weight: bold;
887939
}
888940
.admonitionblock > table td.content > :last-child > :last-child {
889941
margin-bottom: 0;
@@ -1256,6 +1308,10 @@ table > tbody > tr > td > div > div > p > code {
12561308
line-height: 1.8;
12571309
margin: 0.5em 0;
12581310
}
1311+
.colist .admonitionblock {
1312+
margin-top: 0.5em;
1313+
padding-top: 0.75em;
1314+
}
12591315
.qanda > ol > li > p > em:only-child {
12601316
color: #1d4b8f;
12611317
}
@@ -1522,6 +1578,7 @@ table > tbody > tr > td > div > div > p > code {
15221578
.admonitionblock td.icon [class^="fa icon-"] {
15231579
font-size: 2.5em;
15241580
cursor: default;
1581+
padding-top: .125em;
15251582
}
15261583
.admonitionblock td.icon .icon-note:before {
15271584
content: "\f05a";

0 commit comments

Comments
 (0)