Skip to content

Commit

Permalink
Update MMM-MyTraffic.css
Browse files Browse the repository at this point in the history
  • Loading branch information
htilburgs committed Apr 18, 2019
1 parent 233accb commit e875653
Showing 1 changed file with 114 additions and 8 deletions.
122 changes: 114 additions & 8 deletions MMM-MyTraffic.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,58 +9,164 @@ Use any colors you want! Go to - "http://htmlcolorcodes.com/color-picker/"
Pick your color, copy and paste the HEX number. Example - #62FF00 = bright green.
*/

@font-face {
font-family: 'traffic';
src: url('fonts/traffic.eot?yxhtz');
src: url('fonts/traffic.eot?yxhtz#iefix') format('embedded-opentype'),
url('fonts/traffic.ttf?yxhtz') format('truetype'),
url('fonts/traffic.woff?yxhtz') format('woff'),
url('fonts/traffic.svg?yxhtz#traffic') format('svg');
font-weight: normal;
font-style: normal;
}

[class^="tr-"], [class*=" tr-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'traffic' !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;

/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.tr-traffic-camera:before {
content: "\e900";
color: red;
}

.tr-traffic-jam:before {
content: "\e901";
color: yellow;
}

.tr-traffic-cone:before {
content: "\e902";
color: orange;
}

.jamsInformation {
font-family: Roboto;
margin-left: 10px;
color: white;
padding-top: 3px;
color: #fff;
width: auto;
line-height: 20px;
text-align: left;
}

.jamsDescription {
font-family: Roboto;
margin-left: 10px;
color: white;
padding-left: 19px;
padding-top: 3px;
color: #fff;
width: auto;
line-height: 20px;
text-align: left;
margin-block-start: 0.1em;
margin-block-end: 0.1em;
}

.radarInformation {
font-family: Roboto;
margin-left: 10px;
color: white;
padding-top: 3px;
color: #fff;
width: auto;
line-height: 20px;
text-align: left;
}

.consInformation {
font-family: Roboto;
margin-left: 10px;
color: white;
padding-top: 3px;
color: #fff;
width: auto;
line-height: 20px;
text-align: left;
}

.consDescription {
font-family: Roboto;
margin-left: 10px;
color: white;
padding-left: 19px;
padding-top: 3px;
color: #fff;
width: auto;
line-height: 20px;
text-align: left;
margin-block-start: 0.1em;
margin-block-end: 0.1em;
}

.wrapper {}

.trafficicon-jam {
background-image: url(icons/trafficjam.png);
background-repeat: no-repeat;
display: block;
width: 250px;
height: 250px;
width: 256px;
height: 256px;
background-color: yellow;
}

.trafficicon-camera {
background-image: url(icons/camera.png);
background-repeat: no-repeat;
display: block;
width: 250px;
height: 250px;
width: 256px;
height: 256px;
background-color: red;
}

.trafficicon-construction {
background-image: url(icons/cone.png);
background-repeat: no-repeat;
display: block;
width: 250px;
height: 250px;
width: 256px;
height: 256px;
background-color: orange;
}

.small-icon {
float: left;
position: absolute;
zoom: .14;
-moz-transform: scale(.14);
zoom: .18;
-moz-transform: scale(.18);
/* Firefox */
-moz-transform-origin: 0 0;
}

.description {
font-family: Roboto;
margin-left: 10px;
color: white;
padding-left: 50px;
padding-top: 3px;
color: #fff;
width: auto;
line-height: 20px;
text-align: left;
}

.event {
font-family: Roboto;
margin-left: 10px;
color: white;
padding-left: 50px;
padding-top: 3px;
color: #fff;
width: auto;
line-height: 20px;
Expand Down

0 comments on commit e875653

Please sign in to comment.