Skip to content

Commit 04fcb86

Browse files
committed
Update sidemenu to match spec
1 parent ae88622 commit 04fcb86

File tree

2 files changed

+27
-18
lines changed

2 files changed

+27
-18
lines changed

css/demo.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
.section > h2, .section > .subheading {
1212
top: -20px; /* sections have some padding, we need to move the subheader up to cover that */
1313
}
14+
.section > .divider {
15+
margin-top: 1.5em;
16+
}
1417

1518
/* Header positioning */
1619
.header {
@@ -87,7 +90,6 @@ code .pln {
8790
float: right;
8891
color: gray;
8992
}
90-
91-
.section > .divider {
92-
margin-top: 1.5em;
93-
}
93+
.row i[class^="icon-"] {
94+
font-size: 1.5em;
95+
}

css/material.css

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ code {
169169
top: 50%;
170170
border-radius: 100% !important;
171171
}
172+
.sidemenu .menu li.selected::after,
172173
.ripple:active::after, .button:active::after, .fab:active::after, [ripple]:active::after {
173174
width: 100% !important;
174175
left: 0;
@@ -825,7 +826,7 @@ code {
825826
height: 3em;
826827
}
827828

828-
/* sidemenus */
829+
/* Sidemenus */
829830

830831
.sidemenu {
831832
position: fixed;
@@ -847,14 +848,6 @@ code {
847848
left: -400px;
848849
display: block;
849850
}
850-
.sidemenu .menu {
851-
box-shadow: unset;
852-
width: 100%;
853-
}
854-
.sidemenu .menu li {
855-
line-height: 3em;
856-
height: auto;
857-
}
858851
.sidemenu .sidemenu-hero {
859852
width: 100%;
860853
position: relative;
@@ -883,8 +876,8 @@ code {
883876
padding: 0.375em 1em;
884877
}
885878
.sidemenu .sidemenu-hero .text {
886-
width: 100%;
887-
color: #FFF;
879+
width: calc(100% - 2em);
880+
color: #fff;
888881
z-index: 1;
889882
display: block;
890883
padding: 0 1em;
@@ -899,11 +892,25 @@ code {
899892
z-index: 0;
900893
}
901894
.sidemenu .menu i {
902-
padding: 0 2em 0 1em;
895+
padding: 0 2rem 0 0;
896+
font-size: 1.5em;
897+
}
898+
.sidemenu .menu li:not(.selected) i {
899+
opacity: 0.63;
903900
}
904-
905901
.sidemenu .menu h2, .sidemenu .menu .subheading {
906-
padding-left: 2em;
902+
padding-left: 1em;
903+
}
904+
.sidemenu .menu {
905+
box-shadow: none;
906+
width: 100%;
907+
}
908+
.sidemenu .menu li {
909+
line-height: 3em;
910+
height: auto;
911+
}
912+
.sidemenu .menu li > a {
913+
padding: 0 1em;
907914
}
908915

909916
/* Cards */

0 commit comments

Comments
 (0)