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
22677587
Commit
22677587
authored
Feb 15, 2021
by
Lyza Danger Gardner
Committed by
Lyza Gardner
Feb 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor pagination-control layout (use CSS-grid)
parent
8b774bd0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
13 deletions
+20
-13
PaginationNavigation.scss
src/styles/sidebar/components/PaginationNavigation.scss
+20
-13
No files found.
src/styles/sidebar/components/PaginationNavigation.scss
View file @
22677587
...
@@ -5,22 +5,29 @@
...
@@ -5,22 +5,29 @@
.PaginationNavigation
{
.PaginationNavigation
{
@include
utils
.
font--large
;
@include
utils
.
font--large
;
@include
layout
.
row
;
&
__relative
{
// Lay out page navigation buttons horizontally as:
// Set a minimum width for the previous and next button containers so that
// | prevPage | numberedPages | nextPage
// there is no jumping around as they appear and disappear.
//
min-width
:
5em
;
// e.g.
// | [<- prev] | [2] ... [5] [6] [7] ... [10] | [next ->] |
display
:
grid
;
grid-template-columns
:
8em
auto
8em
;
align-items
:
center
;
grid-template-areas
:
'prevPage numberedPages nextPage'
;
&
__prev
{
grid-area
:
prevPage
;
}
}
&
__next
{
&
__next
{
// Make sure "next" button is flush right
grid-area
:
nextPage
;
@include
layout
.
row
(
$justify
:
flex-end
)
;
justify-self
:
end
;
}
}
&
__pages
{
&
__pages
{
grid-area
:
numberedPages
;
@include
layout
.
row
(
$justify
:
center
,
$align
:
center
);
@include
layout
.
row
(
$justify
:
center
,
$align
:
center
);
flex-grow
:
1
;
}
}
&
__button
,
&
__button
,
...
@@ -34,17 +41,17 @@
...
@@ -34,17 +41,17 @@
&
__page-button
{
&
__page-button
{
margin
:
var
.
$layout-space--xxsmall
;
margin
:
var
.
$layout-space--xxsmall
;
padding
:
var
.
$layout-space--small
var
.
$layout-space
;
padding
:
var
.
$layout-space--small
var
.
$layout-space
;
&
[
aria-pressed
=
'true'
]
{
background-color
:
var
.
$grey-3
;
}
}
}
&
__button-right
{
&
__button-right
{
//
TODO TEMPORARY adjustment until we can adjust the actual icon
//
FIXME Button SVG margins assume that the icon is on the left
svg
{
svg
{
margin-left
:
var
.
$layout-space--xxsmall
;
margin-left
:
var
.
$layout-space--xxsmall
;
}
}
padding-right
:
var
.
$layout-space--xxsmall
;
padding-right
:
var
.
$layout-space--xxsmall
;
}
}
&
__page-button
[
aria-pressed
=
'true'
]
{
background-color
:
var
.
$grey-3
;
}
}
}
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