Skip to content

Commit

Permalink
(less) add new variables for "pagination" to improve support of custo…
Browse files Browse the repository at this point in the history
…mizing
  • Loading branch information
tlindig committed Dec 20, 2013
1 parent 3a5743d commit d3393b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
9 changes: 6 additions & 3 deletions pagination.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
padding: @padding-base-vertical @padding-base-horizontal;
line-height: @line-height-base;
text-decoration: none;
color: @pagination-color;
background-color: @pagination-bg;
border: 1px solid @pagination-border;
margin-left: -1px;
Expand All @@ -39,7 +40,9 @@
> li > span {
&:hover,
&:focus {
color: @pagination-hover-color;
background-color: @pagination-hover-bg;
border-color: @pagination-hover-border;
}
}

Expand All @@ -51,7 +54,7 @@
z-index: 2;
color: @pagination-active-color;
background-color: @pagination-active-bg;
border-color: @pagination-active-bg;
border-color: @pagination-active-border;
cursor: default;
}
}
Expand All @@ -64,8 +67,8 @@
> a:hover,
> a:focus {
color: @pagination-disabled-color;
background-color: @pagination-bg;
border-color: @pagination-border;
background-color: @pagination-disabled-bg;
border-color: @pagination-disabled-border;
cursor: not-allowed;
}
}
Expand Down
8 changes: 7 additions & 1 deletion variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -352,15 +352,21 @@
// Pagination
// -------------------------

@pagination-color: @link-color;
@pagination-bg: #fff;
@pagination-border: #ddd;

@pagination-hover-color: @link-hover-color;
@pagination-hover-bg: @gray-lighter;
@pagination-hover-border: #ddd;

@pagination-active-bg: @brand-primary;
@pagination-active-color: #fff;
@pagination-active-bg: @brand-primary;
@pagination-active-border: @brand-primary;

@pagination-disabled-color: @gray-light;
@pagination-disabled-bg: #fff;
@pagination-disabled-border: #ddd;


// Pager
Expand Down

0 comments on commit d3393b7

Please sign in to comment.