@internetstiftelsen/styleguide 2.21.14-beta.0.2 → 2.21.14-beta.0.3

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.21.14-beta.0.2",
3
+ "version": "2.21.14-beta.0.3",
4
4
  "main": "dist/components.js",
5
5
  "ports": {
6
6
  "fractal": "3000"
@@ -123,40 +123,64 @@
123
123
  @include e(media) {
124
124
 
125
125
  &:not([class*='overlay']) {
126
- cursor: zoom-in;
127
- transition: all 0.15s ease-out;
126
+ pointer-events: none;
128
127
 
129
- img {
130
- transition: all 0.25s ease-out;
131
- }
128
+ @include bp-up(lg) {
129
+ pointer-events: auto;
130
+ cursor: zoom-in;
131
+ transition: all 0.15s ease-out;
132
+ position: relative;
133
+
134
+ &::after {
135
+ content: '';
136
+ padding: rhythm(1);
137
+ display: block;
138
+ position: absolute;
139
+ bottom: 0;
140
+ right: 0;
141
+ border-radius: $border-radius;
142
+ width: $icon-size-large * 1.4;
143
+ height: $icon-size-large * 1.4;
144
+ background-color: rgba($color-cyberspace, 0.8);
145
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' id='icon-search' viewbox='0 0 32 32' width='32' height='32' fill='%23ffffff'%3E%3Cpath d='M24,21.8l8,8L29.9,32l-8-8c-5.9,4.6-14.3,3.6-19-2.2S-0.7,7.6,5.1,2.9S19.3-0.7,24,5.1C27.9,10,27.9,16.9,24,21.8L24,21.8z M13.4,23.9c5.8,0,10.5-4.7,10.5-10.5S19.2,3,13.4,3S3,7.7,3,13.4S7.7,23.9,13.4,23.9z'/%3E%3C/svg%3E");
146
+ background-position: center center;
147
+ background-size: $icon-size-medium $icon-size-medium;
148
+ background-repeat: no-repeat;
132
149
 
133
- // Image zooming
134
- &.is-zoomed {
135
- cursor: zoom-out !important;
136
- position: fixed;
137
- left: 0;
138
- right: 0;
139
- top: 0;
140
- bottom: 0;
141
- z-index: z_index(foreground);
142
- display: flex;
143
- align-items: center;
144
- justify-content: center;
145
- background-color: rgba($color-cyberspace, 0.8);
146
- flex-direction: column;
150
+ }
147
151
 
148
152
  img {
149
- cursor: zoom-out;
150
- max-width: 100%;
151
- max-height: 100vh;
152
- padding: rhythm(1);
153
- height: auto;
153
+ transition: all 0.25s ease-out;
154
154
  }
155
155
 
156
- figcaption {
157
- color: $color-snow;
158
- padding-left: rhythm(1);
159
- padding-right: rhythm(1);
156
+ // Image zooming
157
+ &.is-zoomed {
158
+ cursor: zoom-out !important;
159
+ position: fixed;
160
+ left: 0;
161
+ right: 0;
162
+ top: 0;
163
+ bottom: 0;
164
+ z-index: z_index(foreground);
165
+ display: flex;
166
+ align-items: center;
167
+ justify-content: center;
168
+ background-color: rgba($color-cyberspace, 0.8);
169
+ flex-direction: column;
170
+
171
+ img {
172
+ cursor: zoom-out;
173
+ max-width: 100%;
174
+ max-height: 100vh;
175
+ padding: rhythm(1);
176
+ height: auto;
177
+ }
178
+
179
+ figcaption {
180
+ color: $color-snow;
181
+ padding-left: rhythm(1);
182
+ padding-right: rhythm(1);
183
+ }
160
184
  }
161
185
  }
162
186
  }