comparison mercurial/templates/static/style-paper.css @ 19430:5ec5097b4c0f

hgweb: add line wrapping switch to file source view This uses classList property, which is well-supported now: both Chromium 8.0+, Firefox 3.6+ and Opera 11.5+ support it, as well as relatively modern versions of other browsers.
author Alexander Plavin <me@aplavin.ru>
date Fri, 12 Jul 2013 15:58:13 +0400
parents 41c4bdd1d585
children b8ecc3830c89
comparison
equal deleted inserted replaced
19429:c8490dcc5fb3 19430:5ec5097b4c0f
212 .sourcelines { 212 .sourcelines {
213 font-size: 90%; 213 font-size: 90%;
214 position: relative; 214 position: relative;
215 } 215 }
216 216
217 .wrap > span {
218 white-space: pre-wrap;
219 }
220
221 .linewraptoggle {
222 float: right;
223 }
224
217 .sourcelines > span { 225 .sourcelines > span {
218 display: inline-block; 226 display: inline-block;
219 width: 100%; 227 width: 100%;
220 padding: 1px 0px; 228 padding: 1px 0px;
221 white-space: pre-wrap;
222 counter-increment: lineno; 229 counter-increment: lineno;
223 } 230 }
224 231
225 .sourcelines > span:before { 232 .sourcelines > span:before {
226 -moz-user-select: -moz-none; 233 -moz-user-select: -moz-none;