Files
hht-hdyy-uni/common/style/mixin.styl
2025-12-29 17:35:46 +08:00

51 lines
1000 B
Stylus

$red = #ff6a00
$green = #6CBE8B
$yellow = #E9B451
$blue = #6798ef
$gray = #c9c9c9
$fc1 = #323232
.bgred
background-color: $red !important
.bggreen
background-color: $green !important
.bgyellow
background-color: $yellow !important
.bgblue
background-color: $blue !important
.bggray
background-color: $gray !important
//
_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
_fj(x=space-between,y=center,r=row,n=nowrap)
display: flex
justify-content: x
align-items: y
flex-direction: r
flex-wrap: n
//
_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%)