Skip to content

Commit 70fc2a8

Browse files
committed
Clean iOS text size CSS
1 parent e5bef41 commit 70fc2a8

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

app/assets/stylesheets/ios.css

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
@layer platform {
2-
:root[data-text-size=xsmall]:has([data-platform~=ios]) { font-size: 14px; }
3-
:root[data-text-size=small]:has([data-platform~=ios]) { font-size: 15px; }
4-
:root[data-text-size=medium]:has([data-platform~=ios]) { font-size: 16px; }
5-
:root[data-text-size=large]:has([data-platform~=ios]) { font-size: 17px; }
6-
:root[data-text-size=xlarge]:has([data-platform~=ios]) { font-size: 19px; }
7-
:root[data-text-size=xxlarge]:has([data-platform~=ios]) { font-size: 21px; }
8-
:root[data-text-size=xxxlarge]:has([data-platform~=ios]) { font-size: 23px; }
2+
:root:has([data-platform~=ios]) {
3+
&[data-text-size=xsmall] { font-size: 14px; }
4+
&[data-text-size=small] { font-size: 15px; }
5+
&[data-text-size=medium] { font-size: 16px; }
6+
&[data-text-size=large] { font-size: 17px; }
7+
&[data-text-size=xlarge] { font-size: 19px; }
8+
&[data-text-size=xxlarge] { font-size: 21px; }
9+
&[data-text-size=xxxlarge] { font-size: 23px; }
10+
}
911

1012
[data-platform~=ios] {
1113
.hide-on-ios {

0 commit comments

Comments
 (0)