@pmidc/upyog-css 0.0.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{example → dist}/index.css +3 -7
- package/dist/index.min.css +1 -0
- package/package.json +51 -46
- package/src/pages/employee/landing.scss +4 -12
- package/example/employee.html +0 -16
- package/example/garbage.webp +0 -0
- package/example/index.html +0 -374
- package/example/map.js +0 -72
- package/example/package.json +0 -24
- package/gulpfile.js +0 -55
- package/postcss.config.js +0 -55
- package/tailwind.config.js +0 -105
package/gulpfile.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
const { series, src, dest, watch, task } = require("gulp");
|
|
2
|
-
const clean = require("gulp-clean");
|
|
3
|
-
const postcss = require("gulp-postcss");
|
|
4
|
-
const sass = require("gulp-sass");
|
|
5
|
-
const postcssPresetEnv = require("postcss-preset-env");
|
|
6
|
-
const cleanCSS = require("gulp-clean-css");
|
|
7
|
-
const rename = require("gulp-rename");
|
|
8
|
-
const livereload = require("gulp-livereload");
|
|
9
|
-
|
|
10
|
-
let output = "./example";
|
|
11
|
-
if (process.env.NODE_ENV === "production") {
|
|
12
|
-
output = "./dist";
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function cleanStyles() {
|
|
16
|
-
return src(`${output}/*.css`, { read: false }).pipe(clean());
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function styles() {
|
|
20
|
-
const plugins = [
|
|
21
|
-
require("postcss-import"),
|
|
22
|
-
require("tailwindcss"),
|
|
23
|
-
postcssPresetEnv({ stage: 2, autoprefixer: { cascade: false }, features: { "custom-properties": true } }),
|
|
24
|
-
require("autoprefixer"),
|
|
25
|
-
require("cssnano"),
|
|
26
|
-
];
|
|
27
|
-
return src("src/index.scss").pipe(postcss(plugins)).pipe(sass()).pipe(dest(output));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function minify() {
|
|
31
|
-
return src(`${output}/index.css`).pipe(cleanCSS()).pipe(rename(`index.min.css`)).pipe(dest(output));
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function stylesLive() {
|
|
35
|
-
styles().pipe(livereload({ start: true }));
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function livereloadStyles() {
|
|
39
|
-
livereload.listen();
|
|
40
|
-
watch("src/**/*.scss", series(stylesLive));
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
exports.styles = styles;
|
|
44
|
-
exports.default = series(styles);
|
|
45
|
-
exports.watch = livereloadStyles;
|
|
46
|
-
if (process.env.NODE_ENV === "production") {
|
|
47
|
-
exports.build = series(cleanStyles, styles, minify);
|
|
48
|
-
} else {
|
|
49
|
-
exports.build = series(styles, livereloadStyles);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// gulp.task("watch:styles", function () {
|
|
53
|
-
// livereload.listen();
|
|
54
|
-
// gulp.watch("**/*.scss", ["styles"]);
|
|
55
|
-
// });
|
package/postcss.config.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
const postcssPresetEnv = require("postcss-preset-env");
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
parser: require("postcss-scss"),
|
|
5
|
-
plugins: [
|
|
6
|
-
require("postcss-import"),
|
|
7
|
-
require("postcss-nested").default,
|
|
8
|
-
require("tailwindcss"),
|
|
9
|
-
require("postcss-preset-env"),
|
|
10
|
-
require("autoprefixer"),
|
|
11
|
-
// require("cssnano"),
|
|
12
|
-
],
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
// const fs = require('fs');
|
|
16
|
-
// const { name, version, author, cssConfig } = JSON.parse(fs.readFileSync('package.json'));
|
|
17
|
-
|
|
18
|
-
// const header = `
|
|
19
|
-
// @charset "UTF-8";
|
|
20
|
-
// /*!
|
|
21
|
-
// * ${name} - ${version}
|
|
22
|
-
// *
|
|
23
|
-
// * Copyright (c) ${new Date().getFullYear()} ${author.name}
|
|
24
|
-
// */
|
|
25
|
-
// `;
|
|
26
|
-
|
|
27
|
-
// module.exports = (ctx) => {
|
|
28
|
-
// const prefix = ctx.env === 'compat' ? '' : cssConfig.prefix;
|
|
29
|
-
// const devMessage = `🎉🎉🎉🎉 \n${name} ${ctx.env} build was compiled sucessfully! \n`;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
// return {
|
|
33
|
-
// map: ctx.options.map,
|
|
34
|
-
// parser: ctx.options.parser,
|
|
35
|
-
// plugins: {
|
|
36
|
-
// 'postcss-import': { root: ctx.file.dirname },
|
|
37
|
-
// 'postcss-prefixer': {
|
|
38
|
-
// prefix,
|
|
39
|
-
// ignore: [/\[class\*=.*\]/],
|
|
40
|
-
// },
|
|
41
|
-
// 'postcss-preset-env': {
|
|
42
|
-
// autoprefixer: {
|
|
43
|
-
// cascade: false,
|
|
44
|
-
// },
|
|
45
|
-
// features: {
|
|
46
|
-
// 'custom-properties': true,
|
|
47
|
-
// },
|
|
48
|
-
// },
|
|
49
|
-
// cssnano: ctx.env === 'production' || ctx.env === 'compat' ? {} : false,
|
|
50
|
-
// 'postcss-header': {
|
|
51
|
-
// header,
|
|
52
|
-
// },
|
|
53
|
-
// },
|
|
54
|
-
// };
|
|
55
|
-
// };
|
package/tailwind.config.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
future: {
|
|
3
|
-
removeDeprecatedGapUtilities: true,
|
|
4
|
-
purgeLayersByDefault: true,
|
|
5
|
-
},
|
|
6
|
-
purge: { enabled: true, content: ["./example/index.html"] },
|
|
7
|
-
theme: {
|
|
8
|
-
screens: {
|
|
9
|
-
dt: "780px",
|
|
10
|
-
},
|
|
11
|
-
colors: {
|
|
12
|
-
primary: {
|
|
13
|
-
light: "#F18F5E",
|
|
14
|
-
main: "#a82227",
|
|
15
|
-
dark: "#C8602B",
|
|
16
|
-
},
|
|
17
|
-
secondary: "#22394D",
|
|
18
|
-
text: {
|
|
19
|
-
primary: "#0B0C0C",
|
|
20
|
-
secondary: "#505A5F",
|
|
21
|
-
},
|
|
22
|
-
link: {
|
|
23
|
-
normal: "#1D70B8",
|
|
24
|
-
hover: "#003078",
|
|
25
|
-
},
|
|
26
|
-
border: "#D6D5D4",
|
|
27
|
-
"input-border": "#464646",
|
|
28
|
-
focus: "#a82227",
|
|
29
|
-
error: "#D4351C",
|
|
30
|
-
success: "#00703C",
|
|
31
|
-
black: "#000000",
|
|
32
|
-
grey: {
|
|
33
|
-
dark: "#9E9E9E",
|
|
34
|
-
mid: "#EEEEEE",
|
|
35
|
-
light: "#FAFAFA",
|
|
36
|
-
bg: "#E3E3E3",
|
|
37
|
-
},
|
|
38
|
-
white: "#FFFFFF",
|
|
39
|
-
},
|
|
40
|
-
fontFamily: {
|
|
41
|
-
sans: ["Noto Sans", "sans-serif"],
|
|
42
|
-
// sans: ["Roboto", "sans-serif"],
|
|
43
|
-
rc: ['"Roboto Condensed"', "sans-serif"],
|
|
44
|
-
},
|
|
45
|
-
fontSize: {
|
|
46
|
-
"heading-xl-dt": ["48px", "56px"],
|
|
47
|
-
"heading-xl": ["32px", "40px"],
|
|
48
|
-
"heading-l-dt": ["36px", "40px"],
|
|
49
|
-
"heading-l": ["24px", "32px"],
|
|
50
|
-
"heading-m-dt": ["24px", "32px"],
|
|
51
|
-
"heading-m": ["18px", "28px"],
|
|
52
|
-
"heading-s": ["16px", "24px"],
|
|
53
|
-
"caption-xl-dt": ["27px", "32px"],
|
|
54
|
-
"caption-xl": ["18px", "26px"],
|
|
55
|
-
"caption-l-dt": ["24px", "28px"],
|
|
56
|
-
"caption-l": ["18px", "21px"],
|
|
57
|
-
"caption-m-dt": ["19px", "23px"],
|
|
58
|
-
"caption-m": ["16px", "19px"],
|
|
59
|
-
"form-field": ["16px", "20px"],
|
|
60
|
-
"body-l-dt": ["19px", "28px"],
|
|
61
|
-
"body-l": ["16px", "24px"],
|
|
62
|
-
"body-s-dt": ["16px", "24px"],
|
|
63
|
-
"body-s": ["14px", "16px"],
|
|
64
|
-
legend: ["19px", "23px"],
|
|
65
|
-
link: ["16px", "24px"],
|
|
66
|
-
"text-btn": ["16px", "24px"],
|
|
67
|
-
},
|
|
68
|
-
fontWeight: {
|
|
69
|
-
regular: 400,
|
|
70
|
-
medium: 500,
|
|
71
|
-
bold: 700,
|
|
72
|
-
},
|
|
73
|
-
padding: {
|
|
74
|
-
sm: "8px",
|
|
75
|
-
md: "16px",
|
|
76
|
-
lg: "24px",
|
|
77
|
-
xl: "36px",
|
|
78
|
-
},
|
|
79
|
-
margin: {
|
|
80
|
-
xs: "4px",
|
|
81
|
-
sm: "8px",
|
|
82
|
-
md: "16px",
|
|
83
|
-
lg: "24px",
|
|
84
|
-
xl: "64px",
|
|
85
|
-
},
|
|
86
|
-
borderWidth: {
|
|
87
|
-
default: "1px",
|
|
88
|
-
0: "0",
|
|
89
|
-
2: "1px",
|
|
90
|
-
4: "4px",
|
|
91
|
-
10: "10px",
|
|
92
|
-
},
|
|
93
|
-
boxShadow: {
|
|
94
|
-
card: "0 1px 2px 0 rgba(0, 0, 0, 0.16)",
|
|
95
|
-
radiobtn: "0 0 0 5px #a82227",
|
|
96
|
-
},
|
|
97
|
-
inset: {
|
|
98
|
-
0: 0,
|
|
99
|
-
10: "10px",
|
|
100
|
-
},
|
|
101
|
-
extend: {},
|
|
102
|
-
},
|
|
103
|
-
variants: {},
|
|
104
|
-
plugins: [],
|
|
105
|
-
};
|