maverick-wave 4.12.0 → 4.14.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.
@@ -288,7 +288,7 @@ $_mw-kanban-ribbon-clearance-compact: 58px;
288
288
  background: var(--mw-card-background);
289
289
  border: 1px dashed var(--mw-primary-text-color);
290
290
  // Same silhouette as a ticket, so it reads as one being written
291
- border-radius: radius('sm') radius('xl') radius('sm') radius('xl');
291
+ @include surface;
292
292
 
293
293
  &.mw-active {
294
294
  display: flex;
@@ -0,0 +1,35 @@
1
+ @use '../abstracts' as *;
2
+
3
+ // A link inside a sentence. Same look as `mw-btn-link`, but none of the button:
4
+ // no `inline-flex`, no control height. That difference is the whole point -
5
+ // `mw-btn` lifts its line to 2.25rem, which is barely visible in a heading and
6
+ // glaring in a footer disclaimer, where the line around it is half that.
7
+ //
8
+ // So: `mw-link` in running text, `mw-btn mw-btn-link` where the link really is
9
+ // one of several buttons and has to line up with them.
10
+ //
11
+ // `font` and the focus ring are spelled out because this also has to work on a
12
+ // `<button>` - a "show more" in the middle of a paragraph is a button, and the
13
+ // reset hands it the family but not the size. The shorthand carries the line
14
+ // height along, which is what makes the button box come out exactly as tall as
15
+ // the line it sits in. It stays one unbreakable box either way, since no
16
+ // browser lets a `<button>` wrap - use an `<a>` where the label is long enough
17
+ // to need it.
18
+ .mw-link,
19
+ .mw-link-muted {
20
+ font: inherit;
21
+
22
+ @include link-look;
23
+ @include focus-ring;
24
+ }
25
+
26
+ .mw-link {
27
+ color: var(--mw-primary-text-color);
28
+ }
29
+
30
+ .mw-link-muted {
31
+ color: var(--mw-text-muted-color);
32
+ &:hover {
33
+ color: var(--mw-primary-text-color);
34
+ }
35
+ }
@@ -27,7 +27,7 @@
27
27
  // Modal container
28
28
  .mw-modal {
29
29
  background: var(--mw-card-background);
30
- border-radius: radius('sm') radius('xl') radius('sm') radius('xl');
30
+ @include surface(0);
31
31
  box-shadow: var(--mw-elevation-5);
32
32
  max-width: 520px;
33
33
  width: 100%;
@@ -7,7 +7,7 @@
7
7
  padding: spacing('5');
8
8
  background: var(--mw-card-background);
9
9
  border: 1px solid var(--mw-border);
10
- border-radius: radius('sm') radius('xl') radius('sm') radius('xl');
10
+ @include surface;
11
11
  box-shadow: var(--mw-elevation-2);
12
12
  }
13
13
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  .mw-panel {
4
4
  background: var(--mw-card-background);
5
- border-radius: radius('sm') radius('xl') radius('sm') radius('xl');
5
+ @include surface(2px);
6
6
  border: 2px solid var(--mw-border);
7
7
  overflow: hidden;
8
8
  display: flex;
@@ -62,6 +62,15 @@
62
62
  }
63
63
  }
64
64
 
65
+ // The coloured header already owns the top-right corner. An arc drawn over it
66
+ // either disappears into the primary fill or fights the secondary one - a
67
+ // blue bow on an orange header reads as a rendering fault, not as a mark. The
68
+ // bottom corner carries it alone on these two.
69
+ &-primary::after,
70
+ &-secondary::after {
71
+ @include corner-accent(2px, 'bottom');
72
+ }
73
+
65
74
  // Scrollable variant for fixed height
66
75
  &-scrollable {
67
76
  max-height: 500px;
@@ -62,12 +62,11 @@
62
62
  // Base tile
63
63
  .mw-tile {
64
64
  background: var(--mw-card-background);
65
- border-radius: radius('sm') radius('xl') radius('sm') radius('xl');
65
+ @include surface;
66
66
  padding: spacing('5');
67
67
  box-shadow: var(--mw-elevation-2);
68
68
  transition: var(--mw-transition);
69
69
  border: 1px solid var(--mw-border);
70
- position: relative;
71
70
  overflow: hidden;
72
71
  display: flex;
73
72
  flex-direction: column;
@@ -2,11 +2,10 @@
2
2
 
3
3
  .mw-login {
4
4
  background: var(--mw-card-background);
5
- border-radius: radius('sm') radius('xl') radius('sm') radius('xl');
5
+ @include surface;
6
6
  box-shadow: var(--mw-elevation-2);
7
7
  transition: var(--mw-transition);
8
8
  border: 1px solid var(--mw-border);
9
- position: relative;
10
9
  overflow: hidden;
11
10
  width: min(340px, 85%);
12
11
  margin: spacing('2') auto;
@@ -0,0 +1,8 @@
1
+ @use '../abstracts' as *;
2
+
3
+ // Opt-out from the corner accent - the arc on the two round corners that every
4
+ // surface in the framework carries, see the surface() mixin. Everything else
5
+ // stays: the radii, the border, the shadow, the hover.
6
+ .mw-corner-plain::after {
7
+ content: none;
8
+ }
@@ -1,5 +1,6 @@
1
1
  @forward 'accessibility';
2
2
  @forward 'aspect';
3
+ @forward 'corner';
3
4
  @forward 'display';
4
5
  @forward 'elevation';
5
6
  @forward 'flex';