Browse Source

correctifs mineurs css

idleman 5 years ago
parent
commit
02e22de0cd
2 changed files with 42 additions and 9 deletions
  1. 32 0
      plugin/hackpoint/css/main.css
  2. 10 9
      plugin/hackpoint/page.sheet.sketch.php

+ 32 - 0
plugin/hackpoint/css/main.css

@@ -48,7 +48,10 @@
 .page-sheet-sketch .cm-s-monokai.CodeMirror {
 	background: #2e363e;
 }
+.page-sheet-sketch .CodeMirror {
 
+  height: auto;
+}
 
 
 .page-sheet-sketch .container-fluid{
@@ -77,6 +80,34 @@
 	min-height: 100%;
 	position:relative;
 }
+#resources-toolbar .resources-menu-container{
+	padding-bottom: 40px;
+    height: 100%;
+    overflow: auto;
+}
+
+
+
+/* width */
+#resources-toolbar .resources-menu-container::-webkit-scrollbar,#sketch-editor::-webkit-scrollbar {
+  width: 8px;
+}
+
+/* Track */
+#resources-toolbar .resources-menu-container::-webkit-scrollbar-track,#sketch-editor::-webkit-scrollbar-track {
+  background: #2b2f35; 
+}
+ 
+/* Handle */
+#resources-toolbar .resources-menu-container::-webkit-scrollbar-thumb,#sketch-editor::-webkit-scrollbar-thumb {
+  background: #101317; 
+}
+
+/* Handle on hover */
+#resources-toolbar .resources-menu-container::-webkit-scrollbar-thumb:hover,#sketch-editor::-webkit-scrollbar-thumb:hover {
+  background: #14181d; 
+}
+
 #sketch-workspace{
 	flex: 1;
 	padding:15px;
@@ -212,6 +243,7 @@ div.hackpoint-type-image[data-type="dropzone"] > div{
 
 #sketch-editor{
 	overflow: auto;
+	padding-bottom: 80px;
 	height: 100%;
 	box-sizing: border-box;
 }

+ 10 - 9
plugin/hackpoint/page.sheet.sketch.php

@@ -14,15 +14,16 @@ if(!$sketch) throw new Exception("Sketch supprimé ou inexistant");
 
 		<!-- resources bar -->
 		<div id="resources-toolbar">
-			<ul id="resources" data-entity-search="hackpoint_resource_search">
-				<li data-id="{{id}}" class="hidden" onclick="hackpoint_resource_edit(this);">
-					<i class="far fa-trash-alt delete-resource" onclick="hackpoint_resource_delete(this,event)" ></i>
-					<i class="{{type.icon}}"></i>
-					<h3 title="Double cliquer pour modifier" ondblclick="hackpoint_resource_title_edit(event,this);"><span>{{label}}</span><input type="text" value="{{label}}" class="hidden"></h3>
-					<small style="background:{{type.background}};color:{{type.color}}">{{type.label}}</small>
-				</li>
-			</ul>
-
+			<div class="resources-menu-container">
+				<ul id="resources" data-entity-search="hackpoint_resource_search">
+					<li data-id="{{id}}" class="hidden" onclick="hackpoint_resource_edit(this);">
+						<i class="far fa-trash-alt delete-resource" onclick="hackpoint_resource_delete(this,event)" ></i>
+						<i class="{{type.icon}}"></i>
+						<h3 title="Double cliquer pour modifier" ondblclick="hackpoint_resource_title_edit(event,this);"><span>{{label}}</span><input type="text" value="{{label}}" class="hidden"></h3>
+						<small style="background:{{type.background}};color:{{type.color}}">{{type.label}}</small>
+					</li>
+				</ul>
+			</div>
 			<!--<a href="index.php?module=hackpoint&page=sheet.resource" class="btn btn-dark btn-add-resource"><i class="fas fa-plus"></i></a>-->
 
 			<div class="btn-group dropright w-100 resource-dropdown">