]>
Commit | Line | Data |
---|---|---|
c1a9b12d | 1 | /** |
b039eaaf | 2 | * Copyright 2013-2015 The Rust Project Developers. See the COPYRIGHT |
c1a9b12d SL |
3 | * file at the top-level directory of this distribution and at |
4 | * http://rust-lang.org/COPYRIGHT. | |
5 | * | |
6 | * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
7 | * http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
8 | * <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | |
9 | * option. This file may not be copied, modified, or distributed | |
10 | * except according to those terms. | |
11 | */ | |
12 | ||
b039eaaf | 13 | @import url('../rust.css'); |
1a4d82fc JJ |
14 | |
15 | body { | |
b039eaaf SL |
16 | max-width: none; |
17 | font: 16px/1.6 'Source Serif Pro', Georgia, Times, 'Times New Roman', serif; | |
c1a9b12d SL |
18 | color: #333; |
19 | } | |
20 | ||
21 | h1, h2, h3, h4, h5, h6 { | |
22 | font-family: 'Open Sans', 'Fira Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
23 | font-weight: bold; | |
24 | color: #333; | |
1a4d82fc JJ |
25 | } |
26 | ||
85aaf69f SL |
27 | @media only screen { |
28 | #toc { | |
e9174d1e | 29 | position: fixed; |
b039eaaf SL |
30 | top: 0; |
31 | left: 0; | |
32 | bottom: 0; | |
c1a9b12d | 33 | width: 300px; |
85aaf69f | 34 | overflow-y: auto; |
b039eaaf SL |
35 | border-right: 1px solid #e8e8e8; |
36 | padding: 0 15px; | |
c1a9b12d | 37 | font-size: 14px; |
c1a9b12d | 38 | background-color: #fafafa; |
b039eaaf | 39 | -webkit-overflow-scrolling: touch; |
85aaf69f SL |
40 | } |
41 | ||
42 | #page-wrapper { | |
43 | position: absolute; | |
b039eaaf SL |
44 | top: 0; |
45 | left: 300px; | |
46 | right: 0; | |
47 | padding: 0 15px; | |
85aaf69f SL |
48 | -webkit-overflow-scrolling: touch; |
49 | } | |
1a4d82fc JJ |
50 | } |
51 | ||
85aaf69f | 52 | @media only print { |
b039eaaf | 53 | #toc, #nav { |
85aaf69f SL |
54 | display: none; |
55 | } | |
56 | } | |
57 | ||
b039eaaf | 58 | @media only screen and (max-width: 1023px) { |
85aaf69f SL |
59 | #toc { |
60 | width: 100%; | |
85aaf69f SL |
61 | top: 40px; |
62 | } | |
b039eaaf | 63 | |
85aaf69f SL |
64 | #page-wrapper { |
65 | top: 40px; | |
b039eaaf | 66 | left: 0; |
85aaf69f | 67 | } |
b039eaaf | 68 | |
85aaf69f SL |
69 | .mobile-hidden { |
70 | display: none; | |
71 | } | |
1a4d82fc JJ |
72 | } |
73 | ||
74 | #page { | |
b039eaaf | 75 | margin: 0 auto; |
85aaf69f SL |
76 | max-width: 750px; |
77 | padding-bottom: 50px; | |
1a4d82fc JJ |
78 | } |
79 | ||
80 | .chapter { | |
b039eaaf SL |
81 | list-style: none; |
82 | padding-left: 0; | |
1a4d82fc JJ |
83 | line-height: 30px; |
84 | } | |
85 | ||
86 | .section { | |
b039eaaf | 87 | list-style: none; |
1a4d82fc | 88 | padding-left: 20px; |
c1a9b12d | 89 | line-height: 40px; |
1a4d82fc JJ |
90 | } |
91 | ||
92 | .section li { | |
93 | text-overflow: ellipsis; | |
94 | overflow: hidden; | |
95 | white-space: nowrap; | |
96 | } | |
97 | ||
98 | .chapter li a { | |
c1a9b12d SL |
99 | color: #333; |
100 | padding: 5px 0; | |
1a4d82fc | 101 | } |
85aaf69f | 102 | |
b039eaaf | 103 | .chapter li a.active, |
c1a9b12d SL |
104 | .chapter li a:hover { |
105 | color: #008cff; | |
106 | text-decoration: none; | |
62682a34 SL |
107 | } |
108 | ||
85aaf69f | 109 | #toggle-nav { |
b039eaaf | 110 | cursor: pointer; |
85aaf69f SL |
111 | margin-top: 5px; |
112 | width: 30px; | |
113 | height: 30px; | |
b039eaaf | 114 | background-color: #fff; |
85aaf69f | 115 | border: 1px solid #666; |
b039eaaf SL |
116 | border-radius: 3px; |
117 | padding: 3px 3px 0 3px; | |
85aaf69f SL |
118 | } |
119 | ||
120 | .sr-only { | |
121 | position: absolute; | |
122 | width: 1px; | |
123 | height: 1px; | |
124 | margin: -1px; | |
125 | padding: 0; | |
126 | overflow: hidden; | |
127 | clip: rect(0, 0, 0, 0); | |
128 | border: 0; | |
129 | } | |
130 | ||
131 | .bar { | |
132 | display: block; | |
133 | background-color: #000; | |
134 | border-radius: 2px; | |
135 | width: 100%; | |
136 | height: 2px; | |
137 | margin: 2px 0 3px; | |
138 | padding: 0; | |
139 | } | |
140 | ||
c1a9b12d | 141 | pre { |
b039eaaf | 142 | padding: 11px; |
c1a9b12d SL |
143 | overflow: auto; |
144 | font-size: 85%; | |
145 | line-height: 1.45; | |
146 | background-color: #f7f7f7; | |
147 | border: 0; | |
148 | border-radius: 3px; | |
149 | } | |
150 | ||
85aaf69f SL |
151 | .left { |
152 | float: left; | |
153 | } | |
154 | ||
155 | .right { | |
156 | float: right; | |
157 | } |