@erst-vg/vg-design-wrapper 2.0.2 → 2.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.
Files changed (192) hide show
  1. package/CHANGELOG.md +49 -45
  2. package/README.md +2 -2
  3. package/dist/src/components/VgVideo.vue.d.ts +0 -8
  4. package/dist/vg-design-wrapper.js +518 -563
  5. package/dist/vg-design-wrapper.umd.cjs +24 -24
  6. package/package.json +91 -89
  7. package/src/assets/icons/abonnementFilled.svg +4 -4
  8. package/src/assets/icons/abonnementOutline.svg +4 -4
  9. package/src/assets/icons/accordion.svg +2 -2
  10. package/src/assets/icons/accordionClose.svg +2 -2
  11. package/src/assets/icons/accordionCloseOld.svg +6 -6
  12. package/src/assets/icons/accordionOpen.svg +3 -3
  13. package/src/assets/icons/accordionOpenOld.svg +6 -6
  14. package/src/assets/icons/accountCircle.svg +2 -2
  15. package/src/assets/icons/add.svg +5 -5
  16. package/src/assets/icons/addBig.svg +5 -5
  17. package/src/assets/icons/afpublicer.svg +2 -2
  18. package/src/assets/icons/agenda.svg +3 -3
  19. package/src/assets/icons/anchorlink.svg +3 -3
  20. package/src/assets/icons/anchormenuer.svg +3 -3
  21. package/src/assets/icons/anden.svg +3 -3
  22. package/src/assets/icons/angleArrowDown.svg +2 -2
  23. package/src/assets/icons/angleArrowUp.svg +2 -2
  24. package/src/assets/icons/ansoegninger.svg +6 -6
  25. package/src/assets/icons/antal-gange.svg +6 -6
  26. package/src/assets/icons/applikationer.svg +2 -2
  27. package/src/assets/icons/arrowLeft.svg +2 -2
  28. package/src/assets/icons/arrowRight.svg +2 -2
  29. package/src/assets/icons/bell.svg +2 -2
  30. package/src/assets/icons/bellAlarmFilled.svg +2 -2
  31. package/src/assets/icons/bellAlarmOutline.svg +2 -2
  32. package/src/assets/icons/bellOvercrossed.svg +2 -2
  33. package/src/assets/icons/beskedcenter.svg +2 -2
  34. package/src/assets/icons/billede.svg +2 -2
  35. package/src/assets/icons/bogmaerker.svg +2 -2
  36. package/src/assets/icons/bookmarkFilled.svg +2 -2
  37. package/src/assets/icons/bookmarkOutline.svg +2 -2
  38. package/src/assets/icons/breadcrumbArrow.svg +3 -3
  39. package/src/assets/icons/bred_smal.svg +3 -3
  40. package/src/assets/icons/cSRDAddDatapunkt.svg +5 -5
  41. package/src/assets/icons/cSRDAddMultipleDatapunkter.svg +7 -7
  42. package/src/assets/icons/cSRDLockedDatapunkt.svg +4 -4
  43. package/src/assets/icons/cSRDRemoveDatapunkt.svg +5 -5
  44. package/src/assets/icons/cSRDRemoveDatapunktOversigt.svg +4 -4
  45. package/src/assets/icons/calendar.svg +2 -2
  46. package/src/assets/icons/calendarOutline.svg +2 -2
  47. package/src/assets/icons/callToAction.svg +2 -2
  48. package/src/assets/icons/card.svg +2 -2
  49. package/src/assets/icons/carouselArrowLeft.svg +2 -2
  50. package/src/assets/icons/carouselArrowRight.svg +2 -2
  51. package/src/assets/icons/category.svg +2 -2
  52. package/src/assets/icons/center.svg +3 -3
  53. package/src/assets/icons/check.svg +2 -2
  54. package/src/assets/icons/chevronLeft.svg +2 -2
  55. package/src/assets/icons/circularArrow.svg +3 -3
  56. package/src/assets/icons/close.svg +2 -2
  57. package/src/assets/icons/closeCircleOutline.svg +2 -2
  58. package/src/assets/icons/closeCirleFilled.svg +2 -2
  59. package/src/assets/icons/copyLink.svg +2 -2
  60. package/src/assets/icons/datahub.svg +2 -2
  61. package/src/assets/icons/deleteOutline.svg +3 -3
  62. package/src/assets/icons/deltagelsesgange.svg +2 -2
  63. package/src/assets/icons/dots.svg +4 -4
  64. package/src/assets/icons/dotsHorizontal.svg +2 -2
  65. package/src/assets/icons/doubleArrow.svg +2 -2
  66. package/src/assets/icons/downRightArrow.svg +2 -2
  67. package/src/assets/icons/download.svg +2 -2
  68. package/src/assets/icons/draggable.svg +5 -5
  69. package/src/assets/icons/email.svg +5 -5
  70. package/src/assets/icons/emner.svg +2 -2
  71. package/src/assets/icons/en_spalte.svg +3 -3
  72. package/src/assets/icons/envelopeFilled.svg +2 -2
  73. package/src/assets/icons/envelopeOutline.svg +4 -4
  74. package/src/assets/icons/error.svg +2 -2
  75. package/src/assets/icons/excel.svg +4 -4
  76. package/src/assets/icons/expandCircleRight.svg +3 -3
  77. package/src/assets/icons/eyeHide.svg +2 -2
  78. package/src/assets/icons/file.svg +5 -5
  79. package/src/assets/icons/filter.svg +2 -2
  80. package/src/assets/icons/filter2.svg +20 -20
  81. package/src/assets/icons/fire_spalter.svg +3 -3
  82. package/src/assets/icons/graph.svg +2 -2
  83. package/src/assets/icons/helpCircleOutline.svg +5 -5
  84. package/src/assets/icons/hero.svg +2 -2
  85. package/src/assets/icons/highlightArrow.svg +3 -3
  86. package/src/assets/icons/history.svg +2 -2
  87. package/src/assets/icons/home.svg +5 -5
  88. package/src/assets/icons/image.svg +5 -5
  89. package/src/assets/icons/indsaet.svg +2 -2
  90. package/src/assets/icons/indstillinger.svg +2 -2
  91. package/src/assets/icons/info.svg +4 -4
  92. package/src/assets/icons/infobox.svg +2 -2
  93. package/src/assets/icons/knap.svg +2 -2
  94. package/src/assets/icons/kontaktformular.svg +2 -2
  95. package/src/assets/icons/kopi.svg +2 -2
  96. package/src/assets/icons/leftUpCurvedArrow.svg +2 -2
  97. package/src/assets/icons/letter.svg +2 -2
  98. package/src/assets/icons/link.svg +2 -2
  99. package/src/assets/icons/linkboks.svg +4 -4
  100. package/src/assets/icons/linkedin.svg +5 -5
  101. package/src/assets/icons/liste.svg +2 -2
  102. package/src/assets/icons/listecard.svg +2 -2
  103. package/src/assets/icons/loading.svg +2 -2
  104. package/src/assets/icons/location.svg +2 -2
  105. package/src/assets/icons/lock.svg +6 -6
  106. package/src/assets/icons/loginbanner.svg +2 -2
  107. package/src/assets/icons/magnify.svg +2 -2
  108. package/src/assets/icons/magnifyBig.svg +2 -2
  109. package/src/assets/icons/map.svg +2 -2
  110. package/src/assets/icons/menu.svg +2 -2
  111. package/src/assets/icons/menuDown.svg +2 -2
  112. package/src/assets/icons/menuUp.svg +2 -2
  113. package/src/assets/icons/minus.svg +2 -2
  114. package/src/assets/icons/mitId.svg +3 -3
  115. package/src/assets/icons/notVerified.svg +2 -2
  116. package/src/assets/icons/notes.svg +5 -5
  117. package/src/assets/icons/online.svg +2 -2
  118. package/src/assets/icons/openInNew.svg +2 -2
  119. package/src/assets/icons/paere.svg +7 -7
  120. package/src/assets/icons/paginationChevronLeft.svg +4 -4
  121. package/src/assets/icons/paginationChevronRight.svg +4 -4
  122. package/src/assets/icons/paginationFirstPage.svg +4 -4
  123. package/src/assets/icons/paginationLastPage.svg +4 -4
  124. package/src/assets/icons/partnergruppe.svg +5 -5
  125. package/src/assets/icons/pause.svg +2 -2
  126. package/src/assets/icons/pdf.svg +4 -4
  127. package/src/assets/icons/pdfDownload.svg +2 -2
  128. package/src/assets/icons/pencil.svg +2 -2
  129. package/src/assets/icons/pencilOutline.svg +2 -2
  130. package/src/assets/icons/people.svg +4 -4
  131. package/src/assets/icons/phone.svg +5 -5
  132. package/src/assets/icons/play.svg +4 -4
  133. package/src/assets/icons/playVideo.svg +4 -4
  134. package/src/assets/icons/plus.svg +2 -2
  135. package/src/assets/icons/powerpoint.svg +4 -4
  136. package/src/assets/icons/praedefineretSoegning.svg +2 -2
  137. package/src/assets/icons/questionmark.svg +3 -3
  138. package/src/assets/icons/quote.svg +2 -2
  139. package/src/assets/icons/redaktion.svg +2 -2
  140. package/src/assets/icons/remove.svg +2 -2
  141. package/src/assets/icons/removeRedEyeOutline.svg +2 -2
  142. package/src/assets/icons/revert.svg +3 -3
  143. package/src/assets/icons/richtext.svg +2 -2
  144. package/src/assets/icons/roundCheckmark.svg +2 -2
  145. package/src/assets/icons/save.svg +2 -2
  146. package/src/assets/icons/sektionsoverskrift.svg +5 -5
  147. package/src/assets/icons/smal_bred.svg +3 -3
  148. package/src/assets/icons/starFilled.svg +2 -2
  149. package/src/assets/icons/starOutline.svg +2 -2
  150. package/src/assets/icons/tag.svg +2 -2
  151. package/src/assets/icons/teaser.svg +3 -3
  152. package/src/assets/icons/teaserbillede.svg +2 -2
  153. package/src/assets/icons/tekstgruppe.svg +2 -2
  154. package/src/assets/icons/time.svg +6 -6
  155. package/src/assets/icons/to_spalter.svg +3 -3
  156. package/src/assets/icons/top.svg +3 -3
  157. package/src/assets/icons/trashCan.svg +2 -2
  158. package/src/assets/icons/tre_spalter.svg +3 -3
  159. package/src/assets/icons/udvidedeCardgruppe.svg +2 -2
  160. package/src/assets/icons/unlock.svg +2 -2
  161. package/src/assets/icons/verified.svg +2 -2
  162. package/src/assets/icons/video.svg +2 -2
  163. package/src/assets/icons/word.svg +10 -10
  164. package/src/assets/icons/zoom.svg +2 -2
  165. package/src/components/VgAccordion.vue +97 -97
  166. package/src/components/VgButton.vue +18 -18
  167. package/src/components/VgButtons.vue +27 -27
  168. package/src/components/VgCard.vue +96 -96
  169. package/src/components/VgCardGroup.vue +18 -18
  170. package/src/components/VgDesignWrapper.vue +45 -45
  171. package/src/components/VgIcon.vue +54 -54
  172. package/src/components/VgKalturaVideo.vue +70 -0
  173. package/src/components/VgListe.vue +73 -73
  174. package/src/components/VgListeCard.vue +41 -41
  175. package/src/components/VgLoginButton.vue +7 -7
  176. package/src/components/VgPagination.vue +207 -207
  177. package/src/components/VgVideo.vue +59 -0
  178. package/src/components/VgVideoToolVideo.vue +70 -0
  179. package/src/styles/custom/_vgAccordion.scss +39 -39
  180. package/src/styles/custom/_vgCard.scss +15 -15
  181. package/src/styles/custom/_vgIcon.scss +3 -3
  182. package/src/styles/custom/_vgListe.scss +3 -3
  183. package/src/styles/custom/_vgVideo.scss +86 -0
  184. package/src/styles/custom/_vgVideoFrame.scss +9 -0
  185. package/src/styles/utility.scss +2 -2
  186. package/src/styles/vg/_vg-colors.scss +209 -209
  187. package/src/styles/vg/accordion/_vg-accordion.scss +140 -142
  188. package/src/styles/vg/buttons/_vg-buttons.scss +365 -365
  189. package/src/styles/vg/mixins/_vg-mediaquery-helpers.scss +159 -159
  190. package/src/styles/vg/pagination/_vg-pagination.scss +69 -69
  191. package/dist/src/components/VgVimeoVideo.vue.d.ts +0 -39
  192. package/dist/tests/unit/components/VgVimeoVideo.spec.d.ts +0 -1
@@ -1,159 +1,159 @@
1
- @use 'sass:map';
2
- @use 'sass:list';
3
-
4
- // Grid breakpoints.. copied directly from FDS
5
- $grid-xs: 0;
6
- $grid-sm: 576px;
7
- $grid-md: 768px;
8
- $grid-lg: 992px;
9
- $grid-xl: 1200px;
10
- $grid-breakpoints: (
11
- xs: $grid-xs,
12
- sm: $grid-sm,
13
- md: $grid-md,
14
- lg: $grid-lg,
15
- xl: $grid-xl
16
- );
17
-
18
- // Breakpoint viewport sizes and media queries.
19
- //
20
- // Breakpoints are defined as a map of (name: minimum width), order from small to large:
21
- //
22
- // (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)
23
- //
24
- // The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.
25
-
26
- // Name of the next breakpoint, or null for the last breakpoint.
27
- //
28
- // >> breakpoint-next(sm)
29
- // md
30
- // >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
31
- // md
32
- // >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))
33
- // md
34
- @function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map.keys($breakpoints)) {
35
- $n: list.index($breakpoint-names, $name);
36
- @return if($n < list.length($breakpoint-names), list.nth($breakpoint-names, $n + 1), null);
37
- }
38
-
39
- // Minimum breakpoint width. Null for the smallest (first) breakpoint.
40
- //
41
- // >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
42
- // 576px
43
- @function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
44
- $min: map.get($breakpoints, $name);
45
- @return if($min != 0, $min, null);
46
- }
47
-
48
- // Maximum breakpoint width. Null for the largest (last) breakpoint.
49
- // The maximum value is calculated as the minimum of the next one less 0.1.
50
- //
51
- // >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
52
- // 767px
53
- @function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
54
- $next: breakpoint-next($name, $breakpoints);
55
- @if $next {
56
- @return breakpoint-min($next, $breakpoints) - 1px;
57
- } @else {
58
- // For det største breakpoint (xl), returner breakpoint værdien minus 1px
59
- // Dette gør at media-breakpoint-down(xl) matcher skærme under 1200px
60
- $current: map.get($breakpoints, $name);
61
- @return if($current and $current > 0, $current - 1px, null);
62
- }
63
- }
64
-
65
- // Returns a blank string if smallest breakpoint, otherwise returns the name with a dash infront.
66
- // Useful for making responsive utilities.
67
- //
68
- // >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
69
- // "" (Returns a blank string)
70
- // >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
71
- // "-sm"
72
- @function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
73
- @return if(breakpoint-min($name, $breakpoints) == null, '', '-#{$name}');
74
- }
75
-
76
- // Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
77
- // Makes the @content apply to the given breakpoint and wider.
78
- @mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
79
- $min: breakpoint-min($name, $breakpoints);
80
- @if $min {
81
- @media (min-width: $min) {
82
- @content;
83
- }
84
- } @else {
85
- @content;
86
- }
87
- }
88
-
89
- // Media of at most the maximum breakpoint width. No query for the largest breakpoint.
90
- // Makes the @content apply to the given breakpoint and narrower.
91
- @mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
92
- $max: breakpoint-max($name, $breakpoints);
93
- @if $max {
94
- @media (max-width: $max) {
95
- @content;
96
- }
97
- } @else {
98
- @content;
99
- }
100
- }
101
-
102
- // Media that spans multiple breakpoint widths.
103
- // Makes the @content apply between the min and max breakpoints
104
- @mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
105
- $min: breakpoint-min($lower, $breakpoints);
106
- $max: breakpoint-max($upper, $breakpoints);
107
-
108
- @if $min != null and $max != null {
109
- @media (min-width: $min) and (max-width: $max) {
110
- @content;
111
- }
112
- } @else if $max == null {
113
- @include media-breakpoint-up($lower) {
114
- @content;
115
- }
116
- } @else if $min == null {
117
- @include media-breakpoint-down($upper) {
118
- @content;
119
- }
120
- }
121
- }
122
-
123
- // Media between the breakpoint's minimum and maximum widths.
124
- // No minimum for the smallest breakpoint, and no maximum for the largest one.
125
- // Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
126
- @mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
127
- $min: breakpoint-min($name, $breakpoints);
128
- $max: breakpoint-max($name, $breakpoints);
129
-
130
- @if $min != null and $max != null {
131
- @media (min-width: $min) and (max-width: $max) {
132
- @content;
133
- }
134
- } @else if $max == null {
135
- @include media-breakpoint-up($name) {
136
- @content;
137
- }
138
- } @else if $min == null {
139
- @include media-breakpoint-down($name) {
140
- @content;
141
- }
142
- }
143
- }
144
-
145
- // Breakpoints specificeret til zoom og kigger derfor på em
146
- // Bruges særlig til mindre skærme, så koden kan opfylde tilgængelighedskrav
147
- $zoom-sm: 20em;
148
- $zoom-xs: 15em;
149
- $zoom-breakpoints: (
150
- xs: $zoom-xs,
151
- sm: $zoom-sm
152
- );
153
-
154
- @mixin media-breakpoint-down-em($name, $breakpoints: $zoom-breakpoints) {
155
- $max: map.get($breakpoints, $name);
156
- @media all and (max-width: $max) {
157
- @content;
158
- }
159
- }
1
+ @use 'sass:map';
2
+ @use 'sass:list';
3
+
4
+ // Grid breakpoints.. copied directly from FDS
5
+ $grid-xs: 0;
6
+ $grid-sm: 576px;
7
+ $grid-md: 768px;
8
+ $grid-lg: 992px;
9
+ $grid-xl: 1200px;
10
+ $grid-breakpoints: (
11
+ xs: $grid-xs,
12
+ sm: $grid-sm,
13
+ md: $grid-md,
14
+ lg: $grid-lg,
15
+ xl: $grid-xl
16
+ );
17
+
18
+ // Breakpoint viewport sizes and media queries.
19
+ //
20
+ // Breakpoints are defined as a map of (name: minimum width), order from small to large:
21
+ //
22
+ // (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)
23
+ //
24
+ // The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.
25
+
26
+ // Name of the next breakpoint, or null for the last breakpoint.
27
+ //
28
+ // >> breakpoint-next(sm)
29
+ // md
30
+ // >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
31
+ // md
32
+ // >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))
33
+ // md
34
+ @function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map.keys($breakpoints)) {
35
+ $n: list.index($breakpoint-names, $name);
36
+ @return if($n < list.length($breakpoint-names), list.nth($breakpoint-names, $n + 1), null);
37
+ }
38
+
39
+ // Minimum breakpoint width. Null for the smallest (first) breakpoint.
40
+ //
41
+ // >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
42
+ // 576px
43
+ @function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
44
+ $min: map.get($breakpoints, $name);
45
+ @return if($min != 0, $min, null);
46
+ }
47
+
48
+ // Maximum breakpoint width. Null for the largest (last) breakpoint.
49
+ // The maximum value is calculated as the minimum of the next one less 0.1.
50
+ //
51
+ // >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
52
+ // 767px
53
+ @function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
54
+ $next: breakpoint-next($name, $breakpoints);
55
+ @if $next {
56
+ @return breakpoint-min($next, $breakpoints) - 1px;
57
+ } @else {
58
+ // For det største breakpoint (xl), returner breakpoint værdien minus 1px
59
+ // Dette gør at media-breakpoint-down(xl) matcher skærme under 1200px
60
+ $current: map.get($breakpoints, $name);
61
+ @return if($current and $current > 0, $current - 1px, null);
62
+ }
63
+ }
64
+
65
+ // Returns a blank string if smallest breakpoint, otherwise returns the name with a dash infront.
66
+ // Useful for making responsive utilities.
67
+ //
68
+ // >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
69
+ // "" (Returns a blank string)
70
+ // >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
71
+ // "-sm"
72
+ @function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
73
+ @return if(breakpoint-min($name, $breakpoints) == null, '', '-#{$name}');
74
+ }
75
+
76
+ // Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
77
+ // Makes the @content apply to the given breakpoint and wider.
78
+ @mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
79
+ $min: breakpoint-min($name, $breakpoints);
80
+ @if $min {
81
+ @media (min-width: $min) {
82
+ @content;
83
+ }
84
+ } @else {
85
+ @content;
86
+ }
87
+ }
88
+
89
+ // Media of at most the maximum breakpoint width. No query for the largest breakpoint.
90
+ // Makes the @content apply to the given breakpoint and narrower.
91
+ @mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
92
+ $max: breakpoint-max($name, $breakpoints);
93
+ @if $max {
94
+ @media (max-width: $max) {
95
+ @content;
96
+ }
97
+ } @else {
98
+ @content;
99
+ }
100
+ }
101
+
102
+ // Media that spans multiple breakpoint widths.
103
+ // Makes the @content apply between the min and max breakpoints
104
+ @mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
105
+ $min: breakpoint-min($lower, $breakpoints);
106
+ $max: breakpoint-max($upper, $breakpoints);
107
+
108
+ @if $min != null and $max != null {
109
+ @media (min-width: $min) and (max-width: $max) {
110
+ @content;
111
+ }
112
+ } @else if $max == null {
113
+ @include media-breakpoint-up($lower) {
114
+ @content;
115
+ }
116
+ } @else if $min == null {
117
+ @include media-breakpoint-down($upper) {
118
+ @content;
119
+ }
120
+ }
121
+ }
122
+
123
+ // Media between the breakpoint's minimum and maximum widths.
124
+ // No minimum for the smallest breakpoint, and no maximum for the largest one.
125
+ // Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
126
+ @mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
127
+ $min: breakpoint-min($name, $breakpoints);
128
+ $max: breakpoint-max($name, $breakpoints);
129
+
130
+ @if $min != null and $max != null {
131
+ @media (min-width: $min) and (max-width: $max) {
132
+ @content;
133
+ }
134
+ } @else if $max == null {
135
+ @include media-breakpoint-up($name) {
136
+ @content;
137
+ }
138
+ } @else if $min == null {
139
+ @include media-breakpoint-down($name) {
140
+ @content;
141
+ }
142
+ }
143
+ }
144
+
145
+ // Breakpoints specificeret til zoom og kigger derfor på em
146
+ // Bruges særlig til mindre skærme, så koden kan opfylde tilgængelighedskrav
147
+ $zoom-sm: 20em;
148
+ $zoom-xs: 15em;
149
+ $zoom-breakpoints: (
150
+ xs: $zoom-xs,
151
+ sm: $zoom-sm
152
+ );
153
+
154
+ @mixin media-breakpoint-down-em($name, $breakpoints: $zoom-breakpoints) {
155
+ $max: map.get($breakpoints, $name);
156
+ @media all and (max-width: $max) {
157
+ @content;
158
+ }
159
+ }
@@ -1,69 +1,69 @@
1
- @use './../vg-colors' as *;
2
-
3
- .pagination {
4
- padding-top: 16px;
5
- padding-bottom: 16px;
6
- display: flex;
7
- align-items: center;
8
- justify-content: center;
9
-
10
- .mobile {
11
- button {
12
- margin-top: 0px;
13
- }
14
- }
15
-
16
- .button.button-pagination {
17
- width: 48px;
18
- height: 48px;
19
- margin: 0 16px 0 0;
20
- font-size: 1.25em;
21
- font-weight: 600;
22
- line-height: 1.6;
23
- padding: 0;
24
- color: black;
25
- border: 2px solid $color-very-dark-gray;
26
- background-color: unset;
27
- border-radius: 24px;
28
- text-align: center;
29
- text-decoration: underline;
30
-
31
- &:hover {
32
- color: $color-black;
33
- background-color: $color-white;
34
- border-color: $color-very-dark-gray;
35
- }
36
-
37
- &.button-active {
38
- text-decoration: none;
39
- color: var(--button-color);
40
- background-color: $color-very-dark-gray;
41
- border-color: $color-very-dark-gray;
42
- }
43
- }
44
-
45
- .button-link {
46
- &:focus {
47
- color: $color-black;
48
- border-radius: 0;
49
- }
50
-
51
- &.hidden {
52
- visibility: hidden;
53
- }
54
- }
55
-
56
- .dots {
57
- display: flex;
58
- height: 48px;
59
- margin-right: 16px;
60
- font-size: 1em;
61
- font-weight: normal;
62
- align-items: center;
63
- justify-content: center;
64
- }
65
-
66
- :last-child {
67
- margin-right: 0 !important;
68
- }
69
- }
1
+ @use './../vg-colors' as *;
2
+
3
+ .pagination {
4
+ padding-top: 16px;
5
+ padding-bottom: 16px;
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+
10
+ .mobile {
11
+ button {
12
+ margin-top: 0px;
13
+ }
14
+ }
15
+
16
+ .button.button-pagination {
17
+ width: 48px;
18
+ height: 48px;
19
+ margin: 0 16px 0 0;
20
+ font-size: 1.25em;
21
+ font-weight: 600;
22
+ line-height: 1.6;
23
+ padding: 0;
24
+ color: black;
25
+ border: 2px solid $color-very-dark-gray;
26
+ background-color: unset;
27
+ border-radius: 24px;
28
+ text-align: center;
29
+ text-decoration: underline;
30
+
31
+ &:hover {
32
+ color: $color-black;
33
+ background-color: $color-white;
34
+ border-color: $color-very-dark-gray;
35
+ }
36
+
37
+ &.button-active {
38
+ text-decoration: none;
39
+ color: var(--button-color);
40
+ background-color: $color-very-dark-gray;
41
+ border-color: $color-very-dark-gray;
42
+ }
43
+ }
44
+
45
+ .button-link {
46
+ &:focus {
47
+ color: $color-black;
48
+ border-radius: 0;
49
+ }
50
+
51
+ &.hidden {
52
+ visibility: hidden;
53
+ }
54
+ }
55
+
56
+ .dots {
57
+ display: flex;
58
+ height: 48px;
59
+ margin-right: 16px;
60
+ font-size: 1em;
61
+ font-weight: normal;
62
+ align-items: center;
63
+ justify-content: center;
64
+ }
65
+
66
+ :last-child {
67
+ margin-right: 0 !important;
68
+ }
69
+ }
@@ -1,39 +0,0 @@
1
- declare function __VLS_template(): {
2
- preview?(_: {
3
- thumbnailUrl: string;
4
- }): any;
5
- };
6
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
7
- src: {
8
- type: StringConstructor;
9
- required: true;
10
- };
11
- alt: {
12
- type: StringConstructor;
13
- required: true;
14
- };
15
- playVideo: {
16
- type: BooleanConstructor;
17
- required: true;
18
- };
19
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
20
- src: {
21
- type: StringConstructor;
22
- required: true;
23
- };
24
- alt: {
25
- type: StringConstructor;
26
- required: true;
27
- };
28
- playVideo: {
29
- type: BooleanConstructor;
30
- required: true;
31
- };
32
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
33
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
34
- export default _default;
35
- type __VLS_WithTemplateSlots<T, S> = T & {
36
- new (): {
37
- $slots: S;
38
- };
39
- };
@@ -1 +0,0 @@
1
- export {};