Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit912342ff5b12f037c74ce1f0a3466ddba297f860 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-04-11 11:06:32 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-04-11 11:06:32 +0800
Files0e923ebb855bb6573ef5021d1c262f78c27cffc8 /src
Spectre-Dark-Gruvbox-912342ff5b12f037c74ce1f0a3466ddba297f860.tar
Spectre-Dark-Gruvbox-912342ff5b12f037c74ce1f0a3466ddba297f860.tar.gz
Spectre-Dark-Gruvbox-912342ff5b12f037c74ce1f0a3466ddba297f860.zip
Parentee3df65f4decab9be9eb456d9e7112646207c001 (diff)
add pagination code
2 files changed, 32 insertions, 13 deletions
-rw-r--r--src/avatars.less12
-rw-r--r--src/navigation.less33
diff --git a/src/avatars.less b/src/avatars.less
index 6494292..159cbbd 100644
--- a/src/avatars.less
+++ b/src/avatars.less
@@ -48,18 +48,6 @@
background-color: #fff;
}
- .avatar-status {
- display: block;
- width: 25%;
- height: 25%;
- position: absolute;
- right: 0;
- bottom: 0;
- border: .1em solid #fff;
- border-radius: 10rem;
- background-color: @control-color-success;
- }
-
&[data-initial]::after {
content: attr(data-initial);
position: absolute;
diff --git a/src/navigation.less b/src/navigation.less
index f823210..9828cf3 100644
--- a/src/navigation.less
+++ b/src/navigation.less
@@ -77,5 +77,36 @@
}
}
}
-// TODO: Pagination
+// Pagination
+.pagination {
+ list-style: none;
+ margin: .5rem 0;
+ padding: 1.2rem;
+
+ .page-item {
+ float: left;
+ padding: .1rem .2rem;
+ border: .1rem solid transparent;
+ border-radius: .3rem;
+
+ a {
+ display: block;
+ padding: .5rem 1.5rem;
+ color: @core-color;
+ text-decoration: none;
+
+ &:hover,
+ &:focus {
+ color: darken(@core-color, 15%);
+ }
+ }
+ &.active {
+ background-color: @core-color;
+
+ a {
+ color: #fff;
+ }
+ }
+ }
+}