summaryrefslogtreecommitdiff
path: root/docs/_static/css/custom.css
diff options
context:
space:
mode:
authorrebortg <github@ghlr.de>2020-06-30 21:49:03 +0200
committerrebortg <github@ghlr.de>2020-06-30 21:49:03 +0200
commitc5f06930d89bb37718235b9669360d1287bb16d8 (patch)
treee0e23d2e7c43432a70f4c5e888e24a24f4cf6df1 /docs/_static/css/custom.css
parent4e8c17bf5891ad565ce94edf4e4a8bf339a7b532 (diff)
downloadvyos-documentation-c5f06930d89bb37718235b9669360d1287bb16d8.tar.gz
vyos-documentation-c5f06930d89bb37718235b9669360d1287bb16d8.zip
Sphinx: backport cfgcmd and opcmd directives to crux
Diffstat (limited to 'docs/_static/css/custom.css')
-rw-r--r--docs/_static/css/custom.css61
1 files changed, 61 insertions, 0 deletions
diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css
index a8b94c6e..7faf7b7f 100644
--- a/docs/_static/css/custom.css
+++ b/docs/_static/css/custom.css
@@ -1,3 +1,64 @@
+span.opcmd,
+span.cfgcmd {
+ font-weight: bold;
+ background-color: transparent;
+ border: none;
+ padding: 0;
+ font-size: 100% !important;
+ max-width: 100%;
+ color: #000;
+ font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;
+}
+
+.opcmd-heading,
+.cfgcmd-heading {
+ display: inline-block;
+ margin: 6px 0;
+ font-size: 90%;
+ line-height: normal;
+ background: #e7f2fa;
+ color: #2980B9;
+ border-top: solid 3px #6ab0de;
+ border-top-width: 3px;
+ border-top-style: solid;
+ border-top-color: rgb(106, 176, 222);
+ padding: 6px;
+}
+
+.opcmd-body,
+.cfgcmd-body {
+ margin: 6px 0;
+ padding-left: 12px;
+}
+
+
+
+.cfgcmd-heading .cmdlink:after,
+.opcmd-heading .cmdlink:after {
+ content: "";
+ font-family: FontAwesome
+}
+
+
+.cfgcmd-heading:not(:hover) .cmdlink,
+.opcmd-heading:not(:hover) .cmdlink {
+ display: none;
+}
+
+
+a.cmdlink {
+ font-size: 80%;
+ margin-left: 6px;
+}
+
+a.cmdlink span{
+ color: #2980B9;
+}
+
+a.cmdlink span:hover{
+ color: #3091d1;
+}
+
.wy-nav-content {
max-width : none;
}