Pagination Molecule

This commit is contained in:
reverend 2021-03-03 18:27:35 +01:00
parent 2b2e87ab06
commit 3c1cde82d1
5 changed files with 111 additions and 7 deletions

View File

@ -13,6 +13,16 @@ RV-FlexRow--vertical()
+RV-Block__Modifier--name('vertical') +RV-Block__Modifier--name('vertical')
flex-direction column flex-direction column
RV-FlexRow__Item--outsideBreakPoint()
+RV-Element__Modifier--name('outsideBreakPoint')
margin-bottom -100vh
height max-content
flex-shrink 999
RV-FlexRow__Item--insideBreakPoint()
+RV-Element__Modifier--name('insideBreakPoint')
flex-grow 0
/* /*
* Breaks from row to column orientation at the given breakpoint * Breaks from row to column orientation at the given breakpoint
* breaks when the container is smaller than $-localBreakPoint or when the viewport is smaller than $-mediaBreakPoint. * breaks when the container is smaller than $-localBreakPoint or when the viewport is smaller than $-mediaBreakPoint.
@ -33,13 +43,11 @@ RV-FlexRow--breakPoint(localBreakPoint, mediaBreakPoint)
flex-basis 'calc(%s * 999 - 100% * 999)' % localBreakPoint flex-basis 'calc(%s * 999 - 100% * 999)' % localBreakPoint
overflow hidden overflow hidden
+RV-Element__Modifier('outsideBreakPoint') +RV-Element__Modifier()
margin-bottom -100vh RV-FlexRow__Item--outsideBreakPoint()
height max-content
flex-shrink 999
+RV-Element__Modifier('insideBreakPoint') +RV-Element__Modifier()
flex-grow 0 RV-FlexRow__Item--insideBreakPoint()
@media(max-width mediaBreakPoint) @media(max-width mediaBreakPoint)
flex-direction row flex-direction row

View File

@ -1,3 +1,3 @@
@import 'overlayButton/_overlayButton' @import 'overlayButton/_overlayButton'
@import 'teaser/_teaser' @import 'teaser/_teaser'
//@import 'pagination/_pagination' @import 'pagination/_pagination'

View File

@ -0,0 +1,22 @@
RV-Pagination__Item()
RV-FlexRow__Item()
.RV-Link
padding 15px 20px
vertical-align sub
border-radius 2px
RV-Pagination__List(breakpoint=500px)
RV-FlexRow()
RV-FlexRow--breakPoint(breakpoint)
RV-ElementList()
.RV-Pagination
&__List
RV-Pagination__List()
&__Item
RV-Pagination__Item()
&__Label
RV-FlexRow__Item--outsideBreakPoint()

View File

@ -0,0 +1,3 @@
{
"title": "Pagnination"
}

View File

@ -0,0 +1,71 @@
<div class="RV-Pagination">
<ul class="RV-Pagination__List">
<li class="RV-Pagination__Item RV-Pagination__Item--first RV-Pagination__Icon">
<a href="#" class="RV-Link">
<span class="RV-Icon">⟪</span>
</a>
</li>
<li class="RV-Pagination__Item RV-Pagination__Item--first RV-Pagination__Label">
<a href="#" class="RV-Link">
<span class="RV-Text">First</span>
</a>
</li>
<li class="RV-Pagination__Item RV-Pagination__Item--disabled RV-Pagination__Item--previous RV-Pagination__Icon">
<a href="#" class="RV-Link">
<span class="RV-Icon">⟨</span>
</a>
</li>
<li class="RV-Pagination__Item RV-Pagination__Item--disabled RV-Pagination__Item--previous RV-Pagination__Label">
<a href="#" class="RV-Link">
<span class="RV-Text">Previous</span>
</a>
</li>
<li class="RV-Pagination__Item">
<a href="#" class="RV-Link">
<span class="RV-Text">1</span>
</a>
</li>
<li class="RV-Pagination__Item">
<a href="#" class="RV-Link">
<span class="RV-Text">2</span>
</a>
</li>
<li class="RV-Pagination__Item">
<a href="#" class="RV-Link">
<span class="RV-Text">3</span>
</a>
</li>
<li class="RV-Pagination__Item RV-Pagination__Item--current">
<a href="#" class="RV-Link">
<span class="RV-Text">4</span>
</a>
</li>
<li class="RV-Pagination__Item">
<a href="#" class="RV-Link">
<span class="RV-Text">5</span>
</a>
</li>
<li class="RV-Pagination__Item RV-Pagination__Item--next RV-Pagination__Label">
<a href="#" class="RV-Link">
<span class="RV-Text">Next</span>
</a>
</li>
<li class="RV-Pagination__Item RV-Pagination__Item--next RV-Pagination__Icon">
<a href="#" class="RV-Link">
<span class="RV-Icon">⟩</span>
</a>
</li>
<li class="RV-Pagination__Item RV-Pagination__Item--last RV-Pagination__Label">
<a href="#" class="RV-Link">
<span class="RV-Text">Last</span>
</a>
</li>
<li class="RV-Pagination__Item RV-Pagination__Item--last RV-Pagination__Icon">
<a href="#" class="RV-Link">
<span class="RV-Icon">⟫</span>
</a>
</li>
</ul>
</div>