@erst-vg/vg-design-wrapper 1.0.8 → 1.0.10

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.
Files changed (187) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +2 -2
  3. package/dist/src/components/VgCard.vue.d.ts +31 -23
  4. package/dist/src/components/VgLoginButton.vue.d.ts +2 -0
  5. package/dist/src/index.d.ts +2 -1
  6. package/dist/tests/unit/components/VgLoginButton.spec.d.ts +1 -0
  7. package/dist/vg-design-wrapper.js +1052 -1033
  8. package/dist/vg-design-wrapper.umd.cjs +50 -50
  9. package/package.json +92 -92
  10. package/src/assets/icons/abonnementFilled.svg +4 -4
  11. package/src/assets/icons/abonnementOutline.svg +4 -4
  12. package/src/assets/icons/accordion.svg +2 -2
  13. package/src/assets/icons/accordionClose.svg +2 -2
  14. package/src/assets/icons/accordionCloseOld.svg +6 -6
  15. package/src/assets/icons/accordionOpen.svg +3 -3
  16. package/src/assets/icons/accordionOpenOld.svg +6 -6
  17. package/src/assets/icons/accountCircle.svg +2 -2
  18. package/src/assets/icons/add.svg +5 -5
  19. package/src/assets/icons/addBig.svg +5 -5
  20. package/src/assets/icons/afpublicer.svg +2 -2
  21. package/src/assets/icons/anchorlink.svg +3 -3
  22. package/src/assets/icons/anchormenuer.svg +3 -3
  23. package/src/assets/icons/anden.svg +3 -0
  24. package/src/assets/icons/angleArrowDown.svg +2 -2
  25. package/src/assets/icons/angleArrowUp.svg +2 -2
  26. package/src/assets/icons/ansoegninger.svg +6 -6
  27. package/src/assets/icons/antal-gange.svg +6 -6
  28. package/src/assets/icons/applikationer.svg +2 -2
  29. package/src/assets/icons/arrowLeft.svg +2 -2
  30. package/src/assets/icons/arrowRight.svg +2 -2
  31. package/src/assets/icons/bell.svg +2 -2
  32. package/src/assets/icons/bellAlarmFilled.svg +2 -2
  33. package/src/assets/icons/bellAlarmOutline.svg +2 -2
  34. package/src/assets/icons/bellOvercrossed.svg +2 -2
  35. package/src/assets/icons/beskedcenter.svg +2 -2
  36. package/src/assets/icons/billede.svg +2 -2
  37. package/src/assets/icons/bogmaerker.svg +2 -2
  38. package/src/assets/icons/bookmarkFilled.svg +2 -2
  39. package/src/assets/icons/bookmarkOutline.svg +2 -2
  40. package/src/assets/icons/breadcrumbArrow.svg +3 -3
  41. package/src/assets/icons/bred_smal.svg +3 -0
  42. package/src/assets/icons/cSRDAddDatapunkt.svg +5 -0
  43. package/src/assets/icons/cSRDAddMultipleDatapunkter.svg +7 -0
  44. package/src/assets/icons/cSRDLockedDatapunkt.svg +4 -0
  45. package/src/assets/icons/cSRDRemoveDatapunkt.svg +5 -0
  46. package/src/assets/icons/cSRDRemoveDatapunktOversigt.svg +4 -0
  47. package/src/assets/icons/calendar.svg +2 -2
  48. package/src/assets/icons/calendarOutline.svg +2 -2
  49. package/src/assets/icons/callToAction.svg +2 -2
  50. package/src/assets/icons/card.svg +2 -2
  51. package/src/assets/icons/carouselArrowLeft.svg +2 -2
  52. package/src/assets/icons/carouselArrowRight.svg +2 -2
  53. package/src/assets/icons/category.svg +2 -2
  54. package/src/assets/icons/center.svg +3 -0
  55. package/src/assets/icons/check.svg +2 -2
  56. package/src/assets/icons/chevronLeft.svg +2 -2
  57. package/src/assets/icons/circularArrow.svg +3 -3
  58. package/src/assets/icons/close.svg +2 -2
  59. package/src/assets/icons/closeCircleOutline.svg +2 -2
  60. package/src/assets/icons/closeCirleFilled.svg +2 -2
  61. package/src/assets/icons/copyLink.svg +2 -2
  62. package/src/assets/icons/datahub.svg +2 -2
  63. package/src/assets/icons/deleteOutline.svg +3 -3
  64. package/src/assets/icons/deltagelsesgange.svg +2 -2
  65. package/src/assets/icons/dots.svg +4 -4
  66. package/src/assets/icons/dotsHorizontal.svg +2 -2
  67. package/src/assets/icons/doubleArrow.svg +2 -2
  68. package/src/assets/icons/downRightArrow.svg +2 -2
  69. package/src/assets/icons/download.svg +2 -2
  70. package/src/assets/icons/draggable.svg +5 -5
  71. package/src/assets/icons/email.svg +5 -5
  72. package/src/assets/icons/emner.svg +2 -2
  73. package/src/assets/icons/en_spalte.svg +3 -0
  74. package/src/assets/icons/envelopeFilled.svg +2 -2
  75. package/src/assets/icons/envelopeOutline.svg +4 -4
  76. package/src/assets/icons/error.svg +2 -2
  77. package/src/assets/icons/excel.svg +4 -0
  78. package/src/assets/icons/expandCircleRight.svg +3 -0
  79. package/src/assets/icons/eyeHide.svg +2 -2
  80. package/src/assets/icons/file.svg +5 -5
  81. package/src/assets/icons/filter.svg +2 -2
  82. package/src/assets/icons/filter2.svg +20 -20
  83. package/src/assets/icons/fire_spalter.svg +3 -0
  84. package/src/assets/icons/graph.svg +2 -2
  85. package/src/assets/icons/helpCircleOutline.svg +5 -5
  86. package/src/assets/icons/hero.svg +2 -2
  87. package/src/assets/icons/highlightArrow.svg +3 -3
  88. package/src/assets/icons/history.svg +2 -2
  89. package/src/assets/icons/home.svg +5 -5
  90. package/src/assets/icons/image.svg +5 -5
  91. package/src/assets/icons/indsaet.svg +2 -2
  92. package/src/assets/icons/indstillinger.svg +2 -2
  93. package/src/assets/icons/info.svg +4 -4
  94. package/src/assets/icons/infobox.svg +2 -2
  95. package/src/assets/icons/knap.svg +2 -2
  96. package/src/assets/icons/kontaktformular.svg +2 -2
  97. package/src/assets/icons/kopi.svg +2 -2
  98. package/src/assets/icons/leftUpCurvedArrow.svg +2 -2
  99. package/src/assets/icons/letter.svg +2 -2
  100. package/src/assets/icons/link.svg +2 -2
  101. package/src/assets/icons/linkboks.svg +4 -4
  102. package/src/assets/icons/linkedin.svg +5 -5
  103. package/src/assets/icons/liste.svg +2 -2
  104. package/src/assets/icons/listecard.svg +2 -2
  105. package/src/assets/icons/loading.svg +2 -2
  106. package/src/assets/icons/location.svg +2 -2
  107. package/src/assets/icons/lock.svg +6 -6
  108. package/src/assets/icons/loginbanner.svg +2 -2
  109. package/src/assets/icons/magnify.svg +2 -2
  110. package/src/assets/icons/magnifyBig.svg +2 -2
  111. package/src/assets/icons/map.svg +2 -2
  112. package/src/assets/icons/menu.svg +2 -2
  113. package/src/assets/icons/menuDown.svg +2 -2
  114. package/src/assets/icons/menuUp.svg +2 -2
  115. package/src/assets/icons/minus.svg +2 -2
  116. package/src/assets/icons/mitId.svg +8 -0
  117. package/src/assets/icons/notVerified.svg +2 -2
  118. package/src/assets/icons/notes.svg +5 -5
  119. package/src/assets/icons/online.svg +2 -2
  120. package/src/assets/icons/openInNew.svg +2 -2
  121. package/src/assets/icons/paere.svg +7 -7
  122. package/src/assets/icons/paginationChevronLeft.svg +4 -4
  123. package/src/assets/icons/paginationChevronRight.svg +4 -4
  124. package/src/assets/icons/paginationFirstPage.svg +4 -4
  125. package/src/assets/icons/paginationLastPage.svg +4 -4
  126. package/src/assets/icons/partnergruppe.svg +5 -5
  127. package/src/assets/icons/pause.svg +2 -2
  128. package/src/assets/icons/pdf.svg +4 -0
  129. package/src/assets/icons/pdfDownload.svg +2 -2
  130. package/src/assets/icons/pencil.svg +2 -2
  131. package/src/assets/icons/pencilOutline.svg +2 -2
  132. package/src/assets/icons/people.svg +4 -4
  133. package/src/assets/icons/phone.svg +5 -5
  134. package/src/assets/icons/play.svg +4 -4
  135. package/src/assets/icons/playVideo.svg +4 -4
  136. package/src/assets/icons/plus.svg +2 -2
  137. package/src/assets/icons/powerpoint.svg +4 -0
  138. package/src/assets/icons/praedefineretSoegning.svg +2 -2
  139. package/src/assets/icons/questionmark.svg +3 -0
  140. package/src/assets/icons/quote.svg +2 -2
  141. package/src/assets/icons/redaktion.svg +2 -2
  142. package/src/assets/icons/remove.svg +2 -2
  143. package/src/assets/icons/removeRedEyeOutline.svg +2 -2
  144. package/src/assets/icons/revert.svg +3 -0
  145. package/src/assets/icons/richtext.svg +2 -2
  146. package/src/assets/icons/roundCheckmark.svg +2 -2
  147. package/src/assets/icons/save.svg +2 -2
  148. package/src/assets/icons/sektionsoverskrift.svg +5 -5
  149. package/src/assets/icons/smal_bred.svg +3 -0
  150. package/src/assets/icons/starFilled.svg +2 -2
  151. package/src/assets/icons/starOutline.svg +2 -2
  152. package/src/assets/icons/tag.svg +2 -2
  153. package/src/assets/icons/teaser.svg +3 -3
  154. package/src/assets/icons/teaserbillede.svg +2 -2
  155. package/src/assets/icons/tekstgruppe.svg +2 -2
  156. package/src/assets/icons/time.svg +6 -6
  157. package/src/assets/icons/to_spalter.svg +3 -0
  158. package/src/assets/icons/top.svg +3 -0
  159. package/src/assets/icons/trashCan.svg +2 -2
  160. package/src/assets/icons/tre_spalter.svg +3 -0
  161. package/src/assets/icons/udvidedeCardgruppe.svg +2 -2
  162. package/src/assets/icons/unlock.svg +2 -2
  163. package/src/assets/icons/verified.svg +2 -2
  164. package/src/assets/icons/video.svg +2 -2
  165. package/src/assets/icons/word.svg +10 -0
  166. package/src/assets/icons/zoom.svg +2 -2
  167. package/src/components/VgAccordion.vue +97 -97
  168. package/src/components/VgButton.vue +18 -18
  169. package/src/components/VgButtons.vue +27 -27
  170. package/src/components/VgCard.vue +96 -92
  171. package/src/components/VgCardGroup.vue +18 -18
  172. package/src/components/VgDesignWrapper.vue +48 -48
  173. package/src/components/VgIcon.vue +54 -54
  174. package/src/components/VgListe.vue +73 -73
  175. package/src/components/VgListeCard.vue +41 -41
  176. package/src/components/VgLoginButton.vue +7 -0
  177. package/src/components/VgPagination.vue +207 -207
  178. package/src/styles/custom/_vgAccordion.scss +38 -38
  179. package/src/styles/custom/_vgCard.scss +15 -15
  180. package/src/styles/custom/_vgIcon.scss +3 -3
  181. package/src/styles/custom/_vgListe.scss +3 -3
  182. package/src/styles/vg/_vg-colors.scss +206 -202
  183. package/src/styles/vg/accordion/_vg-accordion.scss +111 -111
  184. package/src/styles/vg/buttons/_vg-buttons.scss +356 -332
  185. package/src/styles/vg/card/_vg-udvidedecardgrupper.scss +20 -2
  186. package/src/styles/vg/mixins/_vg-mediaquery-helpers.scss +152 -152
  187. package/src/styles/vg/pagination/_vg-pagination.scss +67 -67
@@ -97,7 +97,6 @@
97
97
  }
98
98
  }
99
99
 
100
- .udbyder-card,
101
100
  .logo {
102
101
  border: 1px solid $color-light-gray;
103
102
 
@@ -108,7 +107,16 @@
108
107
  }
109
108
 
110
109
  .udbyder-card {
110
+ border: 1px solid $color-light-gray;
111
+ border-bottom: none;
111
112
  padding: 32px;
113
+ aspect-ratio: 3/2;
114
+
115
+ .card-picture {
116
+ background-size: contain;
117
+ padding-top: unset;
118
+ height: 100%;
119
+ }
112
120
  }
113
121
 
114
122
  .logo {
@@ -148,6 +156,7 @@
148
156
 
149
157
  .line-limit {
150
158
  -webkit-line-clamp: 3;
159
+ line-clamp: 3;
151
160
  }
152
161
  }
153
162
  }
@@ -182,6 +191,7 @@
182
191
  overflow: hidden;
183
192
  text-overflow: ellipsis;
184
193
  -webkit-line-clamp: 1;
194
+ line-clamp: 1;
185
195
  -webkit-box-orient: vertical;
186
196
  max-width: calc(100% - 2em);
187
197
  }
@@ -221,6 +231,7 @@
221
231
  overflow: hidden;
222
232
  display: -webkit-box;
223
233
  -webkit-line-clamp: 2;
234
+ line-clamp: 2;
224
235
  -webkit-box-orient: vertical;
225
236
  }
226
237
  }
@@ -232,6 +243,7 @@
232
243
  :deep() {
233
244
  .line-limit {
234
245
  -webkit-line-clamp: 2;
246
+ line-clamp: 2;
235
247
  }
236
248
  }
237
249
  }
@@ -308,6 +320,11 @@
308
320
  width: calc(50% - 16px);
309
321
  height: 100%;
310
322
 
323
+ .udbyder-card {
324
+ border: 1px solid $color-light-gray;
325
+ padding: 64px;
326
+ }
327
+
311
328
  .card-picture {
312
329
  width: 100%;
313
330
  height: 100%;
@@ -343,7 +360,8 @@
343
360
  :deep(.ydelse-card-adresse),
344
361
  :deep(.site-tekst),
345
362
  :deep(.icon-udbyder),
346
- :deep(.icon-svg) {
363
+ :deep(.icon-svg),
364
+ :deep(.cta .link) {
347
365
  color: $color-white !important;
348
366
  }
349
367
 
@@ -1,152 +1,152 @@
1
- // Grid breakpoints.. copied directly from FDS
2
- $grid-xs: 0;
3
- $grid-sm: 576px;
4
- $grid-md: 768px;
5
- $grid-lg: 992px;
6
- $grid-xl: 1200px;
7
- $grid-breakpoints: (
8
- xs: $grid-xs,
9
- sm: $grid-sm,
10
- md: $grid-md,
11
- lg: $grid-lg,
12
- xl: $grid-xl
13
- );
14
-
15
- // Breakpoint viewport sizes and media queries.
16
- //
17
- // Breakpoints are defined as a map of (name: minimum width), order from small to large:
18
- //
19
- // (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)
20
- //
21
- // The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.
22
-
23
- // Name of the next breakpoint, or null for the last breakpoint.
24
- //
25
- // >> breakpoint-next(sm)
26
- // md
27
- // >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
28
- // md
29
- // >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))
30
- // md
31
- @function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
32
- $n: index($breakpoint-names, $name);
33
- @return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
34
- }
35
-
36
- // Minimum breakpoint width. Null for the smallest (first) breakpoint.
37
- //
38
- // >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
39
- // 576px
40
- @function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
41
- $min: map-get($breakpoints, $name);
42
- @return if($min != 0, $min, null);
43
- }
44
-
45
- // Maximum breakpoint width. Null for the largest (last) breakpoint.
46
- // The maximum value is calculated as the minimum of the next one less 0.1.
47
- //
48
- // >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
49
- // 767px
50
- @function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
51
- $next: breakpoint-next($name, $breakpoints);
52
- @return if($next, breakpoint-min($next, $breakpoints) - 1px, null);
53
- }
54
-
55
- // Returns a blank string if smallest breakpoint, otherwise returns the name with a dash infront.
56
- // Useful for making responsive utilities.
57
- //
58
- // >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
59
- // "" (Returns a blank string)
60
- // >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
61
- // "-sm"
62
- @function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
63
- @return if(breakpoint-min($name, $breakpoints) == null, '', '-#{$name}');
64
- }
65
-
66
- // Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
67
- // Makes the @content apply to the given breakpoint and wider.
68
- @mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
69
- $min: breakpoint-min($name, $breakpoints);
70
- @if $min {
71
- @media (min-width: $min) {
72
- @content;
73
- }
74
- } @else {
75
- @content;
76
- }
77
- }
78
-
79
- // Media of at most the maximum breakpoint width. No query for the largest breakpoint.
80
- // Makes the @content apply to the given breakpoint and narrower.
81
- @mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
82
- $max: breakpoint-max($name, $breakpoints);
83
- @if $max {
84
- @media (max-width: $max) {
85
- @content;
86
- }
87
- } @else {
88
- @content;
89
- }
90
- }
91
-
92
- // Media that spans multiple breakpoint widths.
93
- // Makes the @content apply between the min and max breakpoints
94
- @mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
95
- $min: breakpoint-min($lower, $breakpoints);
96
- $max: breakpoint-max($upper, $breakpoints);
97
-
98
- @if $min != null and $max != null {
99
- @media (min-width: $min) and (max-width: $max) {
100
- @content;
101
- }
102
- } @else if $max == null {
103
- @include media-breakpoint-up($lower) {
104
- @content;
105
- }
106
- } @else if $min == null {
107
- @include media-breakpoint-down($upper) {
108
- @content;
109
- }
110
- }
111
- }
112
-
113
- // Media between the breakpoint's minimum and maximum widths.
114
- // No minimum for the smallest breakpoint, and no maximum for the largest one.
115
- // Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
116
- @mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
117
- $min: breakpoint-min($name, $breakpoints);
118
- $max: breakpoint-max($name, $breakpoints);
119
-
120
- @if $min != null and $max != null {
121
- @media (min-width: $min) and (max-width: $max) {
122
- @content;
123
- }
124
- } @else if $max == null {
125
- @include media-breakpoint-up($name) {
126
- @content;
127
- }
128
- } @else if $min == null {
129
- @include media-breakpoint-down($name) {
130
- @content;
131
- }
132
- }
133
- }
134
- @mixin testmixin() {
135
- background-color: yellow !important;
136
- }
137
-
138
- // Breakpoints specificeret til zoom og kigger derfor på em
139
- // Bruges særlig til mindre skærme, så koden kan opfylde tilgængelighedskrav
140
- $zoom-sm: 20em;
141
- $zoom-xs: 15em;
142
- $zoom-breakpoints: (
143
- xs: $zoom-xs,
144
- sm: $zoom-sm
145
- );
146
-
147
- @mixin media-breakpoint-down-em($name, $breakpoints: $zoom-breakpoints) {
148
- $max: map-get($breakpoints, $name);
149
- @media all and (max-width: $max) {
150
- @content;
151
- }
152
- }
1
+ // Grid breakpoints.. copied directly from FDS
2
+ $grid-xs: 0;
3
+ $grid-sm: 576px;
4
+ $grid-md: 768px;
5
+ $grid-lg: 992px;
6
+ $grid-xl: 1200px;
7
+ $grid-breakpoints: (
8
+ xs: $grid-xs,
9
+ sm: $grid-sm,
10
+ md: $grid-md,
11
+ lg: $grid-lg,
12
+ xl: $grid-xl
13
+ );
14
+
15
+ // Breakpoint viewport sizes and media queries.
16
+ //
17
+ // Breakpoints are defined as a map of (name: minimum width), order from small to large:
18
+ //
19
+ // (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)
20
+ //
21
+ // The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.
22
+
23
+ // Name of the next breakpoint, or null for the last breakpoint.
24
+ //
25
+ // >> breakpoint-next(sm)
26
+ // md
27
+ // >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
28
+ // md
29
+ // >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))
30
+ // md
31
+ @function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
32
+ $n: index($breakpoint-names, $name);
33
+ @return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
34
+ }
35
+
36
+ // Minimum breakpoint width. Null for the smallest (first) breakpoint.
37
+ //
38
+ // >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
39
+ // 576px
40
+ @function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
41
+ $min: map-get($breakpoints, $name);
42
+ @return if($min != 0, $min, null);
43
+ }
44
+
45
+ // Maximum breakpoint width. Null for the largest (last) breakpoint.
46
+ // The maximum value is calculated as the minimum of the next one less 0.1.
47
+ //
48
+ // >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
49
+ // 767px
50
+ @function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
51
+ $next: breakpoint-next($name, $breakpoints);
52
+ @return if($next, breakpoint-min($next, $breakpoints) - 1px, null);
53
+ }
54
+
55
+ // Returns a blank string if smallest breakpoint, otherwise returns the name with a dash infront.
56
+ // Useful for making responsive utilities.
57
+ //
58
+ // >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
59
+ // "" (Returns a blank string)
60
+ // >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
61
+ // "-sm"
62
+ @function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
63
+ @return if(breakpoint-min($name, $breakpoints) == null, '', '-#{$name}');
64
+ }
65
+
66
+ // Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
67
+ // Makes the @content apply to the given breakpoint and wider.
68
+ @mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
69
+ $min: breakpoint-min($name, $breakpoints);
70
+ @if $min {
71
+ @media (min-width: $min) {
72
+ @content;
73
+ }
74
+ } @else {
75
+ @content;
76
+ }
77
+ }
78
+
79
+ // Media of at most the maximum breakpoint width. No query for the largest breakpoint.
80
+ // Makes the @content apply to the given breakpoint and narrower.
81
+ @mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
82
+ $max: breakpoint-max($name, $breakpoints);
83
+ @if $max {
84
+ @media (max-width: $max) {
85
+ @content;
86
+ }
87
+ } @else {
88
+ @content;
89
+ }
90
+ }
91
+
92
+ // Media that spans multiple breakpoint widths.
93
+ // Makes the @content apply between the min and max breakpoints
94
+ @mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
95
+ $min: breakpoint-min($lower, $breakpoints);
96
+ $max: breakpoint-max($upper, $breakpoints);
97
+
98
+ @if $min != null and $max != null {
99
+ @media (min-width: $min) and (max-width: $max) {
100
+ @content;
101
+ }
102
+ } @else if $max == null {
103
+ @include media-breakpoint-up($lower) {
104
+ @content;
105
+ }
106
+ } @else if $min == null {
107
+ @include media-breakpoint-down($upper) {
108
+ @content;
109
+ }
110
+ }
111
+ }
112
+
113
+ // Media between the breakpoint's minimum and maximum widths.
114
+ // No minimum for the smallest breakpoint, and no maximum for the largest one.
115
+ // Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
116
+ @mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
117
+ $min: breakpoint-min($name, $breakpoints);
118
+ $max: breakpoint-max($name, $breakpoints);
119
+
120
+ @if $min != null and $max != null {
121
+ @media (min-width: $min) and (max-width: $max) {
122
+ @content;
123
+ }
124
+ } @else if $max == null {
125
+ @include media-breakpoint-up($name) {
126
+ @content;
127
+ }
128
+ } @else if $min == null {
129
+ @include media-breakpoint-down($name) {
130
+ @content;
131
+ }
132
+ }
133
+ }
134
+ @mixin testmixin() {
135
+ background-color: yellow !important;
136
+ }
137
+
138
+ // Breakpoints specificeret til zoom og kigger derfor på em
139
+ // Bruges særlig til mindre skærme, så koden kan opfylde tilgængelighedskrav
140
+ $zoom-sm: 20em;
141
+ $zoom-xs: 15em;
142
+ $zoom-breakpoints: (
143
+ xs: $zoom-xs,
144
+ sm: $zoom-sm
145
+ );
146
+
147
+ @mixin media-breakpoint-down-em($name, $breakpoints: $zoom-breakpoints) {
148
+ $max: map-get($breakpoints, $name);
149
+ @media all and (max-width: $max) {
150
+ @content;
151
+ }
152
+ }
@@ -1,67 +1,67 @@
1
- .pagination {
2
- padding-top: 16px;
3
- padding-bottom: 16px;
4
- display: flex;
5
- align-items: center;
6
- justify-content: center;
7
-
8
- .mobile {
9
- button {
10
- margin-top: 0px;
11
- }
12
- }
13
-
14
- .button.button-pagination {
15
- width: 48px;
16
- height: 48px;
17
- margin: 0 16px 0 0;
18
- font-size: 1.25em;
19
- font-weight: 600;
20
- line-height: 1.6;
21
- padding: 0;
22
- color: black;
23
- border: 2px solid $color-very-dark-gray;
24
- background-color: unset;
25
- border-radius: 24px;
26
- text-align: center;
27
- text-decoration: underline;
28
-
29
- &:hover {
30
- color: $color-black;
31
- background-color: $color-white;
32
- border-color: $color-very-dark-gray;
33
- }
34
-
35
- &.button-active {
36
- text-decoration: none;
37
- color: var(--button-color);
38
- background-color: $color-very-dark-gray;
39
- border-color: $color-very-dark-gray;
40
- }
41
- }
42
-
43
- .button-link {
44
- &:focus {
45
- color: $color-black;
46
- border-radius: 0;
47
- }
48
-
49
- &.hidden {
50
- visibility: hidden;
51
- }
52
- }
53
-
54
- .dots {
55
- display: flex;
56
- height: 48px;
57
- margin-right: 16px;
58
- font-size: 1em;
59
- font-weight: normal;
60
- align-items: center;
61
- justify-content: center;
62
- }
63
-
64
- :last-child {
65
- margin-right: 0 !important;
66
- }
67
- }
1
+ .pagination {
2
+ padding-top: 16px;
3
+ padding-bottom: 16px;
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+
8
+ .mobile {
9
+ button {
10
+ margin-top: 0px;
11
+ }
12
+ }
13
+
14
+ .button.button-pagination {
15
+ width: 48px;
16
+ height: 48px;
17
+ margin: 0 16px 0 0;
18
+ font-size: 1.25em;
19
+ font-weight: 600;
20
+ line-height: 1.6;
21
+ padding: 0;
22
+ color: black;
23
+ border: 2px solid $color-very-dark-gray;
24
+ background-color: unset;
25
+ border-radius: 24px;
26
+ text-align: center;
27
+ text-decoration: underline;
28
+
29
+ &:hover {
30
+ color: $color-black;
31
+ background-color: $color-white;
32
+ border-color: $color-very-dark-gray;
33
+ }
34
+
35
+ &.button-active {
36
+ text-decoration: none;
37
+ color: var(--button-color);
38
+ background-color: $color-very-dark-gray;
39
+ border-color: $color-very-dark-gray;
40
+ }
41
+ }
42
+
43
+ .button-link {
44
+ &:focus {
45
+ color: $color-black;
46
+ border-radius: 0;
47
+ }
48
+
49
+ &.hidden {
50
+ visibility: hidden;
51
+ }
52
+ }
53
+
54
+ .dots {
55
+ display: flex;
56
+ height: 48px;
57
+ margin-right: 16px;
58
+ font-size: 1em;
59
+ font-weight: normal;
60
+ align-items: center;
61
+ justify-content: center;
62
+ }
63
+
64
+ :last-child {
65
+ margin-right: 0 !important;
66
+ }
67
+ }