teslams
Version:
Utilities for the Tesla Model S
222 lines (220 loc) • 7.59 kB
CSS
html { height: 100% }
body { height: 100%; margin: 0; padding: 1em; background-color: #FFFFFF; }
label.grid { display: inline-block; width: 5em; }
#map-canvas { height: 512px; }
#speedSlider { width: 30%; }
#top { padding-bottom: 0.5em; }
#speed { border: 0; background-color: #EEE; }
#user, #password, #frompicker, #topicker, #fahrer, #kennzeichen { width:20em; background-color: #DDD; border:solid 1px #BBB; color: #222; height: 28px; padding: 0 1em 0 1em; box-shadow: 2px 2px 0 #828181 inset; }
div#sliders { height: 6em; position: relative; margin-left: 1.5em; }
div.label { margin-top: .5em; }
div#login, div#dates, div#config { margin-bottom: 1em;
margin-left: 1.5em;
}
div.switches { position: relative; width: 300px; float: left; }
div.info { position: relative; width: 600px; float: left; }
#milesDiv,#nameDiv,#radioDiv { padding-left: 1em;
padding-right: 1em;
padding-top: 1em;
float: left; }
label#milesLabel { display: inline-block; width: 200px; height: 80px; margin-top: 40px; }
label#tripNameLabel { display: inline-block; width: 200px; height: 80px; margin-top: 0px; }
label#endTimeLabel { padding: 0 1em 0 1em; }
label#startTimeLabel { padding: 0 1em 0 0; }
section {
width: 30%;
height: auto;
margin: 3em auto 0;
position: absolute;
left: 2em
}
h2 { margin-left: 1em; }
h3 { margin-left: 1.5em; }
h4 { margin-left: 2.5em; }
#sliderS { position: absolute; left: 0; }
#sliderR { position: absolute; left: 20em; }
#speedTT { margin-left: -1em; width: 2em; }
#replayTT { margin-left: -3em; width: 6em; }
.tooltip {
position: absolute;
display: block;
top: -25px;
height: 20px;
color: #fff;
text-align: center;
font: 14pt Tahoma, Arial, sans-serif ;
border-radius: 3px;
border: 1px solid #333;
-webkit-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, .3);
box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, .3);
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
background: -moz-linear-gradient(top, rgba(69,72,77,0.5) 0%, rgba(0,0,0,0.5) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(69,72,77,0.5)), color-stop(100%,rgba(0,0,0,0.5))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(69,72,77,0.5) 0%,rgba(0,0,0,0.5) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(69,72,77,0.5) 0%,rgba(0,0,0,0.5) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(69,72,77,0.5) 0%,rgba(0,0,0,0.5) 100%); /* IE10+ */
background: linear-gradient(top, rgba(69,72,77,0.5) 0%,rgba(0,0,0,0.5) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#8045484d', endColorstr='#80000000',GradientType=0 ); /* IE6-9 */
}
.ui-slider-handle {
position: absolute;
z-index: 2;
width: 25px;
height: 25px;
cursor: pointer;
font-weight: bold;
color: #1C94C4;
outline: none;
top: -7px;
margin-left: -12px;
}
.ui-slider-range {
background: #ffffff; /* Old browsers */
background: -moz-linear-gradient(top, #ffffff 0%, #eaeaea 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#eaeaea)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffffff 0%,#eaeaea 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 0%,#eaeaea 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffffff 0%,#eaeaea 100%); /* IE10+ */
background: linear-gradient(top, #ffffff 0%,#eaeaea 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eaeaea',GradientType=0 ); /* IE6-9 */
position: absolute;
border: 0;
top: 0;
height: 100%;
border-radius: 25px;
}
div#container { margin-top: 0;
padding-top: 1em;
padding-bottom: 1em;
border-radius: 0 0 10px 10px;
background-color: rgba(244,244,244,0.2);
border: 3px solid rgba(2,2,2,0.28);
width: 94%;
height: auto;
left: 3%;
right: 3%;
position: absolute;
top: 74px;
}
nav#main { border-radius: 10px 10px 0 0;
border-right: 1px solid rgba(2,2,2,0.28);
border-left: 1px solid rgba(2,2,2,0.28);
border-top: 1px solid rgba(2,2,2,0.28);
background-color: rgba(12,12,12,0.1);
display: block;
position: absolute;
top: 20px;
width: 94%;
left: 3%;
}
.clearfix:before, .clearfix:after { content: " ";
display: table;
}
.clearfix:after { clear: both; }
nav#main ul { margin: 0;
float: left;
width: 70%;
padding-top: 10px;
padding-bottom: 10px;
}
nav#main li { float: left;
font: 16px Helvetica, Arial, sans-serif;
margin-right: 2px;
display: list-item;
text-align: -webkit-match-parent;
}
nav#main li a { color: #111;
text-decoration: none;
padding: 6px 10px;
display: block;
border: 1px solid transparent;
text-shadow: 0, -1px, 0 rgba(0,0,0,0.76);
}
nav#main li a:hover { background: none;
-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.4), rgba(255.255.255.0.1), 0 1px 0;
box-shadow: inset 0 0 5px rgba(0,0,0,0.4), rgba(255,255,255,0.1) 0 1px 0;
border-radius: 4px;
border: 1px solid rgba(0,0,0,0.25);
color: #111;
text-shadow: rgba(0,0,0,0.8) 0px -1px 0px, rgba(255,255,255,0.3) 0px 0px 10px;
}
nav ul { list-style: none;
display: block;
-webkit-margin-before: 1em;
-webkit-margin-after: 1em;
-webkit-margin-start: 0;
-webkit-margin-end: 0;
-webkit-padding-start: 40px;
}
table#triptable {
margin: 0 auto;
clear: both;
width: 80%;
}
table#triptable thead th {
padding: 3px 18px 3px 10px;
border: 1px solid black;
font-weight: bold;
font-size: larger;
}
table#triptable thead th#title {
height: 75px;
}
table#triptable thead th.left {
text-align: left;
height: 45px;
}
table#triptable td {
padding: 15px 10px;
border: 1px solid black;
}
.onoffswitch {
position: relative; width: 200px;
margin: 2em;
-webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.onoffswitch-checkbox {
display: none;
}
.onoffswitch-label {
display: block; overflow: hidden; cursor: pointer;
border: 2px solid #999999; border-radius: 50px;
}
.onoffswitch-inner {
width: 200%; margin-left: -100%;
-moz-transition: margin 0.3s ease-in 0s; -webkit-transition: margin 0.3s ease-in 0s;
-o-transition: margin 0.3s ease-in 0s; transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before, .onoffswitch-inner:after {
float: left; width: 50%; height: 50px; padding: 0; line-height: 50px;
font-size: 20px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
.onoffswitch-inner:before {
content: attr(data-content-before);
padding-left: 10px;
background-color: #D9D9D9; color: #FFFFFF;
}
.onoffswitch-inner:after {
content: attr(data-content-after);
padding-right: 10px;
background-color: #EEEEEE; color: #999999;
text-align: right;
}
.onoffswitch-switch {
width: 50px; margin: 0px;
background: #FFFFFF;
border: 2px solid #999999; border-radius: 50px;
position: absolute; top: 0; bottom: 0; right: 146px;
-moz-transition: all 0.3s ease-in 0s; -webkit-transition: all 0.3s ease-in 0s;
-o-transition: all 0.3s ease-in 0s; transition: all 0.3s ease-in 0s;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
right: 0px;
}
input#tripName { font-size: 24px; }