我正在处理一个WordPress页面,我添加了一个新的布局到灵活的内容模板customer字段中。我找到了应该放置样式的.scss文件,但不确定如何将我的CSS转换成.scss格式。下面是我想要更改为SCSS的CSS。
.hero-with-text-cta-hero {
background-color: #ececec;
}
.texts-and-cta {
position: absolute;
top: 2rem;
right: 4rem;
width: 40%;
text-align: right;
}
.texts-and-cta-col {
position:static !important;
}
.texts-and-cta h2 {
margin-left: 1rem;
margin-right: 1rem;
font-size: 1.8rem !important;
font-family: Roboto, sans-serif !important;
text-transform: none !important;
letter-spacing: normal !important;
font-weight: 400 !important;
color: #a6a2a3 !important;
}
@media (max-width: 959px) {
.texts-and-cta {
position: relative;
top: 0;
right: 0;
width: 100%;
text-align: center;
padding-top:1rem;
}
}
.hero-with-text-cta-hero h1 {
color: #666766 !important;
}
@media (min-width: 1280px) {
.hero-with-text-cta-hero h1 {
font-size: 4rem !important;
}
}
发布于 2021-12-25 10:40:17
只要将它复制到.scss文件中,sass就可以处理普通的css。
https://stackoverflow.com/questions/70479143
复制相似问题