Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
White Cabinet theme
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CNS Netadmin
White Cabinet theme
Commits
24d769dc
Commit
24d769dc
authored
5 years ago
by
Hideki Shimizu
Browse files
Options
Downloads
Patches
Plain Diff
[mod] pagination and list design
parent
c0048c29
Branches
Branches containing commit
1 merge request
!1
Update README, pagenation, LICENSE
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
layouts/partials/pagination.html
+4
-13
4 additions, 13 deletions
layouts/partials/pagination.html
static/css/list.css
+31
-3
31 additions, 3 deletions
static/css/list.css
static/css/nav.css
+0
-18
0 additions, 18 deletions
static/css/nav.css
static/css/pagination.css
+71
-0
71 additions, 0 deletions
static/css/pagination.css
with
106 additions
and
34 deletions
layouts/partials/pagination.html
+
4
−
13
View file @
24d769dc
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
<link
rel=
"stylesheet"
href=
"{{ .Site.BaseURL }}css/pagination.css"
>
<link
rel=
"stylesheet"
href=
"{{ $.Site.BaseURL }}css/nav.css"
>
<div
class=
"pagination-class"
>
<nav>
{{ template "_internal/pagination.html" . }}
<ul
class=
"link justify-content-center"
>
</div>
{{ if .Paginator.HasPrev }}
<p><a
class=
"page-link"
href=
"{{ .Paginator.Prev.URL }}"
>
«
Prev
</a></p>
{{ end }}
{{ if .Paginator.HasNext }}
<p><a
class=
"page-link"
href=
"{{ .Paginator.Next.URL }}"
>
»
Next
</a></p>
{{ end }}
</ul>
</nav>
{{ end }}
This diff is collapsed.
Click to expand it.
static/css/list.css
+
31
−
3
View file @
24d769dc
.year
{
.year
{
width
:
100%
;
width
:
100%
;
margin
:
auto
;
margin
-left
:
45px
;
text-align
:
center
;
text-align
:
left
;
}
}
/*
.year h1 {
.year h1 {
position: relative;
position: relative;
display: inline-block;
display: inline-block;
padding
:
0
55px
;
padding: 0 21px;
}
*/
.year
h1
{
position
:
relative
;
padding-left
:
25px
;
}
.year
h1
:before
{
position
:
absolute
;
content
:
''
;
bottom
:
-3px
;
left
:
0
;
width
:
0
;
height
:
0
;
border
:
none
;
border-left
:
solid
15px
transparent
;
border-bottom
:
solid
15px
rgb
(
47
,
79
,
79
);
}
.year
h1
:after
{
position
:
absolute
;
content
:
''
;
bottom
:
-3px
;
left
:
10px
;
width
:
70%
;
border-bottom
:
solid
3px
rgb
(
47
,
79
,
79
);
}
}
/*
.year h1:before, .year h1:after {
.year h1:before, .year h1:after {
content: '';
content: '';
position: absolute;
position: absolute;
...
@@ -26,3 +53,4 @@
...
@@ -26,3 +53,4 @@
.year h1:after {
.year h1:after {
right: 0;
right: 0;
}
}
*/
This diff is collapsed.
Click to expand it.
static/css/nav.css
deleted
100644 → 0
+
0
−
18
View file @
c0048c29
.page-link
{
margin-top
:
20px
;
width
:
auto
;
font-size
:
20px
;
font-weight
:
bold
;
/*padding: 0.25em 0.25em; */
padding
:
1px
7px
1px
7px
;
border-radius
:
4px
;
transition
:
.4s
;
text-decoration
:
none
;
border
:
solid
1px
black
;
color
:
black
;
}
.page-link
:hover
{
background
:
black
;
color
:
white
;
}
This diff is collapsed.
Click to expand it.
static/css/pagination.css
0 → 100644
+
71
−
0
View file @
24d769dc
.pagination-class
{
padding
:
0px
;
text-align
:
center
;
height
:
50px
;
}
.pagination
{
display
:
inline-block
;
padding-left
:
0
;
margin
:
20px
0
;
border-radius
:
4px
;
}
.pagination
>
li
{
display
:
inline
;
}
.pagination
>
li
>
a
,
.pagination
>
li
>
span
{
position
:
relative
;
float
:
left
;
padding
:
6px
12px
;
margin-left
:
-1px
;
line-height
:
1.42857143
;
color
:
#337ab7
;
text-decoration
:
none
;
background-color
:
#fff
;
border
:
1px
solid
#ddd
;
}
.pagination
>
li
:first-child
>
a
,
.pagination
>
li
:first-child
>
span
{
margin-left
:
0
;
border-top-left-radius
:
4px
;
border-bottom-left-radius
:
4px
;
}
.pagination
>
li
:last-child
>
a
,
.pagination
>
li
:last-child
>
span
{
border-top-right-radius
:
4px
;
border-bottom-right-radius
:
4px
;
}
.pagination
>
li
>
a
:hover
,
.pagination
>
li
>
span
:hover
,
.pagination
>
li
>
a
:focus
,
.pagination
>
li
>
span
:focus
{
z-index
:
2
;
color
:
#23527c
;
background-color
:
#eee
;
border-color
:
#ddd
;
}
.pagination
>
.active
>
a
,
.pagination
>
.active
>
span
,
.pagination
>
.active
>
a
:hover
,
.pagination
>
.active
>
span
:hover
,
.agination
>
.active
>
a
:focus
,
.pagination
>
.active
>
span
:focus
{
z-index
:
3
;
color
:
#fff
;
cursor
:
default
;
background-color
:
#337ab7
;
border-color
:
#337ab7
;
}
.pagination
>
.disabled
>
span
,
.pagination
>
.disabled
>
span
:hover
,
.pagination
>
.disabled
>
span
:focus
,
.pagination
>
.disabled
>
a
,
.pagination
>
.disabled
>
a
:hover
,
.pagination
>
.disabled
>
a
:focus
{
color
:
#777
;
cursor
:
not-allowed
;
background-color
:
#fff
;
border-color
:
#ddd
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment