Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Theme
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
osuny
Theme
Commits
51ee9751
Commit
51ee9751
authored
2 years ago
by
alexisben
Browse files
Options
Downloads
Patches
Plain Diff
pagination wip
parent
e3d1f42e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
assets/sass/_theme/design-system/pagination.sass
+105
-0
105 additions, 0 deletions
assets/sass/_theme/design-system/pagination.sass
assets/sass/_theme/hugo-osuny.sass
+1
-0
1 addition, 0 deletions
assets/sass/_theme/hugo-osuny.sass
with
106 additions
and
0 deletions
assets/sass/_theme/design-system/pagination.sass
0 → 100644
+
105
−
0
View file @
51ee9751
.pagination
// font-family: $font-family-sans-serif
font-size
:
px2rem
(
14
)
justify-content
:
center
margin
:
#{
$grid-gutter
*
2
.5
}
0
0
li
// @extend .page-item
a
// @extend .page-link
.disabled
a
:
:
before
opacity
:
.3
&
:not
(
&
-between-pages
)
li
&
:first-child
,
&
:nth-child
(
2
),
&
:nth-last-child
(
2
),
&
:last-child
a
// @extend .icon
&
:first-child
a
// @extend .icon-arrow-first
&
:nth-child
(
2
)
a
// @extend .icon-arrow-left
&
:nth-last-child
(
2
)
a
// @extend .icon-arrow-right
&
:last-child
a
// @extend .icon-arrow-last
a
:
:
before
font-size
:
px2rem
(
12
)
&
-between-pages
justify-content
:
space-between
// margin-left: -$pagination-padding-x
// margin-right: -$pagination-padding-x
// margin-top: map-get($spacers, 5)
li
flex
:
1
a
background-color
:
transparent
border
:
0
&
:hover
background-color
:
transparent
text-decoration
:
underline
span
text-decoration
:
none
span
// color: $gray-600
.previous
padding-left
:
0
span
// @extend .icon
// @extend .icon-arrow-left
&
::before
font-size
:
px2rem
(
12
)
margin-right
:
px2rem
(
5
)
.next
padding-right
:
0
text-align
:
right
span
&
::after
// @include icon
// content: map-get($icons, "arrow-right")
font-size
:
px2rem
(
12
)
margin-left
:
px2rem
(
5
)
@include
media-breakpoint-down
(
md
)
flex-direction
:
column-reverse
margin-left
:
0
margin-right
:
0
li
.previous
,
li
.next
// border-top: 1px solid $gray-500
text-align
:
left
a
padding
:
px2rem
(
20
)
px2rem
(
40
)
px2rem
(
20
)
0
&
::after
@include
icon
font-size
:
px2rem
(
12
)
opacity
:
0
.5
position
:
absolute
right
:
0
top
:
50%
transform
:
translateY
(
-50%
)
span
&
::after
,
&
::before
content
:
none
li
.previous
// border-bottom: 1px solid $gray-500
a
:
:
after
// content: map-get($icons, "arrow-left")
li
.next
a
:
:
after
// content: map-get($icons, "arrow-right")
This diff is collapsed.
Click to expand it.
assets/sass/_theme/hugo-osuny.sass
+
1
−
0
View file @
51ee9751
...
...
@@ -20,6 +20,7 @@
@import
"design-system/grid"
@import
"design-system/header"
@import
"design-system/hero"
@import
"design-system/pagination"
@import
"design-system/nav"
@import
"design-system/table"
@import
"design-system/table_of_content"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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