mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 01:28:00 +01:00
Centralize break-all CSS property
So that both asset viewer and "My filters" inherit the property for filter list rendering.
This commit is contained in:
parent
bc700e691c
commit
17886abcda
3 changed files with 6 additions and 7 deletions
|
@ -30,7 +30,7 @@
|
|||
<button id="exportUserFiltersToFile" class="custom iconifiable" type="button"><span class="fa"></span><span data-i18n="1pExport"></span></button>
|
||||
</p>
|
||||
</div>
|
||||
<div id="userFilters" class="codeMirrorContainer codeMirrorFillVertical" spellcheck="false"></div>
|
||||
<div id="userFilters" class="codeMirrorContainer codeMirrorFillVertical codeMirrorBreakAll" spellcheck="false"></div>
|
||||
<div class="hidden">
|
||||
<input id="importFilePicker" type="file" accept="text/plain">
|
||||
</div>
|
||||
|
|
|
@ -21,16 +21,11 @@ body {
|
|||
height: 100vh;
|
||||
width: 100vw;
|
||||
}
|
||||
|
||||
/* https://github.com/uBlockOrigin/uBlock-issues/issues/292 */
|
||||
.CodeMirror-wrap pre {
|
||||
word-break: break-all;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="content" class="codeMirrorContainer"></div>
|
||||
<div id="content" class="codeMirrorContainer codeMirrorBreakAll"></div>
|
||||
|
||||
<script src="lib/codemirror/lib/codemirror.js"></script>
|
||||
<script src="lib/codemirror/addon/display/panel.js"></script>
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
height: 100%;
|
||||
}
|
||||
|
||||
.codeMirrorContainer.codeMirrorBreakAll .CodeMirror-wrap pre {
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.cm-s-default .cm-comment { color: #777; }
|
||||
.cm-directive { color: #333; font-weight: bold; }
|
||||
.cm-staticext { color: #008; }
|
||||
|
|
Loading…
Reference in a new issue