forked from mapbox/mapbox-studio-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsource.css
112 lines (90 loc) · 2.56 KB
/
source.css
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
107
108
109
110
111
/* Base candidate */
/* Layout
------------------------------------------------------- */
#source-ui {
box-shadow: rgba(0,0,0,0.1) -2px 0px 0px;
}
/* Data list pane
------------------------------------------------------- */
.offpane-button { margin-left: 5px;}
.layer-content {
top: 90px;
}
[draggable='true'] {
cursor: -webkit-grab;
cursor: -moz-grab;
cursor: grab;
}
/* Sortable states */
.sortable-dragging {
display:block;
position:relative;
background:#444;
border:1px solid rgba(0,0,0,0.1);
border-radius:4px;
cursor: -webkit-grabbing;
cursor: -moz-grabbing;
cursor: grabbing;
}
.sortable-placeholder {
background: rgba(0,0,0,.25);
padding: 15px;
border-radius: 0;
}
.empty-state.visible {
display: block;
padding: 10px;
position: relative;
}
/* Editor pane
------------------------------------------------------- */
#layers .disable-mask { height: 50px; }
.editor.pane {
opacity: 0;
z-index: -1;
}
.editor.pane.target {
opacity: 1;
z-index: 100;
}
/* Panes
------------------------------------------------------- */
input.toggle-conf:checked ~ nav label.toggle-conf,
input.toggle-fields:checked ~ nav label.toggle-fields,
input.toggle-sql:checked ~ nav label.toggle-sql {
background: #404040;
}
.pane.target div.conf,
.pane.target div.fields { display:none; }
input.toggle-conf:checked ~ div.conf { display: block; }
input.toggle-fields:checked ~ div.fields { display: block; }
/* Fields pane
------------------------------------------------------- */
section:not(.field) + .empty-state { margin: 20px; display: block;}
/* SQL pane
------------------------------------------------------- */
.editor div.sql {
position:absolute;
top:60px; bottom:0px; width:100%;
display: block;
visibility: hidden;
}
.editor .CodeMirror { top: 50px; }
.CodeMirror-linenumber { color: rgba(255,255,255,.5);}
input.toggle-sql:checked ~ div.sql { visibility:visible; }
input.toggle-sql:checked ~ div.sql .CodeMirror { visibility:visible; }
/* XRay toggle
------------------------------------------------------- */
.xrayswatch,
.xrayinspector {
box-shadow:inset 0px 0px 0px 2px rgba(0,0,0,0.2);
cursor: pointer;
}
.xrayswatch:not(.disabled)::before { content: '';}
.xrayswatch.disabled { background-color:rgba(0,0,0,0.1) !important; }
.xrayswatch.disabled::before { background-color:rgba(0,0,0,0.1) !important; }
.xrayinspector::before { visibility:hidden; }
.xrayinspector:hover::before { visibility:visible; }
.xrayinspector.active::before { visibility:visible; }
/* Miscellaneous
------------------------------------------------------- */