mazey.css
v1.3.6
Published
Mazey Style
Downloads
139
Maintainers
Readme
mazey.css
Install
Use mazey.css via npm.
npm install mazey.css --saveOf course, you can also download this file and serve it yourself. The file locates at the lib/index.css.
Basic Usage
import 'mazey.css';webpack Configuration
webpack.config.js:
module.exports = {
module: {
rules: [
{
test: /\.scss$/,
use: [
'style-loader',
'css-loader',
'sass-loader',
{
loader: 'sass-resources-loader',
options: {
resources: 'mazey.css/src/extend/index.scss',
},
},
],
},
],
},
};webpack-example.scss:
.foo {
@extend %m-flex-center;
}Vue CLI Configuration
vue.config.js:
module.exports = defineConfig({
css: {
loaderOptions: {
sass: {
additionalData: `@import 'mazey.css/src/extend/index.scss';`,
},
},
},
});vue-cli-example.scss:
.foo {
@extend %m-flex-center;
}Deploy
git clone https://github.com/chengchuu/mazey.css.git styleConfluence
Confluence is a popular document tool for companies. But the support for Markdown is inferior. For example, it can't display the style of the table and code. Therefore, the project will supply the effect of it.
<link type="text/css" href="//example.com/style/lib/confluence.css" rel="stylesheet" />Contributing
Development Environment
| Dependency | Version | |------------|----------| | Node.js | v14.21.3 |
Steps
- Create a new JavaScript file in the
z-temporaryfolder, such asz-temporary/<name>.js. - Create a new SCSS file in the
src/z-stylefolder, such assrc/z-style/_<name>.scss. - Create a new command in the
package.jsonfile, such as"build:<name>": "cross-env ENTRY=<name> webpack --config webpack.config.js". - Run the command, such as
npm run build:<name>, the output file will be in thelibfolder. - Use the output file in the
libfolder, such asimport 'mazey.css/lib/<name>.css';.
License
This software is released under the terms of the GPL-2.0 license.
