Skip to content

Commit 41f93e6

Browse files
committed
Re-written media query
Re-wrote the media query for allowing responsiveness without a refresh
1 parent c362fa2 commit 41f93e6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

packages/application/style/base.css

+11-11
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,7 @@ body[data-notebook='edit'] #spacer-widget-bottom {
8080
box-shadow: var(--jp-elevation-z4);
8181
}
8282

83-
body[data-format='desktop'] #main-panel .jp-TreePanel {
84-
padding: 0rem 2rem;
85-
}
86-
87-
@media only screen and (max-width: 760px) {
88-
body[data-format='mobile'] #main-panel .jp-TreePanel {
89-
padding: 0rem 0rem;
90-
}
91-
}
92-
93-
#main-panel .jp-TreePanel > .lm-TabPanel-stackedPanel {
83+
.jp-TreePanel > .lm-TabPanel-stackedPanel {
9484
box-shadow: var(--jp-elevation-z4);
9585
}
9686

@@ -103,3 +93,13 @@ body[data-notebook='notebooks'] #main-panel {
10393
body[data-notebook='notebooks'] #spacer-widget-top {
10494
min-height: unset;
10595
}
96+
97+
#main-panel > .jp-TreePanel {
98+
padding: 0px 5px;
99+
}
100+
101+
@media only screen and (max-width: 760px) {
102+
#main-panel > .jp-TreePanel {
103+
margin: 0px -5px;
104+
}
105+
}

0 commit comments

Comments
 (0)