Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
c60b9fd1
Commit
c60b9fd1
authored
Feb 25, 2021
by
Lyza Danger Gardner
Committed by
Robert Knight
Feb 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add responsive layout for pagination controls
parent
9078637e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
PaginationNavigation.scss
src/styles/sidebar/components/PaginationNavigation.scss
+22
-9
No files found.
src/styles/sidebar/components/PaginationNavigation.scss
View file @
c60b9fd1
@use
'../../mixins/buttons'
;
@use
'../../mixins/buttons'
;
@use
"../../mixins/layout"
;
@use
"../../mixins/layout"
;
@use
"../../mixins/responsive"
;
@use
"../../mixins/utils"
;
@use
"../../mixins/utils"
;
@use
"../../variables"
as
var
;
@use
"../../variables"
as
var
;
.PaginationNavigation
{
.PaginationNavigation
{
@include
utils
.
font--large
;
@include
utils
.
font--large
;
// Lay out page navigation buttons horizontally as:
// | prevPage | numberedPages | nextPage
//
// e.g.
// | [<- prev] | [2] ... [5] [6] [7] ... [10] | [next ->] |
display
:
grid
;
display
:
grid
;
grid-template-columns
:
8em
auto
8em
;
align-items
:
center
;
align-items
:
center
;
grid-template-areas
:
'prevPage n
umberedPages n
extPage'
;
grid-template-areas
:
'prevPage nextPage'
;
&
__prev
{
&
__prev
{
grid-area
:
prevPage
;
grid-area
:
prevPage
;
...
@@ -26,8 +21,9 @@
...
@@ -26,8 +21,9 @@
}
}
&
__pages
{
&
__pages
{
grid-area
:
numberedPages
;
// On narrower viewports, there isn't enough room to display all of
@include
layout
.
row
(
$justify
:
center
,
$align
:
center
);
// the numbered page buttons; fall back to just prev and next options
display
:
none
;
}
}
&
__button
,
&
__button
,
...
@@ -54,4 +50,21 @@
...
@@ -54,4 +50,21 @@
}
}
padding-right
:
var
.
$layout-space--xxsmall
;
padding-right
:
var
.
$layout-space--xxsmall
;
}
}
@include
responsive
.
wide-handheld-and-up
{
// Where there's enough horizontal space,
// lay out page navigation buttons horizontally as:
// | prevPage | numberedPages | nextPage
//
// e.g.
// | [<- prev] | [2] ... [5] [6] [7] ... [10] | [next ->] |
grid-template-columns
:
8em
auto
8em
;
grid-template-areas
:
'prevPage numberedPages nextPage'
;
&
__pages
{
display
:
block
;
grid-area
:
numberedPages
;
@include
layout
.
row
(
$justify
:
center
,
$align
:
center
);
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment