Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是新手SMACSS。我正在使用 sass,我想css使用SMACSS. 我对将文件放在哪里有点困惑。我的shadowbox.css意思是在 BASE 或其他地方。我阅读了文档,但仍然很混乱。请支持。谢谢。
SMACSS
css
shadowbox.css
在“扩展”具有额外功能的父模块时添加子类的最佳方法MODULES。modal
MODULES
modal
.modal-shadow { box-shadow: 0 0 10px #000; }
并在 HTML 中使用它
<div class="modal modal-shadow"> something </div>