Skip to content

Commit

Permalink
update config for using SCSS
Browse files Browse the repository at this point in the history
  • Loading branch information
biennui1998mu committed Jun 24, 2022
1 parent 4cb9394 commit 5270d4a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
4 changes: 2 additions & 2 deletions build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ const baseConfig = {
modules: {
generateScopedName: '[local]___[hash:base64:5]',
},
include: /&module=.*\.css$/,
include: /&module=.*\.scss$/,
}),
// Process all `<style>` blocks except `<style module>`.
PostCSS({ include: /(?<!&module=.*)\.css$/ }),
PostCSS({ include: /(?<!&module=.*)\.scss$/ }),
commonjs(),
],
babel: {
Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vuenos-input-money",
"description": "Package for component input money type",
"version": "1.0.3",
"version": "1.0.4",
"private": false,
"author": {
"name": "Sơn Nguyễn",
Expand All @@ -11,6 +11,13 @@
},
"repository": "https://github.com/biennui1998mu/vuenos-input-money",

"keywords": [
"vue",
"vue3",
"vuenos-input-money",
"input money"
],

"main": "dist/vuenos-input-money.ssr.js",
"browser": "dist/vuenos-input-money.esm.js",
"module": "dist/vuenos-input-money.esm.js",
Expand Down
32 changes: 16 additions & 16 deletions src/vuenos-input-money.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default /*#__PURE__*/defineComponent({
}
})
</script>
<style scoped>
<style scoped lang="scss">
.currency-style {
font-size: 12px;
line-height: 18px;
Expand All @@ -121,29 +121,29 @@ export default /*#__PURE__*/defineComponent({
outline: 0;
width: 100%;
transition: all 0.15s linear;
}
.input-money-style input {
height: 100%;
padding: 0 15px;
background: none;
border: none;
outline: none;
color: #606266;
cursor: auto;
}
input {
height: 100%;
padding: 0 15px;
background: none;
border: none;
outline: none;
color: #606266;
cursor: auto;
}
.input-money-style span {
padding-right: 5px;
span {
padding-right: 5px;
}
}
.input-disable {
cursor: not-allowed !important;
color: #c0c4cc !important;
}
.input-disable::placeholder {
color: #c0c4cc;
&::placeholder {
color: #c0c4cc;
}
}
.input-error {
Expand Down

0 comments on commit 5270d4a

Please sign in to comment.