1bc214671SMarkus Heiser/* -*- coding: utf-8; mode: css -*- 2bc214671SMarkus Heiser * 39abaf979SMarkus Heiser * Sphinx HTML theme customization: read the doc 4*a6fb8b5aSMauro Carvalho Chehab * Please don't add any color definition here, as the theme should 5*a6fb8b5aSMauro Carvalho Chehab * work for both normal and dark modes. 6bc214671SMarkus Heiser */ 7bc214671SMarkus Heiser 844ba0bb4SDarrick J. Wong/* Improve contrast and increase size for easier reading. */ 944ba0bb4SDarrick J. Wong 1044ba0bb4SDarrick J. Wongbody { 1144ba0bb4SDarrick J. Wong font-family: serif; 1244ba0bb4SDarrick J. Wong font-size: 100%; 1344ba0bb4SDarrick J. Wong} 1444ba0bb4SDarrick J. Wong 1544ba0bb4SDarrick J. Wongh1, h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend { 1644ba0bb4SDarrick J. Wong font-family: sans-serif; 1744ba0bb4SDarrick J. Wong} 1844ba0bb4SDarrick J. Wong 1944ba0bb4SDarrick J. Wongdiv[class^="highlight"] pre { 2044ba0bb4SDarrick J. Wong font-family: monospace; 2144ba0bb4SDarrick J. Wong font-size: 100%; 2244ba0bb4SDarrick J. Wong} 2344ba0bb4SDarrick J. Wong 2444ba0bb4SDarrick J. Wong.wy-menu-vertical { 2544ba0bb4SDarrick J. Wong font-family: sans-serif; 2644ba0bb4SDarrick J. Wong} 2744ba0bb4SDarrick J. Wong 2844ba0bb4SDarrick J. Wong.c { 2944ba0bb4SDarrick J. Wong font-style: normal; 3044ba0bb4SDarrick J. Wong} 3144ba0bb4SDarrick J. Wong 3244ba0bb4SDarrick J. Wongp { 3344ba0bb4SDarrick J. Wong font-size: 100%; 3444ba0bb4SDarrick J. Wong} 3544ba0bb4SDarrick J. Wong 364c047789SMarkus Heiser/* Interim: Code-blocks with line nos - lines and line numbers don't line up. 374c047789SMarkus Heiser * see: https://github.com/rtfd/sphinx_rtd_theme/issues/419 384c047789SMarkus Heiser */ 394c047789SMarkus Heiser 404c047789SMarkus Heiserdiv[class^="highlight"] pre { 414c047789SMarkus Heiser line-height: normal; 424c047789SMarkus Heiser} 434c047789SMarkus Heiser.rst-content .highlight > pre { 444c047789SMarkus Heiser line-height: normal; 454c047789SMarkus Heiser} 464c047789SMarkus Heiser 471b1438b5SKees Cook/* Keep fields from being strangely far apart due to inheirited table CSS. */ 481b1438b5SKees Cook.rst-content table.field-list th.field-name { 491b1438b5SKees Cook padding-top: 1px; 501b1438b5SKees Cook padding-bottom: 1px; 511b1438b5SKees Cook} 521b1438b5SKees Cook.rst-content table.field-list td.field-body { 531b1438b5SKees Cook padding-top: 1px; 541b1438b5SKees Cook padding-bottom: 1px; 551b1438b5SKees Cook} 561b1438b5SKees Cook 57bc214671SMarkus Heiser@media screen { 58bc214671SMarkus Heiser 599abaf979SMarkus Heiser /* content column 609abaf979SMarkus Heiser * 619abaf979SMarkus Heiser * RTD theme's default is 800px as max width for the content, but we have 629abaf979SMarkus Heiser * tables with tons of columns, which need the full width of the view-port. 639abaf979SMarkus Heiser */ 649abaf979SMarkus Heiser 659abaf979SMarkus Heiser .wy-nav-content{max-width: none; } 669abaf979SMarkus Heiser 679abaf979SMarkus Heiser /* table: 689abaf979SMarkus Heiser * 699abaf979SMarkus Heiser * - Sequences of whitespace should collapse into a single whitespace. 709abaf979SMarkus Heiser * - make the overflow auto (scrollbar if needed) 719abaf979SMarkus Heiser * - align caption "left" ("center" is unsuitable on vast tables) 729abaf979SMarkus Heiser */ 739abaf979SMarkus Heiser 749abaf979SMarkus Heiser .wy-table-responsive table td { white-space: normal; } 759abaf979SMarkus Heiser .wy-table-responsive { overflow: auto; } 769abaf979SMarkus Heiser .rst-content table.docutils caption { text-align: left; font-size: 100%; } 779abaf979SMarkus Heiser 784eb40f14SMarkus Heiser /* captions: 794eb40f14SMarkus Heiser * 804eb40f14SMarkus Heiser * - captions should have 100% (not 85%) font size 814eb40f14SMarkus Heiser * - hide the permalink symbol as long as link is not hovered 824eb40f14SMarkus Heiser */ 834eb40f14SMarkus Heiser 84ef88f10eSMauro Carvalho Chehab .toc-title { 85ef88f10eSMauro Carvalho Chehab font-size: 150%; 86ef88f10eSMauro Carvalho Chehab font-weight: bold; 87ef88f10eSMauro Carvalho Chehab } 88ef88f10eSMauro Carvalho Chehab 894eb40f14SMarkus Heiser caption, .wy-table caption, .rst-content table.field-list caption { 904eb40f14SMarkus Heiser font-size: 100%; 914eb40f14SMarkus Heiser } 924eb40f14SMarkus Heiser caption a.headerlink { opacity: 0; } 934eb40f14SMarkus Heiser caption a.headerlink:hover { opacity: 1; } 944eb40f14SMarkus Heiser 951414f048SMauro Carvalho Chehab /* Menu selection and keystrokes */ 961414f048SMauro Carvalho Chehab 971414f048SMauro Carvalho Chehab span.menuselection { 981414f048SMauro Carvalho Chehab font-family: "Courier New", Courier, monospace 991414f048SMauro Carvalho Chehab } 1001414f048SMauro Carvalho Chehab 1011414f048SMauro Carvalho Chehab code.kbd, code.kbd span { 1021414f048SMauro Carvalho Chehab font-weight: bold; 1031414f048SMauro Carvalho Chehab font-family: "Courier New", Courier, monospace 1041414f048SMauro Carvalho Chehab } 1051414f048SMauro Carvalho Chehab 106916f677aSMarkus Heiser /* fix bottom margin of lists items */ 107916f677aSMarkus Heiser 108916f677aSMarkus Heiser .rst-content .section ul li:last-child, .rst-content .section ul li p:last-child { 109916f677aSMarkus Heiser margin-bottom: 12px; 110916f677aSMarkus Heiser } 111916f677aSMarkus Heiser 112d1669c82SMarkus Heiser /* inline literal: drop the borderbox, padding and red color */ 1134eb40f14SMarkus Heiser 1144eb40f14SMarkus Heiser code, .rst-content tt, .rst-content code { 1154eb40f14SMarkus Heiser color: inherit; 1164eb40f14SMarkus Heiser border: none; 117d1669c82SMarkus Heiser padding: unset; 1184eb40f14SMarkus Heiser background: inherit; 1194eb40f14SMarkus Heiser font-size: 85%; 1204eb40f14SMarkus Heiser } 1214eb40f14SMarkus Heiser 1224eb40f14SMarkus Heiser .rst-content tt.literal,.rst-content tt.literal,.rst-content code.literal { 1234eb40f14SMarkus Heiser color: inherit; 1244eb40f14SMarkus Heiser } 125bc214671SMarkus Heiser} 126