summaryrefslogtreecommitdiffstats
path: root/app/common/styles/layout/section.scss
blob: aeb7ff2257be5696d1b54418b1e29c8e75b14093 (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
/**
 * Used for section layout. This should be used for the page container
 * Mark up
 <section class="section">
   <div class="section-header">
    <h2 class="section-title">Section Title</h2>
    ... any element added here will be right aligned
   </div>
   <div class="section-content">
     ...
    </div>
    <div class="section-content">
     ...
    </div>
 </section>
 */

.section {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid $border-color-01;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.section-title {
  margin-bottom: 0;
}

.section-content {
  margin-top: 0;
  margin-bottom: 0;

  + .section-content {
    margin-top: 1.5rem;
  }
}
OpenPOWER on IntegriCloud