Skip to content

Commit e74d2ee

Browse files
committed
style(): angular img width
1 parent e050d7b commit e74d2ee

File tree

4 files changed

+31
-28
lines changed

4 files changed

+31
-28
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
<img width="230" alt="Angular Logo" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg==">
2-
<!-- <span style="font-size: 6em">Animate.css</span> -->
1+
<img alt="Angular Logo" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg==">
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
$width: 230px;
2+
13
:host {
24
display: block;
3-
4-
width: 471px;
5+
// width: 471px;
6+
width: $width;
57
margin: 0 auto;
6-
}
8+
img {
9+
width: $width;
10+
}
11+
}

demo-app/src/app/demo-main/demo-main.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export class DemoMainComponent {
252252
'rotate',
253253
'rotate90'
254254
];
255-
animation = this.animations[this.animations.length - 1];
255+
animation = this.animations[0];
256256
animationState = false;
257257

258258
animate() {

tsconfig.json

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
{
22
"compilerOptions": {
3-
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
4-
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
5-
"lib": ["es2017", "es7", "es6"], /* Specify library files to be included in the compilation. */
6-
"declaration": true, /* Generates corresponding '.d.ts' file. */
7-
"outDir": "dist", /* Redirect output structure to the directory. */
8-
"rootDir": "lib", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
3+
"target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */,
4+
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
5+
"lib": ["es2017", "es7", "es6"] /* Specify library files to be included in the compilation. */,
6+
"declaration": true /* Generates corresponding '.d.ts' file. */,
7+
"outDir": "dist" /* Redirect output structure to the directory. */,
8+
"rootDir": "lib" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
99
// "removeComments": true, /* Do not emit comments to output. */
1010
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
11-
"strict": true, /* Enable all strict type-checking options. */
12-
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
13-
"strictNullChecks": true, /* Enable strict null checks. */
14-
"strictFunctionTypes": true, /* Enable strict checking of function types. */
15-
"strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
16-
"noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
17-
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
18-
"noUnusedLocals": true, /* Report errors on unused locals. */
19-
"noUnusedParameters": true, /* Report errors on unused parameters. */
20-
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
21-
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
22-
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
11+
"strict": true /* Enable all strict type-checking options. */,
12+
"noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
13+
"strictNullChecks": true /* Enable strict null checks. */,
14+
"strictFunctionTypes": true /* Enable strict checking of function types. */,
15+
"strictPropertyInitialization": true /* Enable strict checking of property initialization in classes. */,
16+
"noImplicitThis": true /* Raise error on 'this' expressions with an implied 'any' type. */,
17+
"alwaysStrict": true /* Parse in strict mode and emit "use strict" for each source file. */,
18+
"noUnusedLocals": true /* Report errors on unused locals. */,
19+
"noUnusedParameters": true /* Report errors on unused parameters. */,
20+
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
21+
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
22+
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
23+
"experimentalDecorators": true
2324
},
24-
"include": [
25-
"lib/**/*"
26-
],
27-
}
25+
"include": ["lib/**/*"]
26+
}

0 commit comments

Comments
 (0)