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

686 lines
15 KiB
CSS
Raw Normal View History

2021-02-09 01:56:57 +01:00
/*########################################
##########################################
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
##########################################
########################################*/
2021-02-09 01:39:52 +01:00
body.light-mode {
background-color: white;
/*=================================================
Side Bar
=================================================*/
/*=================================================
App catalog
=================================================*/
2021-02-09 01:56:57 +01:00
/*=================================================
Hardware image
=================================================*/
2021-02-09 01:39:52 +01:00
/*=================================================
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: #72b6ec;
}
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: #72b6ec;
}
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 .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: #72b6ec;
}
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 {
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: #111418;
background-color: #f0f0f0;
}
2021-02-09 01:56:57 +01:00
body.light-mode .hardware-image .card {
background-color: white !important;
}
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;
}
2021-02-09 01:39:52 +01:00
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
=================================================*/
2021-02-09 01:56:57 +01:00
/*=================================================
Hardware image
=================================================*/
2021-02-09 01:39:52 +01:00
/*=================================================
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 .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 .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 .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 {
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: #a5a9af;
background-color: #111418;
}
2021-02-09 01:56:57 +01:00
body.dark-mode .hardware-image .card {
background-color: #171b21 !important;
}
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;
}
2021-02-09 01:39:52 +01:00
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: #806c6c;
}
body.dark-mode .warning {
background-color: #6b6859;
}
body.dark-mode .success {
background-color: #6a7964;
}
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;
2020-11-14 11:24:49 +01:00
}
#chapter {
2021-02-09 01:39:52 +01:00
max-width: 80%;
}
2021-02-07 22:46:34 +01:00
/* Images helper classes */
img.inline {
2021-02-09 01:39:52 +01:00
display: inline;
margin: 5px 15px 5px 5px;
vertical-align: middle;
}
2021-01-09 21:36:35 +01:00
img.center {
2021-02-09 01:39:52 +01:00
display: block;
margin: 5px 15px 5px 5px;
margin-left: auto;
margin-right: auto;
2021-01-09 21:36:35 +01:00
}
2021-02-07 22:46:34 +01:00
td img {
2021-02-09 01:39:52 +01:00
margin: 0.2rem auto;
2021-02-07 22:46:34 +01:00
}
/* Figures and caption */
2021-02-07 12:19:28 +01:00
figure img {
2021-02-09 01:39:52 +01:00
margin: auto;
2021-02-07 12:19:28 +01:00
}
figure figcaption {
2021-02-09 01:39:52 +01:00
font-style: italic;
2021-02-07 12:19:28 +01:00
}
2021-02-07 22:46:34 +01:00
/* List spacing */
2021-02-09 01:39:52 +01:00
ul li,
ol li {
margin-top: 0;
2021-02-07 22:46:34 +01:00
}
2021-02-09 01:39:52 +01:00
ul,
ol {
margin-bottom: 0;
2021-02-07 22:46:34 +01:00
}
li p {
2021-02-09 01:39:52 +01:00
margin: inherit;
2021-02-07 22:46:34 +01:00
}
/* Paragraphs */
p {
2021-02-09 01:39:52 +01:00
margin: 0 0 1rem;
2021-02-07 22:46:34 +01:00
}
.notices p {
2021-02-09 01:39:52 +01:00
margin: 0 0 0 0.5rem;
2021-02-07 22:46:34 +01:00
}
/* Flex */
2021-02-07 14:03:32 +01:00
.flex-container {
2021-02-09 01:39:52 +01:00
display: flex;
justify-content: space-around;
flex-wrap: wrap;
2021-02-07 14:03:32 +01:00
}
.flex-child {
2021-02-09 01:39:52 +01:00
display: inline-flex;
text-align: center;
2021-02-07 14:54:25 +01:00
}
2021-02-07 14:03:32 +01:00
.nomargin * {
2021-02-09 01:39:52 +01:00
margin: 0px auto;
}
2021-02-07 22:46:34 +01:00
/* Fonts and headings */
2021-02-09 01:39:52 +01:00
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "Source Sans Pro", "Metropolis", "Helvetica Neue", sans-serif;
margin-top: 1rem;
margin-bottom: 1rem;
2021-02-07 03:00:15 +01:00
}
.simplebar-content h5 .fa {
2021-02-09 01:39:52 +01:00
font-size: 0.75em;
margin-right: 0.2em;
margin-left: 0.4em;
2021-02-07 03:00:15 +01:00
}
2021-02-08 03:59:50 +01:00
.simplebar-content h5 {
2021-02-09 01:39:52 +01:00
letter-spacing: 0em;
border-top: 1px solid;
padding: 0.8em 0;
margin: 0;
2021-02-08 03:59:50 +01:00
}
2021-02-07 03:00:15 +01:00
@font-face {
2021-02-09 01:39:52 +01:00
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;
2021-02-07 12:01:50 +01:00
}
2021-02-09 01:39:52 +01:00
/*=================================================
TOP BAR
=================================================*/
2021-02-08 03:59:50 +01:00
body #top-bar {
2021-02-09 01:39:52 +01:00
background: none;
border-bottom: none;
2021-02-08 03:59:50 +01:00
}
2021-02-09 01:39:52 +01:00
body #top-bar #navigation > a,
body #top-bar #navigation > span {
border-left: none;
2021-02-08 03:59:50 +01:00
}
2021-02-08 16:17:32 +01:00
body #top-bar .progress {
2021-02-09 01:39:52 +01:00
display: none;
2021-02-07 19:35:16 +01:00
}
2021-02-08 16:17:32 +01:00
body #top-bar #navigation {
2021-02-09 01:39:52 +01:00
margin-left: auto;
margin-right: 0;
2021-02-08 03:59:50 +01:00
}
2021-02-09 01:39:52 +01:00
/*=================================================
SIDE BAR
=================================================*/
body .off-canvas .learn-sidebar .learn-nav ul li ul li.active > a {
2021-02-09 01:39:52 +01:00
background-color: rgba(0, 0, 0, 0.1);
border-left: 4px solid mediumturquoise;
2021-02-07 22:07:47 +01:00
}
2021-02-09 01:39:52 +01:00
/*=================================================
SHORTCODE UI
=================================================*/
2021-02-08 16:17:32 +01:00
.tabs-wrapper.ui-theme-lite .tab {
2021-02-09 01:39:52 +01:00
background-color: inherit !important;
}
/*
###############################################################################
Style sheet for the cards
###############################################################################
*/
.hardware.active {
2021-02-09 01:39:52 +01:00
box-shadow: 0 0 15px #bbb;
border-radius: 5px;
}
.hardware-image #cards-list:after {
2021-02-09 01:39:52 +01:00
content: "";
display: block;
clear: both;
}
.hardware-image .card {
2021-02-09 01:39:52 +01:00
margin-bottom: 20px;
width: 270px;
float: left;
min-height: 1px;
margin-right: 10px;
margin-left: 10px;
}
2021-02-09 01:39:52 +01:00
.hardware-image .card .panel-body > h3 {
margin-top: 0;
margin-bottom: 5px;
font-size: 1.2em;
}
.hardware-image .card-desc {
2021-02-09 01:39:52 +01:00
height: 135px;
overflow: hidden;
}
.hardware-image .card .btn-group {
2021-02-09 01:39:52 +01:00
width: 100%;
margin-left: 0px;
}
2021-02-09 01:39:52 +01:00
.hardware-image .card > .btn-group > .btn {
border-bottom: 0;
}
2021-02-09 01:39:52 +01:00
.hardware-image .card > .btn-group {
border-left: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
margin-left: 0px;
}
2021-02-09 01:39:52 +01:00
.hardware-image .card-comment {
2021-02-09 01:39:52 +01:00
font-size: 0.8em;
margin-top: -5px;
}
2021-02-09 01:39:52 +01:00
.hardware-image .card > .annotations {
2021-02-09 01:39:52 +01:00
text-align: center;
font-size: small;
}
2021-02-09 01:39:52 +01:00
.hardware-image .card img {
2021-02-09 01:39:52 +01:00
margin: 1rem auto;
}
2021-02-09 01:39:52 +01:00
.hardware-image .btn-group .btn.btn-info {
2021-02-09 01:39:52 +01:00
background-color: #5bc0de;
border-color: #46b8da;
}
2021-02-08 03:09:43 +01:00
2021-02-09 01:39:52 +01:00
.hardware-image .btn-group .btn.btn-info:hover,
.btn.btn-info:focus {
background-color: #39b3d7;
border-color: #269abc;
2021-02-08 16:17:32 +01:00
}
2021-02-08 03:09:43 +01:00
/*=================================================
2021-02-09 01:39:52 +01:00
App catalog
2021-02-08 03:09:43 +01:00
=================================================*/
#filter-app-icon {
2021-02-09 01:39:52 +01:00
padding: 6px 12px;
margin-right: -2px;
2021-02-08 03:09:43 +01:00
}
2021-02-09 01:39:52 +01:00
#filter-app-cards,
#app-cards-list {
width: 100%;
2021-02-08 03:09:43 +01:00
}
#app-cards-list:after {
2021-02-09 01:39:52 +01:00
content: "";
display: block;
clear: both;
2021-02-08 03:09:43 +01:00
}
#app-cards-list .app-card {
2021-02-09 01:39:52 +01:00
margin-bottom: 30px;
width: 28%;
float: left;
min-height: 1px;
margin-right: 15px;
margin-left: 15px;
border-radius: 3px;
position: relative;
height: 230px;
2021-02-08 03:09:43 +01:00
}
#app-cards-list .app-title {
2021-02-09 01:39:52 +01:00
margin-top: 0;
margin-bottom: 5px;
font-size: 1.2em;
font-weight: 700;
line-height: 1.1;
padding: 1rem 1rem;
padding-bottom: 0;
2021-02-08 03:09:43 +01:00
}
#app-cards-list .app-title .label {
2021-02-09 01:39:52 +01:00
font-size: 0.5em;
display: inline-block;
vertical-align: middle;
padding: 0.5em 0.6em;
padding-bottom: 0.3em;
2021-02-08 03:09:43 +01:00
}
#app-cards-list .app-descr {
2021-02-09 01:39:52 +01:00
height: 120px;
overflow: hidden;
padding: 0.2rem 1rem;
2021-02-08 03:09:43 +01:00
}
#app-cards-list .app-footer {
2021-02-09 01:39:52 +01:00
width: 100%;
position: absolute;
bottom: 0;
2021-02-08 03:09:43 +01:00
}
#app-cards-list .app-buttons {
2021-02-09 01:39:52 +01:00
width: 100%;
2021-02-08 03:09:43 +01:00
}
2021-02-09 01:39:52 +01:00
#app-cards-list .app-buttons > .btn {
border: 0;
font-size: 0.9em;
line-height: 1.58;
2021-02-08 03:09:43 +01:00
}
2021-02-09 01:39:52 +01:00
/*# sourceMappingURL=custom.css.map */