Skip to content

Commit d8141c6

Browse files
authored
Merge pull request #9 from open-template-hub/develop
Release/updated assets
2 parents 973236b + 0b0c401 commit d8141c6

File tree

5 files changed

+83
-78
lines changed

5 files changed

+83
-78
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"karma-coverage": "~2.1.0",
3636
"karma-jasmine": "^4.0.2",
3737
"karma-jasmine-html-reporter": "~1.7.0",
38-
"ng-packagr": "^13.0.0",
38+
"ng-packagr": "^13.3.1",
3939
"typescript": "^4.6.3"
4040
}
4141
}

projects/hero/ng-package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"dest": "../../dist/hero",
44
"lib": {
55
"entryFile": "src/public-api.ts"
6-
}
7-
}
6+
},
7+
"assets": [
8+
"styles/util/util.scss",
9+
"styles/hero/hero.scss"
10+
]
11+
}
Original file line numberDiff line numberDiff line change
@@ -1,75 +1 @@
1-
@use '../../styles/util/util';
2-
3-
.hero {
4-
padding-top: 80px;
5-
6-
&.no-padding {
7-
padding-top: 0;
8-
}
9-
10-
& .body {
11-
@include util.flex-layout-column;
12-
13-
position: relative;
14-
15-
text-align: center;
16-
align-items: center;
17-
18-
& .contents {
19-
display: flex;
20-
}
21-
}
22-
}
23-
24-
@media only screen and (max-width: 999px) {
25-
.hero {
26-
& .body {
27-
& .contents {
28-
@include util.flex-layout-column;
29-
30-
& > * {
31-
@include util.flex-layout-column;
32-
@include util.card-width-sm;
33-
margin-bottom: 20px;
34-
}
35-
36-
& img {
37-
min-width: initial;
38-
width: initial;
39-
max-width: initial;
40-
}
41-
}
42-
}
43-
}
44-
}
45-
46-
@media only screen and (min-width: 1000px) {
47-
.hero {
48-
49-
& .body {
50-
padding-bottom: 50px;
51-
52-
& .contents {
53-
flex-direction: column;
54-
max-width: 800px;
55-
56-
& > * {
57-
flex-direction: column;
58-
margin-bottom: 30px;
59-
}
60-
}
61-
}
62-
63-
&.no-padding {
64-
& .body {
65-
padding-bottom: 0;
66-
67-
& .contents {
68-
& > * {
69-
margin-bottom: 0;
70-
}
71-
}
72-
}
73-
}
74-
}
75-
}
1+
@use '../../../../styles/hero/hero';

projects/hero/styles/hero/hero.scss

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
@use '../util/util';
2+
3+
.hero {
4+
padding-top: 80px;
5+
6+
&.no-padding {
7+
padding-top: 0;
8+
}
9+
10+
& .body {
11+
@include util.flex-layout-column;
12+
13+
position: relative;
14+
15+
text-align: center;
16+
align-items: center;
17+
18+
& .contents {
19+
display: flex;
20+
}
21+
}
22+
}
23+
24+
@media only screen and (max-width: 999px) {
25+
.hero {
26+
& .body {
27+
& .contents {
28+
@include util.flex-layout-column;
29+
30+
& > * {
31+
@include util.flex-layout-column;
32+
@include util.card-width-sm;
33+
margin-bottom: 20px;
34+
}
35+
36+
& img {
37+
min-width: initial;
38+
width: initial;
39+
max-width: initial;
40+
}
41+
}
42+
}
43+
}
44+
}
45+
46+
@media only screen and (min-width: 1000px) {
47+
.hero {
48+
49+
& .body {
50+
padding-bottom: 50px;
51+
52+
& .contents {
53+
flex-direction: column;
54+
max-width: 800px;
55+
56+
& > * {
57+
flex-direction: column;
58+
margin-bottom: 30px;
59+
}
60+
}
61+
}
62+
63+
&.no-padding {
64+
& .body {
65+
padding-bottom: 0;
66+
67+
& .contents {
68+
& > * {
69+
margin-bottom: 0;
70+
}
71+
}
72+
}
73+
}
74+
}
75+
}

0 commit comments

Comments
 (0)