Skip to content

Commit

Permalink
Canonical class name
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaming743 committed Aug 25, 2020
1 parent 751eb2f commit 918653c
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions src/components/borderBox10/src/main.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="dv-border-box-10" :ref="ref" :style="`box-shadow: inset 0 0 25px 3px ${mergedColor[0]}`">
<svg class="border" :width="width" :height="height">
<svg class="dv-border-svg-container" :width="width" :height="height">
<polygon :fill="backgroundColor" :points="`
4, 0 ${width - 4}, 0 ${width}, 4 ${width}, ${height - 4} ${width - 4}, ${height}
4, ${height} 0, ${height - 4} 0, 4
Expand All @@ -12,7 +12,7 @@
height="150px"
:key="item"
v-for="item in border"
:class="`${item} border`"
:class="`${item} dv-border-svg-container`"
>
<polygon
:fill="mergedColor[1]"
Expand Down Expand Up @@ -86,7 +86,7 @@ export default {
height: 100%;
border-radius: 6px;
.border {
.dv-border-svg-container {
position: absolute;
display: block;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/borderBox11/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export default {
top: 0px;
left: 0px;
polyline {
& > polyline {
fill: none;
stroke-width: 1;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/borderBox2/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default {
top: 0px;
left: 0px;
polyline {
& > polyline {
fill: none;
stroke-width: 1;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/borderBox3/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default {
top: 0px;
left: 0px;
polyline {
& > polyline {
fill: none;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/borderBox4/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default {
top: 0px;
left: 0px;
polyline {
& > polyline {
fill: none;
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/borderBox5/src/main.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="dv-border-box-5" :ref="ref">
<svg :class="`dv-svg-container ${reverse && 'dv-reverse'}`" :width="width" :height="height">
<svg :class="`dv-border-svg-container ${reverse && 'dv-reverse'}`" :width="width" :height="height">
<polygon :fill="backgroundColor" :points="`
10, 22 ${width - 22}, 22 ${width - 22}, ${height - 86} ${width - 84}, ${height - 24} 10, ${height - 24}
`" />
Expand Down Expand Up @@ -94,14 +94,14 @@ export default {
transform: rotate(180deg);
}
.dv-svg-container {
.dv-border-svg-container {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
polyline {
& > polyline {
fill: none;
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/borderBox6/src/main.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="dv-border-box-6" :ref="ref">
<svg class="dv-svg-container" :width="width" :height="height">
<svg class="dv-border-svg-container" :width="width" :height="height">
<polygon :fill="backgroundColor" :points="`
9, 7 ${width - 9}, 7 ${width - 9}, ${height - 7} 9, ${height - 7}
`" />
Expand Down Expand Up @@ -86,14 +86,14 @@ export default {
width: 100%;
height: 100%;
.dv-svg-container {
.dv-border-svg-container {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
polyline {
& > polyline {
fill: none;
stroke-width: 1;
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/borderBox7/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:style="`box-shadow: inset 0 0 40px ${mergedColor[0]}; border: 1px solid ${mergedColor[0]}; background-color: ${backgroundColor}`"
:ref="ref"
>
<svg class="dv-svg-container" :width="width" :height="height">
<svg class="dv-border-svg-container" :width="width" :height="height">
<polyline class="dv-bb7-line-width-2" :stroke="mergedColor[0]" :points="`0, 25 0, 0 25, 0`" />
<polyline class="dv-bb7-line-width-2" :stroke="mergedColor[0]" :points="`${width - 25}, 0 ${width}, 0 ${width}, 25`" />
<polyline class="dv-bb7-line-width-2" :stroke="mergedColor[0]" :points="`${width - 25}, ${height} ${width}, ${height} ${width}, ${height - 25}`" />
Expand Down Expand Up @@ -80,14 +80,14 @@ export default {
width: 100%;
height: 100%;
.dv-svg-container {
.dv-border-svg-container {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
polyline {
& > polyline {
fill: none;
stroke-linecap: round;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/borderBox9/src/main.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="dv-border-box-9" :ref="ref">
<svg class="dv-svg-container" :width="width" :height="height">
<svg class="dv-border-svg-container" :width="width" :height="height">
<defs>
<linearGradient :id="gradientId" x1="0%" y1="0%" x2="100%" y2="100%">
<animate
Expand Down Expand Up @@ -185,7 +185,7 @@ export default {
width: 100%;
height: 100%;
svg {
.dv-border-svg-container {
position: absolute;
width: 100%;
height: 100%;
Expand Down

0 comments on commit 918653c

Please sign in to comment.