| Shawn Pearce | 374f184 | 2015-02-10 15:36:54 -0800 | [diff] [blame] | 1 | /** |
| 2 | * Copyright 2015 Google Inc. All Rights Reserved. |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| Shawn Pearce | a3e0e28 | 2015-02-12 13:57:54 -0800 | [diff] [blame] | 17 | /* Markdown rendered in /+doc/ or tree view page . */ |
| 18 | |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 19 | .Site-Content--markdown { |
| 20 | padding-top: 0; |
| Shawn Pearce | a3e0e28 | 2015-02-12 13:57:54 -0800 | [diff] [blame] | 21 | } |
| Andrew Bonventre | 88a4828 | 2015-09-16 14:53:33 -0400 | [diff] [blame] | 22 | .Header-nav ul { |
| 23 | max-width: 980px; |
| 24 | margin: 0 auto; |
| 25 | } |
| 26 | .Header-nav li { |
| 27 | display: inline-block; |
| 28 | margin-right: 15px; |
| 29 | } |
| Shawn Pearce | a3e0e28 | 2015-02-12 13:57:54 -0800 | [diff] [blame] | 30 | .doc h1, .doc h2, .doc h3, .doc h4, .doc h5, .doc h6 { |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 31 | font-weight: normal; |
| 32 | margin: 1.236em 0 .618em; |
| 33 | } |
| 34 | .doc.RepoIndexDoc h1 { |
| 35 | margin-top: .25em; |
| Shawn Pearce | a3e0e28 | 2015-02-12 13:57:54 -0800 | [diff] [blame] | 36 | } |
| Shawn Pearce | 73e3453 | 2015-02-12 16:27:54 -0800 | [diff] [blame] | 37 | .doc h1 { |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 38 | font-size: 2em; |
| Shawn Pearce | 73e3453 | 2015-02-12 16:27:54 -0800 | [diff] [blame] | 39 | } |
| 40 | .doc h2 { |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 41 | font-size: 1.5em; |
| Shawn Pearce | 73e3453 | 2015-02-12 16:27:54 -0800 | [diff] [blame] | 42 | } |
| 43 | .doc h3 { |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 44 | font-size: 1.3em; |
| Shawn Pearce | 73e3453 | 2015-02-12 16:27:54 -0800 | [diff] [blame] | 45 | } |
| Ian McKellar | 586bf99 | 2017-07-24 15:44:43 -0700 | [diff] [blame] | 46 | .doc h4 { |
| 47 | font-size: 1.3em; |
| 48 | font-weight: lighter; |
| 49 | font-style: italic; |
| 50 | } |
| 51 | .doc h5 { |
| 52 | font-size: 16px; |
| 53 | font-weight: lighter; |
| 54 | font-style: italic; |
| 55 | } |
| Shawn Pearce | 73e3453 | 2015-02-12 16:27:54 -0800 | [diff] [blame] | 56 | .doc h6 { |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 57 | font-size: 14px; |
| 58 | font-style: italic; |
| Shawn Pearce | 73e3453 | 2015-02-12 16:27:54 -0800 | [diff] [blame] | 59 | } |
| Andrew Bonventre | 4434b80 | 2015-09-29 12:27:56 -0400 | [diff] [blame] | 60 | .doc hr { |
| 61 | border: none; |
| 62 | border-top: 1px solid #aaa; |
| 63 | display: block; |
| 64 | margin-top: 25px; |
| 65 | } |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 66 | .doc a { |
| 67 | text-decoration: none; |
| 68 | } |
| 69 | .doc a:link { |
| 70 | color: #245dc1; |
| 71 | } |
| 72 | .doc a:visited { |
| 73 | color: #7759ae; |
| 74 | } |
| 75 | .doc a:hover { |
| 76 | text-decoration: underline; |
| 77 | } |
| Shawn Pearce | 263d674 | 2015-06-23 17:36:07 -0700 | [diff] [blame] | 78 | .doc a.h { |
| 79 | display: inline-block; |
| 80 | font-weight: normal; |
| 81 | width: 1.5em; |
| 82 | margin-left: -1.5em; |
| 83 | margin-top: -1em; |
| 84 | margin-bottom: -1em; |
| 85 | } |
| 86 | .doc a.h:link, |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 87 | .doc a.h:visited { |
| 88 | color: #444; |
| 89 | } |
| 90 | .doc a.h:focus { |
| 91 | outline: none; |
| 92 | } |
| 93 | .doc a.h:hover { |
| 94 | text-decoration: none; |
| 95 | } |
| Shawn Pearce | 263d674 | 2015-06-23 17:36:07 -0700 | [diff] [blame] | 96 | .doc a.h span { |
| 97 | display: inline-block; |
| 98 | width: 1.5em; |
| 99 | } |
| 100 | .doc h1:hover a.h span:before, |
| 101 | .doc h2:hover a.h span:before, |
| 102 | .doc h3:hover a.h span:before, |
| 103 | .doc h4:hover a.h span:before, |
| 104 | .doc h5:hover a.h span:before, |
| 105 | .doc h6:hover a.h span:before { |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 106 | content: '#'; |
| 107 | font-weight: normal; |
| 108 | color: #AAA; |
| Shawn Pearce | 263d674 | 2015-06-23 17:36:07 -0700 | [diff] [blame] | 109 | } |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 110 | .doc h1:hover a:hover.h span:before, |
| 111 | .doc h2:hover a:hover.h span:before, |
| 112 | .doc h3:hover a:hover.h span:before, |
| 113 | .doc h4:hover a:hover.h span:before, |
| 114 | .doc h5:hover a:hover.h span:before, |
| 115 | .doc h6:hover a:hover.h span:before { |
| 116 | text-decoration: underline; |
| 117 | } |
| 118 | .doc h1:hover a:visited.h span:before, |
| 119 | .doc h2:hover a:visited.h span:before, |
| 120 | .doc h3:hover a:visited.h span:before, |
| 121 | .doc h4:hover a:visited.h span:before, |
| 122 | .doc h5:hover a:visited.h span:before, |
| 123 | .doc h6:hover a:visited.h span:before { |
| 124 | color: #AAA; |
| 125 | } |
| Shawn Pearce | a3e0e28 | 2015-02-12 13:57:54 -0800 | [diff] [blame] | 126 | .doc ul, .doc ol { |
| 127 | margin: 10px 10px 10px 30px; |
| 128 | padding: 0; |
| 129 | } |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 130 | .doc ul { |
| 131 | list-style-type: disc; |
| 132 | } |
| 133 | .doc ol { |
| 134 | list-style-type: decimal; |
| 135 | } |
| Shawn Pearce | a3e0e28 | 2015-02-12 13:57:54 -0800 | [diff] [blame] | 136 | .doc img { |
| 137 | border: 0; |
| Shawn Pearce | f75a2c6 | 2015-02-12 21:39:00 -0800 | [diff] [blame] | 138 | max-width: 100%; |
| Shawn Pearce | a3e0e28 | 2015-02-12 13:57:54 -0800 | [diff] [blame] | 139 | } |
| Shawn Pearce | ee0b06e | 2015-02-13 00:13:01 -0800 | [diff] [blame] | 140 | .doc iframe { |
| 141 | min-width: 100px; |
| 142 | min-height: 30px; |
| 143 | } |
| 144 | iframe.noborder { |
| 145 | border: 0; |
| 146 | } |
| Shawn Pearce | 73e3453 | 2015-02-12 16:27:54 -0800 | [diff] [blame] | 147 | .doc em { |
| 148 | font-weight: normal; |
| 149 | font-style: italic; |
| 150 | } |
| 151 | .doc strong { |
| 152 | font-weight: bold; |
| 153 | color: inherit; |
| 154 | } |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 155 | .doc p { |
| 156 | margin: 10px 0; |
| 157 | } |
| Shawn Pearce | 1190ca6 | 2016-05-21 18:52:16 -0700 | [diff] [blame] | 158 | .doc blockquote { |
| 159 | background-color: #fffde7; |
| 160 | border-left: 2px solid #fab700; |
| 161 | padding: 2px 10px 2px 10px; |
| 162 | } |
| Shawn Pearce | a3e0e28 | 2015-02-12 13:57:54 -0800 | [diff] [blame] | 163 | .doc pre { |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 164 | padding: 12px; |
| 165 | font-size: 10pt; |
| 166 | background-color: #fafafa; |
| 167 | border: 1px solid #ccc; |
| 168 | overflow-x: auto; |
| Shawn Pearce | a3e0e28 | 2015-02-12 13:57:54 -0800 | [diff] [blame] | 169 | } |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 170 | .doc code { |
| 171 | padding: 2px 4px; |
| 172 | background-color: #F5F5F5; |
| 173 | border: transparent; |
| 174 | border-radius: 4px; |
| Shawn Pearce | a3e0e28 | 2015-02-12 13:57:54 -0800 | [diff] [blame] | 175 | } |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 176 | .doc .code { |
| Andrew Bonventre | 0ffb282 | 2015-09-16 15:28:02 -0400 | [diff] [blame] | 177 | font-family: 'Source Code Pro', monospace; |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 178 | } |
| Shawn Pearce | a3e0e28 | 2015-02-12 13:57:54 -0800 | [diff] [blame] | 179 | .doc dl dt { |
| 180 | margin-top: 1em; |
| 181 | } |
| Shawn Pearce | a3e0e28 | 2015-02-12 13:57:54 -0800 | [diff] [blame] | 182 | .doc table { |
| 183 | border-collapse: collapse; |
| 184 | border-spacing: 0; |
| 185 | } |
| Shawn Pearce | 73e3453 | 2015-02-12 16:27:54 -0800 | [diff] [blame] | 186 | .doc th { |
| 187 | text-align: center; |
| 188 | } |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 189 | .doc th, |
| 190 | .doc td { |
| Shawn Pearce | a3e0e28 | 2015-02-12 13:57:54 -0800 | [diff] [blame] | 191 | border: 1px solid #eee; |
| 192 | padding: 4px 12px; |
| 193 | vertical-align: top; |
| 194 | } |
| 195 | .doc th { |
| 196 | background-color: #f5f5f5; |
| 197 | } |
| Shawn Pearce | 374f184 | 2015-02-10 15:36:54 -0800 | [diff] [blame] | 198 | .toc { |
| 199 | margin-top: 30px; |
| 200 | } |
| 201 | .toc-aux { |
| Shawn Pearce | 374f184 | 2015-02-10 15:36:54 -0800 | [diff] [blame] | 202 | background: #f9f9f9; |
| 203 | border: 1px solid #f2f2f2; |
| Shawn Pearce | 374f184 | 2015-02-10 15:36:54 -0800 | [diff] [blame] | 204 | } |
| 205 | .toc h2 { |
| 206 | margin: 0 0 5px 0; |
| 207 | } |
| 208 | .toc ul { |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 209 | margin: 10px 10px 10px 30px; |
| Shawn Pearce | 374f184 | 2015-02-10 15:36:54 -0800 | [diff] [blame] | 210 | } |
| 211 | .toc ul li { |
| 212 | margin-left: 0px; |
| 213 | list-style: disc; |
| 214 | } |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 215 | .toc ul ul { |
| 216 | margin-top: 0; |
| 217 | margin-bottom: 0; |
| 218 | } |
| Shawn Pearce | 374f184 | 2015-02-10 15:36:54 -0800 | [diff] [blame] | 219 | .toc ul ul li { |
| 220 | list-style: circle; |
| 221 | } |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 222 | .note, |
| 223 | .promo, |
| 224 | .aside { |
| Shawn Pearce | 96f6d5f | 2015-02-06 22:45:58 -0800 | [diff] [blame] | 225 | border: 1px solid; |
| 226 | border-radius: 4px; |
| 227 | margin: 10px 0; |
| 228 | padding: 10px; |
| 229 | } |
| 230 | .note { |
| 231 | background: #fffbe4; |
| 232 | border-color: #f8f6e6; |
| 233 | } |
| 234 | .promo { |
| 235 | background: #f6f9ff; |
| 236 | border-color: #eff2f9; |
| 237 | } |
| 238 | .aside { |
| 239 | background: #f9f9f9; |
| 240 | border-color: #f2f2f2; |
| 241 | } |
| Shawn Pearce | 6f6f1cd | 2015-02-07 00:10:24 -0800 | [diff] [blame] | 242 | .note :first-child, |
| 243 | .promo :first-child, |
| 244 | .aside :first-child { |
| Shawn Pearce | 96f6d5f | 2015-02-06 22:45:58 -0800 | [diff] [blame] | 245 | margin-top: 0; |
| 246 | } |
| 247 | .note p:last-child, |
| 248 | .promo p:last-child, |
| 249 | .aside p:last-child { |
| 250 | margin-bottom: 0; |
| 251 | } |
| Andrew Bonventre | 4434b80 | 2015-09-29 12:27:56 -0400 | [diff] [blame] | 252 | .cols { |
| 253 | margin: 0 -1.533%; |
| 254 | width: 103.067%; |
| 255 | } |
| Shawn Pearce | ecddc61 | 2015-02-20 22:09:47 -0800 | [diff] [blame] | 256 | .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, |
| 257 | .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 { |
| Andrew Bonventre | 42b7a67 | 2015-09-21 13:13:30 -0400 | [diff] [blame] | 258 | display: inline-block; |
| Andrew Bonventre | 4434b80 | 2015-09-29 12:27:56 -0400 | [diff] [blame] | 259 | margin: 0 1.488% 20px; |
| Andrew Bonventre | 42b7a67 | 2015-09-21 13:13:30 -0400 | [diff] [blame] | 260 | vertical-align: top; |
| Shawn Pearce | 6f6f1cd | 2015-02-07 00:10:24 -0800 | [diff] [blame] | 261 | } |
| Andrew Bonventre | 4434b80 | 2015-09-29 12:27:56 -0400 | [diff] [blame] | 262 | .cols h1, .cols h2, .cols h3, .cols h4, .cols h5, .cols h6 { |
| 263 | margin: .67em 0; |
| 264 | } |
| Shawn Pearce | ecddc61 | 2015-02-20 22:09:47 -0800 | [diff] [blame] | 265 | .col-1 { width: 5.357%; } |
| 266 | .col-2 { width: 13.690%; } |
| 267 | .col-3 { width: 22.024%; } |
| 268 | .col-4 { width: 30.357%; } |
| 269 | .col-5 { width: 38.690%; } |
| 270 | .col-6 { width: 47.024%; } |
| 271 | .col-7 { width: 55.357%; } |
| 272 | .col-8 { width: 63.690%; } |
| 273 | .col-9 { width: 72.024%; } |
| 274 | .col-10 { width: 80.357%; } |
| 275 | .col-11 { width: 88.690%; } |
| 276 | .col-12 { width: 97.024%; } |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 277 | .cols hr { width: 80%; } |