mazda-custom-application-sdk/apps/app.speedometer/app.css
140b8f67-ec51-4b64-9606-bff2dffa0170 de0627bd88 First commit after reorg and cleanup
2016-03-14 22:47:00 -07:00

193 lines
5 KiB
CSS

/**
* Custom Applications SDK for Mazda Connect Infotainment System
*
* A mini framework that allows to write custom applications for the Mazda Connect Infotainment System
* that includes an easy to use abstraction layer to the JCI system.
*
* Written by Andreas Schwarz (http://github.com/flyandi/mazda-custom-applications-sdk)
* Copyright (c) 2016. All rights reserved.
*
* WARNING: The installation of this application requires modifications to your Mazda Connect system.
* If you don't feel comfortable performing these changes, please do not attempt to install this. You might
* be ending up with an unusuable system that requires reset by your Dealer. You were warned!
*
* This program is free software: you can redistribute it and/or modify it under the terms of the
* GNU General Public License as published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
* License for more details.
*
* You should have received a copy of the GNU General Public License along with this program.
* If not, see http://www.gnu.org/licenses/
*
*/
/**
* NOTICE: It's important that you target your application with the [app] attribute
*/
[app="app.speedometer"] {
background:url(images/speedometer_background.jpg) no-repeat center center;
}
[app="app.speedometer"] #speedometer {
position:absolute;
left: 1px;
bottom: 0px;
width: 496px;
height: 416px;
background: url('images/speedometer_meter.png') no-repeat scroll 0 0;
z-index: 5;
}
[app="app.speedometer"] #speedometer #speedounit {
position: relative;
left: 0;
top: 372px;
color: #999999;
font-size: 15px;
text-align: center;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
[app="app.speedometer"] #speedoindicator {
width: 25px;
height: 310px;
background: url('images/speedometer_needle.png') no-repeat scroll center center transparent;
left: 237px;
position: absolute;
bottom: 7px;
z-index: 103;
transform: rotate(-120deg);
}
[app="app.speedometer"] #speedodial {
left: 110px;
bottom: 62px;
width: 278px;
height: 241px;
background: url('images/speedometer_ticks.png') no-repeat scroll 0 0;
background-size: 100% 93.7%;
position:absolute;
z-index: 101;
}
[app="app.speedometer"] #speedodialtext {
position:absolute;
left: 110px;
bottom: 62px;
width: 278px;
height: 241px;
}
[app="app.speedometer"] #speedodialtext .container {
position:relative;
width:100%;
height:100%;
}
[app="app.speedometer"] #speedodialtext .container .speedotext {
font-size:25px;
color:#CCCCCC;
z-index: 101;
position:absolute;
text-align: center;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
[app="app.speedometer"] #speedocurrent {
position: absolute;
left: 139px;
bottom: 53px;
width: 220px;
height: 220px;
background: url('images/speedometer_speed.png') no-repeat scroll center center transparent;
color: #FFFFFF;
font-size: 40px;
line-height: 217px;
text-align: center;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
z-index: 104;
}
[app="app.speedometer"] #gps {
position: absolute;
left: 139px;
bottom: 53px;
width: 220px;
height: 220px;
background: url('images/speedometer_compass.png') no-repeat scroll center center transparent;
transform: rotate(0deg);
z-index: 102;
}
[app="app.speedometer"] #gpscompass {
position: relative;
top: 21px;
left: 21px;
width: 179px;
height: 179px;
z-index: 102;
}
[app="app.speedometer"] #gpscompass div {
position: absolute;
width: 24px;
height: 24px;
text-align: center;
/*display: inline-block;*/
font-size: 20px;
color: #DDDDDD;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
line-height: 20px;
}
[app="app.speedometer"] #gpscompass div.small {
width: 30px;
font-size: 16px;
color: #BBBBBB;
line-height: 22px;
}
[app="app.speedometer"] #speedograph {
position:absolute;
bottom:20px;
right:20px;
width:260px;
height:150px;
background:rgba(50, 50, 50, 0.5);
box-shadow:rgba(255, 255, 255, 0.3) 0 0 15px;
font-size:14px;
color:#eee;
}
[app="app.speedometer"] #speedorpm {
position:absolute;
top:43px;
left:39px;
width: 420px;
height: 420px;
position: absolute;
clip: rect(0px, 420px, 420px, 210px);
z-index: 12;
transform:rotate(-180deg);
}
[app="app.speedometer"] #speedorpm .circle {
width: 400px;
height: 400px;
border: 10px solid rgba(255, 40, 40, 1);
border-radius: 210px;
position: absolute;
clip: rect(0px, 210px, 420px, 0px);
transform: rotate(0deg);
box-shadow:inset 0 0 25px rgba(255, 50, 50, 1);
opacity:0;
}