Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 318c1da

Browse files
add comment about fluid design values (#63)
add comment about fluid design values
2 parents 5f001d0 + 4ca8d45 commit 318c1da

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎packages/core/src/base/_generics.scss‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
html {
2+
/**
3+
https://bit.ly/fluid-design
4+
14 = smallest font size
5+
20.56 = largest font size
6+
100dvw = total screen
7+
320 = smallest screen currently where it will stop flowing
8+
2560 = 2k screen where it will no longer flow
9+
*/
210
font-size: calc(14px + (20.56 - 14) * ((100dvw - 320px) / (2560 - 320)));
311
}
412

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /