File tree Expand file tree Collapse file tree 3 files changed +19
-6
lines changed
Expand file tree Collapse file tree 3 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,14 @@ hello {
1111
1212 a {
1313 align-items : center ;
14+ background-position : center center ;
15+ background-repeat : no-repeat ;
16+ background-size : contain ;
1417 display : flex ;
1518 justify-content : center ;
1619 margin : 10px ;
1720 height : 200px ;
1821 width : 200px ;
1922 }
20-
21- img {
22- max-width : 100% ;
23- }
2423 }
2524}
Original file line number Diff line number Diff line change @@ -3,7 +3,10 @@ <h1>AngularJS + webpack seed project</h1>
33< p > Congratulations, you have correctly installed and run this seed project based on:</ p >
44
55< div class ="tools ">
6- < a ng-repeat ="tool in $ctrl.tools " ng-href ="{{::tool.href}} " title ="{{::tool.name}} " target ="_blank ">
7- < img ng-src ="{{::tool.image}} " alt ="{{::tool.name}} ">
6+ < a ng-repeat ="tool in $ctrl.tools "
7+ ng-href ="{{::tool.href}} "
8+ title ="{{::tool.name}} "
9+ style ="background-image: url({{::tool.image}}) "
10+ target ="_blank ">
811 </ a >
912</ div >
Original file line number Diff line number Diff line change @@ -11,5 +11,16 @@ body {
1111 margin : 0 ;
1212}
1313
14+ a {
15+ img {
16+ border : 0 ;
17+ }
18+ }
19+
20+ img {
21+ height : auto ;
22+ max-width : 100% ;
23+ }
24+
1425@import ' app/hello/hello' ;
1526@import ' app/footer/footer' ;
You can’t perform that action at this time.
0 commit comments