Skip to content

Commit 9305c6a

Browse files
author
Dave Conway-Jones
committed
sidebar more responsive when narrow
1 parent 7c9da4e commit 9305c6a

File tree

3 files changed

+36
-13
lines changed

3 files changed

+36
-13
lines changed

dist/css/app.min.less

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,23 @@
1515
/* See the License for the specific language governing permissions and */
1616
/* limitations under the License. */
1717
/* */
18-
md-sidenav,
19-
md-sidenav.md-locked-open,
20-
md-sidenav.md-closed.md-locked-open-add-active {
21-
min-width: 200px !important;
22-
width: auto;
23-
max-width: 320px !important;
18+
@media(min-width: 661px) {
19+
md-sidenav,
20+
md-sidenav.md-locked-open,
21+
md-sidenav.md-closed.md-locked-open-add-active {
22+
min-width: 200px !important;
23+
width: auto;
24+
max-width: 320px !important;
25+
}
26+
}
27+
@media(max-width: 660px) {
28+
md-sidenav,
29+
md-sidenav.md-locked-open,
30+
md-sidenav.md-closed.md-locked-open-add-active {
31+
min-width: 160px !important;
32+
width: auto;
33+
max-width: 200px !important;
34+
}
2435
}
2536
md-sidenav ng-md-icon {
2637
padding-right: 4px;

dist/dashboard.appcache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ weather-icons-lite/fonts/weather-icons-lite.woff2
1919
NETWORK:
2020
*
2121

22-
# hash: f435254c18a614e976182d4596f579f892f11739c3b0d5af92bdecc498af5fa6
22+
# hash: 9a86f07d65c497688597bab8f4d2ae039854583bb7cf73403845566cb329afab

src/main.less

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1-
md-sidenav,
2-
md-sidenav.md-locked-open,
3-
md-sidenav.md-closed.md-locked-open-add-active {
4-
min-width: 200px !important;
5-
width: auto;
6-
max-width: 320px !important;
1+
2+
@media(max-width: 660px) {
3+
md-sidenav,
4+
md-sidenav.md-locked-open,
5+
md-sidenav.md-closed.md-locked-open-add-active {
6+
min-width: 160px !important;
7+
width: auto;
8+
max-width: 200px !important;
9+
}
10+
}
11+
@media(min-width: 661px) {
12+
md-sidenav,
13+
md-sidenav.md-locked-open,
14+
md-sidenav.md-closed.md-locked-open-add-active {
15+
min-width: 200px !important;
16+
width: auto;
17+
max-width: 320px !important;
18+
}
719
}
820
md-sidenav ng-md-icon {
921
padding-right: 4px;

0 commit comments

Comments
 (0)