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

709 lines
16 KiB
CSS

/*########################################
##########################################
PLEASE DO NOT MODIFY THE CSS FILE
IF YOU WANT TO CHANGE THE CSS, DO IT IN THE
SCSS FILES AND "COMPILE" THEM:
https://sass-lang.com/guide
##########################################
########################################*/
body.light-mode {
background-color: white;
/*=================================================
Side Bar
=================================================*/
/*=================================================
App catalog
=================================================*/
/*=================================================
Hardware image
=================================================*/
/*=================================================
Other
=================================================*/
}
body.light-mode ::selection {
background-color: #dddddd;
}
body.light-mode #body-wrapper,
body.light-mode #page-wrapper {
background-color: white;
color: #171b21;
}
body.light-mode a {
color: #0070d3;
}
body.light-mode .card,
body.light-mode #footer,
body.light-mode .dropmenu ul ul {
background-color: #f0f0f0 !important;
}
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode #header a {
color: #242931;
}
body.light-mode .label.label-primary {
color: #242931;
background-color: #0070d3;
}
body.light-mode .label.label-secondary {
color: #171b21;
background-color: #dddddd;
}
body.light-mode .pagination li {
border-color: #dddddd;
background: #f0f0f0;
}
body.light-mode #sidebar-id {
background: white;
}
body.light-mode .menu,
body.light-mode .learn-brand,
body.light-mode .learn-nav {
color: #111418;
}
body.light-mode .menu .menu-item > a:focus,
body.light-mode .menu .menu-item > a:hover,
body.light-mode #top-bar #navigation > a:hover {
background: #f0f0f0;
}
body.light-mode #sidebar ul.related-pages li {
border-bottom-color: #dddddd;
}
body.light-mode .form-input,
body.light-mode .search-input,
body.light-mode [data-grav-field=array] input,
body.light-mode [data-grav-field=array] textarea {
background: #f0f0f0;
}
body.light-mode .off-canvas .learn-sidebar .learn-brand #logo path {
fill: #171b21 !important;
}
body.light-mode .simplebar-content h5 {
border-top-color: #dddddd;
}
body.light-mode .off-canvas #sidebar-id {
border-right: 0.05rem solid #dddddd;
}
body.light-mode .off-canvas .learn-sidebar .learn-nav ul.searched a,
body.light-mode .off-canvas .learn-sidebar .searchbox input {
color: #171b21;
}
body.light-mode .off-canvas .learn-sidebar .learn-nav ul li.active > a,
body.light-mode .off-canvas .learn-sidebar .searchbox ::placeholder {
color: #111418;
background-color: transparent;
}
body.light-mode .off-canvas .learn-sidebar .learn-nav ul.searched .search-match a:hover,
body.light-mode .off-canvas .learn-sidebar .learn-nav ul.searched .search-match a {
color: #0070d3;
}
body.light-mode .off-canvas .learn-sidebar .learn-nav ul.topics > li.active,
body.light-mode .off-canvas .learn-sidebar .learn-nav ul.topics > li.parent {
background-color: rgba(0, 0, 0, 0.1);
}
body.light-mode .off-canvas .learn-sidebar .learn-nav .read-icon,
body.light-mode .off-canvas .learn-sidebar .searchbox {
color: #171b21;
}
body.light-mode .off-canvas .learn-sidebar .search-options .version-chooser select {
color: #171b21;
}
body.light-mode .off-canvas .learn-sidebar a,
body.light-mode .off-canvas .learn-sidebar .learn-nav ul li a,
body.light-mode .off-canvas .learn-sidebar .learn-nav ul li a > i,
body.light-mode .off-canvas .learn-sidebar .learn-nav ul li a > span > b {
color: #171b21;
}
body.light-mode .off-canvas .learn-sidebar a:hover {
color: #111418;
}
body.light-mode #filter-app-icon,
body.light-mode #filter-app-cards {
color: #171b21;
background-color: #f0f0f0;
}
body.light-mode #app-cards-list .app-title {
color: #242931;
}
body.light-mode #app-cards-list .app-buttons {
border-top: 0.05rem solid #f0f0f0;
}
body.light-mode #app-cards-list .app-buttons > .btn-default {
color: #242931;
background-color: #dddddd;
}
body.light-mode #app-cards-list .app-buttons > .btn:first-child {
border-right: 0.1rem solid #f0f0f0;
}
body.light-mode #app-cards-list .app-card {
border-color: #dddddd;
}
body.light-mode #app-cards-list .label {
color: black;
}
body.light-mode .hardware-image .card {
background-color: white !important;
border-color: #dddddd;
}
body.light-mode .hardware-image .btn-group .btn.btn-info {
color: #f0f0f0;
}
body.light-mode .hardware-image .btn-group .btn.btn-info:hover,
body.light-mode .btn.btn-info:focus {
color: #f0f0f0;
}
body.light-mode table tbody tr:nth-of-type(2n + 1) {
background: #f0f0f0;
}
body.light-mode table td,
body.light-mode table th {
border-bottom-color: #dddddd;
}
body.light-mode .danger {
background-color: #f2dede;
}
body.light-mode .warning {
background-color: #fcf8e3;
}
body.light-mode .success {
background-color: #dff0d8;
}
body.light-mode .page-toc {
background-color: #f0f0f0;
}
body.light-mode .page-toc li,
body.light-mode .page-toc li > a {
color: #242931;
}
/*=================================================
Light mode specific
=================================================*/
body.light-mode {
/* Give a gray background to the white logo*/
}
body.light-mode img#whitelogo {
background-color: gray;
padding: 10px;
}
/*!
* Dark Mode Theme
*
* Inspired by Louis Charette
* https://github.com/lcharette/website/blob/cc855a6eb29693613e5e4e1d589a17ba7faf4aa9/themes/quark-custom/css/darkMode.scss
*/
body.dark-mode {
background-color: #171b21;
/*=================================================
Side Bar
=================================================*/
/*=================================================
App catalog
=================================================*/
/*=================================================
Hardware image
=================================================*/
/*=================================================
Other
=================================================*/
}
body.dark-mode ::selection {
background-color: #3f4755;
}
body.dark-mode #body-wrapper,
body.dark-mode #page-wrapper {
background-color: #171b21;
color: #e8e9eb;
}
body.dark-mode a {
color: #72b6ec;
}
body.dark-mode code {
background: #3a3a3a;
color: #ece5ad;
}
body.dark-mode .card,
body.dark-mode #footer,
body.dark-mode .dropmenu ul ul {
background-color: #111418 !important;
}
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode #header a {
color: white;
}
body.dark-mode .label.label-primary {
color: white;
background-color: #72b6ec;
}
body.dark-mode .label.label-secondary {
color: #e8e9eb;
background-color: #3f4755;
}
body.dark-mode .pagination li {
border-color: #3f4755;
background: #111418;
}
body.dark-mode #sidebar-id {
background: #171b21;
}
body.dark-mode .menu,
body.dark-mode .learn-brand,
body.dark-mode .learn-nav {
color: #a5a9af;
}
body.dark-mode .menu .menu-item > a:focus,
body.dark-mode .menu .menu-item > a:hover,
body.dark-mode #top-bar #navigation > a:hover {
background: #111418;
}
body.dark-mode #sidebar ul.related-pages li {
border-bottom-color: #3f4755;
}
body.dark-mode .form-input,
body.dark-mode .search-input,
body.dark-mode [data-grav-field=array] input,
body.dark-mode [data-grav-field=array] textarea {
background: #111418;
}
body.dark-mode .off-canvas .learn-sidebar .learn-brand #logo path {
fill: #e8e9eb !important;
}
body.dark-mode .simplebar-content h5 {
border-top-color: #3f4755;
}
body.dark-mode .off-canvas #sidebar-id {
border-right: 0.05rem solid #3f4755;
}
body.dark-mode .off-canvas .learn-sidebar .learn-nav ul.searched a,
body.dark-mode .off-canvas .learn-sidebar .searchbox input {
color: #e8e9eb;
}
body.dark-mode .off-canvas .learn-sidebar .learn-nav ul li.active > a,
body.dark-mode .off-canvas .learn-sidebar .searchbox ::placeholder {
color: #a5a9af;
background-color: transparent;
}
body.dark-mode .off-canvas .learn-sidebar .learn-nav ul.searched .search-match a:hover,
body.dark-mode .off-canvas .learn-sidebar .learn-nav ul.searched .search-match a {
color: #72b6ec;
}
body.dark-mode .off-canvas .learn-sidebar .learn-nav ul.topics > li.active,
body.dark-mode .off-canvas .learn-sidebar .learn-nav ul.topics > li.parent {
background-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .off-canvas .learn-sidebar .learn-nav .read-icon,
body.dark-mode .off-canvas .learn-sidebar .searchbox {
color: #e8e9eb;
}
body.dark-mode .off-canvas .learn-sidebar .search-options .version-chooser select {
color: #e8e9eb;
}
body.dark-mode .off-canvas .learn-sidebar a,
body.dark-mode .off-canvas .learn-sidebar .learn-nav ul li a,
body.dark-mode .off-canvas .learn-sidebar .learn-nav ul li a > i,
body.dark-mode .off-canvas .learn-sidebar .learn-nav ul li a > span > b {
color: #e8e9eb;
}
body.dark-mode .off-canvas .learn-sidebar a:hover {
color: #a5a9af;
}
body.dark-mode #filter-app-icon,
body.dark-mode #filter-app-cards {
color: #e8e9eb;
background-color: #111418;
}
body.dark-mode #app-cards-list .app-title {
color: white;
}
body.dark-mode #app-cards-list .app-buttons {
border-top: 0.05rem solid #111418;
}
body.dark-mode #app-cards-list .app-buttons > .btn-default {
color: white;
background-color: #3f4755;
}
body.dark-mode #app-cards-list .app-buttons > .btn:first-child {
border-right: 0.1rem solid #111418;
}
body.dark-mode #app-cards-list .app-card {
border-color: #3f4755;
}
body.dark-mode #app-cards-list .label {
color: black;
}
body.dark-mode .hardware-image .card {
background-color: #171b21 !important;
border-color: #3f4755;
}
body.dark-mode .hardware-image .btn-group .btn.btn-info {
color: #111418;
}
body.dark-mode .hardware-image .btn-group .btn.btn-info:hover,
body.dark-mode .btn.btn-info:focus {
color: #111418;
}
body.dark-mode table tbody tr:nth-of-type(2n + 1) {
background: #111418;
}
body.dark-mode table td,
body.dark-mode table th {
border-bottom-color: #3f4755;
}
body.dark-mode .danger {
background-color: #712c2c;
}
body.dark-mode .warning {
background-color: #845804;
}
body.dark-mode .success {
background-color: #335723;
}
body.dark-mode .page-toc {
background-color: #111418;
}
body.dark-mode .page-toc li,
body.dark-mode .page-toc li > a {
color: white;
}
/*=================================================
Dark mode specific
=================================================*/
body.dark-mode img {
filter: brightness(0.85) contrast(1.2);
}
body.dark-mode img#whitelogo {
background-color: unset;
padding: 10px;
}
body.dark-mode #ynhlogo {
filter: invert(1);
}
body.dark-mode .notices.yellow {
border-left-color: #935b0c;
background-color: #31220b;
color: #eea034;
}
body.dark-mode .notices.red {
border-left-color: #89211e;
background-color: #2e0b0b;
color: #db5a56;
}
body.dark-mode .notices.blue,
body.dark-mode .notices.note {
border-left-color: #1b6e86;
background-color: #13222a;
color: #4bb9da;
}
body.dark-mode .notices.green {
border-left-color: #347834;
background-color: #192c13;
color: #7ac57a;
}
.learn-sidebar:before {
background: none !important;
}
#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;
}
/* 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;
}
.simplebar-content h5 {
letter-spacing: 0em;
border-top: 1px solid;
padding: 0.8em 0;
margin: 0;
}
@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;
}
/*=================================================
TOP BAR
=================================================*/
body #top-bar {
background: none;
border-bottom: none;
}
body #top-bar #navigation > a,
body #top-bar #navigation > span {
border-left: none;
}
body #top-bar .progress {
display: none;
}
body #top-bar #navigation {
margin-left: auto;
margin-right: 0;
}
/*=================================================
SIDE BAR
=================================================*/
body .off-canvas .learn-sidebar .learn-nav ul li ul li.active > a {
background-color: rgba(0, 0, 0, 0.1);
border-left: 4px solid mediumturquoise;
}
/*=================================================
SHORTCODE UI
=================================================*/
.tabs-wrapper.ui-theme-lite .tab {
background-color: inherit !important;
}
/*
###############################################################################
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 {
background-color: #5bc0de;
border-color: #46b8da;
}
.hardware-image .btn-group .btn.btn-info:hover,
.btn.btn-info:focus {
background-color: #39b3d7;
border-color: #269abc;
}
/*=================================================
App catalog
=================================================*/
#filter-app-icon,
#filter-app-cards {
padding: 6px 12px;
margin-right: -2px;
border: none;
}
#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;
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 {
width: 100%;
}
#app-cards-list .app-buttons > .btn {
border: 0;
font-size: 0.9em;
line-height: 1.58;
}
/*# sourceMappingURL=custom.css.map */