@rogieking/figui3 10.0.9 → 10.0.10
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.
- package/CHANGELOG.md +10 -0
- package/base.css +12 -11
- package/components.css +4 -6
- package/dist/base.css +1 -1
- package/dist/components.css +1 -1
- package/dist/fig.css +1 -1
- package/dist/fig.js +1 -1
- package/fig.js +1 -20
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [10.0.10]
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Unified thin scrollbar colors and styling across the base stylesheet and playground.
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Prevented delayed chooser media loads from overriding the user’s scroll position.
|
|
14
|
+
|
|
5
15
|
## [10.0.9]
|
|
6
16
|
|
|
7
17
|
### Changed
|
package/base.css
CHANGED
|
@@ -88,16 +88,23 @@ iframe{
|
|
|
88
88
|
background-color: var(--figma-color-text-selection);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
/*
|
|
91
|
+
/* Scrollbars */
|
|
92
|
+
* {
|
|
93
|
+
scrollbar-width: thin;
|
|
94
|
+
scrollbar-color: var(--figma-color-border) transparent;
|
|
95
|
+
}
|
|
96
|
+
|
|
92
97
|
::-webkit-scrollbar {
|
|
93
98
|
width: var(--spacer-1);
|
|
94
|
-
/* Width of the vertical scrollbar */
|
|
95
99
|
height: var(--spacer-1);
|
|
96
|
-
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
::-webkit-scrollbar-track {
|
|
103
|
+
background: transparent;
|
|
97
104
|
}
|
|
98
105
|
|
|
99
106
|
::-webkit-scrollbar-thumb {
|
|
100
|
-
background-color: var(--figma-color-
|
|
107
|
+
background-color: var(--figma-color-border);
|
|
101
108
|
border-radius: calc(var(--spacer-1) / 2);
|
|
102
109
|
}
|
|
103
110
|
|
|
@@ -105,13 +112,7 @@ iframe{
|
|
|
105
112
|
background-color: var(--figma-color-bg-secondary);
|
|
106
113
|
}
|
|
107
114
|
|
|
108
|
-
/*
|
|
109
|
-
* {
|
|
110
|
-
scrollbar-width: thin;
|
|
111
|
-
scrollbar-color: var(--figma-color-bg-tertiary)
|
|
112
|
-
var(--figma-color-bg-secondary);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
+
/* helper classes/defaults */
|
|
115
116
|
.subtle {
|
|
116
117
|
color: var(--figma-color-text-tertiary);
|
|
117
118
|
}
|
package/components.css
CHANGED
|
@@ -6368,9 +6368,12 @@ fig-chooser {
|
|
|
6368
6368
|
var(--fig-choice-selection-ring-gutter)
|
|
6369
6369
|
);
|
|
6370
6370
|
scroll-behavior: smooth;
|
|
6371
|
-
scrollbar-width: none;
|
|
6372
6371
|
width: calc(100% - var(--fig-chooser-inline-margin) * 2);
|
|
6373
6372
|
|
|
6373
|
+
&:not([overflow="scrollbar"]) {
|
|
6374
|
+
scrollbar-width: none;
|
|
6375
|
+
}
|
|
6376
|
+
|
|
6374
6377
|
&[scroll-behavior="auto"] {
|
|
6375
6378
|
scroll-behavior: auto;
|
|
6376
6379
|
}
|
|
@@ -6424,11 +6427,6 @@ fig-chooser {
|
|
|
6424
6427
|
}
|
|
6425
6428
|
}
|
|
6426
6429
|
|
|
6427
|
-
&[overflow="scrollbar"] {
|
|
6428
|
-
scrollbar-width: thin;
|
|
6429
|
-
scrollbar-color: var(--figma-color-border) transparent;
|
|
6430
|
-
}
|
|
6431
|
-
|
|
6432
6430
|
&[layout="horizontal"] {
|
|
6433
6431
|
flex-direction: row;
|
|
6434
6432
|
overflow: auto hidden;
|
package/dist/base.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
html,:host{width:100%;height:100%;color:var(--figma-color-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:var(--font-family);font-size:16px;font-weight:var(--body-medium-fontWeight);letter-spacing:var(--body-letter-spacing);background-color:var(--figma-color-bg);margin:0;padding:0;line-height:1rem}body,:host{font-size:var(--body-medium-fontSize);letter-spacing:var(--body-letter-spacing);line-height:1.4545em}h1,h2{font-weight:var(--body-large-strong-fontWeight);font-size:var(--body-large-fontSize);text-wrap:pretty}h3{font-weight:var(--body-medium-strong-fontWeight);font-size:var(--body-medium-fontSize)}strong{font-weight:var(--body-medium-strong-fontWeight)}section{padding:var(--spacer-1) var(--spacer-3);margin-bottom:var(--spacer-2);&:last-child{margin-bottom:0}}fieldset{padding:var(--spacer-1) var(--spacer-3)}hr{background-color:var(--figma-color-border);width:100%;height:1px;margin:var(--spacer-2) 0;border:none;&[vertical]{width:1px;height:100%;margin:0 var(--spacer-2)}}iframe{background-color:#0000;border:0;flex:auto;width:100%;max-width:100%;height:max-content;min-height:0;max-height:100%;margin:0;display:block}*,:before,:after{box-sizing:border-box}::selection{background-color:var(--figma-color-text-selection)}::selection{background-color:var(--figma-color-text-selection)}::-webkit-scrollbar{width:var(--spacer-1);height:var(--spacer-1)}::-webkit-scrollbar-thumb{background-color:var(--figma-color-
|
|
1
|
+
html,:host{width:100%;height:100%;color:var(--figma-color-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:var(--font-family);font-size:16px;font-weight:var(--body-medium-fontWeight);letter-spacing:var(--body-letter-spacing);background-color:var(--figma-color-bg);margin:0;padding:0;line-height:1rem}body,:host{font-size:var(--body-medium-fontSize);letter-spacing:var(--body-letter-spacing);line-height:1.4545em}h1,h2{font-weight:var(--body-large-strong-fontWeight);font-size:var(--body-large-fontSize);text-wrap:pretty}h3{font-weight:var(--body-medium-strong-fontWeight);font-size:var(--body-medium-fontSize)}strong{font-weight:var(--body-medium-strong-fontWeight)}section{padding:var(--spacer-1) var(--spacer-3);margin-bottom:var(--spacer-2);&:last-child{margin-bottom:0}}fieldset{padding:var(--spacer-1) var(--spacer-3)}hr{background-color:var(--figma-color-border);width:100%;height:1px;margin:var(--spacer-2) 0;border:none;&[vertical]{width:1px;height:100%;margin:0 var(--spacer-2)}}iframe{background-color:#0000;border:0;flex:auto;width:100%;max-width:100%;height:max-content;min-height:0;max-height:100%;margin:0;display:block}*,:before,:after{box-sizing:border-box}::selection{background-color:var(--figma-color-text-selection)}::selection{background-color:var(--figma-color-text-selection)}*{scrollbar-width:thin;scrollbar-color:var(--figma-color-border) transparent}::-webkit-scrollbar{width:var(--spacer-1);height:var(--spacer-1)}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background-color:var(--figma-color-border);border-radius:calc(var(--spacer-1) / 2)}::-webkit-scrollbar-thumb:hover{background-color:var(--figma-color-bg-secondary)}.subtle{color:var(--figma-color-text-tertiary)}p{text-wrap:pretty;margin-block:1em}p:first-child{margin-block-start:0}p:last-child{margin-block-end:0}label,p,li,figcaption{color:var(--figma-color-text-secondary);text-wrap:pretty}h2{font-weight:var(--body-medium-strong-fontWeight);margin:var(--spacer-2) 0;text-wrap:pretty}a{color:var(--figma-color-text-brand);text-decoration:none;&:hover{text-decoration:underline}}
|