1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-12-27 04:03:14 +01:00
ntfy/web/public/static/css/home.css

275 lines
4.3 KiB
CSS
Raw Normal View History

2021-10-24 20:22:53 +02:00
/* general styling */
2022-12-15 05:11:22 +01:00
#site {
2021-12-05 21:57:37 +01:00
font-family: 'Roboto', sans-serif;
font-weight: 400;
2021-10-24 20:22:53 +02:00
font-size: 1.1em;
2021-12-05 21:57:37 +01:00
color: #444;
2021-11-24 02:22:09 +01:00
margin: 0;
padding: 0;
2021-10-24 20:22:53 +02:00
}
2022-12-15 05:11:22 +01:00
#site a, a:visited {
2022-03-29 17:47:56 +02:00
color: #338574;
2021-10-24 20:22:53 +02:00
}
2022-12-15 05:11:22 +01:00
#site a:hover {
2021-10-24 20:22:53 +02:00
text-decoration: none;
2021-10-31 04:46:08 +01:00
color: #317f6f;
2021-10-24 20:22:53 +02:00
}
2022-12-15 05:11:22 +01:00
#site h1 {
2021-12-05 02:23:29 +01:00
margin-top: 35px;
margin-bottom: 30px;
2021-10-24 20:22:53 +02:00
font-size: 2.5em;
2021-11-24 02:22:09 +01:00
word-wrap: break-word; /* For very long topics */
padding-right: 40px; /* For the X on the detail page */
2021-12-05 21:57:37 +01:00
font-weight: 300;
color: #666;
2021-10-24 20:22:53 +02:00
}
2022-12-15 05:11:22 +01:00
#site h2 {
2021-11-18 15:22:33 +01:00
margin-top: 30px;
2021-10-24 20:22:53 +02:00
margin-bottom: 5px;
font-size: 1.8em;
2021-12-05 21:57:37 +01:00
font-weight: 300;
color: #333;
2021-10-24 20:22:53 +02:00
}
2022-12-15 05:11:22 +01:00
#site h3 {
2021-11-18 15:22:33 +01:00
margin-top: 25px;
2021-10-24 20:22:53 +02:00
margin-bottom: 5px;
font-size: 1.3em;
2021-12-05 21:57:37 +01:00
font-weight: 300;
color: #333;
2021-10-24 20:22:53 +02:00
}
2022-12-15 05:11:22 +01:00
#site p {
margin-top: 10px;
margin-bottom: 20px;
2021-12-05 21:57:37 +01:00
line-height: 160%;
font-weight: 400;
2021-10-24 20:22:53 +02:00
}
2022-12-15 05:11:22 +01:00
#site p.smallMarginBottom {
margin-bottom: 10px;
}
2022-12-15 05:11:22 +01:00
#site b {
2021-12-05 21:57:37 +01:00
font-weight: 500;
}
2022-12-15 05:11:22 +01:00
#site tt {
2021-10-24 20:22:53 +02:00
background: #eee;
padding: 2px 7px;
border-radius: 3px;
}
2022-12-15 05:11:22 +01:00
#site code {
2021-10-24 20:22:53 +02:00
display: block;
background: #eee;
font-family: monospace;
padding: 20px;
border-radius: 3px;
margin-top: 10px;
margin-bottom: 20px;
2021-11-05 03:47:29 +01:00
overflow-x: auto;
2021-11-27 22:12:08 +01:00
white-space: nowrap;
2021-10-24 20:22:53 +02:00
}
/* Main page */
2022-12-15 05:11:22 +01:00
#site #main {
2021-10-24 20:22:53 +02:00
max-width: 900px;
margin: 0 auto 50px auto;
2021-11-24 02:22:09 +01:00
padding: 0 10px;
2021-10-24 20:22:53 +02:00
}
2022-12-15 05:11:22 +01:00
#site #error {
2021-10-24 20:22:53 +02:00
color: darkred;
font-style: italic;
}
2022-12-15 05:11:22 +01:00
#site #ironicCenterTagDontFreakOut {
color: #666;
}
2021-11-04 15:55:34 +01:00
2021-11-18 02:50:47 +01:00
/* Anchors */
.anchor .anchorLink {
color: #ccc;
text-decoration: none;
padding: 0 5px;
visibility: hidden;
}
.anchor:hover .anchorLink {
visibility: visible;
}
.anchor .anchorLink:hover {
2022-03-29 17:47:56 +02:00
color: #338574;
2021-11-18 02:50:47 +01:00
visibility: visible;
}
2021-12-05 21:57:37 +01:00
/* Figures */
2022-12-15 05:11:22 +01:00
#site figure {
2021-12-05 21:57:37 +01:00
text-align: center;
}
2022-12-15 05:11:22 +01:00
#site figure img, figure video {
2021-12-05 21:57:37 +01:00
filter: drop-shadow(3px 3px 3px #ccc);
border-radius: 7px;
max-width: 100%;
}
2022-12-15 05:11:22 +01:00
#site figure video {
2021-12-05 21:57:37 +01:00
width: 100%;
max-height: 450px;
}
2022-12-15 05:11:22 +01:00
#site figcaption {
2021-12-05 21:57:37 +01:00
text-align: center;
font-style: italic;
padding-top: 10px;
}
2021-11-09 16:46:47 +01:00
/* Screenshots */
2022-12-15 05:11:22 +01:00
#site #screenshots {
2021-11-09 16:46:47 +01:00
text-align: center;
}
2022-12-15 05:11:22 +01:00
#site #screenshots img {
2021-11-09 16:46:47 +01:00
height: 190px;
margin: 3px;
border-radius: 5px;
filter: drop-shadow(2px 2px 2px #ddd);
}
2022-12-15 05:11:22 +01:00
#site #screenshots .nowrap {
2021-11-09 16:46:47 +01:00
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;
}
2021-11-24 02:22:09 +01:00
/* Header */
2022-12-15 05:11:22 +01:00
#site #header {
2022-03-29 17:47:56 +02:00
background: #338574;
2021-11-24 02:22:09 +01:00
height: 130px;
}
2022-12-15 05:11:22 +01:00
#site #header #headerBox {
2021-11-24 02:22:09 +01:00
max-width: 900px;
margin: 0 auto;
padding: 0 10px;
}
2022-12-15 05:11:22 +01:00
#site #header #logo {
2021-11-24 02:22:09 +01:00
margin-top: 23px;
2021-12-05 02:23:29 +01:00
float: left;
}
2022-12-15 05:11:22 +01:00
#site #header #name {
2021-12-05 02:23:29 +01:00
float: left;
color: white;
font-size: 2.6em;
2021-12-05 21:57:37 +01:00
font-weight: 300;
2021-12-05 02:23:29 +01:00
margin: 35px 0 0 20px;
}
2022-12-15 05:11:22 +01:00
#site #header ol {
2021-12-05 02:23:29 +01:00
list-style-type: none;
2021-12-05 21:57:37 +01:00
float: right;
2021-12-05 02:23:29 +01:00
margin-top: 80px;
}
2022-12-15 05:11:22 +01:00
#site #header ol li {
2021-12-05 02:23:29 +01:00
display: inline-block;
margin: 0 10px;
2021-12-05 21:57:37 +01:00
font-weight: 400;
2021-12-05 02:23:29 +01:00
}
2022-12-15 05:11:22 +01:00
#site #header ol li a, nav ol li a:visited {
2021-12-05 02:23:29 +01:00
color: white;
text-decoration: none;
}
2022-12-15 05:11:22 +01:00
#site #header ol li a:hover {
2021-12-05 02:23:29 +01:00
text-decoration: underline;
2021-11-24 02:22:09 +01:00
}
2022-12-15 05:11:22 +01:00
#site li {
2021-11-04 15:55:34 +01:00
padding: 4px 0;
margin: 4px 0;
font-size: 0.9em;
}
2021-12-05 21:57:37 +01:00
/* Hide top menu SMALL SCREEN */
@media only screen and (max-width: 780px) {
#header ol {
display: none;
}
}