-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathblocks.scss
More file actions
217 lines (208 loc) · 4.5 KB
/
blocks.scss
File metadata and controls
217 lines (208 loc) · 4.5 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
@import url(http://fonts.googleapis.com/css?family=Source+Code+Pro:400,700);
body {
background-color: gray;
}
.scriptingArea,
.draggy,
.blockArea {
font-family:'Source Code Pro';
color:white;
white-space: nowrap;
padding-top: 20px;
/* Don't let text to "wrap" to a new line (blocks would look ugly that way) */
-webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
user-select: none; /* Likely future */
cursor: default;
}
.draggy {
position:absolute;
padding: 0;
margin: 0;
}
.script {
margin: 0;
}
.script-input {
font-family:'Source Code Pro';
padding:0 5px;
min-width: 25px;
min-height: 20px;
border-radius:999px;
border:none;
outline:none;
background-color:white;
color: black;
display: inline-block;
text-align: center;
cursor: text;
z-index: 100;
}
.hat {
display:table;
/* Using "block" would result in 100% width, and "inline-block" would result in everything on same line */
background:#C6E44D;
padding:5px 10px;
position:relative;
border-radius:0px 5px 5px 0px;
}
.hat:after {
background:#C6E44D;
display:block;
content:' ';
width:80%;
height:100%;
position:absolute;
top:-45%;
left:0px;
border-radius:50%;
z-index:-1;
}
.stack {
display:table;
background:#914DE4;
padding:5px 10px;
position:relative;
border-radius:5px;
/*border-left: 1px solid #A9A9A9;*/
/* Replacing borders with box-shadows allows curving around border-radius */
box-shadow: -1px 0px 0px #A9A9A9;
}
.scriptingArea {
* + .stack,
* + .c-wrapper > .c-header {
border-top-left-radius: 0px;
}
.stack:not(:last-child),
.c-wrapper:not(:first-child) > .c-header,
.c-wrapper:not(:last-child) > .c-footer { // not 100% sure if this works 100% of the time
border-bottom-left-radius: 0px;
}
}
.c-wrapper {
padding:0px;
display:table;
/*border-left: 1px solid #A9A9A9;*/
}
.c-header,
.c-footer {
background:#E44D4D;
padding:5px 10px;
position:relative;
border-radius:5px;
min-width:40px;
min-height:18px;
}
.c-header {
border-bottom-left-radius:0px;
box-shadow: -1px -1px 0px #A9A9A9;
display:table;
}
.c-footer {
border-top-left-radius:0px;
margin-bottom:1px;
max-height: 18px;
display:block;
box-shadow: -1px 1px 0px #A9A9A9;
}
.c-content {
background:#E44D4D;
padding:6px 0px 6px 25px;
margin:-6px 0px -6px 0px;
width:4px;
overflow-x: visible;
min-height: 30px;
position:relative; /* For z-index (appear on top of .c-header, which in turn puts it on top of the extra border-bottom when attaching a block) */
box-shadow: -1px 0px 0px #A9A9A9;
}
.c-quicktext {
background: #914DE4;
padding: 7px;
font-size: 10pt;
border-radius: 100%;
cursor: pointer;
opacity: .7;
position: relative;
top: -20px;
right: -25px;
display: none;
&:hover {
opacity: .9;
}
}
.scriptingArea .c-content:empty + .c-footer .c-quicktext {
display: inline-block;
}
.drop-area {
border-bottom: 5px solid white;
}
.c-wrapper.zebra > li, .c-wrapper.zebra > ul {
background:#F45D5D;
}
.highlightBlock {
position: relative;
z-index: 1;
}
.highlightBlock::after {
content: "";
display: block;
background: gold;
border-radius: 5px;
position: absolute;
top: -3px;
right: -3px;
bottom: -3px;
left: -3px;
z-index: -1;
}
.remove-attr {
display:inline-block;
width:0px;
height:0px;
border:7px solid transparent;
border-right-color:black;
margin-left:-4px;
margin-right:2px;
cursor:pointer;
}
.add-attr {
display:inline-block;
width:0px;
height:0px;
border:7px solid transparent;
border-left-color:black;
margin-left:2px;
margin-right:-4px;
cursor:pointer;
}
.attr-holder {
background-color: orange;
border-radius: 10px;
box-sizing: border-box;
display: inline-flex;
padding: 3px;
margin-right: 6px;
.attr-dropdown,
.attr-input {
border-radius: 10px;
min-width: 30px;
display: inline-block;
margin:0px 3px;
padding: 0px 4px;
outline:none;
&:empty {
content: ' ';
}
}
.attr-input {
background-color: white;
color: black;
min-height: 20px;
}
.attr-dropdown {
background-color: white;
color:black;
cursor:text;
}
}