ntfy/docs/static/css/extra.css

216 lines
4.4 KiB
CSS
Raw Normal View History

:root > * {
2022-03-11 04:58:24 +01:00
--md-primary-fg-color: #338574;
--md-primary-fg-color--light: #338574;
--md-primary-fg-color--dark: #338574;
2023-02-20 15:19:51 +01:00
--md-footer-bg-color: #353744;
2023-03-13 01:52:30 +01:00
--md-text-font: "Roboto";
--md-code-font: "Roboto Mono";
2021-12-07 01:04:45 +01:00
}
2021-12-05 05:37:50 +01:00
.md-header__button.md-logo :is(img, svg) {
width: unset !important;
}
.md-header__topic:first-child {
font-weight: 400;
}
.md-typeset h4 {
font-weight: 500 !important;
margin: 0 !important;
font-size: 1.1em !important;
}
.admonition {
font-size: .74rem !important;
}
2021-12-04 14:56:46 +01:00
article {
padding-bottom: 50px;
}
2021-12-07 01:04:45 +01:00
figure img, figure video {
2021-12-02 05:08:12 +01:00
border-radius: 7px;
2021-12-05 21:57:37 +01:00
}
2023-02-16 01:52:03 +01:00
header {
background: linear-gradient(150deg, rgba(51,133,116,1) 0%, rgba(86,189,168,1) 100%);
}
body[data-md-color-scheme="default"] header {
filter: drop-shadow(0 5px 10px #ccc);
}
body[data-md-color-scheme="slate"] header {
filter: drop-shadow(0 5px 10px #333);
}
body[data-md-color-scheme="default"] figure img,
body[data-md-color-scheme="default"] figure video,
body[data-md-color-scheme="default"] .screenshots img,
body[data-md-color-scheme="default"] .screenshots video {
2021-12-07 01:04:45 +01:00
filter: drop-shadow(3px 3px 3px #ccc);
}
2023-02-16 01:52:03 +01:00
body[data-md-color-scheme="slate"] figure img,
body[data-md-color-scheme="slate"] figure video,
body[data-md-color-scheme="slate"] .screenshots img,
body[data-md-color-scheme="slate"] .screenshots video {
filter: drop-shadow(3px 3px 3px #353744);
2021-12-07 01:04:45 +01:00
}
2021-12-05 21:57:37 +01:00
figure video {
width: 100%;
max-height: 450px;
2021-12-02 05:08:12 +01:00
}
2021-12-02 18:04:22 +01:00
.remove-md-box {
background: none;
border: none;
margin: 0 auto;
}
.remove-md-box td {
2023-04-07 03:51:25 +02:00
padding: 0 10px;
}
.emoji-table td {
vertical-align: middle !important;
}
.emoji-table .e {
font-size: 2.5em;
padding: 0 2px !important;
text-align: center !important;
2021-12-02 18:04:22 +01:00
}
2021-12-05 05:37:50 +01:00
/* Lightbox; thanks to https://yossiabramov.com/blog/vanilla-js-lightbox */
.screenshots {
text-align: center;
}
.screenshots img {
2022-06-16 17:40:56 +02:00
max-height: 230px;
max-width: 300px;
2021-12-05 05:37:50 +01:00
margin: 3px;
border-radius: 5px;
filter: drop-shadow(2px 2px 2px #ddd);
}
.screenshots .nowrap {
white-space: nowrap;
}
.lightbox {
opacity: 0;
visibility: hidden;
position: fixed;
left:0;
right: 0;
top: 0;
bottom: 0;
z-index: -1;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.15s ease-in;
}
.lightbox.show {
background-color: rgba(0,0,0, 0.75);
opacity: 1;
visibility: visible;
z-index: 1000;
}
.lightbox img {
max-width: 90%;
max-height: 90%;
filter: drop-shadow(5px 5px 10px #222);
border-radius: 5px;
}
.lightbox .close-lightbox {
cursor: pointer;
position: absolute;
top: 30px;
right: 30px;
width: 20px;
height: 20px;
}
.lightbox .close-lightbox::after,
.lightbox .close-lightbox::before {
content: '';
width: 3px;
height: 20px;
background-color: #ddd;
position: absolute;
border-radius: 5px;
transform: rotate(45deg);
}
.lightbox .close-lightbox::before {
transform: rotate(-45deg);
}
.lightbox .close-lightbox:hover::after,
.lightbox .close-lightbox:hover::before {
background-color: #fff;
}
/* roboto-300 - latin */
@font-face {
2023-03-13 01:52:30 +01:00
font-display: swap;
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
2023-03-13 01:52:30 +01:00
src: url('../fonts/roboto-v30-latin-300.woff2') format('woff2');
}
/* roboto-regular - latin */
@font-face {
font-display: swap;
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
2023-03-13 01:52:30 +01:00
src: url('../fonts/roboto-v30-latin-regular.woff2') format('woff2');
}
/* roboto-italic - latin */
@font-face {
font-display: swap;
font-family: 'Roboto';
font-style: italic;
font-weight: 400;
2023-03-13 01:52:30 +01:00
src: url('../fonts/roboto-v30-latin-italic.woff2') format('woff2');
}
/* roboto-500 - latin */
@font-face {
font-display: swap;
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
2023-03-13 01:52:30 +01:00
src: url('../fonts/roboto-v30-latin-500.woff2') format('woff2');
}
/* roboto-700 - latin */
@font-face {
font-display: swap;
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
2023-03-13 01:52:30 +01:00
src: url('../fonts/roboto-v30-latin-700.woff2') format('woff2');
}
/* roboto-mono - latin */
@font-face {
font-display: swap;
font-family: 'Roboto Mono';
font-style: normal;
font-weight: 400;
src: url('../fonts/roboto-mono-v22-latin-regular.woff2') format('woff2');
}