Skip to content

Commit 918653c

Browse files
committed
Canonical class name
1 parent 751eb2f commit 918653c

9 files changed

Lines changed: 18 additions & 18 deletions

File tree

src/components/borderBox10/src/main.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="dv-border-box-10" :ref="ref" :style="`box-shadow: inset 0 0 25px 3px ${mergedColor[0]}`">
3-
<svg class="border" :width="width" :height="height">
3+
<svg class="dv-border-svg-container" :width="width" :height="height">
44
<polygon :fill="backgroundColor" :points="`
55
4, 0 ${width - 4}, 0 ${width}, 4 ${width}, ${height - 4} ${width - 4}, ${height}
66
4, ${height} 0, ${height - 4} 0, 4
@@ -12,7 +12,7 @@
1212
height="150px"
1313
:key="item"
1414
v-for="item in border"
15-
:class="`${item} border`"
15+
:class="`${item} dv-border-svg-container`"
1616
>
1717
<polygon
1818
:fill="mergedColor[1]"
@@ -86,7 +86,7 @@ export default {
8686
height: 100%;
8787
border-radius: 6px;
8888
89-
.border {
89+
.dv-border-svg-container {
9090
position: absolute;
9191
display: block;
9292
}

src/components/borderBox11/src/main.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export default {
292292
top: 0px;
293293
left: 0px;
294294
295-
polyline {
295+
& > polyline {
296296
fill: none;
297297
stroke-width: 1;
298298
}

src/components/borderBox2/src/main.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default {
8989
top: 0px;
9090
left: 0px;
9191
92-
polyline {
92+
& > polyline {
9393
fill: none;
9494
stroke-width: 1;
9595
}

src/components/borderBox3/src/main.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default {
9393
top: 0px;
9494
left: 0px;
9595
96-
polyline {
96+
& > polyline {
9797
fill: none;
9898
}
9999
}

src/components/borderBox4/src/main.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default {
105105
top: 0px;
106106
left: 0px;
107107
108-
polyline {
108+
& > polyline {
109109
fill: none;
110110
}
111111
}

src/components/borderBox5/src/main.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="dv-border-box-5" :ref="ref">
3-
<svg :class="`dv-svg-container ${reverse && 'dv-reverse'}`" :width="width" :height="height">
3+
<svg :class="`dv-border-svg-container ${reverse && 'dv-reverse'}`" :width="width" :height="height">
44
<polygon :fill="backgroundColor" :points="`
55
10, 22 ${width - 22}, 22 ${width - 22}, ${height - 86} ${width - 84}, ${height - 24} 10, ${height - 24}
66
`" />
@@ -94,14 +94,14 @@ export default {
9494
transform: rotate(180deg);
9595
}
9696
97-
.dv-svg-container {
97+
.dv-border-svg-container {
9898
position: absolute;
9999
top: 0px;
100100
left: 0px;
101101
width: 100%;
102102
height: 100%;
103103
104-
polyline {
104+
& > polyline {
105105
fill: none;
106106
}
107107
}

src/components/borderBox6/src/main.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="dv-border-box-6" :ref="ref">
3-
<svg class="dv-svg-container" :width="width" :height="height">
3+
<svg class="dv-border-svg-container" :width="width" :height="height">
44
<polygon :fill="backgroundColor" :points="`
55
9, 7 ${width - 9}, 7 ${width - 9}, ${height - 7} 9, ${height - 7}
66
`" />
@@ -86,14 +86,14 @@ export default {
8686
width: 100%;
8787
height: 100%;
8888
89-
.dv-svg-container {
89+
.dv-border-svg-container {
9090
position: absolute;
9191
top: 0px;
9292
left: 0px;
9393
width: 100%;
9494
height: 100%;
9595
96-
polyline {
96+
& > polyline {
9797
fill: none;
9898
stroke-width: 1;
9999
}

src/components/borderBox7/src/main.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:style="`box-shadow: inset 0 0 40px ${mergedColor[0]}; border: 1px solid ${mergedColor[0]}; background-color: ${backgroundColor}`"
66
:ref="ref"
77
>
8-
<svg class="dv-svg-container" :width="width" :height="height">
8+
<svg class="dv-border-svg-container" :width="width" :height="height">
99
<polyline class="dv-bb7-line-width-2" :stroke="mergedColor[0]" :points="`0, 25 0, 0 25, 0`" />
1010
<polyline class="dv-bb7-line-width-2" :stroke="mergedColor[0]" :points="`${width - 25}, 0 ${width}, 0 ${width}, 25`" />
1111
<polyline class="dv-bb7-line-width-2" :stroke="mergedColor[0]" :points="`${width - 25}, ${height} ${width}, ${height} ${width}, ${height - 25}`" />
@@ -80,14 +80,14 @@ export default {
8080
width: 100%;
8181
height: 100%;
8282
83-
.dv-svg-container {
83+
.dv-border-svg-container {
8484
position: absolute;
8585
top: 0px;
8686
left: 0px;
8787
width: 100%;
8888
height: 100%;
8989
90-
polyline {
90+
& > polyline {
9191
fill: none;
9292
stroke-linecap: round;
9393
}

src/components/borderBox9/src/main.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="dv-border-box-9" :ref="ref">
3-
<svg class="dv-svg-container" :width="width" :height="height">
3+
<svg class="dv-border-svg-container" :width="width" :height="height">
44
<defs>
55
<linearGradient :id="gradientId" x1="0%" y1="0%" x2="100%" y2="100%">
66
<animate
@@ -185,7 +185,7 @@ export default {
185185
width: 100%;
186186
height: 100%;
187187
188-
svg {
188+
.dv-border-svg-container {
189189
position: absolute;
190190
width: 100%;
191191
height: 100%;

0 commit comments

Comments
 (0)