@internetstiftelsen/styleguide 2.26.4-beta.0.9 → 2.26.5-beta.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetstiftelsen/styleguide",
3
- "version": "2.26.4-beta.0.9",
3
+ "version": "2.26.5-beta.1.0",
4
4
  "main": "dist/components.js",
5
5
  "ports": {
6
6
  "fractal": "3000"
@@ -134,11 +134,72 @@
134
134
  border-color: transparent;
135
135
  }
136
136
 
137
+ @include e(image-wrapper) {
138
+ width: rem(50px);
139
+ height: rem(50px);
140
+ margin-right: rhythm(2);
141
+ position: relative;
142
+
143
+ @include bp-up(md) {
144
+ margin-right: 0;
145
+ }
146
+
147
+ @include m(medium) {
148
+ width: rem(75px);
149
+ height: rem(75px);
150
+
151
+ }
152
+
153
+ @include m(large) {
154
+ width: rem(125px);
155
+ height: rem(125px);
156
+ margin-bottom: rhythm(2);
157
+
158
+ @include bp-up(md) {
159
+ margin-bottom: 0;
160
+ }
161
+ }
162
+
163
+ @include m(multiple) {
164
+ margin-right: rhythm(3);
165
+ flex-grow: 0;
166
+ flex-shrink: 0;
167
+
168
+ @include bp-up(md) {
169
+ margin-right: 0;
170
+ }
171
+
172
+ &::before,
173
+ &::after {
174
+ content: '';
175
+ display: block;
176
+ border-radius: 50%;
177
+ width: 100%;
178
+ height: 100%;
179
+ top: 0;
180
+ left: rhythm(1.25);
181
+ background-color: $color-ash;
182
+ position: absolute;
183
+ z-index: 2;
184
+ transform: scale(0.95);
185
+ box-shadow: 0 0 0 3px $color-snow;
186
+ }
187
+
188
+ &::after {
189
+ left: rhythm(2.5);
190
+ z-index: 1;
191
+ transform: scale(0.9);
192
+ }
193
+ }
194
+ }
195
+
137
196
  @include e(image) {
138
197
  border-radius: 50%;
139
198
  width: rem(50px);
140
199
  height: rem(50px);
141
- margin-right: rhythm(2);
200
+ position: relative;
201
+ z-index: 3;
202
+ box-shadow: 0 0 0 3px $color-snow;
142
203
 
143
204
  @include bp-up(lg) {
144
205
  margin-right: 0;
@@ -154,6 +215,7 @@
154
215
  width: rem(125px);
155
216
  height: rem(125px);
156
217
  margin-bottom: rhythm(2);
218
+ box-shadow: none;
157
219
 
158
220
  @include bp-up(md) {
159
221
  margin-bottom: 0;
@@ -161,6 +223,7 @@
161
223
  }
162
224
  }
163
225
 
226
+
164
227
  @include e(close-btn) {
165
228
  position: absolute;
166
229
  top: 0;
@@ -171,6 +234,7 @@
171
234
  @include e(owner) {
172
235
  display: flex;
173
236
  margin-bottom: rhythm(1);
237
+ align-items: center;
174
238
 
175
239
  @include bp-up(lg) {
176
240
  margin-bottom: 0;