@erst-vg/vg-design-wrapper 1.0.3 → 1.0.4

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@erst-vg/vg-design-wrapper",
3
3
  "private": false,
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
@@ -33,7 +33,9 @@
33
33
  "preview": "vite preview",
34
34
  "test:unit": "vitest run --coverage.enabled --coverage.reporter='text-summary'",
35
35
  "clean": "rm -rf ./src/styles/vg ./src/assets && mkdir -p src/assets/icons/ src/styles/vg",
36
+ "clean-windows": "rmdir src\\styles\\vg src\\assets /s && mkdir src\\assets\\icons src\\styles\\vg",
36
37
  "prepack": "npm run clean && cp -rvp ../content-web/src/main/vue/src/styles/external/** src/styles/vg; cp -rv ../content-web/src/main/vue/src/assets/icons/*.svg src/assets/icons",
38
+ "prepack-windows": "npm run clean-windows && xcopy ..\\content-web\\src\\main\\vue\\src\\styles\\external\\** .\\src\\styles\\vg && xcopy ..\\content-web\\src\\main\\vue\\src\\assets\\icons\\*.svg .\\src\\assets\\icons /e",
37
39
  "lint": "cross-env ESLINT_USE_FLAT_CONFIG=false eslint \"**/*.{ts,js,vue}\" --fix --format=pretty",
38
40
  "prettierfix": "prettier --write \"**/*.{vue,ts}\" ",
39
41
  "prettiercheck": "prettier --check \"**/*.{vue,ts}\" "
@@ -0,0 +1,6 @@
1
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill="none" d="M0 0h24v24H0z" />
3
+ <path fill="currentColor"
4
+ d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"
5
+ />
6
+ </svg>
@@ -12,3 +12,16 @@
12
12
  }
13
13
  }
14
14
  }
15
+
16
+ .accordion-bulk-button {
17
+ display: block;
18
+ line-height: 1.5em;
19
+ padding-left: 0;
20
+ margin-left: auto;
21
+ background-image: none !important;
22
+ color: var(--site-primary);
23
+
24
+ &:focus {
25
+ color: var(--site-primary);
26
+ }
27
+ }
@@ -149,8 +149,6 @@ $default-site-color-7: $color-redaktion-themecolor-green;
149
149
  // Other
150
150
  $color-border-light-grey: #bfbfbf;
151
151
  $color-darkbg-disabled: #758a9f;
152
- $color-abonnement-ulaest: #d0021b;
153
- $color-abonnement-laest: $color-redaktion-border;
154
152
  $color-mint-green: #eeffe2;
155
153
  $color-grey-1: #4f4f4f;
156
154
 
@@ -49,6 +49,15 @@
49
49
  &[aria-expanded='true'] {
50
50
  border-bottom: none;
51
51
  }
52
+
53
+ @include media-breakpoint-down-em(sm) {
54
+ flex-wrap: wrap;
55
+ padding: 0.5em;
56
+
57
+ .icon-svg {
58
+ margin-left: 0;
59
+ }
60
+ }
52
61
  }
53
62
 
54
63
  .accordion-content {
@@ -62,6 +71,10 @@
62
71
  padding: 24px 16px 8px 24px;
63
72
  }
64
73
 
74
+ @include media-breakpoint-down-em(sm) {
75
+ padding: 0.5em;
76
+ }
77
+
65
78
  .accordion-body {
66
79
  li {
67
80
  border: none;
@@ -8,10 +8,6 @@
8
8
  display: inline-block;
9
9
  min-height: 40px;
10
10
 
11
- @include media-breakpoint-down(sm) {
12
- width: max-content;
13
- }
14
-
15
11
  span + .icon-svg {
16
12
  margin: 0 0 2px 5px;
17
13
  }
@@ -30,6 +26,12 @@
30
26
  &:focus {
31
27
  outline-width: 2px;
32
28
  }
29
+
30
+ span {
31
+ @include media-breakpoint-down-em(sm) {
32
+ word-break: break-word;
33
+ }
34
+ }
33
35
  }
34
36
 
35
37
  .button-primary {
@@ -44,24 +44,6 @@ pre {
44
44
  justify-content: space-between;
45
45
  align-items: center;
46
46
  line-height: normal;
47
-
48
- .ulaest-icon-container {
49
- display: flex;
50
- align-items: center;
51
-
52
- .ulaest-icon {
53
- width: 8px;
54
- height: 8px;
55
- background-color: $color-abonnement-ulaest;
56
- border-radius: 4px;
57
- }
58
-
59
- .ulaest-text {
60
- color: $font-color;
61
- font-size: 0.8125em;
62
- font-weight: 500;
63
- }
64
- }
65
47
  }
66
48
 
67
49
  .white-text {
@@ -11,6 +11,7 @@ $grid-breakpoints: (
11
11
  lg: $grid-lg,
12
12
  xl: $grid-xl
13
13
  );
14
+
14
15
  // Breakpoint viewport sizes and media queries.
15
16
  //
16
17
  // Breakpoints are defined as a map of (name: minimum width), order from small to large:
@@ -59,7 +60,7 @@ $grid-breakpoints: (
59
60
  // >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
60
61
  // "-sm"
61
62
  @function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
62
- @return if(breakpoint-min($name, $breakpoints) == null, "", "-#{$name}");
63
+ @return if(breakpoint-min($name, $breakpoints) == null, '', '-#{$name}');
63
64
  }
64
65
 
65
66
  // Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
@@ -133,3 +134,19 @@ $grid-breakpoints: (
133
134
  @mixin testmixin() {
134
135
  background-color: yellow !important;
135
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: 25em;
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
+ }