From 137f4369c2e1194da3bb733193b8636f7ae4c028 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Sun, 20 Oct 2019 23:21:17 +0200 Subject: include CodeMirror in edit page - add npm prerequisite - add codemirror through npm - add webpack trough npm to build the js bundles - add first codemirror enhenced textarea --- assets/css/edit.css | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'assets/css/edit.css') diff --git a/assets/css/edit.css b/assets/css/edit.css index 640ee1a..85b1e07 100644 --- a/assets/css/edit.css +++ b/assets/css/edit.css @@ -116,6 +116,7 @@ body { left: 0px; width: 100%; height: 100%; + display: none; } .checkboxtab @@ -138,15 +139,15 @@ body { color: #7b97b9; } -.checkboxtab:checked ~ label +.checkboxtab:checked ~label { border: solid 1px; background: white; } -.checkboxtab:checked ~ .content +.checkboxtab:checked ~.content { - z-index: 1; + display: block; } @@ -372,7 +373,10 @@ div#thumbnail img { padding: 2%; } - +/* Custom CodeMirror CSS */ +.CodeMirror { + height: 100% !important; +} @media (max-width: 600px) { -- cgit v1.2.3 From 088b5ce3a8bd61b2031ae57be7d48973a38ee16f Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Mon, 21 Oct 2019 21:47:24 +0200 Subject: add all other highlited editors --- assets/css/edit.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'assets/css/edit.css') diff --git a/assets/css/edit.css b/assets/css/edit.css index 85b1e07..7b881df 100644 --- a/assets/css/edit.css +++ b/assets/css/edit.css @@ -116,7 +116,7 @@ body { left: 0px; width: 100%; height: 100%; - display: none; + visibility: hidden; } .checkboxtab @@ -147,7 +147,7 @@ body { .checkboxtab:checked ~.content { - display: block; + visibility: visible; } @@ -376,6 +376,7 @@ div#thumbnail img { /* Custom CodeMirror CSS */ .CodeMirror { height: 100% !important; + cursor: text; } -- cgit v1.2.3