This repository has been archived by the owner on Aug 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
app/assets/stylesheets/sage/system/patterns/objects/_pagination.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* ================================================== | ||
** pagination | ||
type: object | ||
================================================== */ | ||
|
||
.sage-pagination { | ||
display: flex; | ||
margin-bottom: sage-spacing(); | ||
} | ||
|
||
.sage-pagination__count { | ||
@extend %t-sage-body; | ||
padding-right: sage-spacing(); | ||
} | ||
|
||
.sage-pagination__link { | ||
@extend %t-sage-body-semi; | ||
display: flex; | ||
align-items: center; | ||
color: sage-color(primary); | ||
padding: 0 sage-spacing(xs); | ||
} | ||
|
||
.sage-pagination__link--disabled { | ||
color: sage-color(grey, 400); | ||
pointer-events: none; | ||
} | ||
|
||
.sage-pagination__icon { | ||
display: inherit; | ||
padding: 0 sage-spacing(2xs); | ||
} | ||
|
||
.sage-pagination__pages { | ||
display: flex; | ||
padding-left: 0; | ||
list-style-type: none; | ||
} | ||
|
||
.sage-pagination__page { | ||
@extend %t-sage-body-semi; | ||
color: sage-color(primary); | ||
padding: 0 sage-spacing(2xs); | ||
} | ||
|
||
.sage-pagination__page--active { | ||
color: sage-color(grey, 400); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
app/views/sage/examples/objects/pagination/_preview.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<nav class="sage-pagination" aria-label="Pagination"> | ||
<span class="sage-pagination__count"> | ||
<strong>32</strong> Records | ||
</span> | ||
<a class="sage-pagination__link" rel="prev" href="#"><i class="sage-pagination__icon sage-icon-caret-left"></i> Prev</a> | ||
<ul class="sage-pagination__pages"> | ||
<li> | ||
<a href="#" class="sage-pagination__page" aria-label="Go to Page 1">1</a> | ||
</li> | ||
<li> | ||
<a href="#" class="sage-pagination__page" aria-label="Go to Page 2">2</a> | ||
</li> | ||
<li> | ||
<a href="#" class="sage-pagination__page" aria-label="Go to Page 3">3</a> | ||
</li> | ||
<li> | ||
<span class="sage-pagination__page sage-pagination__page--gap">...</span> | ||
</li> | ||
<li> | ||
<a href="#" class="sage-pagination__page" aria-label="Go to Page 18">18</a> | ||
</li> | ||
<li> | ||
<a href="#" class="sage-pagination__page" aria-label="Go to Page 19">19</a> | ||
</li> | ||
<li> | ||
<span class="sage-pagination__page sage-pagination__page--active" aria-current="page">20</span> | ||
</li> | ||
</ul> | ||
<a href="#" class="sage-pagination__link sage-pagination__link--disabled" aria-disabled="true"> | ||
Next <i class="sage-pagination__icon sage-icon-caret-right"></i> | ||
</a> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<tr> | ||
<td>Prop Name</td> | ||
<td>The description of the property goes here.</td> | ||
<td>String</td> | ||
<td>Default</td> | ||
</tr> |
3 changes: 3 additions & 0 deletions
3
app/views/sage/examples/objects/pagination/_rules_do.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<ul> | ||
<li>Rules for what you should do with this object go here.</li> | ||
</ul> |
3 changes: 3 additions & 0 deletions
3
app/views/sage/examples/objects/pagination/_rules_dont.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<ul> | ||
<li>Rules for what you should not do with this object go here.</li> | ||
</ul> |