summaryrefslogtreecommitdiffstats
path: root/app/common/styles/layout/content.scss
blob: f5d2757082bc44f6b01b80ecb50fd9f4a8069afd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Content layout styles
$nav__toplvlWidth: 120px;
$nav__seclvlWidth: 240px;

// Main element class
.content__container {
  margin-left: $nav__toplvlWidth;
  padding: 1em 0.1em;

  @include mediaQuery(x-small) {
    padding: 1rem 2rem;
  }

  section.row,
  .column.row.row,
  .row.row.columns {
    margin-left: 0;
  }

  // Must be applied to the <main> element in the app
  // Required to create an elegant page transition
  @include page-transition;
  &.ng-leave-active,
  &.ng-enter {
    @include page-transition-visibility;
  }
}

.content-header {
  font-weight: 700;
  margin-bottom: 0;
  margin-top: 2em;
}

// TODO: Determine if label and content-label are the same - remove generic element selector
.content-label,
label {
  @include label;
}

// TODO: Remove and replace with section and section-title pattern
// Page header
.page-header {
  width: 100%;
  position: relative;
  border-bottom: 1px solid $border-color-01;
  margin: 0.5em 0 2.2em;
  padding-left: 0;
}
// TODO: Remove and replace with the .section and .section-title pattern
.subhead {
  width: 100%;
  border-bottom: 1px solid $border-color-01;
  padding-bottom: 0.5em;
}
OpenPOWER on IntegriCloud