mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 15:56:16 -04:00
Fixed CSS for theme highlighting and status bar dropup height
This commit is contained in:
parent
1b3d55f051
commit
f2bd838596
4 changed files with 6 additions and 6 deletions
|
@ -110,7 +110,7 @@
|
||||||
--hl2: #675351;
|
--hl2: #675351;
|
||||||
--hl3: #ffb6b6;
|
--hl3: #ffb6b6;
|
||||||
--hl4: #fcf8e3;
|
--hl4: #fcf8e3;
|
||||||
--hl5: #8de768;
|
--hl5: #38811b;
|
||||||
|
|
||||||
|
|
||||||
/* Scrollbar */
|
/* Scrollbar */
|
||||||
|
|
|
@ -125,9 +125,9 @@
|
||||||
/* Highlighter colours */
|
/* Highlighter colours */
|
||||||
--hl1: var(--base01);
|
--hl1: var(--base01);
|
||||||
--hl2: var(--sol-blue);
|
--hl2: var(--sol-blue);
|
||||||
--hl3: var(--sol-magenta);
|
--hl3: var(--sol-green);
|
||||||
--hl4: var(--sol-yellow);
|
--hl4: var(--sol-yellow);
|
||||||
--hl5: var(--sol-green);
|
--hl5: var(--sol-magenta);
|
||||||
|
|
||||||
|
|
||||||
/* Scrollbar */
|
/* Scrollbar */
|
||||||
|
|
|
@ -127,9 +127,9 @@
|
||||||
/* Highlighter colours */
|
/* Highlighter colours */
|
||||||
--hl1: var(--base1);
|
--hl1: var(--base1);
|
||||||
--hl2: var(--sol-blue);
|
--hl2: var(--sol-blue);
|
||||||
--hl3: var(--sol-magenta);
|
--hl3: var(--sol-green);
|
||||||
--hl4: var(--sol-yellow);
|
--hl4: var(--sol-yellow);
|
||||||
--hl5: var(--sol-green);
|
--hl5: var(--sol-magenta);
|
||||||
|
|
||||||
|
|
||||||
/* Scrollbar */
|
/* Scrollbar */
|
||||||
|
|
|
@ -265,7 +265,7 @@ class StatusBarPanel {
|
||||||
* @param {EditorView} view
|
* @param {EditorView} view
|
||||||
*/
|
*/
|
||||||
updateSizing(view) {
|
updateSizing(view) {
|
||||||
const viewHeight = view.contentDOM.clientHeight;
|
const viewHeight = view.contentDOM.parentNode.clientHeight;
|
||||||
this.dom.querySelectorAll(".cm-status-bar-select-scroll").forEach(
|
this.dom.querySelectorAll(".cm-status-bar-select-scroll").forEach(
|
||||||
el => {
|
el => {
|
||||||
el.style.maxHeight = (viewHeight - 50) + "px";
|
el.style.maxHeight = (viewHeight - 50) + "px";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue