lexgui 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/lexgui.css CHANGED
@@ -2729,41 +2729,31 @@ ul.lexassetscontent {
2729
2729
  }
2730
2730
 
2731
2731
  .lexcodegutter {
2732
- width: 32px;
2733
- height: calc(100% - 70px);
2732
+ width: 48px;
2733
+ height: calc(100% - 62px);
2734
2734
  background-color: var(--global-branch-darker);
2735
- margin-top: 24px;
2736
- text-align: center;
2735
+ margin-top: 26px;
2737
2736
  overflow: hidden;
2738
- -webkit-user-select: none; /* Safari 3.1+ */
2739
- -moz-user-select: none; /* Firefox 2+ */
2740
- -ms-user-select: none; /* IE 10+ */
2741
- user-select: none; /* Standard syntax */
2742
- font-family: 'Inconsolata', monospace;
2743
- }
2744
-
2745
- .lexcodegutter span {
2746
- width: 100%;
2747
- display: block;
2748
- height: 16px;
2749
- margin-top: 4px;
2750
- font-size: 13px;
2751
- color: #888;
2752
- text-align-last: auto;
2753
- line-height: 22px;
2737
+ position: absolute;
2754
2738
  }
2755
2739
 
2756
2740
  .lexcodeeditor .codetabsarea {
2741
+ height: calc( 100% - 60px ) !important;
2757
2742
  background-color: var(--global-branch-darker);
2743
+ overflow: scroll;
2744
+ }
2745
+
2746
+ .lexcodeeditor .codetabsarea::-webkit-scrollbar {
2747
+ display: none;
2758
2748
  }
2759
2749
 
2760
2750
  .lexcodeeditor .codetabsarea.with-vscrollbar {
2761
2751
  width: calc( 100% - 10px ) !important;
2762
2752
  }
2763
2753
 
2764
- .lexcodeeditor .codetabsarea.with-hscrollbar {
2765
- height: calc( 100% - 40px ) !important;
2766
- }
2754
+ /* .lexcodeeditor .codetabsarea.with-hscrollbar {
2755
+ height: calc( 100% - 72px ) !important;
2756
+ } */
2767
2757
 
2768
2758
  .lexcodeeditor .codetabsarea.dragging {
2769
2759
  background-color: var(--global-color-secondary);
@@ -2772,8 +2762,8 @@ ul.lexassetscontent {
2772
2762
  .lexcodeeditor .code {
2773
2763
  cursor: text;
2774
2764
  font-size: 16px;
2775
- overflow: hidden;
2776
2765
  padding-right: 6px;
2766
+ position: relative;
2777
2767
  }
2778
2768
 
2779
2769
  .codechar {
@@ -2790,7 +2780,6 @@ ul.lexassetscontent {
2790
2780
  -webkit-text-size-adjust: 100%;
2791
2781
  cursor: text;
2792
2782
  box-sizing: border-box;
2793
- padding: 0 4px;
2794
2783
  border-radius: 0;
2795
2784
  border-width: 0;
2796
2785
  background: transparent;
@@ -2805,9 +2794,12 @@ ul.lexassetscontent {
2805
2794
  position: relative;
2806
2795
  overflow: visible;
2807
2796
  -webkit-tap-highlight-color: transparent;
2808
- z-index: 0 !important;
2809
- pointer-events: none;
2810
2797
  height: 16px;
2798
+ pointer-events: none;
2799
+ }
2800
+
2801
+ .lexcodeeditor pre.active-line {
2802
+ background-color: var(--global-blur-background);
2811
2803
  }
2812
2804
 
2813
2805
  .lexcodeeditor span {
@@ -2822,7 +2814,22 @@ ul.lexassetscontent {
2822
2814
  box-sizing: border-box;
2823
2815
  display: inline-block;
2824
2816
  height: 16px;
2825
- vertical-align: top;
2817
+ }
2818
+
2819
+ pre .line-gutter {
2820
+ color: #888;
2821
+ width: 48px;
2822
+ height: 16px;
2823
+ font-size: 14px;
2824
+ line-height: 22px;
2825
+ text-align: center;
2826
+ -webkit-user-select: none; /* Safari 3.1+ */
2827
+ -moz-user-select: none; /* Firefox 2+ */
2828
+ -ms-user-select: none; /* IE 10+ */
2829
+ user-select: none; /* Standard syntax */
2830
+ position: sticky;
2831
+ left: 0;
2832
+ z-index: 1;
2826
2833
  }
2827
2834
 
2828
2835
  .lexcodeeditor .cursors, .lexcodeeditor .selections {
@@ -2864,31 +2871,23 @@ ul.lexassetscontent {
2864
2871
  }
2865
2872
 
2866
2873
  .lexcodescrollbar {
2874
+ width: 10px;
2875
+ height: calc(100% - 62px);
2867
2876
  position: absolute;
2868
- background-color: var(--global-branch-darker);
2869
- filter: brightness(0.9);
2877
+ background-color: transparent;
2870
2878
  box-sizing: border-box;
2871
2879
  margin: 0;
2872
2880
  padding: 0;
2873
2881
  margin-top: 26px;
2874
2882
  z-index: 1 !important;
2875
2883
  right: 0px;
2876
- width: 10px;
2877
- height: calc(100% - 62px);
2878
2884
  }
2879
2885
 
2880
2886
  .lexcodescrollbar.horizontal {
2881
- position: absolute;
2882
- background-color: var(--global-branch-darker);
2883
- filter: brightness(0.9);
2884
- box-sizing: border-box;
2885
- margin: 0;
2886
- padding: 0;
2887
- z-index: 1 !important;
2887
+ width: calc( 100% - 58px );
2888
+ height: 10px;
2888
2889
  bottom: 36px;
2889
2890
  right: 10px;
2890
- width: calc( 100% - 40px );
2891
- height: 10px;
2892
2891
  }
2893
2892
 
2894
2893
  .lexcodescrollbar.scrollbar-unused {
@@ -2896,7 +2895,7 @@ ul.lexassetscontent {
2896
2895
  }
2897
2896
 
2898
2897
  .lexcodescrollbar div { /* thumb */
2899
- background-color: #bbbbbb57 !important;
2898
+ background-color: #bbbbbb3d !important;
2900
2899
  box-sizing: border-box;
2901
2900
  margin: 0;
2902
2901
  padding: 0;
package/build/lexgui.js CHANGED
@@ -12,7 +12,7 @@ console.warn( 'Script "build/lexgui.js" is depracated and will be removed soon.
12
12
  */
13
13
 
14
14
  var LX = global.LX = {
15
- version: "0.1.16",
15
+ version: "0.1.17",
16
16
  ready: false,
17
17
  components: [], // specific pre-build components
18
18
  signals: {} // events and triggers
@@ -8,7 +8,7 @@
8
8
  */
9
9
 
10
10
  var LX = {
11
- version: "0.1.16",
11
+ version: "0.1.17",
12
12
  ready: false,
13
13
  components: [], // specific pre-build components
14
14
  signals: {} // events and triggers
@@ -24,7 +24,7 @@
24
24
  let area = LX.init();
25
25
 
26
26
  // split main area
27
- var [leftArea, rightArea] = area.split({ sizes:["55%","45%"] });
27
+ var [leftArea, rightArea] = area.split({ sizes:["40%","60%"] });
28
28
 
29
29
  // add canvas to leftArea
30
30
  var canvas = document.createElement('canvas');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lexgui",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "JS library to create web graphical user interfaces",
5
5
  "type": "module",
6
6
  "main": "./build/lexgui.js",