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