【发布时间】:2020-04-30 02:56:31
【问题描述】:
关于如何使用 sass 以更好的方式构建此代码的任何帮助? 如果可能的话,我不想重复类名并嵌套代码。希望对如何做到这一点有新的看法。
.vjs-carousel-left-button,
.vjs-carousel-right-button {
position: absolute;
top: 0;
display: table;
cursor: pointer;
z-index: 3;
}
.vjs-carousel-left-button {
left: 0;
}
.vjs-carousel-right-button {
right: 0;
}
.vjs-carousel-left-button div,
.vjs-carousel-right-button div {
display: table-cell;
color: white;
font-size: 5em;
}
谢谢
【问题讨论】:
标签: css sass compass-sass scss-mixins