diff --git a/css/index.css b/css/index.css index 9c14fcd..9c839ab 100644 --- a/css/index.css +++ b/css/index.css @@ -1,105 +1,133 @@ * { - box-sizing: border-box; - cursor: default; - letter-spacing: 0.7px; - margin: 0; - padding: 0; } + box-sizing: border-box; + cursor: default; + margin: 0; + padding: 0; +} .main { - height: 920px; - margin: 10px auto 100px auto; - padding: 50px 20px; - position: relative; - width: 800px; } + height: 900px; + margin: 10px auto 100px auto; + padding: 20px; + position: relative; + width: 1040px; +} #chart { - cursor: pointer; - height: 880px; - left: 540px; - position: absolute; - top: 20px; - width: 220px; } - #chart svg { - margin-left: 30px; - height: 100%; - width: 210px; } + cursor: pointer; + height: 200px; + left: 50%; + margin-left:-450px; + position: absolute; + top: 640px; + width: 900px; +} + +#chart svg { + height: 200px; + width: 100%; +} #year-labels { - font-size: 0; - height: 100%; - left: 540px; - padding-top: 15px; - position: absolute; - top: 20px; - width: 30px; } - #year-labels .label { + font-size: 0; + height: 30px; + left: 50%; + margin-left:-450px; + padding-left:30px; + position: absolute; + top: 840px; + width: 900px; +} + +#year-labels .label { color: #777; cursor: pointer; + display:inline-block; font-size: 9px; - height: 23px; - line-height: 20px; - margin-bottom: 2px; - text-align: center; } + height:30px; + line-height: 30px; + margin-right:2px; + text-align:center; + vertical-align:top; + width: 23px; +} .year-toggle:hover { - background: #eee; } + background: #eee; +} .axis .domain { - fill: none; - stroke: none; } + fill: none; + stroke: none; +} .axis .tick { - fill: #aaa; - font-size: 10px; } + fill: #aaa; + font-size: 10px; +} .label-axis-x { - fill: #aaa; - font-size: 10px; - letter-spacing: normal; } + fill: #aaa; + font-size: 10px; + letter-spacing: normal; +} .tick-line { - stroke: #f0f0f0; } + stroke: #f0f0f0; +} #chart3 { - height: 260px; - left: 20px; - position: absolute; - top: 640px; - width: 500px; } + height: 300px; + left: 20px; + position: absolute; + top: 20px; + width: 480px; +} #map { - border: 1px solid #e8e8e8; - height: 600px; - position: relative; - width: 500px; - z-index: 0; } - #map svg { + border: 1px solid #e8e8e8; + height: 600px; + left:520px; + position: absolute; + top:20px; + width: 500px; + z-index: 0; +} + +#map svg { height: 100%; - width: 100%; } + width: 100%; +} .feature { - fill: #f7f7f7; - stroke: #ccc; } + fill: #f7f7f7; + stroke: #ccc; +} .reticle { - cursor: move; - fill: rgba(153, 173, 40, 0.2); - stroke: #5D5336; } + cursor: move; + fill: rgba(153, 173, 40, 0.2); + stroke: #5D5336; +} .column-display { - cursor: pointer; - height: 210px; - left: 40px; - overflow: hidden; - position: absolute; - top: 330px; - width: 180px; } - .column-display select { + cursor: pointer; + height: 210px; + left: 40px; + overflow: hidden; + position: absolute; + top: 380px; + width: 180px; +} + +.column-display select { background: 0; border: 0; outline: 0; - width: 200px; } - .column-display .toggle { + width: 200px; +} + +.column-display .toggle { background: 0; color: #ccc; cursor: pointer; @@ -108,25 +136,36 @@ letter-spacing: 1.5px; line-height: 30px; text-transform: uppercase; - transition: color 0.3s ease; } - .column-display .toggle:hover { - color: #777; } - .column-display .toggle.selected { - color: #444; - cursor: default; - font-weight: bold; } + transition: color 0.3s ease; +} + +.column-display .toggle:hover { + color: #777; +} + +.column-display .toggle.selected { + color: #444; + cursor: default; + font-weight: bold; +} .reticle-sizer { - left: 40px; - position: absolute; - top: 520px; - z-index: 1; } + height:60px; + left: 240px; + position: absolute; + top: 380px; + width:160px; + z-index: 1; +} .bar-display { - left: 40px; - position: absolute; - top: 560px; } - .bar-display .toggle { + left: 240px; + position: absolute; + top: 460px; + width:160px; +} + +.bar-display .toggle { background-image: url("../bar-display.png"); background-repeat: no-repeat; cursor: pointer; @@ -136,38 +175,53 @@ margin-right: 15px; opacity: 0.15; transition: opacity 0.3s ease; - width: 30px; } - .bar-display .toggle:hover { - opacity: 1; } - .bar-display .toggle.selected { - cursor: default; - opacity: 1; } - .bar-display .toggle1 { - background-position: -60px 10px; } - .bar-display .toggle2 { - background-position: -30px 10px; } - .bar-display .toggle3 { - background-position: 0 10px; } + width: 30px; +} + +.bar-display .toggle:hover { + opacity: 1; +} + +.bar-display .toggle.selected { + cursor: default; + opacity: 1; +} + +.bar-display .toggle1 { + background-position: -60px 10px; +} + +.bar-display .toggle2 { + background-position: -30px 10px; +} + +.bar-display .toggle3 { + background-position: 0 10px; +} input[type=range] { - cursor: pointer; - -webkit-appearance: none; } + cursor: pointer; + -webkit-appearance: none; +} input[type=range]::-webkit-slider-runnable-track { - background: #ddd; - border: none; - border-radius: 3px; - height: 2px; - width: 300px; } + background: #ddd; + border: none; + border-radius: 3px; + height: 2px; + width: 300px; +} input[type=range]::-webkit-slider-thumb { - background: #d8ebd3; - border: 2px solid #5D5336; - border-radius: 50%; - height: 16px; - margin-top: -7px; - width: 16px; - -webkit-appearance: none; } + background: #d8ebd3; + border: 2px solid #5D5336; + border-radius: 50%; + height: 16px; + margin-top: -7px; + width: 16px; + -webkit-appearance: none; +} input[type=range]:focus { - outline: none; } + outline: none; +} diff --git a/index.html b/index.html index f889cc4..0e0d099 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ - + Buoy Analysis @@ -19,6 +19,7 @@

Visualization should invite interaction to create and answer questions such as: