@net7/components 3.6.0 → 3.6.1-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/hero/hero.mjs +3 -3
- package/esm2020/lib/components/hero/hero.mock.mjs +2 -1
- package/fesm2015/net7-components.mjs +3 -2
- package/fesm2015/net7-components.mjs.map +1 -1
- package/fesm2020/net7-components.mjs +3 -2
- package/fesm2020/net7-components.mjs.map +1 -1
- package/lib/components/hero/hero.d.ts +4 -0
- package/package.json +1 -1
- package/src/lib/styles/components/_hero.scss +23 -22
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* This component is used for hero section at the top of the homepage or
|
|
13
13
|
* for call to action sections (usually in homepage)
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
/* ------------------------------------ *\
|
|
17
17
|
#HERO
|
|
18
18
|
\* ------------------------------------ */
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
&__title {
|
|
49
|
-
margin: 0 0 $space*2 0;
|
|
49
|
+
margin: 0 0 $space * 2 0;
|
|
50
50
|
font-family: $font-family-headings;
|
|
51
51
|
font-size: $font-size-xxl;
|
|
52
52
|
font-weight: $font-weight-bold;
|
|
@@ -54,8 +54,17 @@
|
|
|
54
54
|
color: $color-text-inverse;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
&__pre-title {
|
|
58
|
+
margin: 0 0 $space * 2 0;
|
|
59
|
+
font-family: $font-family-main;
|
|
60
|
+
font-size: $font-size-m;
|
|
61
|
+
font-weight: $font-weight-normal;
|
|
62
|
+
line-height: 1.1;
|
|
63
|
+
color: $color-text-inverse;
|
|
64
|
+
}
|
|
65
|
+
|
|
57
66
|
&__text {
|
|
58
|
-
margin: 0 0 $space*2 0;
|
|
67
|
+
margin: 0 0 $space * 2 0;
|
|
59
68
|
font-family: $font-family-main;
|
|
60
69
|
font-size: $font-size-l;
|
|
61
70
|
font-weight: $font-weight-normal;
|
|
@@ -76,7 +85,7 @@
|
|
|
76
85
|
|
|
77
86
|
&__input {
|
|
78
87
|
width: 100%;
|
|
79
|
-
margin: 0 0 $space*2 0;
|
|
88
|
+
margin: 0 0 $space * 2 0;
|
|
80
89
|
box-sizing: border-box;
|
|
81
90
|
}
|
|
82
91
|
|
|
@@ -94,7 +103,6 @@
|
|
|
94
103
|
}
|
|
95
104
|
}
|
|
96
105
|
|
|
97
|
-
|
|
98
106
|
/* ------------------------------------ *\
|
|
99
107
|
#WITH-IMAGE
|
|
100
108
|
\* ------------------------------------ */
|
|
@@ -123,7 +131,7 @@
|
|
|
123
131
|
align-items: center;
|
|
124
132
|
justify-content: center;
|
|
125
133
|
@include flex-item-width($hero-image-text-width);
|
|
126
|
-
padding: $space*3 0;
|
|
134
|
+
padding: $space * 3 0;
|
|
127
135
|
}
|
|
128
136
|
|
|
129
137
|
.n7-hero__image {
|
|
@@ -135,48 +143,42 @@
|
|
|
135
143
|
}
|
|
136
144
|
}
|
|
137
145
|
|
|
138
|
-
|
|
139
146
|
/* ------------------------------------ *\
|
|
140
147
|
#MEDIA-QUERIES
|
|
141
148
|
\* ------------------------------------ */
|
|
142
|
-
@media all and (max-width: $hero-content-width + $space*4) {
|
|
143
|
-
|
|
149
|
+
@media all and (max-width: calc(#{$hero-content-width} + #{$space}*4)) {
|
|
144
150
|
.n7-hero {
|
|
145
151
|
&__content {
|
|
146
|
-
padding: 0 $space*2;
|
|
152
|
+
padding: 0 $space * 2;
|
|
147
153
|
}
|
|
148
154
|
}
|
|
149
|
-
|
|
150
155
|
}
|
|
151
156
|
|
|
152
157
|
@media all and (max-width: $breakpoint-laptop) {
|
|
153
|
-
|
|
154
158
|
/* With image */
|
|
155
159
|
.n7-hero.has-image {
|
|
156
160
|
.n7-hero__content {
|
|
157
161
|
grid-template-columns: 1fr 220px;
|
|
158
162
|
}
|
|
159
163
|
}
|
|
160
|
-
|
|
161
164
|
}
|
|
162
165
|
|
|
163
166
|
@media all and (max-width: $breakpoint-mobile) {
|
|
164
|
-
|
|
165
167
|
.n7-hero {
|
|
166
168
|
height: auto;
|
|
167
|
-
padding: $space*2 0;
|
|
169
|
+
padding: $space * 2 0;
|
|
168
170
|
|
|
169
171
|
&__text-wrapper {
|
|
170
172
|
height: auto;
|
|
171
173
|
}
|
|
172
|
-
|
|
174
|
+
|
|
173
175
|
&__title {
|
|
174
|
-
margin: 0 0 $space*2 0;
|
|
176
|
+
margin: 0 0 $space * 2 0;
|
|
175
177
|
font-size: $font-size-l;
|
|
176
178
|
}
|
|
177
|
-
|
|
179
|
+
|
|
178
180
|
&__text {
|
|
179
|
-
margin: 0 0 $space*2 0;
|
|
181
|
+
margin: 0 0 $space * 2 0;
|
|
180
182
|
font-size: $font-size-m;
|
|
181
183
|
}
|
|
182
184
|
}
|
|
@@ -196,12 +198,11 @@
|
|
|
196
198
|
.n7-hero__image-wrapper {
|
|
197
199
|
order: 1;
|
|
198
200
|
padding: 0;
|
|
199
|
-
margin-bottom: $space*2;
|
|
201
|
+
margin-bottom: $space * 2;
|
|
200
202
|
}
|
|
201
203
|
}
|
|
202
|
-
|
|
203
204
|
}
|
|
204
205
|
|
|
205
206
|
/* Retina */
|
|
206
207
|
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
207
|
-
}
|
|
208
|
+
}
|