aboutsummaryrefslogtreecommitdiffstats
path: root/example/style.css
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2025-06-14 20:00:45 +0200
committerGuilhem Moulin <guilhem@fripost.org>2025-06-15 02:31:02 +0200
commita69e05598650eea332c9bf2dfdff5196f7b81aba (patch)
tree1477054fe016f13cde99c0087638b2e93e82b80b /example/style.css
parentb14eaae221c3ed3aeed9a884c400f4947c45b393 (diff)
Move example files to a separate directory.
Diffstat (limited to 'example/style.css')
-rw-r--r--example/style.css50
1 files changed, 50 insertions, 0 deletions
diff --git a/example/style.css b/example/style.css
new file mode 100644
index 0000000..dfeaee5
--- /dev/null
+++ b/example/style.css
@@ -0,0 +1,50 @@
+body {
+ text-align: center;
+ max-width: 960px;
+ font-family: "Helvetica Neue", Arial, "Noto Sans", sans-serif;
+ padding: 0;
+ margin: 0 auto;
+ height: 100vh;
+ --margin-y: 1em;
+ --margin-x: 0;
+}
+#wrapper {
+ height: 100%;
+ display: flex;
+ flex-flow: column;
+ margin: 0 var(--margin-x);
+}
+#desc {
+ margin: var(--margin-y) 0;
+}
+#desc > p:first-child {
+ margin-top: 0;
+}
+#desc > p:last-child {
+ margin-bottom: 0;
+}
+#map {
+ border: 1px solid black;
+ width: 500px;
+ max-height: 600px;
+ margin: 0 auto var(--margin-y) auto;
+ flex: 1;
+}
+@media screen and (max-width: 500px) {
+ body {
+ --margin-x: .25em;
+ }
+ #map {
+ width: 100%;
+ }
+}
+@media screen and (max-height: 1280px) {
+ body {
+ --margin-y: .5em;
+ }
+}
+@media screen and (max-height: 600px) {
+ body {
+ --margin-y: .25em;
+ }
+}