Layout structure - map layout and toolbar with corner md

How can I use AngularJS Material Design lib to create the page structure, for example, described in the official Layout Structure Guide and illustrated in the screenshot below? I want a centralized map to smash the edges of the page toolbar. Codepen's example would be much appreciated.

Edit: linked flow: Angular Material Design Layout

enter image description here

+4
source share
2 answers

I decided I would post this to help others trying to do the same with Materialize CSS. You can change the height of the navigation bar and the size / location of the map.

enter image description here

Demo

HTML

<nav>
    <div class="nav-wrapper">
        <a href="#" class="brand-logo left"><i class="material-icons">list</i></a>
    </div>
    <div class="nav-wrapper">
    </div>
</nav>
<
<<div class="row" id="card-placement"> <!-- id added here -->
    <div class="col s12 m8 offset-m2">
        <div class="card grey lighten-5">
            <div class="card-content grey-text text-darken-1">
                <h5 class="head">Title</h5> <!-- class added here -->
              <div class="divider"></div>
              &nbsp;
                  <p>Stuff goes here</p>
            </div>
        </div>
    </div>
</div>

CSS

/* Moves card up into navbar */
#card-placement{
    margin-top:-60px
}
/* Moves Title position up to be level with nav bottom */
.head {
 margin-top: -2px;
}

nav {
    color: #fff;
    background-color: #ee6e73;
    width: 100%;
    height: 112px;
    line-height: 56px;
}

.nav-wrapper {
  margin-left: 20px;
}
+2

CSS

.card_position{
    margin-top:-70px
}

.

0

All Articles