Skip to content

Commit

Permalink
Start using variables
Browse files Browse the repository at this point in the history
  • Loading branch information
inf0rmer committed May 23, 2012
1 parent 98c91f5 commit d8ece71
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions src/less/listables.less
@@ -1,8 +1,15 @@
// LISTABLES // LISTABLES
// ------ // ------


@var baseColor = @gray;
@var baseColorLight = @grayLight;
@var baseColorDarker = @grayDarker;
@var borderColor = @tableBorder;
@var backgroundAccent = @tableBackgroundAccent;
@var backgroundHover = @tableBackgroundHover;

.listable { .listable {
border: 1px solid fade(@grayLight, 70%); border: 1px solid fade(@baseColorLight, 70%);
.border-radius(4px); .border-radius(4px);
} }


Expand All @@ -16,7 +23,7 @@


.listable-list .listable-item { .listable-list .listable-item {
padding: 10px; padding: 10px;
border-top: 1px solid @tableBorder; border-top: 1px solid @borderColor;


.transition(.2s ease); .transition(.2s ease);
.text-overflow(); .text-overflow();
Expand All @@ -28,19 +35,19 @@
} }


.listable-striped .listable-item:nth-child(odd) { .listable-striped .listable-item:nth-child(odd) {
background-color: @tableBackgroundAccent; background-color: @backgroundAccent;
} }


.listable-list .listable-item:hover { .listable-list .listable-item:hover {
background-color: @tableBackgroundHover background-color: @backgroundHover
} }


.listable-list .listable-item{ .listable-list .listable-item{
color: @grayDarker; color: @baseColorDarker;
position: relative; position: relative;


a { a {
color: @grayDarker; color: @baseColorDarker;
&:hover { &:hover {
text-decoration: none; text-decoration: none;
} }
Expand All @@ -58,7 +65,7 @@
font-size: @baseFontSize + 5; font-size: @baseFontSize + 5;
font-weight: bold; font-weight: bold;
line-height: @baseLineHeight; line-height: @baseLineHeight;
color: fade(@grayLight, 60%); color: fade(@baseColorLight, 60%);
text-align: center; text-align: center;


// Hover state // Hover state
Expand All @@ -71,8 +78,8 @@




.listable-header { .listable-header {
background-color: fade(@gray, 20%); background-color: fade(@baseColor, 20%);
color: @gray; color: @baseColor;
padding: 10px; padding: 10px;
text-shadow: 1px 1px 0 #FFF; text-shadow: 1px 1px 0 #FFF;


Expand All @@ -87,7 +94,7 @@
} }


.listable-search { .listable-search {
background-color: fade(@gray, 10%); background-color: fade(@baseColor, 10%);
padding: 10px; padding: 10px;


form, input { form, input {
Expand Down

0 comments on commit d8ece71

Please sign in to comment.