doc/themes/yunohost-docs/css/custom.css

374 lines
7 KiB
CSS
Raw Normal View History

2020-11-14 11:24:49 +01:00
.off-canvas .learn-sidebar:before {
2021-02-07 18:51:53 +01:00
background: none;
2020-11-14 11:24:49 +01:00
}
#chapter {
max-width: 80%;
}
2021-02-07 22:46:34 +01:00
/* Images helper classes */
img.inline {
display:inline;
margin:5px 15px 5px 5px;
vertical-align: middle;
}
2021-01-09 21:36:35 +01:00
img.center {
display: block;
margin:5px 15px 5px 5px;
margin-left: auto;
margin-right: auto;
}
2021-02-07 22:46:34 +01:00
td img {
margin: 0.2rem auto;
}
/* Figures and caption */
2021-02-07 12:19:28 +01:00
figure img {
margin: auto;
}
figure figcaption {
font-style: italic;
}
2021-02-07 22:46:34 +01:00
/* 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 */
2021-02-07 14:03:32 +01:00
.flex-container {
display: flex;
justify-content: space-around;
2021-02-07 18:32:06 +01:00
flex-wrap: wrap;
2021-02-07 14:03:32 +01:00
}
.flex-child {
display: inline-flex;
text-align: center;
2021-02-07 14:54:25 +01:00
}
2021-02-07 14:03:32 +01:00
.nomargin * {
margin: 0px auto;
}
2021-02-07 22:46:34 +01:00
/* 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;
}
2021-02-07 03:00:15 +01:00
2021-02-07 22:46:34 +01:00
/* Fonts and headings */
2021-02-07 03:00:15 +01:00
h1, h2, h3, h4, h5, h6 {
2021-02-07 03:01:59 +01:00
font-family: "Source Sans Pro", "Metropolis", "Helvetica Neue", sans-serif;
2021-02-07 22:46:34 +01:00
margin-top: 1rem;
margin-bottom: 1rem;
2021-02-07 03:00:15 +01:00
}
.simplebar-content h5 .fa {
font-size: 0.75em;
margin-right: 0.2em;
margin-left: 0.4em;
}
2021-02-08 03:59:50 +01:00
.simplebar-content h5 {
letter-spacing: 0em;
border-top: 1px solid #ddd;
padding: 0.8em 0;
margin: 0;
}
2021-02-07 03:00:15 +01:00
@font-face {
2021-02-07 03:01:59 +01:00
font-family: 'Source Sans Pro';
2021-02-07 03:00:15 +01:00
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;
}
2021-02-07 12:01:50 +01:00
2021-02-07 22:46:34 +01:00
/* Give a gray background to the white logo*/
2021-02-07 12:01:50 +01:00
img#whitelogo {
background-color: gray;
padding: 10px;
}
2021-02-07 17:27:39 +01:00
2021-02-07 18:51:53 +01:00
/* Sidebar */
#sidebar-id {
2021-02-07 19:35:16 +01:00
background-color: #fffefe;
2021-02-08 03:59:50 +01:00
border-right: 0.05rem solid #ddd;
2021-02-07 18:51:53 +01:00
}
body .off-canvas .learn-sidebar a {
color: #364149;
}
body .off-canvas .learn-sidebar .learn-nav ul li.active > a {
color: black;
2021-02-07 21:36:38 +01:00
background-color: transparent;
2021-02-07 18:51:53 +01:00
}
2021-02-07 19:28:29 +01:00
body .off-canvas .learn-sidebar .learn-brand #logo path {
2021-02-07 19:29:24 +01:00
fill: black!important;
2021-02-07 19:28:29 +01:00
}
2021-02-07 19:35:16 +01:00
2021-02-08 03:59:50 +01:00
body #top-bar {
background: none;
border-bottom: none;
}
body #top-bar #navigation {
width: auto;
}
body #top-bar #navigation > a {
width: 3em;
border-left: none;
}
2021-02-07 19:35:16 +01:00
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;
2021-02-07 19:39:33 +01:00
}
body .off-canvas .learn-sidebar .searchbox ::placeholder {
color: rgba(68, 68, 68, 0.8);
}
2021-02-08 03:59:50 +01:00
body .off-canvas .learn-sidebar .learn-nav ul.searched a {
color: black;
}
body .off-canvas .learn-sidebar .learn-nav ul.searched .search-match a:hover, .off-canvas .learn-sidebar .learn-nav ul.searched .search-match a {
color: blueviolet;
}
2021-02-07 19:39:33 +01:00
body .off-canvas .learn-sidebar a:hover {
color: #37419a;
2021-02-07 19:39:33 +01:00
}
2021-02-07 21:36:38 +01:00
body #header .off-canvas .learn-sidebar a:hover {
color: black;
text-decoration: underline black;
}
2021-02-08 03:59:50 +01:00
body .off-canvas .learn-sidebar .learn-nav ul .parent ul {
margin-left: 0.5rem;
}
body .off-canvas .learn-sidebar .learn-nav ul li a > span > b {
color: black;
}
2021-02-08 04:02:29 +01:00
body .off-canvas .learn-sidebar .learn-nav ul.topics > li.active, body .off-canvas .learn-sidebar .learn-nav ul.topics > li.parent {
2021-02-08 03:59:50 +01:00
background-color: rgba(0, 0, 0, 0.1);
}
body .off-canvas .learn-sidebar .learn-nav ul li ul li.active > a {
2021-02-08 03:59:50 +01:00
background-color: rgba(0, 0, 0, 0.1);
border-left: 4px solid mediumturquoise;
}
2021-02-07 22:28:56 +01:00
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);
}
2021-02-07 22:07:47 +01:00
body .off-canvas .learn-sidebar .searchbox input {
color: rgb(78, 78, 78);
}
body #top-bar #breadcrumbs > span, body #top-bar .progress {
display: none;
}
/*
###############################################################################
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;
}
2021-02-08 03:09:43 +01:00
/*=================================================
App catalog
=================================================*/
#filter-app-icon {
padding: 6px 12px;
margin-right: -2px;
background-color: #f0f0f0;
}
#filter-app-cards, #app-cards-list {
width:100%;
}
#app-cards-list:after {
content:'';
display:block;
clear: both;
}
#app-cards-list .app-card {
margin-bottom:30px;
width:28%;
float:left;
min-height: 1px;
margin-right: 15px;
margin-left: 15px;
border-radius: 3px;
position: relative;
height: 230px;
}
#app-cards-list .app-title {
margin-top: 0;
margin-bottom: 5px;
font-size: 1.2em;
font-weight: 700;
line-height: 1.1;
color: black;
padding: 1rem 1rem;
padding-bottom: 0;
}
#app-cards-list .app-title .label {
font-size: 0.5em;
display: inline-block;
vertical-align: middle;
padding: 0.5em 0.6em;
padding-bottom: 0.3em;
}
#app-cards-list .app-descr {
height:120px;
overflow: hidden;
padding: 0.2rem 1rem;
}
#app-cards-list .app-footer {
width:100%;
position: absolute;
bottom: 0;
}
#app-cards-list .app-buttons {
border-top: 0.05rem solid #ddd;
width:100%;
}
#app-cards-list .app-buttons > .btn {
border: 0;
font-size: 0.9em;
line-height: 1.58;
}
#app-cards-list .app-buttons > .btn-default {
color: #222;
}
#app-cards-list .app-buttons > .btn:first-child {
border-right: 0.1rem solid #ddd;
}