Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 16c8f29

Browse files
docs(ngShow/ngHide): add spaces to improve readability of CSS
Closes #10101
1 parent d3fb8dd commit 16c8f29

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

src/ng/directive/ngShowHide.js

+39-39
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';
3838
*
3939
* ### Overriding `.ng-hide`
4040
*
41-
* By default, the `.ng-hide` class will style the element with `display:none!important`. If you wish to change
41+
* By default, the `.ng-hide` class will style the element with `display: none!important`. If you wish to change
4242
* the hide behavior with ngShow/ngHide then this can be achieved by restating the styles for the `.ng-hide`
4343
* class in CSS:
4444
*
4545
* ```css
4646
* .ng-hide {
4747
* /* this is just another form of hiding an element */
48-
* display:block!important;
49-
* position:absolute;
50-
* top:-9999px;
51-
* left:-9999px;
48+
* display: block!important;
49+
* position: absolute;
50+
* top: -9999px;
51+
* left: -9999px;
5252
* }
5353
* ```
5454
*
@@ -68,13 +68,13 @@ var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';
6868
* .my-element.ng-hide-add, .my-element.ng-hide-remove {
6969
* /* this is required as of 1.3x to properly
7070
* apply all styling in a show/hide animation */
71-
* transition:0s linear all;
71+
* transition: 0s linear all;
7272
* }
7373
*
7474
* .my-element.ng-hide-add-active,
7575
* .my-element.ng-hide-remove-active {
7676
* /* the transition is defined in the active class */
77-
* transition:1s linear all;
77+
* transition: 1s linear all;
7878
* }
7979
*
8080
* .my-element.ng-hide-add { ... }
@@ -116,29 +116,29 @@ var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';
116116
</file>
117117
<file name="animations.css">
118118
.animate-show {
119-
line-height:20px;
120-
opacity:1;
121-
padding:10px;
122-
border:1px solid black;
123-
background:white;
119+
line-height: 20px;
120+
opacity: 1;
121+
padding: 10px;
122+
border: 1px solid black;
123+
background: white;
124124
}
125125
126126
.animate-show.ng-hide-add.ng-hide-add-active,
127127
.animate-show.ng-hide-remove.ng-hide-remove-active {
128-
-webkit-transition:all linear 0.5s;
129-
transition:all linear 0.5s;
128+
-webkit-transition: all linear 0.5s;
129+
transition: all linear 0.5s;
130130
}
131131
132132
.animate-show.ng-hide {
133-
line-height:0;
134-
opacity:0;
135-
padding:0 10px;
133+
line-height: 0;
134+
opacity: 0;
135+
padding: 0 10px;
136136
}
137137
138138
.check-element {
139-
padding:10px;
140-
border:1px solid black;
141-
background:white;
139+
padding: 10px;
140+
border: 1px solid black;
141+
background: white;
142142
}
143143
</file>
144144
<file name="protractor.js" type="protractor">
@@ -212,17 +212,17 @@ var ngShowDirective = ['$animate', function($animate) {
212212
*
213213
* ### Overriding `.ng-hide`
214214
*
215-
* By default, the `.ng-hide` class will style the element with `display:none!important`. If you wish to change
215+
* By default, the `.ng-hide` class will style the element with `display: none!important`. If you wish to change
216216
* the hide behavior with ngShow/ngHide then this can be achieved by restating the styles for the `.ng-hide`
217217
* class in CSS:
218218
*
219219
* ```css
220220
* .ng-hide {
221221
* /&#42; this is just another form of hiding an element &#42;/
222-
* display:block!important;
223-
* position:absolute;
224-
* top:-9999px;
225-
* left:-9999px;
222+
* display: block!important;
223+
* position: absolute;
224+
* top: -9999px;
225+
* left: -9999px;
226226
* }
227227
* ```
228228
*
@@ -239,7 +239,7 @@ var ngShowDirective = ['$animate', function($animate) {
239239
* //a working example can be found at the bottom of this page
240240
* //
241241
* .my-element.ng-hide-add, .my-element.ng-hide-remove {
242-
* transition:0.5s linear all;
242+
* transition: 0.5s linear all;
243243
* }
244244
*
245245
* .my-element.ng-hide-add { ... }
@@ -281,25 +281,25 @@ var ngShowDirective = ['$animate', function($animate) {
281281
</file>
282282
<file name="animations.css">
283283
.animate-hide {
284-
-webkit-transition:all linear 0.5s;
285-
transition:all linear 0.5s;
286-
line-height:20px;
287-
opacity:1;
288-
padding:10px;
289-
border:1px solid black;
290-
background:white;
284+
-webkit-transition: all linear 0.5s;
285+
transition: all linear 0.5s;
286+
line-height: 20px;
287+
opacity: 1;
288+
padding: 10px;
289+
border: 1px solid black;
290+
background: white;
291291
}
292292
293293
.animate-hide.ng-hide {
294-
line-height:0;
295-
opacity:0;
296-
padding:0 10px;
294+
line-height: 0;
295+
opacity: 0;
296+
padding: 0 10px;
297297
}
298298
299299
.check-element {
300-
padding:10px;
301-
border:1px solid black;
302-
background:white;
300+
padding: 10px;
301+
border: 1px solid black;
302+
background: white;
303303
}
304304
</file>
305305
<file name="protractor.js" type="protractor">

0 commit comments

Comments
 (0)