2021-03-07 22:38:07 +01:00
|
|
|
RV-Button--pill(size)
|
|
|
|
+RV-Block--modifier()
|
|
|
|
border-radius 'calc(%s + var(--line-height) * 16px)' % size
|
|
|
|
padding-left 'calc(1.5 * %s)' %s
|
|
|
|
padding-right 'calc(1.5 * %s)' %s
|
2021-03-03 00:49:21 +01:00
|
|
|
|
|
|
|
RV-Button--border(color)
|
2021-03-07 22:38:07 +01:00
|
|
|
+RV-Block--modifier()
|
2021-03-03 00:49:21 +01:00
|
|
|
border 3px solid color
|
|
|
|
color color
|
|
|
|
border-radius 0px
|
|
|
|
|
|
|
|
&, *
|
|
|
|
background-color transparent
|
|
|
|
|
|
|
|
+RV-Element('Icon')
|
|
|
|
background-color secondary-color
|
|
|
|
|
2021-03-07 22:38:07 +01:00
|
|
|
RV-Button--small(size)
|
|
|
|
+RV-Block--modifier()
|
2021-03-03 00:49:21 +01:00
|
|
|
--size spacing-small
|
|
|
|
|
|
|
|
+RV-Element('Icon')
|
|
|
|
.RV-Image
|
2021-03-07 22:38:07 +01:00
|
|
|
height 'calc(%s * 1.8)' % size
|
2021-03-03 00:49:21 +01:00
|
|
|
|
|
|
|
RV-Button--medium()
|
2021-03-07 22:38:07 +01:00
|
|
|
+RV-Block--modifier()
|
2021-03-03 00:49:21 +01:00
|
|
|
--size spacing-medium * .6
|
|
|
|
|
|
|
|
RV-Button--large()
|
2021-03-07 22:38:07 +01:00
|
|
|
+RV-Block--modifier()
|
2021-03-03 00:49:21 +01:00
|
|
|
--size spacing-large * .5
|
|
|
|
|
2021-03-07 22:38:07 +01:00
|
|
|
RV-Button--link(size)
|
|
|
|
+RV-Block--modifier()
|
2021-03-03 00:49:21 +01:00
|
|
|
border none
|
|
|
|
border-radius 0px
|
|
|
|
color primary-color
|
|
|
|
&, *
|
|
|
|
background-color transparent
|
|
|
|
margin 0
|
|
|
|
|
|
|
|
+RV-Element('Icon')
|
2021-03-07 22:38:07 +01:00
|
|
|
padding-right 'calc(%s / 4)' % size
|
2021-03-03 00:49:21 +01:00
|
|
|
padding-left calc(var(--size) / 4)
|
|
|
|
|
2021-03-07 22:38:07 +01:00
|
|
|
_RV-Button__Icon--shape(size)
|
|
|
|
margin-right 'calc(%s * 1.2)' % size
|
2021-03-03 00:49:21 +01:00
|
|
|
&, *
|
|
|
|
z-index 10
|
|
|
|
position relative
|
|
|
|
|
|
|
|
&:after, &:before
|
|
|
|
content ''
|
|
|
|
width 50%
|
|
|
|
height 110%
|
|
|
|
z-index 5
|
|
|
|
background-color inherit
|
|
|
|
position absolute
|
|
|
|
|
|
|
|
|
2021-03-07 22:38:07 +01:00
|
|
|
RV-Button__Icon--inwardsArrow(size)
|
|
|
|
+RV-Element--modifier()
|
|
|
|
_RV-Button__Icon--shape(size)
|
2021-03-03 00:49:21 +01:00
|
|
|
|
|
|
|
.RV-Image
|
2021-03-07 22:38:07 +01:00
|
|
|
left 'calc(%s * .5)' % size
|
2021-03-03 00:49:21 +01:00
|
|
|
&:after
|
|
|
|
transform rotate(-35deg)
|
|
|
|
left 70%
|
|
|
|
top 25%
|
|
|
|
|
|
|
|
&:before
|
|
|
|
transform rotate(35deg)
|
|
|
|
left 70%
|
|
|
|
top -35%
|
|
|
|
|
2021-03-07 22:38:07 +01:00
|
|
|
RV-Button__Icon--outwardsArrow(size)
|
|
|
|
+RV-Element--modifier()
|
|
|
|
_RV-Button__Icon--shape(size)
|
|
|
|
margin-right 'calc(%s * 2)' % size
|
2021-03-03 00:49:21 +01:00
|
|
|
|
|
|
|
.RV-Image
|
2021-03-07 22:38:07 +01:00
|
|
|
left 'calc(%s * .7)' % size
|
2021-03-03 00:49:21 +01:00
|
|
|
|
|
|
|
&:after
|
|
|
|
transform rotate(35deg)
|
|
|
|
left 70%
|
|
|
|
top 25%
|
|
|
|
|
|
|
|
&:before
|
|
|
|
transform rotate(-35deg)
|
|
|
|
left 70%
|
|
|
|
top -37%
|
|
|
|
|
2021-03-07 22:38:07 +01:00
|
|
|
RV-Button__Icon--forwardSlope(size)
|
|
|
|
+RV-Element--modifier()
|
|
|
|
_RV-Button__Icon--shape(size)
|
|
|
|
margin-right 'calc(%s * 2)' % size
|
2021-03-03 00:49:21 +01:00
|
|
|
|
|
|
|
.RV-Image
|
2021-03-07 22:38:07 +01:00
|
|
|
left 'calc(%s * .7)' % size
|
2021-03-03 00:49:21 +01:00
|
|
|
|
|
|
|
&:after
|
|
|
|
transform rotate(-15deg)
|
|
|
|
top 0%
|
|
|
|
|
2021-03-07 22:38:07 +01:00
|
|
|
RV-Button__Icon--backwardSlope(size)
|
|
|
|
+RV-Element--modifier()
|
|
|
|
_RV-Button__Icon--shape(size)
|
|
|
|
margin-right 'calc(%s * 2)' % size
|
2021-03-03 00:49:21 +01:00
|
|
|
|
|
|
|
.RV-Image
|
2021-03-07 22:38:07 +01:00
|
|
|
left 'calc(%s * .7)' % size
|
2021-03-03 00:49:21 +01:00
|
|
|
|
|
|
|
&:after
|
|
|
|
transform rotate(15deg)
|
|
|
|
top -10%
|
|
|
|
|
2021-03-07 22:38:07 +01:00
|
|
|
RV-Button__Icon(size)
|
|
|
|
+RV-Element()
|
2021-03-03 00:49:21 +01:00
|
|
|
width min-content
|
|
|
|
background-color primary-color
|
2021-03-07 22:38:07 +01:00
|
|
|
padding size
|
2021-03-03 00:49:21 +01:00
|
|
|
|
|
|
|
.RV-Image
|
2021-03-07 22:38:07 +01:00
|
|
|
height 'calc(%s * 2.5)' % size
|
2021-03-03 00:49:21 +01:00
|
|
|
|
|
|
|
|
2021-03-07 22:38:07 +01:00
|
|
|
RV-Button__Text(size)
|
|
|
|
+RV-Element()
|
|
|
|
font-size 'calc(%s * 1.65)' % size
|
2021-03-03 00:49:21 +01:00
|
|
|
background-color secondary-color
|
2021-03-07 22:38:07 +01:00
|
|
|
padding size
|
2021-03-03 00:49:21 +01:00
|
|
|
|
|
|
|
RV-Button()
|
|
|
|
background-color #f00
|
|
|
|
line-height 1
|
|
|
|
overflow hidden
|
|
|
|
font-family sans-serif
|
|
|
|
background-color secondary-color
|
|
|
|
color accent-color
|
|
|
|
text-decoration none
|
|
|
|
|
|
|
|
RV-Alignment--verticalCenter()
|
|
|
|
display inline-flex
|
|
|
|
border-radius 6px
|
|
|
|
|
|
|
|
+RV-Block('RV-Button')
|
|
|
|
RV-CSSParameter({
|
|
|
|
size: spacing-medium
|
|
|
|
})
|
|
|
|
RV-Reset()
|
2021-03-07 22:38:07 +01:00
|
|
|
RV-Button()
|
2021-03-03 00:49:21 +01:00
|
|
|
|
|
|
|
+RV-Element()
|
2021-03-07 22:38:07 +01:00
|
|
|
RV-Button__Icon--outwardsArrow(--size)
|
|
|
|
RV-Button__Icon--inwardsArrow(--size)
|
2021-03-03 00:49:21 +01:00
|
|
|
|
2021-03-07 22:38:07 +01:00
|
|
|
RV-Button__Icon--forwardSlope(--size)
|
|
|
|
RV-Button__Icon--backwardSlope(--size)
|
2021-03-03 00:49:21 +01:00
|
|
|
|
2021-03-07 22:38:07 +01:00
|
|
|
RV-Button__Icon(--size)
|
2021-03-03 00:49:21 +01:00
|
|
|
|
2021-03-07 22:38:07 +01:00
|
|
|
RV-Button__Text(--size)
|
2021-03-03 00:49:21 +01:00
|
|
|
|
2021-03-07 22:38:07 +01:00
|
|
|
RV-Button--pill(--size)
|
|
|
|
RV-Button--link(--size)
|
|
|
|
RV-Button--small(--size)
|
|
|
|
RV-Button--medium(--size)
|
|
|
|
RV-Button--large(--size)
|
|
|
|
RV-Button--border(primary-color)
|