AMR/pkgdown/extra.css

275 lines
5.9 KiB
CSS
Raw Normal View History

2019-01-02 23:24:07 +01:00
/*
# ==================================================================== #
# TITLE #
# Antimicrobial Resistance (AMR) Analysis #
# #
# SOURCE #
2020-07-08 14:48:06 +02:00
# https://github.com/msberends/AMR #
2019-01-02 23:24:07 +01:00
# #
# LICENCE #
# (c) 2018-2020 Berends MS, Luz CF et al. #
2019-01-02 23:24:07 +01:00
# #
# 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. #
2020-07-08 14:48:06 +02:00
# Visit our website for more info: https://msberends.github.io/AMR. #
2019-01-02 23:24:07 +01:00
# ==================================================================== #
*/
2019-02-09 22:16:24 +01:00
/* R for Data Science (r4ds) */
#r4ds a {
2019-02-11 10:27:10 +01:00
display: inline-flex;
align-items: center;
text-align: right;
2019-02-09 22:16:24 +01:00
}
2019-02-11 10:27:10 +01:00
#r4ds img {
margin-left: 10px;
2019-02-09 22:16:24 +01:00
}
2018-12-29 22:24:19 +01:00
/* class for footer */
2019-01-22 19:55:11 +01:00
.footer_logo {
2019-01-25 20:47:57 +01:00
float: right;
height: 43px;
margin-top: 2px;
2019-01-22 19:55:11 +01:00
}
2019-02-08 16:06:54 +01:00
.partner_logo {
width: 19%;
min-width: 125px;
}
2019-11-23 12:39:57 +01:00
.countries_map {
float: left;
padding: 0 10px 10px 0;
2019-11-30 12:01:50 +01:00
max-width: 35%;
2019-11-23 12:39:57 +01:00
}
2019-01-22 19:55:11 +01:00
@media only screen and (max-width: 992px) {
.footer_logo {
2019-01-25 20:47:57 +01:00
float: left;
margin-top: 15px;
2019-01-22 19:55:11 +01:00
}
2018-12-29 22:24:19 +01:00
}
2019-01-25 20:47:57 +01:00
footer p {
display: inline-block;
}
2018-12-29 22:24:19 +01:00
/* Supports icons for brand using font-awesome */
.fab {
2019-01-21 15:53:01 +01:00
font-family: "Font Awesome 5 Brands" !important;
2018-12-29 22:24:19 +01:00
}
2019-01-02 23:24:07 +01:00
/* 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-"] {
2020-05-20 12:00:17 +02:00
display: none !important;
2018-12-29 22:24:19 +01:00
}
2019-01-02 23:24:07 +01:00
/* 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,
2019-01-11 20:37:23 +01:00
a[href] code, a[href] code:hover, a[href] code:focus,
2019-01-02 23:24:07 +01:00
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 */
2018-12-29 22:24:19 +01:00
color: #128f76;
}
2019-02-14 15:18:17 +01:00
.ot, .dv {
/* numbers and TRUE/FALSE */
color: slategray;
}
2018-12-29 22:24:19 +01:00
/* syntax font */
pre, code {
2019-01-21 15:53:01 +01:00
font-family: 'Courier New', monospace;
font-size: 100% !important;
font-weight: bold;
2019-01-26 23:22:56 +01:00
background-color: #f4f4f4;
2018-12-29 22:24:19 +01:00
}
pre {
font-size: 90% !important;
}
2019-01-21 15:53:01 +01:00
kbd {
display: inline-block;
padding: 0 4px;
box-shadow: 1px 1px 1px #2c3e50;
margin: 2px;
font-size: small;
vertical-align: text-bottom;
color: #2c3e50;
2019-01-26 23:22:56 +01:00
background: #eeeeee;
2019-01-21 15:53:01 +01:00
font-weight: bold;
}
2018-12-29 22:24:19 +01:00
li, p {
2019-01-21 15:53:01 +01:00
line-height: 1.5;
2018-12-29 22:24:19 +01:00
}
2019-09-01 13:16:57 +02:00
li p {
margin-top: 10.5px;
}
2020-07-28 18:39:57 +02:00
.template-news li p {
margin: 0;
}
2018-12-29 22:24:19 +01:00
/* slightly smaller blockquote */
blockquote {
2019-01-21 15:53:01 +01:00
font-size: 98%;
}
2020-07-28 18:39:57 +02:00
.template-home blockquote {
border: 5px solid #128f7645 !important;
}
/* 2nd list in navigation should be smaller */
#tocnav li li {
font-size: 90%;
margin-left: 5px;
}
2018-12-29 22:24:19 +01:00
/* new <help> element with dotted underline */
help {
border-bottom: 1px dotted;
cursor: help;
}
/* replace 'Developers' with 'Authors' */
.developers h2 {
2019-01-21 15:53:01 +01:00
display: none;
2018-12-29 22:24:19 +01:00
}
.developers:before {
2019-01-21 15:53:01 +01:00
content: 'Authors';
font-size: 1.5em;
2018-12-29 22:24:19 +01:00
}
/* Beautify manually added 'Last updated' text of NEWS */
div[id^=last-updated] h2 {
padding-top: 10px;
}
2018-12-29 22:24:19 +01:00
.version.label {
display: none;
}
/* Date of vignettes */
.template-article .date:before {
2019-01-21 15:53:01 +01:00
content: 'Last updated: ';
}
.template-article .date {
2019-01-21 15:53:01 +01:00
font-size: 14px;
padding-top: 40px;
}
2018-12-29 22:24:19 +01:00
/* more space between icon and text in top menu */
#navbar .fa,
#navbar .fab,
#navbar .fal,
#navbar .far,
#navbar .fas {
margin-right: 5px;
}
2019-01-02 23:24:07 +01:00
#navbar li.dropdown li .fa {
font-size: 120%;
width: 24px;
text-align: center;
}
2019-05-28 16:50:40 +02:00
/* tables, make them look like scientific ones */
.table {
font-size: 90%;
}
.table td {
padding: 4px !important;
}
thead {
2019-01-21 15:53:01 +01:00
border-top: 2px solid black;
border-bottom: 2px solid black;
}
2019-01-21 15:53:01 +01:00
thead ~ tbody {
/* only when it has a header */
border-bottom: 2px solid black;
}
2020-02-20 20:31:42 +01:00
thead th {
2020-02-17 14:38:01 +01:00
text-align: inherit;
}
2019-01-11 20:37:23 +01:00
table a:not(.btn), .table a:not(.btn) {
2019-01-21 15:53:01 +01:00
text-decoration: inherit;
2019-01-11 20:37:23 +01:00
}
table a:not(.btn):hover, .table a:not(.btn):hover {
2019-01-21 15:53:01 +01:00
text-decoration: underline;
}
2019-01-25 13:18:41 +01:00
/* text below header in manual overview */
2019-01-21 15:53:01 +01:00
.template-reference-index h2 ~ p {
2019-11-29 19:43:23 +01:00
font-size: 15px;
2019-07-09 11:22:46 +02:00
}
.template-reference-topic h2 {
font-size: 24px;
2019-01-11 20:37:23 +01:00
}
2019-11-29 19:43:23 +01:00
.template-reference-topic h3 {
font-size: 18px;
}
.template-reference-topic h4 {
font-size: 15px;
}
2019-01-25 13:18:41 +01:00
2020-05-25 01:01:14 +02:00
.template-home h4 {
padding-top: 40px !important;
font-weight: bold !important;
}
2019-01-25 13:18:41 +01:00
/* 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;
2020-08-17 21:49:58 +02:00
font-size: 14px;
text-transform: uppercase;
2020-08-17 21:49:58 +02:00
max-width: 25%;
}
.home-buttons a:hover {
text-decoration: none;
2020-08-17 21:49:58 +02:00
opacity: 0.75;
}
.home-buttons div {
display: grid;
padding: 10px;
}
.home-buttons .fa {
font-size: 3.5em;
}