_layout.scss 2.08 KB
Newer Older
1
2
3
4
// Custom container
//
// Doesn't use the default `.container` styles for easier modifications.

5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.bd-content {
  // position: relative;
  // max-width: 62rem;
  // padding: 0 1rem 1rem;
  // margin-right: auto;
  // margin-left: auto;

  // @include media-breakpoint-up(md) {
  //   padding: 2rem;
  // }
  //
  // @include media-breakpoint-up(lg) {
  //   padding: 4rem;
  //
  //   .carbonad {
  //     float: right !important;
  //     margin: .5rem 0 1rem 2rem !important;
  //   }
  // }
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

  > table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
    margin-bottom: $spacer;
    // border: 1px solid $table-border-color;

    // Cells
    > thead,
    > tbody,
    > tfoot {
      > tr {
        > th,
        > td {
          padding: $table-cell-padding;
Mark Otto's avatar
Mark Otto committed
41
          line-height: $line-height;
42
43
44
          vertical-align: top;
          // border-top: 1px solid $table-border-color;
          border: 1px solid $table-border-color;
45
46
47
48

          > p:last-child {
            margin-bottom: 0;
          }
49
50
51
52
53
54
55
56
57
58
59
60
        }
      }
    }

    // Prevent breaking of code (e.g., Grunt tasks list)
    td:first-child > code {
      white-space: nowrap;
    }
  }
}


61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
.bd-pageheader {
  margin-bottom: 3rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: $bd-purple-light;
  background-color: $bd-purple;

  h1 {
    font-size: 4rem;
    font-weight: normal;
    color: #fff;
  }

  p {
    font-size: 1.5rem;
  }

  @include media-breakpoint-up(sm) {
    padding-top: 4rem;
    padding-bottom: 4rem;

    .carbonad {
      float: right;
    }
  }
}

88
89
90
91
92
//
// Docs sections
//

.bd-content {
93
  > h2:not(:first-child) {
94
95
96
97
98
99
    margin-top: 3rem;
  }

  > h3 {
    margin-top: 1.5rem;
  }
100
101
102
103
104

  > ul li,
  > ol li {
    margin-bottom: .25rem;
  }
105
106
107
108
}

.bd-title {
  @include media-breakpoint-up(sm) {
109
    font-size: 3rem;
110
111

    + p {
112
      font-size: 1.25rem;
113
114
115
116
      font-weight: 300;
    }
  }
}
117
118
119
120
121
122
123
124
125


//
// Markdown generated ToC
//

// Hide the first child li because it's always going to be "Contents".
#markdown-toc > li:first-child {
  display: none;
126
127

  ul {
Mark Otto's avatar
Mark Otto committed
128
    margin-top: .5rem;
129
130
    padding-left: 2rem;
  }
131
}