doc/themes/yunohost-docs/css/custom.css
2021-02-08 01:15:58 +01:00

263 lines
4.8 KiB
CSS

.off-canvas .learn-sidebar:before {
background: none;
}
.highlightable h5:first-of-type {
margin-top: 2rem;
}
.highlightable h5 {
margin-top: 1rem;
color: #333;
}
#chapter {
max-width: 80%;
}
/* Images helper classes */
img.inline {
display:inline;
margin:5px 15px 5px 5px;
vertical-align: middle;
}
img.center {
display: block;
margin:5px 15px 5px 5px;
margin-left: auto;
margin-right: auto;
}
td img {
margin: 0.2rem auto;
}
/* Figures and caption */
figure img {
margin: auto;
}
figure figcaption {
font-style: italic;
}
/* List spacing */
ul li, ol li {
margin-top: 0;
}
ul, ol {
margin-bottom: 0;
}
li p {
margin: inherit;
}
/* Paragraphs */
p {
margin: 0 0 1rem;
}
.notices p {
margin: 0 0 0 0.5rem;
}
/* Flex */
.flex-container {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
}
.flex-child {
display: inline-flex;
text-align: center;
}
.nomargin * {
margin: 0px auto;
}
/* Breadcrums */
#top-bar #breadcrumbs > span span, #top-bar #breadcrumbs > a span {
padding: 0 !important;
}
#top-bar #breadcrumbs > span, #top-bar #breadcrumbs > a {
padding: 0 !important;
}
#top-bar #breadcrumbs > a {
padding: 0;
}
/* Fonts and headings */
h1, h2, h3, h4, h5, h6 {
font-family: "Source Sans Pro", "Metropolis", "Helvetica Neue", sans-serif;
margin-top: 1rem;
margin-bottom: 1rem;
}
.simplebar-content h5 .fa {
font-size: 0.75em;
margin-right: 0.2em;
margin-left: 0.4em;
}
@font-face {
font-family: 'Source Sans Pro';
src: url('../fonts/SourceSansPro-Bold-webfont.eot');
src: url('../fonts/SourceSansPro-Bold-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/SourceSansPro-Bold-webfont.woff') format('woff'),
url('../fonts/SourceSansPro-Bold-webfont.ttf') format('truetype'),
url('../fonts/SourceSansPro-Bold-webfont.svg#fonts/SourceSansProBold') format('svg');
font-weight: 700;
font-style: normal;
}
/* Give a gray background to the white logo*/
img#whitelogo {
background-color: gray;
padding: 10px;
}
/* Hide home page in menu */
.simplebar-content h5:first-child {
display: none;
}
/* Sidebar */
#sidebar-id {
background-color: #fffefe;
}
body .off-canvas .learn-sidebar a {
color: #364149;
}
body .off-canvas .learn-sidebar .learn-nav ul li.active > a {
color: black;
background-color: transparent;
}
body .off-canvas .learn-sidebar .learn-brand #logo path {
fill: black!important;
}
body #top-bar #breadcrumbs > span span, #top-bar #breadcrumbs > a span {
font-size: 0.7rem;
}
body #top-bar a:visited {
color: #3e7694;
}
body #top-bar a:hover {
text-decoration: underline;
}
body .off-canvas .learn-sidebar .searchbox ::placeholder {
color: rgba(68, 68, 68, 0.8);
}
body .off-canvas .learn-sidebar a:hover {
color: #37419a;
}
body #header .off-canvas .learn-sidebar a:hover {
color: black;
text-decoration: underline black;
}
body .off-canvas .learn-sidebar .learn-nav ul li a > span > b {
color: black;
}
body .off-canvas .learn-sidebar .learn-nav ul li ul li.active > a {
background-color: #7f7f7f3d;
border-left: black 2px solid;
}
body .off-canvas .learn-sidebar .learn-nav .read-icon, body .off-canvas .learn-sidebar .searchbox, body .off-canvas .learn-sidebar .search-options .version-chooser select {
color: rgba(0, 0, 0, 0.6);
}
body .off-canvas .learn-sidebar .searchbox input {
color: rgb(78, 78, 78);
}
/*
###############################################################################
Style sheet for the cards
###############################################################################
*/
.hardware.active {
box-shadow: 0 0 15px #bbb;
border-radius: 5px;
}
.hardware-image #cards-list:after {
content:'';
display:block;
clear: both;
}
.hardware-image .card {
margin-bottom:20px;
width:270px;
float:left;
min-height: 1px;
margin-right: 10px;
margin-left: 10px;
}
.hardware-image .card .panel-body > h3 {
margin-top:0;
margin-bottom:5px;
font-size:1.2em;
}
.hardware-image .card-desc {
height:135px;
overflow: hidden;
}
.hardware-image .card .btn-group {
width:100%;
margin-left: 0px;
}
.hardware-image .card > .btn-group > .btn{
border-bottom:0;
}
.hardware-image .card > .btn-group {
border-left:0;
border-top-left-radius:0;
border-top-right-radius:0;
margin-left: 0px;
}
.hardware-image .card-comment {
font-size: 0.8em;
margin-top:-5px;
}
.hardware-image .card > .annotations {
text-align:center;
font-size:small;
}
.hardware-image .card img {
margin: 1rem auto;
}
.hardware-image .btn-group .btn.btn-info {
color: #ffffff;
background-color: #5bc0de;
border-color: #46b8da;
}
.hardware-image .btn-group .btn.btn-info:hover, .btn.btn-info:focus {
color: #ffffff;
background-color: #39b3d7;
border-color: #269abc;
}