Where-in-the-World-is-Ben/public/css/app.css

281 lines
4.1 KiB
CSS
Raw Normal View History

2022-10-29 23:24:06 +00:00
:root {
--dark: #020202;
--light: #fffff0;
}
2022-09-24 19:36:06 +00:00
/*
* Typography
*/
body {
2022-10-29 23:24:06 +00:00
/*font-family: Verdana, Arial, sans-serif;*/
2022-09-24 19:36:06 +00:00
font-size: 16px;
2022-10-19 22:35:12 +00:00
margin: 0;
2022-10-29 23:24:06 +00:00
color: var(--dark, #020202);
background-color: var(--light, #fffff0);
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
2022-09-24 19:36:06 +00:00
}
.page-title {
font-size: 1.5em;
2022-08-23 19:11:43 +00:00
text-align: center;
2022-10-19 22:35:12 +00:00
margin-top: 0;
2022-09-24 19:36:06 +00:00
}
details h2 {
display: inline;
2022-08-23 19:11:43 +00:00
}
2022-09-24 19:36:06 +00:00
.positive,
.negative {
2022-08-23 19:11:43 +00:00
font-weight: bold;
}
.positive {
color: darkgreen;
}
.negative {
color: red;
}
.small {
font-variant: italic;
font-size: 0.8em;
}
2022-10-29 23:24:06 +00:00
#allCheckinsLink {
opacity: 0.7;
color: var(--dark, #020202);
}
#allCheckinsLink:hover {
opacity: 1;
}
2022-09-24 19:36:06 +00:00
/*
* Layout
*/
body {
border: 5px solid black;
box-sizing: border-box;
height: 100vh;
display: grid;
grid-template-rows: auto 1fr;
grid-template-columns: 100%;
grid-template-areas:
"header"
"route";
}
2022-10-19 22:34:34 +00:00
.page-header {
grid-area: header;
2022-10-19 22:34:34 +00:00
border-bottom: 5px solid black;
2022-10-29 23:24:06 +00:00
padding-top: 1em;
2022-10-19 22:34:34 +00:00
}
2022-09-24 19:36:06 +00:00
.other-links {
font-size: 1em;
2022-09-24 19:36:06 +00:00
display: block;
margin: auto;
2022-10-19 21:14:10 +00:00
overflow: auto;
2022-09-24 19:36:06 +00:00
}
2022-10-07 19:02:57 +00:00
.other-links ul {
list-style: none;
2022-10-19 21:14:10 +00:00
margin: 0 auto;
width: fit-content;
2022-10-07 19:02:57 +00:00
}
.other-links li {
float: left;
2022-10-20 15:49:24 +00:00
margin-left: 1.5em;
2022-10-29 23:24:06 +00:00
border: 2px solid var(--dark);
2022-10-19 22:35:12 +00:00
border-radius: 1em;
}
.other-links li:first-of-type {
2022-10-20 15:49:24 +00:00
margin-left: 0;
2022-10-19 22:35:12 +00:00
}
.other-links li:hover {
2022-10-29 23:24:06 +00:00
background-color: #ddddd2;
2022-10-19 22:35:12 +00:00
}
.other-links li p {
padding: 0.25em 0.5em;
2022-10-19 22:35:12 +00:00
margin: 0;
}
.other-links li p a {
2022-10-29 23:24:06 +00:00
color: var(--dark, #020202);
2022-10-19 22:35:12 +00:00
font-weight: bold;
text-decoration: none;
2022-10-07 19:02:57 +00:00
}
2022-09-24 19:36:06 +00:00
.trip-meta {
display: block;
width: 100%;
font-size: 0.8em;
2022-10-19 21:14:10 +00:00
text-align: center;
2022-09-24 19:36:06 +00:00
}
.main--list {
margin: auto;
width: 100%;
max-width: 980px;
}
2022-08-23 19:11:43 +00:00
#routeContainer {
display: grid;
grid-area: route;
grid-template-rows: 55% 45%;
grid-template-columns: 100%;
overflow: hidden;
grid-template-areas:
"map"
"checkins";
2022-08-23 19:11:43 +00:00
}
2022-10-19 21:14:10 +00:00
#mapContainer {
grid-area: map;
2022-10-19 21:14:10 +00:00
}
#map {
height: 100%;
2022-08-23 19:11:43 +00:00
}
#checkinList {
grid-area: checkins;
2022-10-19 22:35:12 +00:00
border-top: 5px solid black;
2022-10-20 15:49:24 +00:00
padding: 0 1em;
overflow: scroll;
2022-08-23 19:11:43 +00:00
}
2022-10-19 22:34:34 +00:00
.checkin {
2022-08-29 21:34:11 +00:00
border-top: 1px solid black;
padding: 1em 0;
}
2022-10-19 22:34:34 +00:00
.checkin__summary {
cursor: pointer;
}
.checkin[open] .checkin__summary {
margin-bottom: 1em;
border-bottom: 1px solid gray;
}
.checkin__title {
font-size: 1em;
}
2022-10-19 22:34:34 +00:00
.checkin__meta {
margin: 0;
}
.checkin[open] .checkin__meta {
2022-08-29 21:34:11 +00:00
margin-bottom: 1em;
}
2022-10-19 22:34:34 +00:00
#checkinList li:first-child .checkin {
2022-08-29 21:34:11 +00:00
border-top: none;
}
.leaflet-popup {
max-width: 85vw;
max-height: 85vh;
min-width: 60vw;
}
.leaflet-popup-content {
width: auto !important;
}
.popup__image {
width: auto;
height: auto;
max-width: 70vw;
2022-10-19 22:35:12 +00:00
max-height: 45vh;
margin-top: 1em;
display: block;
2022-10-29 23:24:06 +00:00
background-color: white;
border: 2px solid var(--dark, #020202);
2022-10-19 21:18:14 +00:00
}
/*
* Medium Display
*/
@media screen and (min-width: 728px) {
.page__title {
font-size: 2em;
}
}
2022-10-19 21:18:14 +00:00
/*
* Large Display
*/
@media screen and (min-width: 1024px) {
#routeContainer {
grid-template-columns: 60% 40%;
grid-template-rows: 100%;
grid-template-areas:
"map checkins";
}
2022-10-19 22:35:12 +00:00
.page-header {
padding: 1em;
}
2022-10-19 21:18:14 +00:00
.page-title {
font-size: 2.5em;
2022-10-19 21:18:14 +00:00
text-align: left;
2022-10-19 22:35:12 +00:00
display: inline-block;
margin-bottom: 0;
}
.other-links {
font-size: 1.2em;
2022-10-19 22:35:12 +00:00
display: inline-block;
vertical-align: bottom;
2022-10-19 21:18:14 +00:00
}
2022-10-19 22:35:12 +00:00
.other-links li a {
padding: 0.5em 1em;
2022-10-19 21:18:14 +00:00
}
.trip-meta {
text-align: left;
font-size: 1em;
2022-10-19 21:18:14 +00:00
}
#map {
height: 100%;
2022-10-19 21:18:14 +00:00
}
#checkinList {
2022-10-19 22:35:12 +00:00
border-top: 0;
border-left: 5px solid black;
}
.section__title {
text-align: center;
}
2022-10-19 22:35:12 +00:00
#checkinList ol {
margin-top: 0;
margin-right: 1em;
2022-10-19 21:18:14 +00:00
}
.leaflet-popup {
min-width: 350px;
}
.popup__image {
2022-10-19 22:35:12 +00:00
max-width: 100%;
max-height: 60vh;
2022-10-19 22:35:12 +00:00
margin-top: 1em;
2022-08-29 21:34:11 +00:00
}
2022-08-23 19:11:43 +00:00
}