在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:RamseyInHouse/scut开源软件地址:https://github.com/RamseyInHouse/scut开源编程语言:SCSS 79.3%开源软件介绍:Scut— a collection of Sass utilities to ease and improve our implementations of common style-code patterns. For a prolonged introduction to Scut, read "Introducing Scut" on CSS-Tricks. If you have any questions about Sass, they are answered in Sass's fine documentation. OwnershipScut was originally developed and owned by David Clark (@DavidTheClark). On January 21, 2022, David decided to transfer ownership of this GitHub repository to RamseyInHouse (@RamseyInHouse) where it will be maintained and updated for the foreseeable future. Installing and Using
Usage should be explained there, as is installation. But I'll explain installation here, too, for your convenience. You can install Scut by:
ContributingPlease do! Scut is simple; contributing should be easy. So give it a go. If you have any questions, if anything about this document is unclear or inaccurate, if you can't figure out what to do, please file an issue or contact me. ApproachScut utilities should help users avoid repetition, organize code, and re-use code. Scut utilities should tackle patterns that suffer from one or more of the following problems:
The utility's goal is to fix those problems in a way that maximizies reusability. Here are some principles to keep in mind to maximize that reusability:
I go into detail about all these ideas in that CSS-Tricks article. Development RequirementsWriting Scut UtilitiesThe utilities are in Scut's SCSS StyleguidePlease have a look at existing SCSS files within (Or, if you think there's a better way to do things, please file an issue.) Here are some guidelines to explain how I've been writing:
// SCUT PIXELS TO EMS
// http://ramseyinhouse.github.io/scut/#pixels-to-ems
// Depends on `scut-strip-unit`.
@mixin scut-color-swap (
$inactive,
$active,
$duration: 0,
$bg: false
) {
// mixin content
}
Experimenting and TestingThe method I recommend for experimentation and testing is to use Codepen, either starting your own pen from scratch or forking the Scut Playground (which imports the latest version of Scut). (I have deleted the "tests" directory and tasks from the repository in favor of relying on Codepen.) DocumentingDocumentation is compiled using Assemble. The source files are located in |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论