Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Share prototype of Edmunds at glance
Browse files Browse the repository at this point in the history
  • Loading branch information
MrJakeBlues committed Mar 11, 2014
1 parent c27a1de commit b2b8c8e
Show file tree
Hide file tree
Showing 20 changed files with 576 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@
"jquery-ui": "1.10.3",
"requirejs": "2.1.10",
"underscore": "1.5.2"
},
"devDependencies": {
"less": "~1.7.0"
}
}
Binary file added edmunds/widgets/glance/prototype/img/arrow-down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added edmunds/widgets/glance/prototype/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 68 additions & 0 deletions edmunds/widgets/glance/prototype/less/base.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
@import "../../bower_components/bootstrap/less/bootstrap";
@import "modules/variables";
@import "modules/mixins";
@import "partials/letter-grades";
@import "partials/rating-selectors";
@import "header";
@import "content";
@import "footer";

// Rating bar
@import "rating-bar";

.bold{
font-weight: bold;
}

// Fast dropdown-menu fixing
.dropdown-menu{
left: -85px;
padding: 0;
.border-radius(0);
font-size: 11px;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus{
background-color: #05a4ff;
color: #fff;
border: 1px solid #fff;
}
.dropdown-menu > li > a{
border: 1px solid #fff;
padding: 7px 20px;
}
.btn.list-of-cars{
background: transparent;
border: none;
font-size: 12px;
color: #535353;
padding: 3px 5px;
margin-left: -5px !important;
margin-bottom: 5px;
margin-top: 5px;
border: 1px solid transparent;
.border-radius(4px);
&:hover,
&:focus,
&:active{
border-color: #999;
#gradient > .vertical-three-colors(#fff; #dbdbdb; 85%; #efefef);
}
.caret{
margin-left: 10px;
}
}
.widget h1{
margin-bottom: 0;
text-transform: uppercase;
margin-right: 20px;
}
.btn-group .dropdown-menu{
left: 0;
font-size: 12px;
margin-left: -5px;
width: 224px;
& > li > a{
padding: 3px 6px;
}
}
3 changes: 3 additions & 0 deletions edmunds/widgets/glance/prototype/less/content.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.rating-bar{
background: #00a8fe;
}
19 changes: 19 additions & 0 deletions edmunds/widgets/glance/prototype/less/footer.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
footer{
border-top: 1px dotted #f0f0f0;
.legacy{
float: left;
font: 11px/40px Arial, Helvetica, sans-serif;
color: #0070bf;
}
.logo{
color: #888;
font: italic 11px/40px Arial, Helvetica, sans-serif;
text-align: right;
a{
background: url(../img/logo.png) no-repeat;
width: 65px;
height: 19px;
margin: 10px 0 0 5px;
}
}
}
166 changes: 166 additions & 0 deletions edmunds/widgets/glance/prototype/less/header.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
body{
margin: 0;
padding: 0;
min-width: 250px;
}

.widget{
background: #fff;
.border-bottom-radius(5px);
.border-top-radius(5px);
border: 1px solid #aaa;
}
header{
#gradient > .vertical(#f2f2f2; #dadada);
h1{
color: @header-title-color;
font: @header-title-font;
margin: 10px 0;
}
}
.nav > li,
.nav > li + li{
margin-left: 13px;
}
.nav > li > a{
height: 26px;
padding: 0 3px;
background: url(../img/tab_button_center.png) repeat-x;
font: 11px/26px Arial, Helvetica, sans-serif;
color: #444;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
&:hover{
background: url(../img/tab_button_center_hover.png) repeat-x;
color: #fff;
}
&:focus{
background-color: transparent;
}
&:before{
content: "";
position: absolute;
height: 26px;
width: 6px;
background: url(../img/tab_button_left.png) no-repeat;
top: 0;
left: -6px;
}
&:after{
content: "";
position: absolute;
height: 26px;
width: 17px;
background: url(../img/tab_button_right.png) no-repeat;
top: 0;
right: -17px;
z-index: 2;
}
&:hover:before{
background: url(../img/tab_button_left_hover.png) no-repeat;
}
&:hover:after{
background: url(../img/tab_button_right_hover.png) no-repeat;
}
}
.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus,
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus{
background: url(../img/tab_button_center_hover.png) repeat-x;
color: #fff;
}
.nav .open > a,
.nav-pills > li.active > a{
&:before{
background: url(../img/tab_button_left_hover.png) no-repeat;
}
&:after{
background: url(../img/tab_button_right_hover.png) no-repeat;
}
}
/*
.widget{
background: #fff;
margin: 0 auto;
min-width: 220px;
}
.header{
.clearfix();
background: @header-background;
position: relative;
-webkit-border-radius: 3px 3px 0 0;
-moz-border-radius: 3px 3px 0 0;
border-radius: 3px 3px 0 0;
.title{
color: @header-title-color;
font: @header-title-font;
text-transform: uppercase;
padding: 15px 20px 8px;
}
.tabs{
.clearfix();
float: left;
.active{
background: url(../img/tab_button_center_hover.png) repeat-x;
cursor: pointer;
color: #fff;
&:before{
background: url(../img/tab_button_left_hover.png) no-repeat;
}
&:after{
background: url(../img/tab_button_right_hover.png) no-repeat;
}
}
div{
height: 26px;
padding: 0 3px;
margin-left: 12px;
float: right;
position: relative;
background: url(../img/tab_button_center.png) repeat-x;
font: 11px/26px Arial, Helvetica, sans-serif;
color: #444;
&:hover{
background: url(../img/tab_button_center_hover.png) repeat-x;
cursor: pointer;
color: #fff;
}
&:before{
content: "";
position: absolute;
height: 26px;
width: 6px;
background: url(../img/tab_button_left.png) no-repeat;
top: 0;
left: -6px;
}
&:hover:before{
background: url(../img/tab_button_left_hover.png) no-repeat;
}
&:after{
content: "";
position: absolute;
height: 26px;
width: 17px;
background: url(../img/tab_button_right.png) no-repeat;
top: 0;
right: -17px;
}
&:hover:after{
background: url(../img/tab_button_right_hover.png) no-repeat;
}
}
.arrow-down{
background: url(../img/arrow-down.png) no-repeat;
width: 9px;
height: 7px;
display: inline-block;
vertical-align: middle;
margin-left: 15px;
}
}
}*/
5 changes: 5 additions & 0 deletions edmunds/widgets/glance/prototype/less/modules/mixins.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.border-radius(@radius) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
border-radius: @radius;
}
27 changes: 27 additions & 0 deletions edmunds/widgets/glance/prototype/less/modules/variables.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*===== BASE FONT VARIABLES =====*/
@base-font-family: Arial, Helvetica, sans-serif;
@base-font-size: 11px;

/*===== LETTER GRADE VARIABLES =====*/
@grade-primary-background: #43baff;
@grade-primary-color: #8ed6ff;
@grade-active-color: #fff;
@grade-excellent-background: #389800;
@grade-good-background: #90be3f;
@grade-fair-background: #fc3;
@grade-poor-background: saturate(#bf2f37, 10%);
@grade-bad-background: #bf2f37;
@grade-big-size: 35px;
@grade-small-size: 15px;

@header-background: #f2f2f2;
@header-title-color: #333;
@header-title-font: bold 12px Arial, Helvetica, sans-serif;

// Breakpoints
@screen-xs: 250px;
@screen-sm: 480px;
@screen-md: 710px;

@container-sm: 100%;
@container-md: 100%;
43 changes: 43 additions & 0 deletions edmunds/widgets/glance/prototype/less/partials/letter-grades.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
.letter-grade{
height: @grade-big-size;
width: @grade-big-size;
.border-radius(4px);
font: bold 24px/@grade-big-size @base-font-family;
text-transform: uppercase;
text-align: center;
background: @grade-primary-background;
color: @grade-primary-color;
float: left;
margin-left: 5px;
&:first-child{
margin-left: 0;
}
&.small{
height: @grade-small-size;
width: @grade-small-size;
.border-radius(3px);
font-size: 10px;
line-height: @grade-small-size;
margin: 4px 10px 4px;
}
&.excellent{
background: @grade-excellent-background;
color: @grade-active-color;
}
&.good{
background: @grade-good-background;
color: @grade-active-color;
}
&.fair{
background: @grade-fair-background;
color: @grade-active-color;
}
&.poor{
background: @grade-poor-background;
color: @grade-active-color;
}
&.bad{
background: @grade-bad-background;
color: @grade-active-color;
}
}
Loading

0 comments on commit b2b8c8e

Please sign in to comment.