Skip to content

Commit 46f26b6

Browse files
committed
remove scss
1 parent 4031419 commit 46f26b6

File tree

4 files changed

+52
-93
lines changed

4 files changed

+52
-93
lines changed

example/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
"eslint-plugin-vue": "^6.2.2",
2424
"lint-staged": "^9.5.0",
2525
"prettier": "^1.19.1",
26-
"sass": "^1.26.5",
27-
"sass-loader": "^8.0.2",
2826
"vue-template-compiler": "^2.6.11"
2927
},
3028
"gitHooks": {

example/src/App.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,8 @@ export default {
3333
}
3434
</script>
3535

36-
<style lang="scss" scoped>
36+
<style scoped>
3737
.base-button {
3838
@apply px-2 py-1 border rounded;
39-
&:focus {
40-
@apply outline-none;
41-
}
4239
}
4340
</style>

example/yarn.lock

Lines changed: 16 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,21 +2229,6 @@ check-types@^8.0.3:
22292229
resolved "https://registry.yarnpkg.com/check-types/-/check-types-8.0.3.tgz#3356cca19c889544f2d7a95ed49ce508a0ecf552"
22302230
integrity sha512-YpeKZngUmG65rLudJ4taU7VLkOCTMhNl/u4ctNC56LQS/zJTyNH0Lrtwm1tfTsbLlwvlfsA2d1c8vCf/Kh2KwQ==
22312231

2232-
"chokidar@>=2.0.0 <4.0.0", chokidar@^3.4.1:
2233-
version "3.4.2"
2234-
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.4.2.tgz#38dc8e658dec3809741eb3ef7bb0a47fe424232d"
2235-
integrity sha512-IZHaDeBeI+sZJRX7lGcXsdzgvZqKv6sECqsbErJA4mHWfpRrD8B97kSFN4cQz6nGBGiuFia1MKR4d6c1o8Cv7A==
2236-
dependencies:
2237-
anymatch "~3.1.1"
2238-
braces "~3.0.2"
2239-
glob-parent "~5.1.0"
2240-
is-binary-path "~2.1.0"
2241-
is-glob "~4.0.1"
2242-
normalize-path "~3.0.0"
2243-
readdirp "~3.4.0"
2244-
optionalDependencies:
2245-
fsevents "~2.1.2"
2246-
22472232
chokidar@^2.1.8:
22482233
version "2.1.8"
22492234
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.8.tgz#804b3a7b6a99358c3c5c61e71d8728f041cff917"
@@ -2263,6 +2248,21 @@ chokidar@^2.1.8:
22632248
optionalDependencies:
22642249
fsevents "^1.2.7"
22652250

2251+
chokidar@^3.4.1:
2252+
version "3.4.2"
2253+
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.4.2.tgz#38dc8e658dec3809741eb3ef7bb0a47fe424232d"
2254+
integrity sha512-IZHaDeBeI+sZJRX7lGcXsdzgvZqKv6sECqsbErJA4mHWfpRrD8B97kSFN4cQz6nGBGiuFia1MKR4d6c1o8Cv7A==
2255+
dependencies:
2256+
anymatch "~3.1.1"
2257+
braces "~3.0.2"
2258+
glob-parent "~5.1.0"
2259+
is-binary-path "~2.1.0"
2260+
is-glob "~4.0.1"
2261+
normalize-path "~3.0.0"
2262+
readdirp "~3.4.0"
2263+
optionalDependencies:
2264+
fsevents "~2.1.2"
2265+
22662266
chownr@^1.1.1, chownr@^1.1.2:
22672267
version "1.1.4"
22682268
resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b"
@@ -2381,15 +2381,6 @@ cliui@^6.0.0:
23812381
strip-ansi "^6.0.0"
23822382
wrap-ansi "^6.2.0"
23832383

2384-
clone-deep@^4.0.1:
2385-
version "4.0.1"
2386-
resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387"
2387-
integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==
2388-
dependencies:
2389-
is-plain-object "^2.0.4"
2390-
kind-of "^6.0.2"
2391-
shallow-clone "^3.0.0"
2392-
23932384
clone@^1.0.2:
23942385
version "1.0.4"
23952386
resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e"
@@ -7330,24 +7321,6 @@ safe-regex@^1.1.0:
73307321
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
73317322
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
73327323

7333-
sass-loader@^8.0.2:
7334-
version "8.0.2"
7335-
resolved "https://registry.yarnpkg.com/sass-loader/-/sass-loader-8.0.2.tgz#debecd8c3ce243c76454f2e8290482150380090d"
7336-
integrity sha512-7o4dbSK8/Ol2KflEmSco4jTjQoV988bM82P9CZdmo9hR3RLnvNc0ufMNdMrB0caq38JQ/FgF4/7RcbcfKzxoFQ==
7337-
dependencies:
7338-
clone-deep "^4.0.1"
7339-
loader-utils "^1.2.3"
7340-
neo-async "^2.6.1"
7341-
schema-utils "^2.6.1"
7342-
semver "^6.3.0"
7343-
7344-
sass@^1.26.5:
7345-
version "1.26.10"
7346-
resolved "https://registry.yarnpkg.com/sass/-/sass-1.26.10.tgz#851d126021cdc93decbf201d1eca2a20ee434760"
7347-
integrity sha512-bzN0uvmzfsTvjz0qwccN1sPm2HxxpNI/Xa+7PlUEMS+nQvbyuEK7Y0qFqxlPHhiNHb1Ze8WQJtU31olMObkAMw==
7348-
dependencies:
7349-
chokidar ">=2.0.0 <4.0.0"
7350-
73517324
sax@~1.2.4:
73527325
version "1.2.4"
73537326
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
@@ -7362,7 +7335,7 @@ schema-utils@^1.0.0:
73627335
ajv-errors "^1.0.0"
73637336
ajv-keywords "^3.1.0"
73647337

7365-
schema-utils@^2.0.0, schema-utils@^2.5.0, schema-utils@^2.6.1, schema-utils@^2.6.5, schema-utils@^2.6.6, schema-utils@^2.7.0:
7338+
schema-utils@^2.0.0, schema-utils@^2.5.0, schema-utils@^2.6.5, schema-utils@^2.6.6, schema-utils@^2.7.0:
73667339
version "2.7.0"
73677340
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-2.7.0.tgz#17151f76d8eae67fbbf77960c33c676ad9f4efc7"
73687341
integrity sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==
@@ -7495,13 +7468,6 @@ sha.js@^2.4.0, sha.js@^2.4.8:
74957468
inherits "^2.0.1"
74967469
safe-buffer "^5.0.1"
74977470

7498-
shallow-clone@^3.0.0:
7499-
version "3.0.1"
7500-
resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3"
7501-
integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==
7502-
dependencies:
7503-
kind-of "^6.0.2"
7504-
75057471
shebang-command@^1.2.0:
75067472
version "1.2.0"
75077473
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"

lib/VueFinalModal.vue

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -276,42 +276,40 @@ export default {
276276
}
277277
</script>
278278

279-
<style lang="scss" scoped>
280-
.vfm {
281-
&--fixed {
282-
position: fixed;
283-
}
284-
&--absolute {
285-
position: absolute;
286-
}
287-
&--inset {
288-
top: 0;
289-
right: 0;
290-
bottom: 0;
291-
left: 0;
292-
}
293-
&--overlay {
294-
background-color: rgba(0, 0, 0, 0.5);
295-
}
296-
&--prevent-none {
297-
pointer-events: none;
298-
}
299-
&--prevent-auto {
300-
pointer-events: auto;
301-
}
302-
&--cursor-pointer {
303-
cursor: pointer;
304-
}
305-
&--cursor-auto {
306-
cursor: auto;
307-
}
308-
&-enter-active,
309-
&-leave-active {
310-
transition: opacity 0.2s;
311-
}
312-
&-enter,
313-
&-leave-to {
314-
opacity: 0;
315-
}
279+
<style lang="css" scoped>
280+
.vfm--fixed {
281+
position: fixed;
282+
}
283+
.vfm--absolute {
284+
position: absolute;
285+
}
286+
.vfm--inset {
287+
top: 0;
288+
right: 0;
289+
bottom: 0;
290+
left: 0;
291+
}
292+
.vfm--overlay {
293+
background-color: rgba(0, 0, 0, 0.5);
294+
}
295+
.vfm--prevent-none {
296+
pointer-events: none;
297+
}
298+
.vfm--prevent-auto {
299+
pointer-events: auto;
300+
}
301+
.vfm--cursor-pointer {
302+
cursor: pointer;
303+
}
304+
.vfm--cursor-auto {
305+
cursor: auto;
306+
}
307+
.vfm-enter-active,
308+
.vfm-leave-active {
309+
transition: opacity 0.2s;
310+
}
311+
.vfm-enter-from,
312+
.vfm-leave-to {
313+
opacity: 0;
316314
}
317315
</style>

0 commit comments

Comments
 (0)