scss-library/components/04_Atoms/button/_button.styl

184 lines
3.3 KiB
Stylus
Raw Normal View History

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-19 13:50:53 +01:00
RV-Button--border__Icon()
+RV-Element()
background-color secondary-color
RV-Button--border(color)
2021-03-07 22:38:07 +01:00
+RV-Block--modifier()
border 3px solid color
color color
border-radius 0px
&, *
background-color transparent
2021-03-19 13:50:53 +01:00
RV-Button--border--Icon()
RV-Button--small__Icon(size)
+RV-Element()
.RV-Image
height 'calc(%s * 1.8)' % size
2021-03-07 22:38:07 +01:00
RV-Button--small(size)
+RV-Block--modifier()
--size spacing-small
2021-03-19 13:50:53 +01:00
RV-Button--small__Icon(size)
RV-Button--medium()
2021-03-07 22:38:07 +01:00
+RV-Block--modifier()
--size spacing-medium * .6
RV-Button--large()
2021-03-07 22:38:07 +01:00
+RV-Block--modifier()
--size spacing-large * .5
2021-03-19 13:50:53 +01:00
RV-Button--link__Icon(size)
+RV-Element()
padding-right 'calc(%s / 4)' % size
padding-left calc(var(--size) / 4)
2021-03-07 22:38:07 +01:00
RV-Button--link(size)
+RV-Block--modifier()
border none
border-radius 0px
color primary-color
&, *
background-color transparent
margin 0
2021-03-19 13:50:53 +01:00
RV-Button--link__Icon(size)
2021-03-07 22:38:07 +01:00
_RV-Button__Icon--shape(size)
margin-right 'calc(%s * 1.2)' % size
&, *
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)
.RV-Image
2021-03-07 22:38:07 +01:00
left 'calc(%s * .5)' % size
&: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
.RV-Image
2021-03-07 22:38:07 +01:00
left 'calc(%s * .7)' % size
&: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
.RV-Image
2021-03-07 22:38:07 +01:00
left 'calc(%s * .7)' % size
&: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
.RV-Image
2021-03-07 22:38:07 +01:00
left 'calc(%s * .7)' % size
&:after
transform rotate(15deg)
top -10%
2021-03-07 22:38:07 +01:00
RV-Button__Icon(size)
+RV-Element()
width min-content
background-color primary-color
2021-03-07 22:38:07 +01:00
padding size
.RV-Image
2021-03-07 22:38:07 +01:00
height 'calc(%s * 2.5)' % size
2021-03-19 13:50:53 +01:00
RV-Button__Icon--outwardsArrow(size)
RV-Button__Icon--inwardsArrow(size)
RV-Button__Icon--forwardSlope(size)
RV-Button__Icon--backwardSlope(size)
2021-03-07 22:38:07 +01:00
RV-Button__Text(size)
+RV-Element()
font-size 'calc(%s * 1.65)' % size
background-color secondary-color
2021-03-07 22:38:07 +01:00
padding size
RV-Button()
2021-03-19 13:50:53 +01:00
+RV-Block()
RV-CSSParameter({
size: spacing-medium
})
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
2021-03-19 13:50:53 +01:00
RV-Reset()
2021-03-07 22:38:07 +01:00
RV-Button__Icon(--size)
2021-03-19 13:50:53 +01:00
RV-Button__Text(--size)
2021-03-19 13:50:53 +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)
RV-Button()