Friday, 15 June 2012

Angular Material Design layout -


How do I design a layout with an angular content layout:

I took an example from

: with an MD-content box dropdown An MD-Toolbar

I do not think you can do this completely in angular content, but you do so It can be added mostly in content and then on a simple CSS class. Assume that you have all the necessary script and CSS dependencies, your HTML will look like this:

  & lt; Body ng-app = "contentDesignApp" ng-controller = "MainCtrl" layout = "column" & gt; & Lt; Md-toolbar flex = "33" & gt; & Lt; / MD toolbar & gt; & Lt; Div layout-align = "center start" layout = "row" & gt; & Lt; Md-content class = "md-whiteframe-z2 hill-up" flex = "66" & gt; & Lt; P layout-margin & gt; Advertise on this website Integer number differences are talking about Phasellus sollicitudin, or bubble Anne Cogu Rutrum syspit. The postage stamp can be included in SEO sultur. In EU ads, there are things in Duas Bibendum Octor Lorem Hendrate's temporary Anne Granth, Matt's Intermedium, which are free for flexibility before lenses. At the time of integral, the skill for the duration of the present time, it has been determined, and depends on it. How do you know how you can work, Maurice Peliner Dignisim is now a Loreket thanks to your rights & lt; / P & gt; & Lt; / MD-content & gt; & Lt; / Div & gt; & Lt; / Body & gt;  

And your CSS will look like this:

  .move-up {position: relative; Top: -60px; Z-index: 99; }  

Here is a working function:

The key here layout-align = "center start" , Which focuses on the page horizontally from page (usage) and only puts it under the MD-toolbar. It is necessary to ensure that we use a flexbox layout on Div content as well as the layout = "row" .

From there, returns the flex = "66" box width of 66%, adds .md-whiteframe-z2 background, and Then our .move-up class simply takes it up to 60 code position: relative; Top: -60px and z-index .

above the toolbar.

No comments:

Post a Comment