xref: /openbmc/phosphor-webui/app/common/styles/layout/content.scss (revision cee23d931785fe0638054a2448acb2e44411fdd0)
199d199f3SIftekharul Islam// Content layout styles
2*cee23d93Skathy$nav__toplvlWidth: 240px;
399d199f3SIftekharul Islam
41a606beeSDerick Montague// Main element class
599d199f3SIftekharul Islam.content__container {
699d199f3SIftekharul Islam  margin-left: $nav__toplvlWidth;
71a606beeSDerick Montague  padding: 1em 0.1em;
8*cee23d93Skathy  margin-top: 130px;
999d199f3SIftekharul Islam  @include mediaQuery(x-small) {
1099d199f3SIftekharul Islam    padding: 1rem 2rem;
1199d199f3SIftekharul Islam  }
121a606beeSDerick Montague
13706b75b3SMichael Davis  section.row,
141a606beeSDerick Montague  .column.row.row,
151a606beeSDerick Montague  .row.row.columns {
16706b75b3SMichael Davis    margin-left: 0;
17706b75b3SMichael Davis  }
181a606beeSDerick Montague
191a606beeSDerick Montague  // Must be applied to the <main> element in the app
201a606beeSDerick Montague  // Required to create an elegant page transition
211a606beeSDerick Montague  @include page-transition;
221a606beeSDerick Montague  &.ng-leave-active,
231a606beeSDerick Montague  &.ng-enter {
241a606beeSDerick Montague    @include page-transition-visibility;
251a606beeSDerick Montague  }
2699d199f3SIftekharul Islam}
276af1346dSMichael Davis
28272297b8SMichael Davis.content-header {
29272297b8SMichael Davis  font-weight: 700;
30272297b8SMichael Davis  margin-bottom: 0;
31272297b8SMichael Davis  margin-top: 2em;
32272297b8SMichael Davis}
33272297b8SMichael Davis
34c652ed18SDixsie Wolmers// TODO: Determine if label and content-label are the same - remove generic element selector
351a606beeSDerick Montague.content-label,
361a606beeSDerick Montaguelabel {
37c652ed18SDixsie Wolmers  @include label;
38272297b8SMichael Davis}
398947e701SIftekharul Islam
4030d7c637SDerick Montague// TODO: Remove and replace with section and section-title pattern
41c652ed18SDixsie Wolmers// Page header
42c652ed18SDixsie Wolmers.page-header {
43c652ed18SDixsie Wolmers  width: 100%;
44c652ed18SDixsie Wolmers  position: relative;
4530d7c637SDerick Montague  border-bottom: 1px solid $border-color-01;
46c652ed18SDixsie Wolmers  margin: 0.5em 0 2.2em;
47c652ed18SDixsie Wolmers  padding-left: 0;
48c652ed18SDixsie Wolmers}
49c652ed18SDixsie Wolmers// TODO: Remove and replace with the .section and .section-title pattern
508947e701SIftekharul Islam.subhead {
5197195447SGunnar Mills  width: 100%;
526f7ec80eSYoshie Muranaka  border-bottom: 1px solid $border-color-01;
531a606beeSDerick Montague  padding-bottom: 0.5em;
548947e701SIftekharul Islam}
55