diff --git a/css/main.css b/css/main.css index 2c7b0c1..a2339df 100644 --- a/css/main.css +++ b/css/main.css @@ -53,6 +53,26 @@ body { h1, h2, h3, h4, h5, h6 { font-weight: 700; } +select { + + font-family: inherit; + line-height: 1.4em; + + background: white; + border: 1px solid #ddd; + border-radius: 5px; + padding: 4px; + + appearance: none; + -webkit-appearance: none; + -moz-appearance:none; + + background-image: url(/img/select-arrows.png) !important; + background-size: 11px; + background-repeat: no-repeat !important; + background-position-x: 100% !important; + background-position-y: 50% !important; +} #header { width: 100%; color: #FFE2A8; @@ -62,7 +82,7 @@ h1, h2, h3, h4, h5, h6 { align-items: center; height: 30px; background: #4f2e28; - padding: 0 10px 0 6px; + padding: 0 10px 0 8px; /*background: linear-gradient(90deg, #4A282A, #66373a);*/ overflow-x: auto; } @@ -86,14 +106,14 @@ h1, h2, h3, h4, h5, h6 { width: 20px; margin-right: 6px; } -#header .main-title { +#header .site-title { white-space: nowrap; display: flex; align-items: center; flex-direction: row; font-size: 15px; } -#header .main-title a { +#header .site-title a { display: inline-flex; margin-right: 3px; } @@ -105,40 +125,81 @@ h1, h2, h3, h4, h5, h6 { bottom: 0; top: 30px; } -#body p { +#sidebar p { margin-bottom: 12px; } #map-wrap { z-index: 0; flex-basis: 100%; - padding: 10px 10px 10px 0; + padding: 10px; position: relative; } +body.sidebar-open #map-wrap { + padding-right: 0; +} #map { - border: 1px solid #ddd; + border: 1px solid #ccc; height: 100%; width: 100%; } -#controls { +#map .quickinfo { + font-family: "National Park", "Source Sans", "Helvetica", sans-serif; +} +#nameplate { + color: #000;/*#331d1a;*/ + line-height: 1.4; + padding: 0 10px 10px 0; + border-right: 1px solid #ccc; + border-bottom: 1px solid #ccc; + background: #fff; position: absolute; + top: 10px; left: 10px; + z-index: 2; + text-align: left; + max-width: 100%; +} +#nameplate select { + font-size: 16px; + width: 100%; +} +#nameplate > *:not(:last-child) { + margin-bottom: 8px; +} +#nameplate .swatch { + width: 1em; + height: 1em; + display: inline-block; + vertical-align: text-bottom; + margin-right: 6px; + border: 1px solid #738C40; + background: #D8E8B7; +} +#nameplate a { + color: #aaa; + text-decoration: none; + vertical-align: text-bottom; + padding-left: 8px; + margin-top: -2px; +} +#nameplate a:hover { + text-decoration: underline; +} +#nameplate h1 { + font-size: 20px; +} +#controls { + position: absolute; + right: 50px; top: 20px; + width: 100%; + max-width: 200px; z-index: 2; border-radius: 5px; } #controls select { font-size: 15px; - font-family: inherit; - line-height: 1.4em; - max-width: 200px; width: 100%; - appearance: none; - -webkit-appearance: none; - -moz-appearance:none; - background: white; - border: 1px solid #ddd; - border-radius: 5px; - padding: 4px; box-shadow: 0 0 2px rgba(0, 0, 0, 0.2); margin-bottom: 8px; } @@ -148,13 +209,16 @@ h1, h2, h3, h4, h5, h6 { z-index: 100; } #sidebar { - display: flex; + display: none; flex-direction: column; background: white; height: 100%; min-width: 250px; width: 33.3333vw; } +body.sidebar-open #sidebar { + display: flex; +} #sidebar .top, #sidebar .body { padding: 10px; @@ -199,18 +263,26 @@ h1, h2, h3, h4, h5, h6 { @media only screen and (max-width: 600px) { #body { - flex-direction: column-reverse; + flex-direction: column; + } + #nameplate { + position: relative; + left: 0; + top: 0; + padding: 10px; } #header .tagline { display: none; } #sidebar { width: 100%; - height: 50%; + height: 30%; flex: 0 0 auto; min-width: 100%; } #map-wrap { + display: flex; + flex-direction: column; padding: 0; } #map { diff --git a/img/select-arrows.png b/img/select-arrows.png new file mode 100644 index 0000000..5eec5d1 Binary files /dev/null and b/img/select-arrows.png differ diff --git a/index.html b/index.html index ae54fd5..746a12c 100644 --- a/index.html +++ b/index.html @@ -23,24 +23,25 @@ })(window, document, 'dataLayer', '0245a355-96b9-47f5-997e-8cafd843c18a');