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

348 lines
4.8 KiB
CSS
Raw Normal View History

2022-10-29 23:24:06 +00:00
:root {
2022-11-30 19:09:17 +00:00
--dark: #020202;
--light: #fffff0;
2022-10-29 23:24:06 +00:00
}
2022-09-24 19:36:06 +00:00
/*
* Typography
*/
body {
2022-11-30 19:09:17 +00:00
/* font-family: Verdana, Arial, sans-serif; */
font-size: 16px;
margin: 0;
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 {
2022-11-30 19:09:17 +00:00
font-size: 1.5em;
text-align: center;
margin-top: 0;
2022-09-24 19:36:06 +00:00
}
details h2 {
2022-11-30 19:09:17 +00:00
display: inline;
2022-08-23 19:11:43 +00:00
}
2022-09-24 19:36:06 +00:00
.positive,
.negative {
2022-11-30 19:09:17 +00:00
font-weight: bold;
2022-08-23 19:11:43 +00:00
}
.positive {
2022-11-30 19:09:17 +00:00
color: darkgreen;
2022-08-23 19:11:43 +00:00
}
.negative {
2022-11-30 19:09:17 +00:00
color: red;
2022-08-23 19:11:43 +00:00
}
.small {
2022-11-30 19:09:17 +00:00
font-variant: italic;
font-size: 0.8em;
2022-08-23 19:11:43 +00:00
}
2022-10-30 00:15:06 +00:00
#allCheckinsLink,
#pastTripsList a {
2022-11-30 19:09:17 +00:00
opacity: 0.7;
color: var(--dark, #020202);
2022-10-29 23:24:06 +00:00
}
2022-10-30 00:15:06 +00:00
#allCheckinsLink:hover,
#pastTripsList a:hover {
2022-11-30 19:09:17 +00:00
opacity: 1;
2022-10-29 23:24:06 +00:00
}
2023-01-22 18:56:48 +00:00
cite,
cite.book,
cite.film,
cite.tv-show,
cite.comic,
cite.book,
cite.podcast,
cite.album,
cite.report {
font-style: italic;
}
cite.book--bible {
font-style: inherit;
}
cite.legislation,
cite.smallcite,
cite.comic-strip,
cite.short-story,
cite.article,
cite.episode,
cite.video,
cite.chapter,
cite.software,
cite.campaign,
cite.song,
cite.speech,
cite.course,
cite.presentation {
font-style: normal;
}
cite.smallcite::before,
cite.article::before,
cite.comic-strip::before,
cite.short-story::before,
cite.episode::before,
cite.video::before,
cite.chapter::before,
cite.song::before,
cite.poem::before,
cite.campaign::before,
cite.speech::before,
cite.course::before,
cite.presentation::before {
content: "“";
}
cite.smallcite::after,
cite.article::after,
cite.comic-strip::after,
cite.short-story::after,
cite.episode::after,
cite.video::after,
cite.chapter::after,
cite.song::after,
cite.poem::after,
cite.campaign::after,
cite.speech::after,
cite.course::after,
cite.presentation::after {
content: "”";
}
cite.article--shortcite::before,
cite.article--shortcite::after {
content: none;
}
2022-09-24 19:36:06 +00:00
/*
* Layout
*/
body {
2022-11-30 19:09:17 +00:00
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 {
2022-11-30 19:09:17 +00:00
grid-area: header;
border-bottom: 5px solid black;
padding-top: 1em;
2022-10-19 22:34:34 +00:00
}
2022-09-24 19:36:06 +00:00
.other-links {
2022-11-30 19:09:17 +00:00
font-size: 1em;
display: block;
margin: auto;
overflow: auto;
2022-09-24 19:36:06 +00:00
}
2022-10-07 19:02:57 +00:00
.other-links ul {
2022-11-30 19:09:17 +00:00
list-style: none;
margin: 0 auto;
width: fit-content;
2022-10-07 19:02:57 +00:00
}
.other-links li {
2022-11-30 19:09:17 +00:00
float: left;
margin-left: 1.5em;
border: 2px solid var(--dark);
border-radius: 1em;
2022-10-19 22:35:12 +00:00
}
.other-links li:first-of-type {
2022-11-30 19:09:17 +00:00
margin-left: 0;
2022-10-19 22:35:12 +00:00
}
.other-links li:hover {
2022-11-30 19:09:17 +00:00
background-color: #ddddd2;
2022-10-19 22:35:12 +00:00
}
.other-links li p {
2022-11-30 19:09:17 +00:00
padding: 0.25em 0.5em;
margin: 0;
2022-10-19 22:35:12 +00:00
}
.other-links li p a {
2022-11-30 19:09:17 +00:00
color: var(--dark, #020202);
font-weight: bold;
text-decoration: none;
2022-10-07 19:02:57 +00:00
}
2022-09-24 19:36:06 +00:00
.trip-meta {
2022-11-30 19:09:17 +00:00
display: block;
width: 100%;
font-size: 0.8em;
text-align: center;
2022-09-24 19:36:06 +00:00
}
.main--list {
2022-11-30 19:09:17 +00:00
margin: auto;
width: 100%;
max-width: 980px;
2022-09-24 19:36:06 +00:00
}
2022-08-23 19:11:43 +00:00
#routeContainer {
2022-11-30 19:09:17 +00:00
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 {
2022-11-30 19:09:17 +00:00
grid-area: map;
2022-10-19 21:14:10 +00:00
}
2022-11-30 19:09:17 +00:00
#map {
height: 100%;
2022-08-23 19:11:43 +00:00
}
#checkinList {
2022-11-30 19:09:17 +00:00
grid-area: checkins;
border-top: 5px solid black;
padding: 0 1em;
overflow: scroll;
2022-08-23 19:11:43 +00:00
}
2022-10-19 22:34:34 +00:00
.checkin {
2022-11-30 19:09:17 +00:00
border-top: 1px solid black;
padding: 1em 0;
2022-08-29 21:34:11 +00:00
}
2022-10-19 22:34:34 +00:00
.checkin__summary {
2022-11-30 19:09:17 +00:00
cursor: pointer;
2022-10-19 22:34:34 +00:00
}
.checkin[open] .checkin__summary {
2022-11-30 19:09:17 +00:00
margin-bottom: 1em;
border-bottom: 1px solid gray;
2022-10-19 22:34:34 +00:00
}
.checkin__title {
2022-11-30 19:09:17 +00:00
font-size: 1em;
}
2022-10-19 22:34:34 +00:00
.checkin__meta {
2022-11-30 19:09:17 +00:00
margin: 0;
2022-10-19 22:34:34 +00:00
}
.checkin[open] .checkin__meta {
2022-11-30 19:09:17 +00:00
margin-bottom: 1em;
2022-08-29 21:34:11 +00:00
}
2022-10-19 22:34:34 +00:00
#checkinList li:first-child .checkin {
2022-11-30 19:09:17 +00:00
border-top: none;
2022-08-29 21:34:11 +00:00
}
2022-11-28 22:24:04 +00:00
.popup__image,
.popup__video {
2022-11-30 19:09:17 +00:00
width: auto;
height: auto;
max-width: 70vw;
max-height: 45vh;
margin-top: 1em;
display: block;
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) {
2022-11-30 19:09:17 +00:00
.page__title {
font-size: 2em;
}
}
2022-10-19 21:18:14 +00:00
/*
* Large Display
*/
@media screen and (min-width: 1024px) {
2022-11-30 19:09:17 +00:00
#routeContainer {
grid-template-columns: 60% 40%;
grid-template-rows: 100%;
grid-template-areas: "map checkins";
}
.page-header {
padding: 1em;
}
.page-title {
font-size: 2.5em;
text-align: left;
display: inline-block;
margin-bottom: 0;
}
.other-links {
font-size: 1.2em;
display: inline-block;
vertical-align: bottom;
}
.other-links li a {
padding: 0.5em 1em;
}
.trip-meta {
text-align: left;
font-size: 1em;
}
#map {
height: 100%;
}
#checkinList {
border-top: 0;
border-left: 5px solid black;
}
.section__title {
text-align: center;
}
#checkinList ol {
margin-top: 0;
margin-right: 1em;
}
.popup__image,
.popup__video {
max-width: 100%;
max-height: 60vh;
margin-top: 1em;
}
2022-08-23 19:11:43 +00:00
}
2023-03-02 22:10:55 +00:00
.checkin-icon {
color: black;
}
.checkin-icon--missing {
opacity: 0.4;
}