1 /* -*- coding: utf-8; mode: css -*- 1 /* -*- coding: utf-8; mode: css -*- 2 * 2 * 3 * Sphinx HTML theme customization: read the d 3 * Sphinx HTML theme customization: read the doc 4 * Please don't add any color definition here, !! 4 * 5 * work for both normal and dark modes. << 6 */ 5 */ 7 6 8 /* Improve contrast and increase size for easi << 9 << 10 body { << 11 font-family: serif; << 12 font-size: 100%; << 13 } << 14 << 15 h1, h2, .rst-content .toctree-wrapper p.captio << 16 font-family: sans-serif; << 17 } << 18 << 19 div[class^="highlight"] pre { << 20 font-family: monospace; << 21 font-size: 100%; << 22 } << 23 << 24 .wy-menu-vertical { << 25 font-family: sans-serif; << 26 } << 27 << 28 .c { << 29 font-style: normal; << 30 } << 31 << 32 p { << 33 font-size: 100%; << 34 } << 35 << 36 /* Interim: Code-blocks with line nos - lines 7 /* Interim: Code-blocks with line nos - lines and line numbers don't line up. 37 * see: https://github.com/rtfd/sphinx_rtd_the 8 * see: https://github.com/rtfd/sphinx_rtd_theme/issues/419 38 */ 9 */ 39 10 40 div[class^="highlight"] pre { 11 div[class^="highlight"] pre { 41 line-height: normal; 12 line-height: normal; 42 } 13 } 43 .rst-content .highlight > pre { 14 .rst-content .highlight > pre { 44 line-height: normal; 15 line-height: normal; 45 } 16 } 46 17 47 /* Keep fields from being strangely far apart << 48 .rst-content table.field-list th.field-name { << 49 padding-top: 1px; << 50 padding-bottom: 1px; << 51 } << 52 .rst-content table.field-list td.field-body { << 53 padding-top: 1px; << 54 padding-bottom: 1px; << 55 } << 56 << 57 @media screen { 18 @media screen { 58 19 59 /* content column 20 /* content column 60 * 21 * 61 * RTD theme's default is 800px as max wid 22 * RTD theme's default is 800px as max width for the content, but we have 62 * tables with tons of columns, which need 23 * tables with tons of columns, which need the full width of the view-port. 63 */ 24 */ 64 25 65 .wy-nav-content{max-width: none; } 26 .wy-nav-content{max-width: none; } 66 27 67 /* table: 28 /* table: 68 * 29 * 69 * - Sequences of whitespace should coll 30 * - Sequences of whitespace should collapse into a single whitespace. 70 * - make the overflow auto (scrollbar i 31 * - make the overflow auto (scrollbar if needed) 71 * - align caption "left" ("center" is u 32 * - align caption "left" ("center" is unsuitable on vast tables) 72 */ 33 */ 73 34 74 .wy-table-responsive table td { white-spac 35 .wy-table-responsive table td { white-space: normal; } 75 .wy-table-responsive { overflow: auto; } 36 .wy-table-responsive { overflow: auto; } 76 .rst-content table.docutils caption { text 37 .rst-content table.docutils caption { text-align: left; font-size: 100%; } 77 38 78 /* captions: 39 /* captions: 79 * 40 * 80 * - captions should have 100% (not 85%) 41 * - captions should have 100% (not 85%) font size 81 * - hide the permalink symbol as long a 42 * - hide the permalink symbol as long as link is not hovered 82 */ 43 */ 83 44 >> 45 .toc-title { >> 46 font-size: 150%; >> 47 font-weight: bold; >> 48 } >> 49 84 caption, .wy-table caption, .rst-content t 50 caption, .wy-table caption, .rst-content table.field-list caption { 85 font-size: 100%; 51 font-size: 100%; 86 } 52 } 87 caption a.headerlink { opacity: 0; } 53 caption a.headerlink { opacity: 0; } 88 caption a.headerlink:hover { opacity: 1; } 54 caption a.headerlink:hover { opacity: 1; } 89 55 90 /* Menu selection and keystrokes */ 56 /* Menu selection and keystrokes */ 91 57 92 span.menuselection { 58 span.menuselection { >> 59 color: blue; 93 font-family: "Courier New", Courier, m 60 font-family: "Courier New", Courier, monospace 94 } 61 } 95 62 96 code.kbd, code.kbd span { 63 code.kbd, code.kbd span { >> 64 color: white; >> 65 background-color: darkblue; 97 font-weight: bold; 66 font-weight: bold; 98 font-family: "Courier New", Courier, m 67 font-family: "Courier New", Courier, monospace 99 } 68 } 100 69 101 /* fix bottom margin of lists items */ 70 /* fix bottom margin of lists items */ 102 71 103 .rst-content .section ul li:last-child, .r 72 .rst-content .section ul li:last-child, .rst-content .section ul li p:last-child { 104 margin-bottom: 12px; 73 margin-bottom: 12px; 105 } 74 } 106 75 107 /* inline literal: drop the borderbox, pad 76 /* inline literal: drop the borderbox, padding and red color */ 108 77 109 code, .rst-content tt, .rst-content code { 78 code, .rst-content tt, .rst-content code { 110 color: inherit; 79 color: inherit; 111 border: none; 80 border: none; 112 padding: unset; 81 padding: unset; 113 background: inherit; 82 background: inherit; 114 font-size: 85%; 83 font-size: 85%; 115 } 84 } 116 85 117 .rst-content tt.literal,.rst-content tt.li 86 .rst-content tt.literal,.rst-content tt.literal,.rst-content code.literal { 118 color: inherit; 87 color: inherit; 119 } 88 } 120 } 89 }
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.