mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
8e7b8f8bfa
- Uses Node Bourbon https://www.npmjs.org/package/node-bourbon - Produces source maps - Removed all ruby dependencie History: - Remove bourbon from package and cleanup grunt tasks - Un-bourbon keyframe animations - Un-bourbon transitions - Un-bourbon box-sizing - Un-bourbon font-feature-settings - Import bourbon clearfix mixin - Un-bourbon linear gradients - Un-bourbon input types - Un-bourbon positions - Un-bourbon transforms - Un-bourbon notification animations - Un-bourbon uploader box-sizing - Un-bourbon border-radius - Un-bourbon splitbutton transitions - Add triangle mixin - Un-bourbon default container positioning - Un-bourbon flexbox properties - Fix triangle mixin - It now has the same output as the Bourbon mixin - Add autoprefixer - Correct global default font size - Remove unwanted prefixes - Because, y'know, autoprefixer - Output from node sass migration - Includes all the files we usually have, plus source maps
112 lines
2.1 KiB
SCSS
112 lines
2.1 KiB
SCSS
//
|
|
// Pagination (multiple pages)
|
|
// --------------------------------------------------
|
|
.pagination {
|
|
display: inline-block;
|
|
padding-left: 0;
|
|
margin: 20px 0;
|
|
border-radius: $rounded;
|
|
|
|
> li {
|
|
display: inline; // Remove list-style and block-level defaults
|
|
> a,
|
|
> span {
|
|
position: relative;
|
|
float: left; // Collapse white-space
|
|
padding: 6px 12px;
|
|
line-height: 1.42857143;
|
|
text-decoration: none;
|
|
color: $blue;
|
|
background-color: #fff;
|
|
border: 1px solid $lightbrown;
|
|
margin-left: -1px;
|
|
}
|
|
&:first-child {
|
|
> a,
|
|
> span {
|
|
margin-left: 0;
|
|
border-top-left-radius: $rounded;
|
|
border-bottom-left-radius: $rounded;
|
|
}
|
|
}
|
|
&:last-child {
|
|
> a,
|
|
> span {
|
|
border-top-right-radius: $rounded;
|
|
border-bottom-right-radius: $rounded;
|
|
}
|
|
}
|
|
}
|
|
|
|
> li > a,
|
|
> li > span {
|
|
&:hover,
|
|
&:focus {
|
|
color: #2A6496;
|
|
background-color: #EEE;
|
|
}
|
|
}
|
|
|
|
> .active > a,
|
|
> .active > span {
|
|
&,
|
|
&:hover,
|
|
&:focus {
|
|
z-index: 2;
|
|
color: #FFF;
|
|
background-color: #428BCA;
|
|
cursor: default;
|
|
}
|
|
}
|
|
|
|
> .disabled {
|
|
> span,
|
|
> span:hover,
|
|
> span:focus,
|
|
> a,
|
|
> a:hover,
|
|
> a:focus {
|
|
color: #777;
|
|
background-color: #FFF;
|
|
border-color: #DDD;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Sizing
|
|
// --------------------------------------------------
|
|
|
|
@mixin pagination-size($padding-vertical, $padding-horizontal, $font-size, $border-radius) {
|
|
> li {
|
|
> a,
|
|
> span {
|
|
padding: $padding-vertical $padding-horizontal;
|
|
font-size: $font-size;
|
|
}
|
|
&:first-child {
|
|
> a,
|
|
> span {
|
|
border-top-left-radius: $border-radius;
|
|
border-bottom-left-radius: $border-radius;
|
|
}
|
|
}
|
|
&:last-child {
|
|
> a,
|
|
> span {
|
|
border-top-right-radius: $border-radius;
|
|
border-bottom-right-radius: $border-radius;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Large
|
|
.pagination-lg {
|
|
@include pagination-size(10px, 16px, 18px, 6px);
|
|
}
|
|
|
|
// Small
|
|
.pagination-sm {
|
|
@include pagination-size(5px, 10px, 12px, 3px);
|
|
} |