scss-library/components/05_Molecules/pagination/_pagination.styl

108 lines
2.2 KiB
Stylus
Raw Permalink Normal View History

2021-03-10 18:07:17 +01:00
RV-Pagination__Item(breakPoint)
+RV-Element()
RV-BreakPoint__Item(breakPoint)
2021-03-03 18:27:35 +01:00
2021-03-19 14:09:29 +01:00
RV-Pagination__Backwards(breakPoint)
+RV-Element()
RV-BreakPoint(breakPoint)
2021-03-10 22:50:18 +01:00
RV-FlexRow__Item()
2021-03-19 14:09:29 +01:00
RV-BreakPoint--horizontal()
RV-FlexRow__Item--narrower()
2021-03-10 22:50:18 +01:00
flex-basis 100px
2021-03-12 16:22:23 +01:00
margin-right -.1rem
2021-03-19 14:09:29 +01:00
RV-Pagination__Forwards(breakPoint)
+RV-Element()
RV-BreakPoint(breakPoint)
2021-03-10 22:50:18 +01:00
RV-FlexRow__Item()
2021-03-19 14:09:29 +01:00
RV-BreakPoint--horizontal()
RV-FlexRow__Item--narrower()
2021-03-10 22:50:18 +01:00
flex-basis 100px
2021-03-12 16:22:23 +01:00
margin-left -.1rem
2021-03-10 22:50:18 +01:00
2021-03-19 14:09:29 +01:00
RV-Pagination__Sites(breakPoint)
+RV-Element()
RV-BreakPoint(breakPoint)
2021-03-10 22:50:18 +01:00
RV-FlexRow__Item()
2021-03-19 14:09:29 +01:00
RV-BreakPoint--horizontal()
RV-FlexRow__Item--wider()
2021-03-10 22:50:18 +01:00
justify-content center
gap .7rem
2021-03-03 18:27:35 +01:00
2021-03-19 14:09:29 +01:00
RV-Pagination__Label(breakPoint)
+RV-Element()
RV-Pagination__Item(breakPoint)
RV-BreakPoint__Item--outside()
2021-03-10 18:07:17 +01:00
border-radius .2rem
--color transparent
2021-03-19 14:09:29 +01:00
RV-Pagination__Icon(breakPoint)
+RV-Element()
RV-Pagination__Item(breakPoint)
RV-FlexRow__Item--narrower()
2021-03-10 18:07:17 +01:00
--color transparent
2021-03-10 22:50:18 +01:00
display flex
justify-content center
2021-03-10 18:07:17 +01:00
2021-03-19 14:09:29 +01:00
RV-Pagination__Number(breakPoint, size)
+RV-Element()
RV-Pagination__Item(breakPoint)
2021-03-10 18:07:17 +01:00
border-radius .2rem
2021-03-10 22:50:18 +01:00
display flex
justify-content center
2021-03-12 16:22:23 +01:00
//margin 0 -.5rem
2021-03-10 18:07:17 +01:00
.RV-Link
2021-03-19 14:09:29 +01:00
RV-BreakPoint__Item(size)
2021-03-10 18:07:17 +01:00
RV-BreakPoint__Item--outside()
text-align center
2021-03-10 22:50:18 +01:00
&:nth-last-child(-n + 2),
&:nth-child(-n + 2)
2021-03-19 14:09:29 +01:00
RV-BreakPoint__Item--outside()
RV-Pagination()
+RV-Block()
RV-CSSParameter({
color: #f4a460,
size: 3rem,
navigationBreakPoint: 200px
breakPoint: 450px
})
display grid
grid-template-columns minmax(30px, 1fr) minmax(15rem, 4fr) minmax(30px,1fr)
RV-Pagination__Backwards(--navigationBreakPoint)
RV-Pagination__Forwards(--navigationBreakPoint)
RV-Pagination__Label(--navigationBreakPoint)
RV-Pagination__Icon(--navigationBreakPoint)
RV-Pagination__Sites(450px)
RV-Pagination__Number(450px, --size)
2021-03-10 18:07:17 +01:00
RV-BreakPoint--horizontal()
2021-03-03 18:27:35 +01:00
2021-03-19 14:09:29 +01:00
.RV-Link
RV-Alignment()
RV-Alignment--verticalCenter()
height 100%
background-color --color
+RV-Element('First')
text-align center
2021-03-10 22:50:18 +01:00
2021-03-19 14:09:29 +01:00
+RV-Element('Previous')
text-align center
2021-03-10 22:50:18 +01:00
2021-03-19 14:09:29 +01:00
+RV-Element('Next')
text-align center
+RV-Element('Last')
text-align center
min-width 450px
align-items stretch
height --size
gap .5rem;
RV-Pagination()