@appscode/design-system 2.17.53 → 2.17.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "2.17.53",
3
+ "version": "2.17.55",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -34,7 +34,7 @@
34
34
  @import "transitions";
35
35
  @import "steps";
36
36
  @import "platform-design";
37
-
37
+ @import "lightweight-editor";
38
38
  // @import "pricing-table";
39
39
  // @import "overview-info";
40
40
  // @import "overview-page"
@@ -0,0 +1,76 @@
1
+ .lightweight-editor {
2
+ // border: 1px solid var(--border-color, #ddd);
3
+ border-radius: 4px;
4
+ overflow: hidden;
5
+ font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
6
+
7
+ :deep(.cm-editor) {
8
+ height: 100%;
9
+
10
+ &.cm-focused {
11
+ outline: none;
12
+ border: none;
13
+ }
14
+ }
15
+
16
+ :deep(.cm-content) {
17
+ padding: 8px;
18
+ min-height: 100%;
19
+ }
20
+
21
+ :deep(.cm-gutter) {
22
+ background-color: var(--gutter-bg, #f8f9fa);
23
+ border-right: 1px solid var(--border-color, #e9ecef);
24
+ }
25
+
26
+ :deep(.cm-lineNumbers) {
27
+ color: var(--line-numbers-color, #6c757d);
28
+ font-size: 12px;
29
+ }
30
+
31
+ :deep(.cm-foldGutter) {
32
+ width: 16px;
33
+ }
34
+
35
+ :deep(.cm-diagnostic) {
36
+ padding: 2px 4px;
37
+ border-radius: 2px;
38
+
39
+ &.cm-diagnostic-error {
40
+ background-color: rgba(220, 53, 69, 0.1);
41
+ border-left: 3px solid #dc3545;
42
+ }
43
+
44
+ &.cm-diagnostic-warning {
45
+ background-color: rgba(255, 193, 7, 0.1);
46
+ border-left: 3px solid #ffc107;
47
+ }
48
+ }
49
+
50
+ // Red zigzag underlines for errors
51
+ :deep(.cm-lintRange-error) {
52
+ background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, #dc3545 2px, #dc3545 4px);
53
+ background-position: bottom;
54
+ background-repeat: repeat-x;
55
+ background-size: 6px 3px;
56
+ border-bottom: 2px solid transparent;
57
+ text-decoration: none;
58
+ }
59
+
60
+ // Yellow zigzag underlines for warnings
61
+ :deep(.cm-lintRange-warning) {
62
+ background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, #ffc107 2px, #ffc107 4px);
63
+ background-position: bottom;
64
+ background-repeat: repeat-x;
65
+ background-size: 6px 3px;
66
+ border-bottom: 2px solid transparent;
67
+ text-decoration: none;
68
+ }
69
+
70
+ :deep(.cm-search) {
71
+ background-color: var(--search-bg, #fff);
72
+ border: 1px solid var(--border-color, #ddd);
73
+ border-radius: 4px;
74
+ padding: 4px;
75
+ }
76
+ }
@@ -26,7 +26,7 @@
26
26
  }
27
27
  .ac-button {
28
28
  &.is-white {
29
- margin-right: -10px;
29
+ margin-right: -9px;
30
30
  }
31
31
  }
32
32