summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/static/sass/_api.scss
blob: 236ac503a562bc1924e786af3c08258a01f5a4f9 (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
56
57
58
59
60
61
62
63
64
65
66
// Uses vertical_rythm library from
// http://compass-style.org/reference/compass/typography/vertical_rhythm/
// as explained in _typography.scss
@import "compass/typography/vertical_rhythm";

.api {
  color: #333;
  font-size: 14px;

  .api-summary {
    td, th {
      padding: 5px 10px;
    }
  }

  .api-reference {
    .description {
      margin-left: 20px;
    }
    table {
      .innerTable {
        margin: 10px 0;
        td, th {
          padding: 5px 10px;
          border: 1px solid #eee;
        }
        th {
          background: none;
        }
      }
      p {
        margin-top: 0.75em;
        margin-bottom: 0.75em;
      }
      p:first-child {
        margin-top: 0;
      }
    }
    td, th {
      vertical-align: top;
      border: 1px solid #eee;
    }
    th {
      background: #fafafa;
    }
    h2 {
      background-color: darken($gray-light, 5%);
      padding: $default-padding;
      margin-left: $default-padding * -1;
      margin-right: $default-padding * -1;
    }
    h3 {
      margin-top: rhythm(2);
    }
  }

  .availability {
    color: #A03;
  }

  table#intro {
    .title {
      white-space: nowrap;
    }
  }
}