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

100 lines
2.0 KiB
Stylus
Raw 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-10 18:07:17 +01:00
+RV-Block('RV-Pagination')
RV-CSSParameter({
color: #f4a460,
2021-03-10 22:50:18 +01:00
size: 3rem,
navigationBreakPoint: 200px
breakPoint: 450px
2021-03-10 18:07:17 +01:00
})
2021-03-10 22:50:18 +01:00
display grid
grid-template-columns minmax(30px, 1fr) minmax(15rem, 4fr) minmax(30px,1fr)
+RV-Element('Backwards')
RV-BreakPoint(--navigationBreakPoint)
RV-FlexRow__Item()
+RV-Squash()
RV-BreakPoint--horizontal()
RV-FlexRow__Item--narrower()
flex-basis 100px
2021-03-12 16:22:23 +01:00
margin-right -.1rem
2021-03-10 22:50:18 +01:00
+RV-Element('Forwards')
RV-BreakPoint(--navigationBreakPoint)
RV-FlexRow__Item()
+RV-Squash()
RV-BreakPoint--horizontal()
RV-FlexRow__Item--narrower()
flex-basis 100px
2021-03-12 16:22:23 +01:00
margin-left -.1rem
2021-03-10 22:50:18 +01:00
+RV-Element('Sites')
RV-BreakPoint(--breakPoint)
RV-FlexRow__Item()
+RV-Squash()
RV-BreakPoint--horizontal()
RV-FlexRow__Item--wider()
justify-content center
gap .7rem
2021-03-03 18:27:35 +01:00
2021-03-10 22:50:18 +01:00
2021-03-10 18:07:17 +01:00
+RV-Element('Label')
2021-03-10 22:50:18 +01:00
RV-Pagination__Item(--navigationBreakPoint)
2021-03-10 18:07:17 +01:00
+RV-Squash()
RV-BreakPoint__Item--outside()
border-radius .2rem
--color transparent
+RV-Element('Icon')
2021-03-10 22:50:18 +01:00
RV-Pagination__Item(--navigationBreakPoint)
2021-03-10 18:07:17 +01:00
+RV-Squash()
2021-03-10 22:50:18 +01:00
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
+RV-Element('Number')
RV-Pagination__Item(--breakPoint)
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
RV-BreakPoint__Item(--size)
RV-BreakPoint__Item--outside()
text-align center
2021-03-10 22:50:18 +01:00
&:nth-last-child(-n + 2),
&:nth-child(-n + 2)
+RV-Squash()
RV-BreakPoint__Item--outside()
2021-03-10 18:07:17 +01:00
+RV-Squash()
RV-BreakPoint--horizontal()
2021-03-03 18:27:35 +01:00
2021-03-10 18:07:17 +01:00
.RV-Link
RV-Alignment()
+RV-Squash()
RV-Alignment--verticalCenter()
height 100%
background-color --color
2021-03-03 18:27:35 +01:00
2021-03-10 22:50:18 +01:00
+RV-Element('First')
text-align center
+RV-Element('Previous')
text-align center
2021-03-10 18:07:17 +01:00
+RV-Element('Next')
2021-03-10 22:50:18 +01:00
text-align center
2021-03-10 18:07:17 +01:00
+RV-Element('Last')
2021-03-10 22:50:18 +01:00
text-align center
2021-03-10 18:07:17 +01:00
2021-03-10 22:50:18 +01:00
min-width 450px
2021-03-10 18:07:17 +01:00
align-items stretch
height --size
gap .5rem;