Skip to content

Commit 2f2099a

Browse files
committed
Add editor prefix to classes, function names and variables
1 parent f1426ff commit 2f2099a

File tree

6 files changed

+115
-115
lines changed

6 files changed

+115
-115
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ and for a possible WordPress-Webpack setup
2727
The HTML generated by the plugin looks like this:
2828

2929
```html
30-
<div class="grid grid-equal-height grid-shadow grid-background">
31-
<div class="grid-container">
32-
<div class="grid-unit grid-unit-6 grid-shadow grid-background-highlight">
30+
<div class="editor-grid editor-grid-equal-height editor-grid-shadow editor-grid-background">
31+
<div class="editor-grid-container">
32+
<div class="editor-grid-unit editor-grid-unit-6 editor-grid-shadow editor-grid-background-highlight">
3333
<!-- Content -->
3434
</div>
35-
<div class="grid-unit grid-unit-6 grid-background">
35+
<div class="editor-grid-unit editor-grid-unit-6 editor-grid-background">
3636
<!-- Content -->
3737
</div>
3838
</div>

assets/buttons.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
.grid-icon-create {
1+
.editor-grid-icon-create {
22
background-image: url("./button-create.png") !important;
33
}
44

5-
.grid-icon-shadow {
5+
.editor-grid-icon-shadow {
66
background-image: url("./button-shadow.png") !important;
77
}
88

9-
.grid-icon-equalize-height {
9+
.editor-grid-icon-equalize-height {
1010
background-image: url("./button-equal-height.png") !important;
1111
}

assets/editor.css

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
.grid,
2-
.grid *,
3-
.grid *:before,
4-
.grid *:after {
1+
.editor-grid,
2+
.editor-grid *,
3+
.editor-grid *:before,
4+
.editor-grid *:after {
55
box-sizing: border-box;
66
}
77

8-
.grid {
8+
.editor-grid {
99
margin-bottom: 10px;
1010
}
1111

12-
.grid-background {
12+
.editor-grid-background {
1313
background-color: #eee;
1414
padding: 10px;
1515
}
1616

17-
.grid-background.grid {
17+
.editor-grid-background.editor-grid {
1818
padding-bottom: 0;
1919
}
2020

21-
.grid-background-highlight {
21+
.editor-grid-background-highlight {
2222
background-color: #c27386;
2323
padding: 10px;
2424
}
2525

26-
.grid-background-highlight.grid {
26+
.editor-grid-background-highlight.editor-grid {
2727
padding-bottom: 0;
2828
}
2929

30-
.grid-shadow {
30+
.editor-grid-shadow {
3131
box-shadow: 0 0 7px rgba(0, 0, 0, .5);
3232
padding: 10px;
3333
}
3434

35-
.grid-shadow.grid {
35+
.editor-grid-shadow.editor-grid {
3636
padding-bottom: 0;
3737
}
3838

39-
.grid-equal-height .grid-container {
39+
.editor-grid-equal-height .editor-grid-container {
4040
display: -webkit-flex;
4141
display: -ms-flexbox;
4242
display: flex;
@@ -46,7 +46,7 @@
4646
flex-wrap: wrap;
4747
}
4848

49-
.grid-container {
49+
.editor-grid-container {
5050
letter-spacing: -.31em;
5151
*letter-spacing: normal;
5252
*word-spacing: -.43em;
@@ -56,7 +56,7 @@
5656
margin-left: -2%;
5757
}
5858

59-
.grid-container, .grid-container .opera-only :-o-prefocus {
59+
.editor-grid-container, .editor-grid-container .opera-only :-o-prefocus {
6060
word-spacing: -.43em
6161
}
6262

@@ -105,86 +105,86 @@
105105
right: 1px;
106106
}
107107

108-
.grid-unit-12 {
108+
.editor-grid-unit-12 {
109109
width: 98%;
110110
}
111-
.grid-unit-12:before {
111+
.editor-grid-unit-12:before {
112112
content: '12 / 12'
113113
}
114114

115-
.grid-unit-11 {
115+
.editor-grid-unit-11 {
116116
width: 89.66666667%;
117117
}
118-
.grid-unit-11:before {
118+
.editor-grid-unit-11:before {
119119
content: '11 / 12'
120120
}
121121

122-
.grid-unit-10 {
122+
.editor-grid-unit-10 {
123123
width: 81.33333333%;
124124
}
125-
.grid-unit-10:before {
125+
.editor-grid-unit-10:before {
126126
content: '10 / 12'
127127
}
128128

129-
.grid-unit-9 {
129+
.editor-grid-unit-9 {
130130
width: 73%;
131131
}
132-
.grid-unit-9:before {
132+
.editor-grid-unit-9:before {
133133
content: '9 / 12'
134134
}
135135

136-
.grid-unit-8 {
136+
.editor-grid-unit-8 {
137137
width: 64.66666667%;
138138
}
139-
.grid-unit-8:before {
139+
.editor-grid-unit-8:before {
140140
content: '8 / 12'
141141
}
142142

143-
.grid-unit-7 {
143+
.editor-grid-unit-7 {
144144
width: 56.33333333%;
145145
}
146-
.grid-unit-7:before {
146+
.editor-grid-unit-7:before {
147147
content: '7 / 12'
148148
}
149149

150-
.grid-unit-6 {
150+
.editor-grid-unit-6 {
151151
width: 48%;
152152
}
153-
.grid-unit-6:before {
153+
.editor-grid-unit-6:before {
154154
content: '6 / 12'
155155
}
156156

157-
.grid-unit-5 {
157+
.editor-grid-unit-5 {
158158
width: 39.66666667%;
159159
}
160-
.grid-unit-5:before {
160+
.editor-grid-unit-5:before {
161161
content: '5 / 12'
162162
}
163163

164-
.grid-unit-4 {
164+
.editor-grid-unit-4 {
165165
width: 31.33333333%;
166166
}
167-
.grid-unit-4:before {
167+
.editor-grid-unit-4:before {
168168
content: '4 / 12'
169169
}
170170

171-
.grid-unit-3 {
171+
.editor-grid-unit-3 {
172172
width: 23%;
173173
}
174-
.grid-unit-3:before {
174+
.editor-grid-unit-3:before {
175175
content: '3 / 12'
176176
}
177177

178-
.grid-unit-2 {
178+
.editor-grid-unit-2 {
179179
width: 14.66666667%;
180180
}
181-
.grid-unit-2:before {
181+
.editor-grid-unit-2:before {
182182
content: '2 / 12'
183183
}
184184

185-
.grid-unit-1 {
185+
.editor-grid-unit-1 {
186186
width: 6.33333333%;
187187
}
188-
.grid-unit-1:before {
188+
.editor-grid-unit-1:before {
189189
content: '1 / 12'
190190
}

0 commit comments

Comments
 (0)