summaryrefslogtreecommitdiffstats
path: root/devtools/docs/styles/website.css
blob: eeab68a9aad6738ed90ee118896dffa9dec80533 (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
67
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

.book .book-summary ul.summary li {
  cursor: pointer;
}

.book .book-body .page-wrapper .page-inner section.normal p,
.book .book-body .page-wrapper .page-inner section.normal pre {
  margin: 0.85em 0;
}

.book .book-body .page-wrapper .page-inner section.normal pre {
  line-height: 1.25em;
}

/* Resets default style on the main page container */
.page-inner {
  max-width: unset !important;
  margin: 0 10px !important;
}

/*
 *  Sections are displayed on the grid. By default everything goes into the
 *  second column, and we use left and right columns to expand content when needed,
 *  for example for images, diagrams, code example, …
 */
.normal.markdown-section {
  display: grid;
  grid-template-columns: 1fr minmax(min-content, 800px) 1fr;
  margin: 0 50px;
}

.normal.markdown-section > * {
  grid-column: 2 / 3;
}

/* Hero element take the whole row */
.normal.markdown-section > .hero {
  grid-column: 1 / -1;
  width: max-content;
  max-width: 100%;
  justify-self: center;
}

.diagram,
pre.diagram {
  width: max-content;
  max-width: 100%;
  background-color: #f9f9fa;
  border: 3px solid #d7d7db;
  margin: 0 auto !important;
  padding: 2em;
  overflow-x: auto;
  white-space: pre;
  font-size: 11px;
}

figcaption {
  max-width: 800px;
  font-size: 0.85em !important;
  text-align: center;
  font-style: italic;
  margin: 10px auto 0;
  line-height: 1.25;
}