mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-01 17:34:14 +01:00
282 lines
4.5 KiB
CSS
282 lines
4.5 KiB
CSS
/* general styling */
|
|
|
|
#site {
|
|
font-family: 'Roboto', sans-serif;
|
|
font-weight: 400;
|
|
font-size: 1.1em;
|
|
color: #444;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
#site a, a:visited {
|
|
color: #338574;
|
|
}
|
|
|
|
#site a:hover {
|
|
text-decoration: none;
|
|
color: #317f6f;
|
|
}
|
|
|
|
#site h1 {
|
|
margin-top: 35px;
|
|
margin-bottom: 30px;
|
|
font-size: 2.5em;
|
|
word-wrap: break-word; /* For very long topics */
|
|
padding-right: 40px; /* For the X on the detail page */
|
|
font-weight: 300;
|
|
color: #666;
|
|
}
|
|
|
|
#site h2 {
|
|
margin-top: 30px;
|
|
margin-bottom: 5px;
|
|
font-size: 1.8em;
|
|
font-weight: 300;
|
|
color: #333;
|
|
}
|
|
|
|
#site h3 {
|
|
margin-top: 25px;
|
|
margin-bottom: 5px;
|
|
font-size: 1.3em;
|
|
font-weight: 300;
|
|
color: #333;
|
|
}
|
|
|
|
#site p {
|
|
margin-top: 10px;
|
|
margin-bottom: 20px;
|
|
line-height: 160%;
|
|
font-weight: 400;
|
|
}
|
|
|
|
#site p.smallMarginBottom {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
#site b {
|
|
font-weight: 500;
|
|
}
|
|
|
|
#site tt {
|
|
background: #eee;
|
|
padding: 2px 7px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
#site code {
|
|
display: block;
|
|
background: #eee;
|
|
font-family: monospace;
|
|
padding: 20px;
|
|
border-radius: 3px;
|
|
margin-top: 10px;
|
|
margin-bottom: 20px;
|
|
overflow-x: auto;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Main page */
|
|
|
|
#site #main {
|
|
max-width: 900px;
|
|
margin: 0 auto 50px auto;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
#site #error {
|
|
color: darkred;
|
|
font-style: italic;
|
|
}
|
|
|
|
#site #ironicCenterTagDontFreakOut {
|
|
color: #666;
|
|
}
|
|
|
|
/* Anchors */
|
|
|
|
.anchor .anchorLink {
|
|
color: #ccc;
|
|
text-decoration: none;
|
|
padding: 0 5px;
|
|
visibility: hidden;
|
|
}
|
|
|
|
.anchor:hover .anchorLink {
|
|
visibility: visible;
|
|
}
|
|
|
|
.anchor .anchorLink:hover {
|
|
color: #338574;
|
|
visibility: visible;
|
|
}
|
|
|
|
/* Figures */
|
|
|
|
#site figure {
|
|
text-align: center;
|
|
}
|
|
|
|
#site figure img, figure video {
|
|
filter: drop-shadow(3px 3px 3px #ccc);
|
|
border-radius: 7px;
|
|
max-width: 100%;
|
|
}
|
|
|
|
#site figure video {
|
|
width: 100%;
|
|
max-height: 450px;
|
|
}
|
|
|
|
#site figcaption {
|
|
text-align: center;
|
|
font-style: italic;
|
|
padding-top: 10px;
|
|
}
|
|
|
|
/* Screenshots */
|
|
|
|
#site #screenshots {
|
|
text-align: center;
|
|
}
|
|
|
|
#site #screenshots img {
|
|
height: 190px;
|
|
margin: 3px;
|
|
border-radius: 5px;
|
|
filter: drop-shadow(2px 2px 2px #ddd);
|
|
}
|
|
|
|
#site #screenshots .nowrap {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Lightbox; thanks to https://yossiabramov.com/blog/vanilla-js-lightbox */
|
|
|
|
.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;
|
|
}
|
|
|
|
/* Header */
|
|
|
|
#site #header {
|
|
background: #338574;
|
|
background: linear-gradient(150deg, rgba(51,133,116,1) 0%, rgba(86,189,168,1) 100%); filter: drop-shadow(0 5px 10px #ccc);
|
|
height: 70px;
|
|
}
|
|
|
|
#site #header #headerBox {
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
#site #header #logo {
|
|
margin-top: 14px;
|
|
width: 48px;
|
|
float: left;
|
|
}
|
|
|
|
#site #header #name {
|
|
float: left;
|
|
color: white;
|
|
font-size: 1.7em;
|
|
font-weight: 400;
|
|
margin: 12px 0 0 10px;
|
|
}
|
|
|
|
#site #header #menu {
|
|
list-style-type: none;
|
|
float: right;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
#site #header #menu li {
|
|
display: inline-block;
|
|
padding: 3px 10px;
|
|
font-weight: 400;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
#site #header #menu li {
|
|
font-size: 1em;
|
|
}
|
|
|
|
#site #header #menu li a,
|
|
#site #header #menu li a:visited {
|
|
color: white;
|
|
text-decoration: none;
|
|
}
|
|
|
|
#site #header #menu li:hover {
|
|
background: #3f9a86;
|
|
}
|
|
|
|
#site li {
|
|
padding: 4px 0;
|
|
margin: 4px 0;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
|
|
/* Hide top menu SMALL SCREEN */
|
|
@media only screen and (max-width: 780px) {
|
|
#header #menu {
|
|
display: none;
|
|
}
|
|
}
|