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