This is an implementation of
Material Design Lite's dashboard template. It provides a simple way to compare approaches with source code. Original design and assets credited to the MDL team.
- (see license). Additional functionality showing drawer placement is an MDB only feature. See the icons in the navbar.
+ (see license)
+ . Additional functionality showing drawer placement is an MDB only feature. See the icons in the navbar.
diff --git a/scss/_drawer.scss b/scss/_drawer.scss
index e62a5a93..71936bd7 100644
--- a/scss/_drawer.scss
+++ b/scss/_drawer.scss
@@ -27,7 +27,7 @@
flex-shrink: 0;
}
- .mdl-navigation {
+ .mdb-nav {
flex-direction: column;
align-items: stretch;
padding-top: 1rem;
diff --git a/scss/_layout.scss b/scss/_layout.scss
index aeae2e8b..a28e6cde 100644
--- a/scss/_layout.scss
+++ b/scss/_layout.scss
@@ -46,3 +46,8 @@
-webkit-overflow-scrolling: touch; // TODO: why?
}
+// Pushes content to the other end
+.mdb-layout-spacer {
+ flex-grow: 1;
+}
+
diff --git a/scss/_list-group.scss b/scss/_list-group.scss
index b6e91d0f..de5ea0e8 100644
--- a/scss/_list-group.scss
+++ b/scss/_list-group.scss
@@ -7,8 +7,9 @@
// - triple line 88dp
.list-group {
- // Add 8dp of padding at the top and bottom of a list. One exception is at the top of a list with a subheader,
- //because subheaders contain their own padding.
+ display: flex;
+ flex-direction: column;
+ // Add 8dp of padding at the top and bottom of a list. One exception is at the top of a list with a subheader, because subheaders contain their own padding.
padding: .5rem 0;
// dense size variation