Skip to content

Commit

Permalink
stick to strict fallback changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gabalafou committed Mar 15, 2024
1 parent 7469354 commit 74f4ce3
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 69 deletions.
46 changes: 0 additions & 46 deletions galata/test/jupyterlab/zoom.test.ts

This file was deleted.

13 changes: 9 additions & 4 deletions packages/application/style/menus.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,16 @@
}

.lm-MenuBar-item {
/* TODO: remove ignore directives when fixed: https://github.com/csstree/csstree/issues/164 */
/* stylelint-disable-next-line csstree/validator */
/* calc() is used for adaptive menuBar padding, it fixes UI cutoff at 100% zoom, with -2px border */
/* TODO: remove ignore directive when fixed: https://github.com/csstree/csstree/issues/164 */
/* stylelint-disable-next-line csstree/validator */
padding: 0 min(calc(1.2vw - 2px), 8px); /* Using min() and vw allows the left and right padding to shrink when the screen is small or when the user increases browser zoom level, which should allow for the "Help" menu to be shown at 400% zoom */
padding: 0 /* stylelint-disable-next-line csstree/validator */
min(
calc(1.2vw - 2px),
8px
/* pull horizontal padding down from 8px as viewport width (vw) drops below 833px */
/* calc() is used for adaptive menuBar padding, it fixes UI cutoff at 100% zoom, with -2px border */
/* Using min() and vw allows the left and right padding to shrink when the screen is small or when the user increases browser zoom level, which should allow for the "Help" menu to be shown at 400% zoom */
);
border-left: var(--jp-border-width) solid transparent;
border-right: var(--jp-border-width) solid transparent;
border-top: var(--jp-border-width) solid transparent;
Expand Down
7 changes: 6 additions & 1 deletion packages/application/style/sidepanel.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@
.jp-SideBar .lm-TabBar-tab {
/* TODO: remove ignore directive when fixed: https://github.com/csstree/csstree/issues/164 */
/* stylelint-disable-next-line csstree/validator */
padding: min(5vh, 16px) 0; /* Using min() and vh allows the top and bottom padding to shrink when the screen is small or when the user increases browser zoom level, making room to show more content in the sidebar */
padding: min(
5vh,
16px
/* pull vertical padding down from 16px as viewport height drops below 320px */
)
0;
border: none;
overflow: visible;
flex-direction: column;
Expand Down
67 changes: 49 additions & 18 deletions packages/filebrowser/style/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,23 @@
}

.jp-FileBrowser-toolbar.jp-Toolbar {
/* flex-wrap: wrap; */

/* TODO: remove ignore directive when fixed: https://github.com/csstree/csstree/issues/164 */
/* stylelint-disable-next-line csstree/validator */

/* row-gap: min(
1.7vh,
12px
); Using min() and vh allows the row-gap to shrink when the screen is small or when the user zooms in, which should allow at least 2 files or folders to be seen within the file browser at 400% zoom */

flex-wrap: wrap;
border-bottom: none;
height: auto;
/* stylelint-disable-next-line csstree/validator */

/* TODO: remove ignore directive when fixed: https://github.com/csstree/csstree/issues/164 */
/* stylelint-disable-next-line csstree/validator */
margin: min(5vh, 8px) min(1.5vw, 12px) 0; /* Using min() and vw/vh allows the margins to shrink when the screen is small or when the user zooms in, which should allow at least 2 files or folders to be seen within the file browser at 400% zoom */
margin: min(
5vh,
8px
/* pull top margin down from 8px as viewport height drops below 160px */
)
min(
1.5vw,
12px
/* pull horizontal margin down from 12px as viewport width drops below 800px */
)
0;
box-shadow: none;
padding: 0;
}
Expand All @@ -58,12 +59,19 @@

/* TODO: remove ignore directive when fixed: https://github.com/csstree/csstree/issues/164 */
/* stylelint-disable-next-line csstree/validator */
margin: min(1.2vh, 8px) min(1vw, 12px); /* Using min() and vw/vh allows the margins to shrink when the screen is small or when the user zooms in, which should allow at least two files or folders to be seen within the file browser at 400% zoom */
margin: min(
1.2vh,
8px
/* start pulling vertical margin down from 8px once viewport height drops below ~666px */
)
min(
1vw,
12px
/* start pulling horizontal margin down from 12px once viewport width drops below 1200px */
); /* Using min() and vw/vh allows the margins to shrink when the screen is small or when the user zooms in, which should allow at least two files or folders to be seen within the file browser at 400% zoom */
}

.jp-BreadCrumbs-item {
/* stylelint-disable-next-line csstree/validator */
margin: min(3vh, 8px) min(2vw, 12px);
padding: 0 2px;
border-radius: var(--jp-border-radius);
cursor: pointer;
Expand Down Expand Up @@ -145,10 +153,23 @@
}

.jp-DirListing-headerItem {
/* stylelint-disable-next-line csstree/validator */
/* TODO: remove ignore directive when fixed: https://github.com/csstree/csstree/issues/164 */
/* stylelint-disable-next-line csstree/validator */
padding: min(1vh, 4px) min(6vw, 12px) min(1vh, 2px); /* Using min() and vw/vh allows the padding to shrink when the screen is small or when the user zooms in, which should allow at least two files or folders to be seen within the file browser at 400% zoom */
padding: min(
1vh,
4px
/* pull top padding down from 4px as viewport height drops below 400px */
)
min(
6vw,
12px
/* pull horizontal padding down from 12px as viewport width drops below 200px */
)
min(
1vh,
2px
/* pull bottom padding down from 2px as viewport height drops below 200px */
);
font-weight: 500;
}

Expand Down Expand Up @@ -228,7 +249,17 @@

/* TODO: remove ignore directive when fixed: https://github.com/csstree/csstree/issues/164 */
/* stylelint-disable-next-line csstree/validator */
padding: min(1vh, 4px) min(1vw, 12px); /* Using min() and vw/vh allows the padding to shrink when the screen is small or when the user zooms in, which should allow at least two files or folders to be seen within the file browser at 400% zoom */
padding: min(
1vh,
4px
/* pull vertical padding down from 4px as viewport height drops below 400px */
)
min(
1vw,
12px
/* pull horizontal padding down from 12px as viewport width drops below 1200px */
); /* Using min() and vw/vh allows the padding to shrink when the screen is small or when the user zooms in, which should allow at least two files or folders to be seen within the file browser at 400% zoom */

-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
Expand Down

0 comments on commit 74f4ce3

Please sign in to comment.