Commit 863c31a
Hide light theme behind feature flag (codesandbox#3016)
* get split pane to work in embed
* add a cute little toggle
* snap to edges
* get default size from props
* handle toggle position for different vertical views
* get full height back
* add transition for resize toggle
* breaking things to test on mobile
* bring back the toggle
* header buttons work again
* hide resizer on mobile
* only offset height if header is visible
* handle 50% and pane container
* add transition to snap
* add sidebar toggle to header
* handle screen resize
* vertical panes only
* remove header for mobile
* refactor and simplify code
* Move the heart button to preview
* refactor actions + add refresh
* add button to open in new window
* get the right icons
* fade transition
* get animation right for navigation actions
* add border on all sides for preview
* Add types for new props
* i dont know what to tell you fam
* increase tap width for resizer
* increase snap radius for the right side
* add threshold for showing navigation icons on smaller screens
* (has bugs) add click functionality for resizer
* rename width to newSize
* add opacity for border
* update icons for navigation
* move global actions inside splitpane
* position open sandbox lower for editor
* fold when like overlaps + isDragging transition
* first stab at intro animation
* animation intensifies
* i think thats good
* introduce on load for mobile
* fix the animation timeline
* fix opacity for animation
* variables good good
* use window.outerWidth because that doesnt lie
* dont wait for mouseover on mobile
* oh noes, outerWidth is also a lie
* solve preview size problems
* rename embed theme to dark
* start new theme
* move theme provider to App
* introduce getTheme
* add harcoded variant
* read theme from url
* refactor sidebar elements to system
* sidebar info on theme
* systemetise file tree
* panel + content container
* cheeseburget
* fix the height of tabs and navigator
* remove icons from tabs in embed
* theming wip
* style preview components
* fix embed background
* decide top offset for preview based on navigation flag
* add theme drop down to share sheet
* more night own less custom
* punctuations
* add poor man's feature flag1 parent 699ee88 commit 863c31a
File tree
5 files changed
+29
-8
lines changed- packages
- app
- scripts
- common/src/utils
- standalone-packages/codesandbox-browserfs/src/backend
5 files changed
+29
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
252 | 258 | | |
253 | 259 | | |
254 | 260 | | |
| 261 | + | |
255 | 262 | | |
256 | 263 | | |
257 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
173 | 176 | | |
174 | 177 | | |
175 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
0 commit comments