forked from parse-community/parse-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJsonEditor.scss
More file actions
106 lines (93 loc) · 2.14 KB
/
JsonEditor.scss
File metadata and controls
106 lines (93 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
@import 'stylesheets/globals.scss';
.container {
position: relative;
display: inline-block;
width: 100%;
font-family: 'Source Code Pro', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 15px;
line-height: 1.5;
background: $inputBackgroundColor;
}
// Shared text styles
.highlightLayer,
.inputLayer {
padding: 10px;
margin: 0;
border: none;
font-family: inherit;
font-size: inherit;
line-height: inherit;
box-sizing: border-box;
text-align: left;
direction: ltr;
overscroll-behavior: none; // Disable rubber band / bounce effect in Safari
}
// The syntax-highlighted layer (behind, absolutely positioned)
.highlightLayer {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
background: transparent;
color: #555572;
overflow: hidden;
code {
display: block;
font-family: inherit;
font-size: inherit;
line-height: inherit;
white-space: inherit;
word-wrap: inherit;
overflow-wrap: inherit;
}
// Prism token colors (GitHub light theme)
:global {
.token.property {
color: #005cc5; // Blue - JSON keys
}
.token.string {
color: #000000; // Black - string values
}
.token.number {
color: #098658; // Dark green - numbers
}
.token.boolean {
color: #d73a49; // Red - true/false
}
.token.null {
color: #d73a49; // Red - null
}
.token.punctuation {
color: #24292e; // Dark gray - brackets, commas
}
.token.operator {
color: #24292e; // Dark gray - colons
}
}
}
// The editable textarea layer (in normal flow, controls container size)
.inputLayer {
display: block;
width: 100%;
min-width: calc(var(--modal-min-width) * (1 - var(--modal-label-ratio)));
background: transparent;
color: transparent;
caret-color: #333;
resize: both;
outline: none;
min-height: 80px;
height: 200px;
overflow: auto;
&::placeholder {
color: #bbb;
}
}