Files
aio-hl-new/src/style/mixin.styl

40 lines
747 B
Stylus
Raw Normal View History

2023-04-07 17:41:38 +08:00
$red = #e74f1a
$green = #6CBE8B
$yellow = #E9B451
$blue = #6798ef
$gray = #c9c9c9
$fc1 = #323232
//
_wh(w, h)
width: w
height: h
//
_font(size,height,color=$fc1,weight=normal,align=left)
font-size: size
line-height: height
color: color
font-weight: weight
text-align: align
//flex
2023-05-19 13:51:43 +08:00
_fj(x=space-between,y=center,z=row)
2023-04-07 17:41:38 +08:00
display: flex
justify-content: x
align-items: y
2023-05-19 13:51:43 +08:00
flex-direction: z
2023-04-07 17:41:38 +08:00
//
_bis(url,w,h=auto,x=center,y=center)
background-position: x y
background-size: w h
background-image: url(url)
background-repeat: no-repeat
//
_ct()
position: absolute
top: 50%
transform: translateY(-50%)