diff --git a/resources/css/core/utilities.css b/resources/css/core/utilities.css index a8b175638e0..7f7ceec9d78 100644 --- a/resources/css/core/utilities.css +++ b/resources/css/core/utilities.css @@ -99,6 +99,13 @@ @utility st-text-trim-ex-alphabetic { text-box: ex alphabetic; } +@utility st-text-trim-optical-cap { + /* =Jay. Trim to x-height, then nudge the text down so it sits between x-height and cap height, a touch nearer cap height. Lowercase and Capitalised labels both look centred in small, tight boxes like badges */ + @supports (text-box: ex alphabetic) { + text-box: ex alphabetic; + padding-top: calc((1cap - 1ex) * 3 / 4); + } +} @utility placeholder-xs { /* =Jay. The default of 1em on field inputs feels a bit clumsy/big */ diff --git a/resources/js/components/assets/Editor/Editor.vue b/resources/js/components/assets/Editor/Editor.vue index c3f84734429..dc2b6c51fb9 100644 --- a/resources/js/components/assets/Editor/Editor.vue +++ b/resources/js/components/assets/Editor/Editor.vue @@ -147,6 +147,7 @@