OLD | NEW |
(Empty) | |
| 1 /** |
| 2 * Copyright 2015 The Chromium Authors. 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 |
| 17 /* This file is cloned from |
| 18 * https://gerrit.googlesource.com/gitiles/+/master/gitiles-servlet/src/main/res
ources/com/google/gitiles/static/doc.css |
| 19 */ |
| 20 |
| 21 html.doc-page, .doc { |
| 22 font-family: arial,sans-serif; |
| 23 } |
| 24 .doc-page body { |
| 25 margin: 0; |
| 26 } |
| 27 |
| 28 .banner { |
| 29 min-height: 44px; |
| 30 margin: 0; |
| 31 padding: 14px 15px 13px; |
| 32 border-bottom: 1px solid #eee; |
| 33 } |
| 34 .banner h1, .banner h2 { |
| 35 float: left; |
| 36 font-size: 32px; |
| 37 font-weight: 300; |
| 38 line-height: 1.375; |
| 39 margin: 0; |
| 40 } |
| 41 .banner img { |
| 42 margin: -1px 10px -4px 0px; |
| 43 vertical-align: middle; |
| 44 } |
| 45 .banner a, .banner a:hover { |
| 46 text-decoration: none; |
| 47 } |
| 48 .banner, .banner a:link, .banner a:visited { |
| 49 color: #777; |
| 50 } |
| 51 .banner h2:before { |
| 52 border-right: 1px solid #eee; |
| 53 content: ""; |
| 54 float: left; |
| 55 height: 44px; |
| 56 margin: 0 12px 0 14px; |
| 57 } |
| 58 |
| 59 .nav, .footer-line { |
| 60 color: #333; |
| 61 padding: 0 15px; |
| 62 background: #eee; |
| 63 } |
| 64 .nav ul { |
| 65 list-style: none; |
| 66 margin: 0; |
| 67 padding: 6px 0; |
| 68 } |
| 69 .nav li { |
| 70 float: left; |
| 71 font-size: 14px; |
| 72 line-height: 1.43; |
| 73 margin: 0 20px 0 0; |
| 74 padding: 6px 0; |
| 75 } |
| 76 .nav li a, .footer-line a { |
| 77 color: #7a7af9; |
| 78 } |
| 79 .nav li a:hover { |
| 80 color: #0000f9; |
| 81 } |
| 82 .banner:after, .nav ul:after, .cols:after { |
| 83 clear: both; |
| 84 content: ""; |
| 85 display: block; |
| 86 } |
| 87 |
| 88 .nav-aux, .doc { |
| 89 max-width: 978px; |
| 90 } |
| 91 .nav-aux, .doc-page .doc { |
| 92 margin: auto; |
| 93 } |
| 94 |
| 95 .footer-break { |
| 96 clear: both; |
| 97 margin: 120px 0 0 0; |
| 98 } |
| 99 .footer-line { |
| 100 font-size: 13px; |
| 101 line-height: 30px; |
| 102 height: 30px; |
| 103 } |
| 104 .footer-line ul { |
| 105 list-style: none; |
| 106 margin: 0; |
| 107 padding: 0; |
| 108 } |
| 109 .footer-line li { |
| 110 display: inline; |
| 111 } |
| 112 .footer-line li+li:before { |
| 113 content: "ยท"; |
| 114 padding: 0 5px; |
| 115 } |
| 116 .footer-line .nav-aux { |
| 117 position: relative; |
| 118 } |
| 119 .gitiles-att { |
| 120 color: #A0ADCC; |
| 121 position: absolute; |
| 122 top: 0; |
| 123 right: 0; |
| 124 } |
| 125 .gitiles-att a { |
| 126 font-style: italic; |
| 127 } |
| 128 |
| 129 /* Markdown rendered in /+doc/ or tree view page . */ |
| 130 |
| 131 .doc { |
| 132 color: #444; |
| 133 font-size: 13px; |
| 134 line-height: normal; |
| 135 } |
| 136 |
| 137 .doc h1, .doc h2, .doc h3, .doc h4, .doc h5, .doc h6 { |
| 138 font-family: "open sans",arial,sans-serif; |
| 139 font-weight: bold; |
| 140 color: #444; |
| 141 height: auto; |
| 142 white-space: normal; |
| 143 overflow: visible; |
| 144 margin: 0.67em 0 0.67em 0; |
| 145 } |
| 146 .doc h1 { |
| 147 font-size: 20px; |
| 148 margin: 0.67em 0 0.67em 0; |
| 149 } |
| 150 .doc h2 { |
| 151 font-size: 16px; |
| 152 margin: 0.67em 0 0.67em 0; |
| 153 } |
| 154 .doc h3 { |
| 155 font-size: 14px; |
| 156 margin: 0.67em 0 0.67em 0; |
| 157 } |
| 158 .doc h4 { |
| 159 font-size: 13px; |
| 160 margin: 1em 0 1em 0; |
| 161 } |
| 162 .doc h5 { |
| 163 font-size: 13px; |
| 164 margin: 1.3em 0 1.3em 0; |
| 165 } |
| 166 .doc h6 { |
| 167 font-size: 13px; |
| 168 margin: 1.6em 0 1.6em 0; |
| 169 } |
| 170 |
| 171 .doc a { text-decoration: none; } |
| 172 .doc a:link { color: #245dc1; } |
| 173 .doc a:visited { color: #7759ae; } |
| 174 .doc a:hover { text-decoration: underline; } |
| 175 |
| 176 .doc ul, .doc ol { |
| 177 margin: 10px 10px 10px 30px; |
| 178 padding: 0; |
| 179 } |
| 180 |
| 181 .doc img { |
| 182 border: 0; |
| 183 max-width: 100%; |
| 184 } |
| 185 .doc iframe { |
| 186 min-width: 100px; |
| 187 min-height: 30px; |
| 188 } |
| 189 iframe.noborder { |
| 190 border: 0; |
| 191 } |
| 192 |
| 193 .doc em { |
| 194 font-weight: normal; |
| 195 font-style: italic; |
| 196 } |
| 197 .doc strong { |
| 198 font-weight: bold; |
| 199 color: inherit; |
| 200 } |
| 201 |
| 202 .doc pre { |
| 203 border: 1px solid silver; |
| 204 background: #fafafa; |
| 205 margin: 0 2em 0 2em; |
| 206 padding: 2px; |
| 207 } |
| 208 .doc code, .doc .code { |
| 209 color: #060; |
| 210 font: 13px/1.54 "courier new",courier,monospace; |
| 211 } |
| 212 |
| 213 .doc dl dt { |
| 214 margin-top: 1em; |
| 215 } |
| 216 |
| 217 .doc table { |
| 218 border-collapse: collapse; |
| 219 border-spacing: 0; |
| 220 } |
| 221 .doc th { |
| 222 text-align: center; |
| 223 } |
| 224 .doc th, .doc td { |
| 225 border: 1px solid #eee; |
| 226 padding: 4px 12px; |
| 227 vertical-align: top; |
| 228 } |
| 229 .doc th { |
| 230 background-color: #f5f5f5; |
| 231 } |
| 232 |
| 233 .toc { |
| 234 margin-top: 30px; |
| 235 } |
| 236 .toc-aux { |
| 237 padding: 2px; |
| 238 background: #f9f9f9; |
| 239 border: 1px solid #f2f2f2; |
| 240 border-radius: 4px; |
| 241 } |
| 242 .toc h2 { |
| 243 margin: 0 0 5px 0; |
| 244 } |
| 245 .toc ul { |
| 246 margin: 0 0 0 30px; |
| 247 } |
| 248 .toc ul li { |
| 249 margin-left: 0px; |
| 250 list-style: disc; |
| 251 } |
| 252 .toc ul ul li { |
| 253 list-style: circle; |
| 254 } |
| 255 |
| 256 .note, .promo, .aside { |
| 257 border: 1px solid; |
| 258 border-radius: 4px; |
| 259 margin: 10px 0; |
| 260 padding: 10px; |
| 261 } |
| 262 .note { |
| 263 background: #fffbe4; |
| 264 border-color: #f8f6e6; |
| 265 } |
| 266 .promo { |
| 267 background: #f6f9ff; |
| 268 border-color: #eff2f9; |
| 269 } |
| 270 .aside { |
| 271 background: #f9f9f9; |
| 272 border-color: #f2f2f2; |
| 273 } |
| 274 .note :first-child, |
| 275 .promo :first-child, |
| 276 .aside :first-child { |
| 277 margin-top: 0; |
| 278 } |
| 279 .note p:last-child, |
| 280 .promo p:last-child, |
| 281 .aside p:last-child { |
| 282 margin-bottom: 0; |
| 283 } |
| 284 |
| 285 .cols { |
| 286 margin: 0 -1.533%; |
| 287 width: 103.067%; |
| 288 } |
| 289 .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, |
| 290 .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 { |
| 291 float: left; |
| 292 margin: 0 1.488% 20px; |
| 293 } |
| 294 .col-1 { width: 5.357%; } |
| 295 .col-2 { width: 13.690%; } |
| 296 .col-3 { width: 22.024%; } |
| 297 .col-4 { width: 30.357%; } |
| 298 .col-5 { width: 38.690%; } |
| 299 .col-6 { width: 47.024%; } |
| 300 .col-7 { width: 55.357%; } |
| 301 .col-8 { width: 63.690%; } |
| 302 .col-9 { width: 72.024%; } |
| 303 .col-10 { width: 80.357%; } |
| 304 .col-11 { width: 88.690%; } |
| 305 .col-12 { width: 97.024%; } |
| 306 .cols hr { |
| 307 width: 80%; |
| 308 } |
OLD | NEW |