maverick-wave 4.28.0 → 5.0.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 (138) hide show
  1. package/.claude/settings.local.json +29 -1
  2. package/.claude/skills/mw-maverick-wave/SKILL.md +39 -24
  3. package/.claude/skills/mw-maverick-wave/examples/angular-services.md +16 -4
  4. package/.claude/skills/mw-maverick-wave/examples/static-landing-page.md +13 -4
  5. package/.claude/skills/mw-maverick-wave/references/components.md +42 -5
  6. package/.claude/skills/mw-maverick-wave/references/forms.md +14 -2
  7. package/.claude/skills/mw-maverick-wave/references/javascript.md +17 -4
  8. package/.claude/skills/mw-maverick-wave/references/layout.md +53 -19
  9. package/.claude/skills/mw-maverick-wave/references/theming.md +38 -1
  10. package/.impeccable/config.local.json +5 -0
  11. package/.impeccable/hook.cache.json +1 -0
  12. package/CHANGELOG.md +11 -0
  13. package/CLAUDE.md +5 -5
  14. package/README.md +48 -4
  15. package/index.html +19 -38
  16. package/maverick-wave.min.css +14 -12
  17. package/maverick-wave.min.js +1 -1
  18. package/package.json +2 -2
  19. package/scripts/verify.js +27 -2
  20. package/src/js/main.js +223 -83
  21. package/src/partials/accordions-container.html +6 -10
  22. package/src/partials/alerts-container.html +6 -6
  23. package/src/partials/announcement-container.html +5 -5
  24. package/src/partials/avatars-container.html +85 -17
  25. package/src/partials/badges-container.html +6 -6
  26. package/src/partials/blog-posts-container.html +11 -12
  27. package/src/partials/buttons-container.html +3 -3
  28. package/src/partials/cards-container.html +26 -9
  29. package/src/partials/code-container.html +5 -5
  30. package/src/partials/content-slider-container.html +5 -4
  31. package/src/partials/divider-container.html +7 -7
  32. package/src/partials/dropdown-container.html +2 -2
  33. package/src/partials/empty-state-container.html +5 -5
  34. package/src/partials/footer-container.html +21 -18
  35. package/src/partials/form-elements-container.html +14 -14
  36. package/src/partials/gallery-container.html +16 -8
  37. package/src/partials/get-started-container.html +4 -8
  38. package/src/partials/header-container.html +18 -7
  39. package/src/partials/home-container.html +10 -20
  40. package/src/partials/input-group-container.html +11 -2
  41. package/src/partials/kbd-container.html +1 -1
  42. package/src/partials/login-container.html +5 -1
  43. package/src/partials/media-container.html +2 -2
  44. package/src/partials/modals-container.html +22 -32
  45. package/src/partials/pricing-container.html +9 -9
  46. package/src/partials/skeleton-container.html +6 -6
  47. package/src/partials/stepper-container.html +2 -2
  48. package/src/partials/tables-container.html +12 -12
  49. package/src/partials/tabs-container.html +17 -27
  50. package/src/partials/tags-container.html +23 -17
  51. package/src/partials/techstack-bucket-container.html +13 -0
  52. package/src/partials/tiles-container.html +26 -9
  53. package/src/partials/typography-container.html +7 -6
  54. package/src/partials/utilities-container.html +35 -15
  55. package/src/scss/_layers.scss +10 -0
  56. package/src/scss/abstracts/_index.scss +6 -0
  57. package/src/scss/abstracts/_mixins.scss +61 -153
  58. package/src/scss/abstracts/_variables.scss +123 -319
  59. package/src/scss/base/_base.scss +170 -190
  60. package/src/scss/base/_reset.scss +106 -104
  61. package/src/scss/base/_typography.scss +153 -151
  62. package/src/scss/components/_accordions.scss +97 -97
  63. package/src/scss/components/_alerts.scss +71 -70
  64. package/src/scss/components/_announcement.scss +71 -70
  65. package/src/scss/components/_avatars.scss +130 -142
  66. package/src/scss/components/_badge.scss +131 -132
  67. package/src/scss/components/_blog-post.scss +223 -220
  68. package/src/scss/components/_breadcrumbs.scss +93 -92
  69. package/src/scss/components/_button-bar.scss +102 -110
  70. package/src/scss/components/_buttons.scss +319 -324
  71. package/src/scss/components/_calendar.scss +251 -252
  72. package/src/scss/components/_cards.scss +359 -386
  73. package/src/scss/components/_code.scss +190 -194
  74. package/src/scss/components/_coming-soon.scss +77 -75
  75. package/src/scss/components/_content-slider.scss +90 -89
  76. package/src/scss/components/_divider.scss +55 -53
  77. package/src/scss/components/_dropdown.scss +179 -185
  78. package/src/scss/components/_empty-state.scss +57 -57
  79. package/src/scss/components/_flag.scss +294 -278
  80. package/src/scss/components/_gallery.scss +131 -133
  81. package/src/scss/components/_info.scss +151 -167
  82. package/src/scss/components/_kanban.scss +332 -341
  83. package/src/scss/components/_kbd.scss +40 -38
  84. package/src/scss/components/_lang-switch.scss +89 -97
  85. package/src/scss/components/_links.scss +21 -28
  86. package/src/scss/components/_lists.scss +510 -514
  87. package/src/scss/components/_localhost-indicator.scss +26 -24
  88. package/src/scss/components/_media.scss +22 -20
  89. package/src/scss/components/_meta-info.scss +35 -33
  90. package/src/scss/components/_modals.scss +277 -186
  91. package/src/scss/components/_pagination.scss +81 -87
  92. package/src/scss/components/_panels.scss +99 -97
  93. package/src/scss/components/_pricing.scss +183 -241
  94. package/src/scss/components/_progress.scss +112 -89
  95. package/src/scss/components/_prose.scss +35 -33
  96. package/src/scss/components/_ratings.scss +40 -38
  97. package/src/scss/components/_segmented.scss +82 -84
  98. package/src/scss/components/_skeleton.scss +66 -72
  99. package/src/scss/components/_spinners.scss +155 -159
  100. package/src/scss/components/_stepper.scss +116 -116
  101. package/src/scss/components/_tables.scss +155 -148
  102. package/src/scss/components/_tabs.scss +232 -141
  103. package/src/scss/components/_tags.scss +109 -107
  104. package/src/scss/components/_techstack-bucket.scss +123 -122
  105. package/src/scss/components/_testimonial.scss +72 -70
  106. package/src/scss/components/_theme-toggle.scss +53 -51
  107. package/src/scss/components/_tiles.scss +174 -174
  108. package/src/scss/components/_timelines.scss +282 -280
  109. package/src/scss/components/_toasts.scss +66 -72
  110. package/src/scss/form-elements/_checkbox.scss +117 -132
  111. package/src/scss/form-elements/_form.scss +149 -115
  112. package/src/scss/form-elements/_input-group.scss +99 -103
  113. package/src/scss/form-elements/_input.scss +74 -74
  114. package/src/scss/form-elements/_login.scss +48 -48
  115. package/src/scss/form-elements/_prefilled.scss +53 -51
  116. package/src/scss/form-elements/_radio.scss +95 -107
  117. package/src/scss/form-elements/_select.scss +42 -42
  118. package/src/scss/form-elements/_slider.scss +117 -132
  119. package/src/scss/form-elements/_textarea.scss +68 -54
  120. package/src/scss/form-elements/_toggle.scss +127 -140
  121. package/src/scss/layout/_footer.scss +172 -171
  122. package/src/scss/layout/_grid.scss +268 -302
  123. package/src/scss/layout/_header.scss +426 -427
  124. package/src/scss/layout/_home.scss +28 -27
  125. package/src/scss/layout/_main.scss +275 -238
  126. package/src/scss/layout/_page-header.scss +38 -36
  127. package/src/scss/layout/_section.scss +150 -124
  128. package/src/scss/main.scss +1 -1
  129. package/src/scss/utilities/_accessibility.scss +46 -45
  130. package/src/scss/utilities/_aspect.scss +22 -20
  131. package/src/scss/utilities/_corner.scss +23 -5
  132. package/src/scss/utilities/_display.scss +76 -70
  133. package/src/scss/utilities/_elevation.scss +13 -11
  134. package/src/scss/utilities/_flex.scss +83 -85
  135. package/src/scss/utilities/_reveal.scss +40 -63
  136. package/src/scss/utilities/_spacing.scss +63 -64
  137. package/src/scss/utilities/_text.scss +139 -141
  138. package/src/scss/utilities/_touch-targets.scss +130 -147
@@ -1,309 +1,325 @@
1
1
  @use '../abstracts' as *;
2
2
 
3
- // ---------------------------------------------------------------------------
4
- // Flag
5
- //
6
- // A country flag drawn entirely in CSS gradients - no image, no icon font, no
7
- // request. Two reasons it is not the obvious emoji: Windows ships no flag
8
- // glyphs at all (Chrome and Edge render 🇩🇪 as the letters "DE" in a box), and
9
- // an emoji cannot be sized to line up with text the way a box can.
10
- //
11
- // Every flag gets the same 4:3 box regardless of its real ratio - Switzerland
12
- // is square, the US is 10:19 - because a column of switcher rows has to line
13
- // up, and a correct aspect ratio per country is what breaks it.
14
- //
15
- // The set below covers the languages a European project actually offers. For
16
- // anything else, the class is a slot: put an <img> or an inline <svg> inside
17
- // and it inherits the box, the corner and the hairline.
18
- // ---------------------------------------------------------------------------
3
+ @layer mw.components {
4
+ // Drawn in CSS gradients, not emoji: Windows ships no flag glyphs at all, and an
5
+ // emoji cannot be sized to line up with text. Every flag gets the same 4:3 box
6
+ // whatever its real ratio, or a column of switcher rows stops lining up.
7
+ //
8
+ // For anything not in the set below the class is a slot - put an <img> or an
9
+ // inline <svg> inside and it inherits the box, the corner and the hairline.
19
10
 
20
- // Shape values, in px - these draw a picture and have nothing to do with the
21
- // spacing scale
22
- $_flag-width: 20px;
23
- $_flag-height: 15px;
11
+ // Shape values, in px - these draw a picture and have nothing to do with the
12
+ // spacing scale
13
+ $_flag-width: 20px;
14
+ $_flag-height: 15px;
24
15
 
25
- .mw-flag {
26
- display: inline-block;
27
- width: $_flag-width;
28
- height: $_flag-height;
29
- flex-shrink: 0;
30
- border-radius: radius('xs');
31
- overflow: hidden;
32
- // Drawn on top rather than as a border: a border would shrink the painting
33
- // area and shift every gradient stop inward by a pixel. Two rings, because
34
- // each theme loses a different edge - the dark one keeps white flags (Japan,
35
- // Poland) off a light card, the light one keeps the black band of Germany and
36
- // Belgium off a dark header. Each is invisible where it is not needed.
37
- box-shadow:
38
- inset 0 0 0 1px rgb(0 0 0 / 0.2),
39
- 0 0 0 1px rgb(255 255 255 / 0.14);
40
- background-repeat: no-repeat;
41
- background-size: 100% 100%;
42
- vertical-align: middle;
16
+ .mw-flag {
17
+ display: inline-block;
18
+ width: $_flag-width;
19
+ height: $_flag-height;
20
+ flex-shrink: 0;
21
+ border-radius: radius('xs');
22
+ overflow: hidden;
23
+ // Drawn on top rather than as a border: a border would shrink the painting
24
+ // area and shift every gradient stop inward by a pixel. Two rings, because
25
+ // each theme loses a different edge - the dark one keeps white flags (Japan,
26
+ // Poland) off a light card, the light one keeps the black band of Germany and
27
+ // Belgium off a dark header. Each is invisible where it is not needed.
28
+ box-shadow:
29
+ inset 0 0 0 1px rgb(0 0 0 / 0.2),
30
+ 0 0 0 1px rgb(255 255 255 / 0.14);
31
+ background-repeat: no-repeat;
32
+ background-size: 100% 100%;
33
+ vertical-align: middle;
43
34
 
44
- // The slot: a real flag asset fills the same box
45
- > img,
46
- > svg {
47
- display: block;
48
- width: 100%;
49
- height: 100%;
50
- object-fit: cover;
35
+ // The slot: a real flag asset fills the same box
36
+ > img,
37
+ > svg {
38
+ display: block;
39
+ width: 100%;
40
+ height: 100%;
41
+ object-fit: cover;
42
+ }
51
43
  }
52
- }
53
44
 
54
- // --- Three horizontal bands ------------------------------------------------
55
- .mw-flag-de {
56
- background-image: linear-gradient(
57
- to bottom,
58
- #000 0 33.34%,
59
- #dd0000 33.34% 66.67%,
60
- #ffce00 66.67%
61
- );
62
- }
45
+ // --- Three horizontal bands ------------------------------------------------
46
+ .mw-flag-de {
47
+ background-image: linear-gradient(
48
+ to bottom,
49
+ #000 0 33.34%,
50
+ #dd0000 33.34% 66.67%,
51
+ #ffce00 66.67%
52
+ );
53
+ }
63
54
 
64
- .mw-flag-at {
65
- background-image: linear-gradient(
66
- to bottom,
67
- #ed2939 0 33.34%,
68
- #fff 33.34% 66.67%,
69
- #ed2939 66.67%
70
- );
71
- }
55
+ .mw-flag-at {
56
+ background-image: linear-gradient(
57
+ to bottom,
58
+ #ed2939 0 33.34%,
59
+ #fff 33.34% 66.67%,
60
+ #ed2939 66.67%
61
+ );
62
+ }
72
63
 
73
- .mw-flag-nl {
74
- background-image: linear-gradient(
75
- to bottom,
76
- #ae1c28 0 33.34%,
77
- #fff 33.34% 66.67%,
78
- #21468b 66.67%
79
- );
80
- }
64
+ .mw-flag-nl {
65
+ background-image: linear-gradient(
66
+ to bottom,
67
+ #ae1c28 0 33.34%,
68
+ #fff 33.34% 66.67%,
69
+ #21468b 66.67%
70
+ );
71
+ }
81
72
 
82
- .mw-flag-hu {
83
- background-image: linear-gradient(
84
- to bottom,
85
- #ce2939 0 33.34%,
86
- #fff 33.34% 66.67%,
87
- #477050 66.67%
88
- );
89
- }
73
+ .mw-flag-hu {
74
+ background-image: linear-gradient(
75
+ to bottom,
76
+ #ce2939 0 33.34%,
77
+ #fff 33.34% 66.67%,
78
+ #477050 66.67%
79
+ );
80
+ }
90
81
 
91
- .mw-flag-bg {
92
- background-image: linear-gradient(
93
- to bottom,
94
- #fff 0 33.34%,
95
- #00966e 33.34% 66.67%,
96
- #d62612 66.67%
97
- );
98
- }
82
+ .mw-flag-bg {
83
+ background-image: linear-gradient(
84
+ to bottom,
85
+ #fff 0 33.34%,
86
+ #00966e 33.34% 66.67%,
87
+ #d62612 66.67%
88
+ );
89
+ }
99
90
 
100
- // Spain's bands are 1:2:1, not equal thirds - the civil flag, without the arms
101
- .mw-flag-es {
102
- background-image: linear-gradient(
103
- to bottom,
104
- #aa151b 0 25%,
105
- #f1bf00 25% 75%,
106
- #aa151b 75%
107
- );
108
- }
91
+ // Spain's bands are 1:2:1, not equal thirds - the civil flag, without the arms
92
+ .mw-flag-es {
93
+ background-image: linear-gradient(
94
+ to bottom,
95
+ #aa151b 0 25%,
96
+ #f1bf00 25% 75%,
97
+ #aa151b 75%
98
+ );
99
+ }
109
100
 
110
- // --- Three vertical bands --------------------------------------------------
111
- .mw-flag-fr {
112
- background-image: linear-gradient(
113
- to right,
114
- #002654 0 33.34%,
115
- #fff 33.34% 66.67%,
116
- #ed2939 66.67%
117
- );
118
- }
101
+ // --- Three vertical bands --------------------------------------------------
102
+ .mw-flag-fr {
103
+ background-image: linear-gradient(
104
+ to right,
105
+ #002654 0 33.34%,
106
+ #fff 33.34% 66.67%,
107
+ #ed2939 66.67%
108
+ );
109
+ }
119
110
 
120
- .mw-flag-it {
121
- background-image: linear-gradient(
122
- to right,
123
- #009246 0 33.34%,
124
- #fff 33.34% 66.67%,
125
- #ce2b37 66.67%
126
- );
127
- }
111
+ .mw-flag-it {
112
+ background-image: linear-gradient(
113
+ to right,
114
+ #009246 0 33.34%,
115
+ #fff 33.34% 66.67%,
116
+ #ce2b37 66.67%
117
+ );
118
+ }
128
119
 
129
- .mw-flag-be {
130
- background-image: linear-gradient(
131
- to right,
132
- #000 0 33.34%,
133
- #fae042 33.34% 66.67%,
134
- #ed2939 66.67%
135
- );
136
- }
120
+ .mw-flag-be {
121
+ background-image: linear-gradient(
122
+ to right,
123
+ #000 0 33.34%,
124
+ #fae042 33.34% 66.67%,
125
+ #ed2939 66.67%
126
+ );
127
+ }
137
128
 
138
- .mw-flag-ro {
139
- background-image: linear-gradient(
140
- to right,
141
- #002b7f 0 33.34%,
142
- #fcd116 33.34% 66.67%,
143
- #ce1126 66.67%
144
- );
145
- }
129
+ .mw-flag-ro {
130
+ background-image: linear-gradient(
131
+ to right,
132
+ #002b7f 0 33.34%,
133
+ #fcd116 33.34% 66.67%,
134
+ #ce1126 66.67%
135
+ );
136
+ }
146
137
 
147
- .mw-flag-ie {
148
- background-image: linear-gradient(
149
- to right,
150
- #169b62 0 33.34%,
151
- #fff 33.34% 66.67%,
152
- #ff883e 66.67%
153
- );
154
- }
138
+ .mw-flag-ie {
139
+ background-image: linear-gradient(
140
+ to right,
141
+ #169b62 0 33.34%,
142
+ #fff 33.34% 66.67%,
143
+ #ff883e 66.67%
144
+ );
145
+ }
155
146
 
156
- // --- Two bands -------------------------------------------------------------
157
- .mw-flag-pl {
158
- background-image: linear-gradient(to bottom, #fff 0 50%, #dc143c 50%);
159
- }
147
+ // --- Two bands -------------------------------------------------------------
148
+ .mw-flag-pl {
149
+ background-image: linear-gradient(to bottom, #fff 0 50%, #dc143c 50%);
150
+ }
160
151
 
161
- .mw-flag-ua {
162
- background-image: linear-gradient(to bottom, #0057b7 0 50%, #ffd700 50%);
163
- }
152
+ .mw-flag-ua {
153
+ background-image: linear-gradient(to bottom, #0057b7 0 50%, #ffd700 50%);
154
+ }
164
155
 
165
- // --- Nordic cross ----------------------------------------------------------
166
- // The arm sits left of centre, as it does on the real flags. Two bars laid over
167
- // a solid field: the horizontal one first so the intersection is one colour.
168
- @mixin nordic-cross($field, $cross) {
169
- background-image:
170
- linear-gradient(
171
- to bottom,
172
- transparent 40%,
173
- $cross 40% 60%,
174
- transparent 60%
175
- ),
176
- linear-gradient(to right, transparent 26%, $cross 26% 46%, transparent 46%),
177
- linear-gradient($field 0 0);
178
- }
156
+ // --- Nordic cross ----------------------------------------------------------
157
+ // The arm sits left of centre, as it does on the real flags. Two bars laid over
158
+ // a solid field: the horizontal one first so the intersection is one colour.
159
+ @mixin nordic-cross($field, $cross) {
160
+ background-image:
161
+ linear-gradient(
162
+ to bottom,
163
+ transparent 40%,
164
+ $cross 40% 60%,
165
+ transparent 60%
166
+ ),
167
+ linear-gradient(
168
+ to right,
169
+ transparent 26%,
170
+ $cross 26% 46%,
171
+ transparent 46%
172
+ ),
173
+ linear-gradient($field 0 0);
174
+ }
179
175
 
180
- .mw-flag-se {
181
- @include nordic-cross(#005293, #fecb00);
182
- }
176
+ .mw-flag-se {
177
+ @include nordic-cross(#005293, #fecb00);
178
+ }
183
179
 
184
- .mw-flag-dk {
185
- @include nordic-cross(#c8102e, #fff);
186
- }
180
+ .mw-flag-dk {
181
+ @include nordic-cross(#c8102e, #fff);
182
+ }
187
183
 
188
- .mw-flag-fi {
189
- @include nordic-cross(#fff, #003580);
190
- }
184
+ .mw-flag-fi {
185
+ @include nordic-cross(#fff, #003580);
186
+ }
191
187
 
192
- // Norway's blue cross sits inside the white one, so it takes a second, thinner
193
- // pair of bars on top
194
- .mw-flag-no {
195
- background-image:
196
- linear-gradient(
197
- to bottom,
198
- transparent 44%,
199
- #00205b 44% 56%,
200
- transparent 56%
201
- ),
202
- linear-gradient(
203
- to right,
204
- transparent 30%,
205
- #00205b 30% 42%,
206
- transparent 42%
207
- ),
208
- linear-gradient(to bottom, transparent 40%, #fff 40% 60%, transparent 60%),
209
- linear-gradient(to right, transparent 26%, #fff 26% 46%, transparent 46%),
210
- linear-gradient(#ba0c2f 0 0);
211
- }
188
+ // Norway's blue cross sits inside the white one, so it takes a second, thinner
189
+ // pair of bars on top
190
+ .mw-flag-no {
191
+ background-image:
192
+ linear-gradient(
193
+ to bottom,
194
+ transparent 44%,
195
+ #00205b 44% 56%,
196
+ transparent 56%
197
+ ),
198
+ linear-gradient(
199
+ to right,
200
+ transparent 30%,
201
+ #00205b 30% 42%,
202
+ transparent 42%
203
+ ),
204
+ linear-gradient(
205
+ to bottom,
206
+ transparent 40%,
207
+ #fff 40% 60%,
208
+ transparent 60%
209
+ ),
210
+ linear-gradient(to right, transparent 26%, #fff 26% 46%, transparent 46%),
211
+ linear-gradient(#ba0c2f 0 0);
212
+ }
212
213
 
213
- // Switzerland is square in reality; in a 4:3 box the arms are widened so the
214
- // cross still reads as one
215
- .mw-flag-ch {
216
- background-image:
217
- linear-gradient(to bottom, transparent 36%, #fff 36% 64%, transparent 64%),
218
- linear-gradient(to right, transparent 39%, #fff 39% 61%, transparent 61%),
219
- linear-gradient(#d52b1e 0 0);
220
- }
214
+ // Switzerland is square in reality; in a 4:3 box the arms are widened so the
215
+ // cross still reads as one
216
+ .mw-flag-ch {
217
+ background-image:
218
+ linear-gradient(
219
+ to bottom,
220
+ transparent 36%,
221
+ #fff 36% 64%,
222
+ transparent 64%
223
+ ),
224
+ linear-gradient(to right, transparent 39%, #fff 39% 61%, transparent 61%),
225
+ linear-gradient(#d52b1e 0 0);
226
+ }
221
227
 
222
- // --- Everything else -------------------------------------------------------
223
- // The Union Jack, from the back forward: white diagonals, red diagonals over
224
- // them, then the white and red arms of St George's cross on top. The
225
- // counterchange of the red diagonals is dropped - at 20px nobody sees it, and
226
- // it would cost four more layers.
227
- .mw-flag-gb {
228
- background-image:
229
- linear-gradient(
230
- to right,
231
- transparent 42%,
232
- #c8102e 42% 58%,
233
- transparent 58%
234
- ),
235
- linear-gradient(
236
- to bottom,
237
- transparent 38%,
238
- #c8102e 38% 62%,
239
- transparent 62%
240
- ),
241
- linear-gradient(to right, transparent 36%, #fff 36% 64%, transparent 64%),
242
- linear-gradient(to bottom, transparent 30%, #fff 30% 70%, transparent 70%),
243
- linear-gradient(
244
- to bottom right,
245
- transparent 45%,
246
- #c8102e 45% 55%,
247
- transparent 55%
248
- ),
249
- linear-gradient(
250
- to bottom left,
251
- transparent 45%,
252
- #c8102e 45% 55%,
253
- transparent 55%
254
- ),
255
- linear-gradient(
256
- to bottom right,
257
- transparent 38%,
258
- #fff 38% 62%,
259
- transparent 62%
260
- ),
261
- linear-gradient(
262
- to bottom left,
263
- transparent 38%,
264
- #fff 38% 62%,
265
- transparent 62%
266
- ),
267
- linear-gradient(#012169 0 0);
268
- }
228
+ // --- Everything else -------------------------------------------------------
229
+ // The Union Jack, from the back forward: white diagonals, red diagonals over
230
+ // them, then the white and red arms of St George's cross on top. The
231
+ // counterchange of the red diagonals is dropped - at 20px nobody sees it, and
232
+ // it would cost four more layers.
233
+ .mw-flag-gb {
234
+ background-image:
235
+ linear-gradient(
236
+ to right,
237
+ transparent 42%,
238
+ #c8102e 42% 58%,
239
+ transparent 58%
240
+ ),
241
+ linear-gradient(
242
+ to bottom,
243
+ transparent 38%,
244
+ #c8102e 38% 62%,
245
+ transparent 62%
246
+ ),
247
+ linear-gradient(to right, transparent 36%, #fff 36% 64%, transparent 64%),
248
+ linear-gradient(
249
+ to bottom,
250
+ transparent 30%,
251
+ #fff 30% 70%,
252
+ transparent 70%
253
+ ),
254
+ linear-gradient(
255
+ to bottom right,
256
+ transparent 45%,
257
+ #c8102e 45% 55%,
258
+ transparent 55%
259
+ ),
260
+ linear-gradient(
261
+ to bottom left,
262
+ transparent 45%,
263
+ #c8102e 45% 55%,
264
+ transparent 55%
265
+ ),
266
+ linear-gradient(
267
+ to bottom right,
268
+ transparent 38%,
269
+ #fff 38% 62%,
270
+ transparent 62%
271
+ ),
272
+ linear-gradient(
273
+ to bottom left,
274
+ transparent 38%,
275
+ #fff 38% 62%,
276
+ transparent 62%
277
+ ),
278
+ linear-gradient(#012169 0 0);
279
+ }
269
280
 
270
- // 13 stripes and the canton. The stars are left out - at 15px tall they would
271
- // be a grey smear, and the blue block already says which flag this is.
272
- .mw-flag-us {
273
- background-image:
274
- linear-gradient(#3c3b6e 0 0),
275
- repeating-linear-gradient(to bottom, #b31942 0 7.693%, #fff 7.693% 15.385%);
276
- background-size:
277
- 40% 53.85%,
278
- 100% 100%;
279
- background-position:
280
- top left,
281
- top left;
282
- }
281
+ // 13 stripes and the canton. The stars are left out - at 15px tall they would
282
+ // be a grey smear, and the blue block already says which flag this is.
283
+ .mw-flag-us {
284
+ background-image:
285
+ linear-gradient(#3c3b6e 0 0),
286
+ repeating-linear-gradient(
287
+ to bottom,
288
+ #b31942 0 7.693%,
289
+ #fff 7.693% 15.385%
290
+ );
291
+ background-size:
292
+ 40% 53.85%,
293
+ 100% 100%;
294
+ background-position:
295
+ top left,
296
+ top left;
297
+ }
283
298
 
284
- .mw-flag-jp {
285
- background-image:
286
- radial-gradient(circle at 50% 50%, #bc002d 0 29%, transparent 30%),
287
- linear-gradient(#fff 0 0);
288
- }
299
+ .mw-flag-jp {
300
+ background-image:
301
+ radial-gradient(circle at 50% 50%, #bc002d 0 29%, transparent 30%),
302
+ linear-gradient(#fff 0 0);
303
+ }
289
304
 
290
- // Two overlapping circles make the crescent; the star is dropped for the same
291
- // reason as the US stars
292
- .mw-flag-tr {
293
- background-image:
294
- radial-gradient(circle at 47% 50%, #e30a17 0 20%, transparent 21%),
295
- radial-gradient(circle at 40% 50%, #fff 0 25%, transparent 26%),
296
- linear-gradient(#e30a17 0 0);
297
- }
305
+ // Two overlapping circles make the crescent; the star is dropped for the same
306
+ // reason as the US stars
307
+ .mw-flag-tr {
308
+ background-image:
309
+ radial-gradient(circle at 47% 50%, #e30a17 0 20%, transparent 21%),
310
+ radial-gradient(circle at 40% 50%, #fff 0 25%, transparent 26%),
311
+ linear-gradient(#e30a17 0 0);
312
+ }
298
313
 
299
- // Portugal without the armillary sphere - the ring alone carries it at this size
300
- .mw-flag-pt {
301
- background-image:
302
- radial-gradient(
303
- circle at 40% 50%,
304
- transparent 0 12%,
305
- #ffe900 13% 21%,
306
- transparent 22%
307
- ),
308
- linear-gradient(to right, #046a38 0 40%, #da291c 40%);
314
+ // Portugal without the armillary sphere - the ring alone carries it at this size
315
+ .mw-flag-pt {
316
+ background-image:
317
+ radial-gradient(
318
+ circle at 40% 50%,
319
+ transparent 0 12%,
320
+ #ffe900 13% 21%,
321
+ transparent 22%
322
+ ),
323
+ linear-gradient(to right, #046a38 0 40%, #da291c 40%);
324
+ }
309
325
  }