bootstrap-source/bootstrap-3.0.3/less/pagination.less
author stetrabby <info@trabucchi.de>
Fri, 20 Dec 2013 22:49:16 +0100
changeset 54 0ded9d7748b7
permissions -rwxr-xr-x
initial less based on the pymove3d.css
info@54
     1
//
info@54
     2
// Pagination (multiple pages)
info@54
     3
// --------------------------------------------------
info@54
     4
.pagination {
info@54
     5
  display: inline-block;
info@54
     6
  padding-left: 0;
info@54
     7
  margin: @line-height-computed 0;
info@54
     8
  border-radius: @border-radius-base;
info@54
     9
info@54
    10
  > li {
info@54
    11
    display: inline; // Remove list-style and block-level defaults
info@54
    12
    > a,
info@54
    13
    > span {
info@54
    14
      position: relative;
info@54
    15
      float: left; // Collapse white-space
info@54
    16
      padding: @padding-base-vertical @padding-base-horizontal;
info@54
    17
      line-height: @line-height-base;
info@54
    18
      text-decoration: none;
info@54
    19
      background-color: @pagination-bg;
info@54
    20
      border: 1px solid @pagination-border;
info@54
    21
      margin-left: -1px;
info@54
    22
    }
info@54
    23
    &:first-child {
info@54
    24
      > a,
info@54
    25
      > span {
info@54
    26
        margin-left: 0;
info@54
    27
        .border-left-radius(@border-radius-base);
info@54
    28
      }
info@54
    29
    }
info@54
    30
    &:last-child {
info@54
    31
      > a,
info@54
    32
      > span {
info@54
    33
        .border-right-radius(@border-radius-base);
info@54
    34
      }
info@54
    35
    }
info@54
    36
  }
info@54
    37
info@54
    38
  > li > a,
info@54
    39
  > li > span {
info@54
    40
    &:hover,
info@54
    41
    &:focus {
info@54
    42
      background-color: @pagination-hover-bg;
info@54
    43
    }
info@54
    44
  }
info@54
    45
info@54
    46
  > .active > a,
info@54
    47
  > .active > span {
info@54
    48
    &,
info@54
    49
    &:hover,
info@54
    50
    &:focus {
info@54
    51
      z-index: 2;
info@54
    52
      color: @pagination-active-color;
info@54
    53
      background-color: @pagination-active-bg;
info@54
    54
      border-color: @pagination-active-bg;
info@54
    55
      cursor: default;
info@54
    56
    }
info@54
    57
  }
info@54
    58
info@54
    59
  > .disabled {
info@54
    60
    > span,
info@54
    61
    > span:hover,
info@54
    62
    > span:focus,
info@54
    63
    > a,
info@54
    64
    > a:hover,
info@54
    65
    > a:focus {
info@54
    66
      color: @pagination-disabled-color;
info@54
    67
      background-color: @pagination-bg;
info@54
    68
      border-color: @pagination-border;
info@54
    69
      cursor: not-allowed;
info@54
    70
    }
info@54
    71
  }
info@54
    72
}
info@54
    73
info@54
    74
// Sizing
info@54
    75
// --------------------------------------------------
info@54
    76
info@54
    77
// Large
info@54
    78
.pagination-lg {
info@54
    79
  .pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @border-radius-large);
info@54
    80
}
info@54
    81
info@54
    82
// Small
info@54
    83
.pagination-sm {
info@54
    84
  .pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @border-radius-small);
info@54
    85
}
Impressum Datenschutzerklärung