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

192 lines
3.5 KiB
Stylus

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
RV-Button--border__Icon()
+RV-Element()
background-color secondary-color
RV-Button--border(color)
+RV-Block--modifier()
border 3px solid color
color color
border-radius 0px
RV-Button--border--Icon()
RV-Button--small__Icon(size)
+RV-Element()
.RV-Image
height 'calc(%s * 1.8)' % size
RV-Button--small(size)
+RV-Block--modifier()
--size spacing-small
RV-Button--small__Icon(size)
RV-Button--medium()
+RV-Block--modifier()
--size spacing-medium * .6
RV-Button--large()
+RV-Block--modifier()
--size spacing-large * .5
RV-Button--link__Icon(size)
+RV-Element()
padding-right 'calc(%s / 4)' % size
padding-left calc(var(--size) / 4)
RV-Button--link(size)
+RV-Block--modifier()
border none
border-radius 0px
color primary-color
&, *
margin 0
//RV-Button--link__Icon(size)
_RV-Button__Icon--shape(size)
margin-right 'calc(1.2*%s)' % size
&, *
z-index 10
position relative
&:after, &:before
width 50%
height 110%
z-index 5
background-color inherit
position absolute
left 70%
RV-Button__Icon--inwardsArrow(size)
+RV-Element--modifier()
_RV-Button__Icon--shape(size)
.RV-Image
left 'calc(%s * .5)' % size
&:after
content ''
transform rotate(-35deg)
top 25%
&:before
content ''
transform rotate(35deg)
top -35%
RV-Button__Icon--outwardsArrow(size)
+RV-Element--modifier()
_RV-Button__Icon--shape(size)
//margin-right 'calc(%s * 2)' % size
.RV-Image
left 'calc(%s * .7)' % size
&:after
content ''
transform rotate(35deg)
top 25%
&:before
content ''
transform rotate(-35deg)
top -37%
RV-Button__Icon--forwardSlope(size)
+RV-Element--modifier()
_RV-Button__Icon--shape(size)
.RV-Image
left 'calc(%s * .7)' % size
&:after, &:before
content ''
transform rotate(-15deg)
top 0%
RV-Button__Icon--backwardSlope(size)
+RV-Element--modifier()
_RV-Button__Icon--shape(size)
//margin-right 'calc(%s * 2)' % size
.RV-Image
left 'calc(%s * .7)' % size
&:after
content ''
transform rotate(15deg)
top -10%
RV-Button__Icon(size)
+RV-Element()
width min-content
background-color primary-color
//padding 'calc(1.01*%s)' % size
height 'calc(4*%s)' % size
width 'calc(4*%s)' % size
position relative
.RV-Image
height 'calc(%s * 2.5)' % size
RV-Alignment--center()
RV-Button__Icon--outwardsArrow(size)
RV-Button__Icon--inwardsArrow(size)
RV-Button__Icon--forwardSlope(size)
RV-Button__Icon--backwardSlope(size)
RV-Button__Text(size)
+RV-Element()
font-size 'calc(%s * 1.65)' % size
background-color secondary-color
//padding 'calc(1.5* %s)' % size
//padding-left 'calc(2*%s)' %size
padding 0 size
height 'calc(4*%s)' % size
RV-Alignment--center()
RV-Button()
+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
RV-Reset()
RV-Button__Icon(--size)
RV-Button__Text(--size)
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()