AMR/docs/extra.css

317 lines
7.0 KiB
CSS

/*
# ==================================================================== #
# TITLE #
# Antimicrobial Resistance (AMR) Data Analysis for R #
# #
# SOURCE #
# https://github.com/msberends/AMR #
# #
# LICENCE #
# (c) 2018-2021 Berends MS, Luz CF et al. #
# Developed at the University of Groningen, the Netherlands, in #
# collaboration with non-profit organisations Certe Medical #
# Diagnostics & Advice, and University Medical Center Groningen. #
# #
# This R package is free software; you can freely use and distribute #
# it for both personal and commercial purposes under the terms of the #
# GNU General Public License version 2.0 (GNU GPL-2), as published by #
# the Free Software Foundation. #
# We created this package for both routine data analysis and academic #
# research and it was publicly released in the hope that it will be #
# useful, but it comes WITHOUT ANY WARRANTY OR LIABILITY. #
# #
# Visit our website for the full manual and a complete tutorial about #
# how to conduct AMR data analysis: https://msberends.github.io/AMR/ #
# ==================================================================== #
*/
/* R for Data Science (r4ds) on vignettes (articles) */
#r4ds {
display: flex;
border-bottom: 1px solid #ddd;
margin-bottom: 10px;
padding-bottom: 10px;
}
#r4ds .txt {
width: 67%;
}
#r4ds .img {
width: 33%;
}
/* class for footer */
.footer_logo {
float: right;
height: 43px;
margin-top: 2px;
}
.partner_logo {
width: 19%;
min-width: 125px;
}
.countries_map {
float: left;
padding: 0 10px 10px 0;
max-width: 35%;
}
@media only screen and (max-width: 992px) {
.footer_logo {
float: left;
margin-top: 15px;
}
}
footer p {
display: inline-block;
}
/* Supports icons for brand using font-awesome */
.fab {
font-family: "Font Awesome 5 Brands" !important;
}
/* Remove the 'Read more on our website!' part from the manual pages */
#read-more-on-our-website-,
#read-more-on-our-website- + p,
li a[href="#read-more-on-our-website-"] {
display: none !important;
}
code {
color: black;
background-color: #f4f4f4;
}
/* make colour darker and better readable for links */
code a, code a:hover, code a:focus,
pre a, pre a:hover, pre a:focus,
a, a:hover, a:focus {
/* do not set colour to element without href attribute, they aren't links! */
color: black;
}
a[href], a[href]:hover, a[href]:focus,
code a[href], code a[href]:hover, code a[href]:focus,
a[href] code, a[href] code:hover, a[href] code:focus,
pre a[href], pre a[href]:hover, pre a[href]:focus,
a code[href], a code[href]:hover, a code[href]:focus,
a pre[href], a pre[href]:hover, a pre[href]:focus {
/* adjusted colour for all real links; having href attribute */
color: #128f76;
}
.ot, .dv, .fl, .cn {
/* numbers and TRUE/FALSE */
color: slategray;
}
/* syntax font */
pre, code {
font-size: 95% !important;
}
pre code {
word-wrap: normal !important;
white-space: pre !important;
}
pre {
font-size: 90% !important;
}
kbd {
display: inline-block;
padding: 0 4px;
box-shadow: 1px 1px 1px #2c3e50;
margin: 2px;
font-size: small;
vertical-align: text-bottom;
color: #2c3e50;
background: #eeeeee;
font-weight: bold;
}
li, p {
line-height: 1.5;
}
li p {
margin-top: 10.5px;
}
.template-news li p {
margin: 0;
}
/* slightly smaller blockquote */
blockquote {
font-size: 98%;
}
.template-home blockquote {
border: 5px solid #128f7645 !important;
}
/* 2nd list in navigation should be smaller */
#tocnav li li {
font-size: 90%;
margin-left: 5px;
}
/* new <help> element with dotted underline */
help {
border-bottom: 1px dotted;
cursor: help;
}
/* replace 'Developers' with 'Authors' */
.developers h2 {
display: none;
}
.developers:before {
content: 'Maintainers';
font-size: 1.5em;
}
/* Beautify manually added 'Last updated' text of NEWS */
div[id^=last-updated] h2 {
padding-top: 10px;
}
.version.label {
display: none;
}
/* Date of vignettes */
.template-article .date:before {
content: 'Last updated: ';
}
.template-article .date {
font-size: 14px;
padding-top: 40px;
}
/* more space between icon and text in top menu */
#navbar .fa,
#navbar .fab,
#navbar .fal,
#navbar .far,
#navbar .fas {
margin-right: 5px;
}
#navbar li.dropdown li .fa {
font-size: 120%;
width: 24px;
text-align: center;
}
/* tables, make them look like scientific ones */
.table {
font-size: 90%;
}
.table * {
vertical-align: middle !important;
}
.table td {
padding: 4px !important;
}
.table thead,
.template-reference-topic .table tr:first-child {
/* tables in manual are in LaTeX and thus have no thead */
border-top: 2px solid black;
border-bottom: 2px solid black;
}
.table thead ~ tbody,
.template-reference-topic .table tr:last-child {
/* only when it has a header */
/* tables in manual are in LaTeX and thus have no thead */
border-bottom: 2px solid black;
}
.table thead th {
/* text-align: inherit; */
}
/* all tables, including argument lists */
table a:not(.btn) {
text-decoration: inherit;
}
table a:not(.btn):hover {
text-decoration: underline;
}
.template-article thead th {
text-align: inherit;
}
/* text below header in manual overview */
.template-reference-index h2 ~ p {
font-size: 15px;
}
.template-reference-topic h2 {
font-size: 24px;
}
.template-reference-topic h3 {
font-size: 18px;
}
.template-reference-topic h4 {
font-size: 15px;
font-weight: bold;
padding-top: 35px;
}
.template-home h4 {
padding-top: 40px !important;
font-weight: bold !important;
}
.template-home h5 {
font-weight: normal;
font-style: italic;
font-size: 16px;
}
/* logos on index page */
.logo_img {
display: inline-block;
}
.logo_txt {
display: inline;
font-size: 125%;
vertical-align: middle;
color: black;
font-weight: bold;
}
.btn.btn-info.btn-amr {
background: #128f76;
color: #ffffff;
border-color: #128f76;
line-height: 1;
width: 100%;
font-weight: bold;
}
.btn.btn-info.btn-amr:hover {
background: #128f7645;
color: #2c3e50;
}
.home-buttons {
display: flex;
margin-bottom: 5px;
}
.home-buttons a {
display: grid;
text-align: center;
font-size: 14px;
text-transform: uppercase;
max-width: 25%;
}
.home-buttons a:hover {
text-decoration: none;
opacity: 0.75;
}
.home-buttons div {
display: grid;
padding: 10px;
}
.home-buttons .fa {
font-size: 3.5em;
}
.dataset-within-r {
display: none;
}
.dataset-download-button {
margin-right: 2%;
}
.dataset-download-button img {
width: 80px !important;
max-width: 14% !important;
}