Last active
November 8, 2021 22:04
-
-
Save r-souza/0cb0d935af041a32e4b39e3ddcd5d123 to your computer and use it in GitHub Desktop.
Better typography for GLPI Knowledge Base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#kbanswer { | |
color: rgba(0,0,0,.80); | |
} | |
#kbanswer p { | |
line-height: 1.58; | |
font-size: large; | |
text-align: justify; | |
letter-spacing: -0.003em !important; | |
} | |
#kbanswer strong{ | |
font-weight: bold; | |
} | |
#kbanswer a { | |
font-size: large; | |
} | |
/** | |
* Subject - Size and spacing | |
*/ | |
.tab_cadre_fixe > tbody:nth-child(1) > tr:nth-child(2) > td:nth-child(1) > h2 { | |
margin-bottom: 10px; | |
} | |
.tab_cadre_fixe > tbody:nth-child(1) > tr:nth-child(2) > td:nth-child(1) { | |
font-size: 2.0em !important; | |
} | |
.tab_cadre_fixe > tbody:nth-child(1) > tr:nth-child(3) > td:nth-child(1) > h2:nth-child(1) { | |
display: none; | |
} | |
/* Based on https://stackoverflow.com/a/48694906 */ | |
#kbanswer code { | |
background: #f4f4f4; | |
border: 1px solid #ddd; | |
border-left: 3px solid #f36d33; | |
border-radius: 5px; | |
color: #666; | |
page-break-inside: avoid; | |
font-family: monospace; | |
font-size: 15px; | |
max-width: 100%; | |
overflow: auto; | |
padding: 01em 1.5em; | |
display: block; | |
word-wrap: break-word; | |
} | |
#kbanswer h1 { | |
font-size: 2.5em !important;; | |
} | |
#kbanswer h2 { | |
font-size: 2.0em !important;; | |
} | |
#kbanswer h3 { | |
font-size: 1.8em !important;; | |
} | |
#kbanswer h4 { | |
font-size: 1.5em !important; | |
} | |
#kbanswer ol li, #kbanswer ul li { | |
font-size: large; | |
margin-left: 25px; | |
line-height: 1.5; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using the Fusion Inventory plugin and adding the CSS in UI customization break a lot of the forms...