in-c4/static/style.css

242 lines
3.1 KiB
CSS
Raw Permalink Normal View History

2022-08-04 05:41:51 +02:00
* {
box-sizing: border-box;
}
body {
font-family: sans-serif;
margin: auto;
padding: 1em;
2022-08-04 05:41:51 +02:00
}
h1, #search {
text-align: center;
width: 100%;
font-weight: bold;
}
h1 a {
text-decoration: none;
color: initial;
}
#results {
margin-top: 1em;
}
.result {
background: #eee;
padding: 1em;
border: 1px solid #bbb;
}
.result:focus {
outline: 2px solid #08f;
border-radius: 1px;
2022-08-04 05:41:51 +02:00
}
.result a {
text-decoration: none;
color: #03d;
}
.result.hidden {
display: none;
}
#results.showhidden .result.hidden {
display: block;
}
#results.showhidden .result.hidden.filtered {
display: none;
}
2022-08-04 05:41:51 +02:00
.result.filtered {
display: none;
}
.loc {
float: right;
font-weight: normal;
font-size: 0.8em;
}
.type {
font-size: 0.8em;
}
h2 {
margin: 0;
font-size: 20px;
}
.name {
font-weight: normal;
}
.content {
margin-top: 1em;
}
.note:empty {
display: none;
}
.note {
background: #aef;
padding: 1em;
margin-top: 1em;
}
.btn {
display: block;
width: 100%;
border: 1px solid;
padding: 0.5em;
text-decoration: initial;
color: initial;
font-weight: bold;
text-align: center;
font-size: 1.5em;
margin: 0.5em auto;
2022-08-04 05:41:51 +02:00
cursor: pointer;
grid-column: 1/-1;
max-width: 400px;
2022-08-04 05:41:51 +02:00
}
.btn.green {
background: #0a0;
color: white;
}
.btn.red {
background: #a00;
color: white;
}
form {
max-width: 600px;
margin: auto;
}
2022-08-04 05:41:51 +02:00
form label {
display: block;
width: 100%;
font-weight: bold;
margin-bottom: 0.3em;
}
2022-08-05 21:58:53 +02:00
form label[for=coords_bl], form label[for=coords_tr], #coords_bl, #coords_tr {
display: inline-block;
min-width: unset;
width: 50%;
}
2022-08-04 05:41:51 +02:00
input, textarea, select {
display: block;
width: 100%;
max-width: 100%;
min-width: 100%;
margin: 0 0 1em 0;
padding: 0.3em;
font-family: monospace;
font-size: 1.4em;
background: #eee;
2022-08-04 05:41:51 +02:00
border: 1px solid gray;
}
input[type=checkbox] {
width: initial;
display: initial;
min-width: initial;
margin: 0;
2022-08-04 05:41:51 +02:00
}
textarea {
min-height: 8em;
}
2022-08-05 21:58:53 +02:00
#mapcontainer {
grid-column: 1/-1;
text-align: center;
position: sticky;
pointer-events: none;
top: 0;
}
#mapcontainer * {
pointer-events: all;
}
#map {
2022-08-05 21:58:53 +02:00
position: relative;
border: 1px solid black;
background: #fff;
max-width: 1480px;
max-height: 50vh;
aspect-ratio: 37 / 18;
margin: 0 auto;
2022-08-05 21:58:53 +02:00
}
#mapnote {
min-height: 1.95em;
font-style: italic;
margin: 0;
padding: 0.5em;
display: inline-block;
background: #fff;
border: 1px solid;
border-top: none;
}
#mapnote:empty {
background: none;
border: none;
}
#map img {
2022-08-05 21:58:53 +02:00
width: 100%;
max-height: 100%;
max-width: 100%;
2022-08-05 21:58:53 +02:00
display: block;
}
form #map {
2022-08-05 21:58:53 +02:00
margin: 0.3em 0 1em 0;
}
#mapgrid {
2022-08-05 21:58:53 +02:00
position: absolute;
pointer-events: none;
outline: 2px solid #f00;
background: #ff08;
}
#mapgrid:not([style]) {
2022-08-05 21:58:53 +02:00
outline: none;
}
#grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 1em;
}
@media only screen and (max-width: 500px) {
#grid {
grid-template-columns: none;
}
}
#grid #results {
display: contents;
}
#grid #searchcontainer {
grid-column: 1/-1;
width: calc(min(600px, 100%));
max-width: 100%;
text-align: center;
margin: auto;
}