alchemy-chimera 0.5.4 → 1.0.2
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/CHANGELOG.md +39 -4
- package/assets/scripts/chimera/chimera.js +13 -288
- package/assets/stylesheets/chimera/chimera.scss +451 -0
- package/bootstrap.js +6 -302
- package/config/routes.js +53 -5
- package/controller/00-chimera_controller.js +16 -0
- package/controller/chimera_editor_controller.js +159 -614
- package/controller/chimera_static_controller.js +102 -9
- package/lib/chimera_config.js +138 -163
- package/model/model.js +1 -1
- package/package.json +8 -12
- package/view/chimera/dashboard.hwk +8 -0
- package/view/chimera/editor/index.hwk +20 -0
- package/view/chimera/sidebar.hwk +4 -0
- package/view/chimera/widgets.hwk +8 -0
- package/view/layouts/chimera_base.hwk +15 -0
- package/view/layouts/chimera_basics.hwk +15 -0
- package/view/layouts/chimera_body.hwk +24 -0
- package/assets/scripts/chimera/assoc_field.js +0 -311
- package/assets/scripts/chimera/boolean_field.js +0 -53
- package/assets/scripts/chimera/chimera_field.js +0 -622
- package/assets/scripts/chimera/chimera_field_wrapper.js +0 -558
- package/assets/scripts/chimera/date_field.js +0 -170
- package/assets/scripts/chimera/geopoint_field.js +0 -147
- package/assets/scripts/chimera/medium-button.js +0 -6
- package/assets/scripts/chimera/object_field.js +0 -51
- package/assets/scripts/chimera/page-editor.js +0 -3
- package/assets/scripts/chimera/password_field.js +0 -73
- package/assets/scripts/chimera/schema_field.js +0 -300
- package/assets/scripts/chimera/text_field.js +0 -119
- package/assets/scripts/rome/rome.js +0 -4978
- package/assets/scripts/vex/vex.dialog.js +0 -151
- package/assets/scripts/vex/vex.js +0 -193
- package/assets/stylesheets/chimera/chimera.less +0 -1075
- package/assets/stylesheets/chimera_old/chimera.less +0 -351
- package/assets/stylesheets/chimera_old/core.less +0 -315
- package/assets/stylesheets/chimera_old/font.less +0 -38
- package/assets/stylesheets/chimera_old/mixins.less +0 -35
- package/assets/stylesheets/chimera_old/page-editor.less +0 -23
- package/assets/stylesheets/rome/rome.less +0 -130
- package/assets/stylesheets/vex/vex-theme-bottom-right-corner.less +0 -613
- package/assets/stylesheets/vex/vex.default.less +0 -501
- package/assets/stylesheets/vex/vex.flat.less +0 -443
- package/assets/stylesheets/vex/vex.less +0 -320
- package/controller/chimera_page_controller.js +0 -14
- package/controller/chimera_settings_controller.js +0 -129
- package/controller/tasks_chimera_controller.js +0 -106
- package/helper/chimera_helper.js +0 -202
- package/lib/chimera_action_fields.js +0 -292
- package/lib/chimera_field/belongsto_chimera_field.js +0 -160
- package/lib/chimera_field/boolean_chimera_field.js +0 -19
- package/lib/chimera_field/date_chimera_field.js +0 -20
- package/lib/chimera_field/datetime_chimera_field.js +0 -20
- package/lib/chimera_field/enum_chimera_field.js +0 -131
- package/lib/chimera_field/geopoint_chimera_field.js +0 -20
- package/lib/chimera_field/habtm_chimera_field.js +0 -55
- package/lib/chimera_field/hasoneparent_chimera_field.js +0 -18
- package/lib/chimera_field/html_chimera_field.js +0 -20
- package/lib/chimera_field/object_chimera_field.js +0 -18
- package/lib/chimera_field/password_chimera_field.js +0 -18
- package/lib/chimera_field/schema_chimera_field.js +0 -149
- package/lib/chimera_field/text_chimera_field.js +0 -20
- package/lib/chimera_field/time_chimera_field.js +0 -18
- package/lib/chimera_field.js +0 -208
- package/model/setting_model.js +0 -51
- package/public/chimera/codedor.svg +0 -28
- package/view/chimera/dashboard.ejs +0 -5
- package/view/chimera/editor/add.ejs +0 -32
- package/view/chimera/editor/edit.ejs +0 -33
- package/view/chimera/editor/index.ejs +0 -87
- package/view/chimera/editor/remove.ejs +0 -23
- package/view/chimera/editor/view.ejs +0 -54
- package/view/chimera/elements/editor_actions.ejs +0 -4
- package/view/chimera/elements/empty +0 -0
- package/view/chimera/field_wrappers/_entries.ejs +0 -91
- package/view/chimera/field_wrappers/_wrapper.ejs +0 -82
- package/view/chimera/field_wrappers/date_edit.ejs +0 -23
- package/view/chimera/field_wrappers/date_list.ejs +0 -3
- package/view/chimera/field_wrappers/date_view.ejs +0 -16
- package/view/chimera/field_wrappers/default_edit.ejs +0 -22
- package/view/chimera/field_wrappers/default_list.ejs +0 -3
- package/view/chimera/field_wrappers/default_peek.ejs +0 -3
- package/view/chimera/field_wrappers/default_view.ejs +0 -14
- package/view/chimera/field_wrappers/geopoint_edit.ejs +0 -25
- package/view/chimera/field_wrappers/geopoint_list.ejs +0 -5
- package/view/chimera/field_wrappers/geopoint_view.ejs +0 -18
- package/view/chimera/field_wrappers/schema_edit.ejs +0 -19
- package/view/chimera/field_wrappers/text_edit.ejs +0 -22
- package/view/chimera/field_wrappers/text_list.ejs +0 -1
- package/view/chimera/fields/belongsto_edit.ejs +0 -4
- package/view/chimera/fields/belongsto_list.ejs +0 -1
- package/view/chimera/fields/belongsto_peek.ejs +0 -1
- package/view/chimera/fields/boolean_edit.ejs +0 -17
- package/view/chimera/fields/boolean_list.ejs +0 -3
- package/view/chimera/fields/boolean_view.ejs +0 -3
- package/view/chimera/fields/date_edit.ejs +0 -14
- package/view/chimera/fields/date_list.ejs +0 -9
- package/view/chimera/fields/date_peek.ejs +0 -9
- package/view/chimera/fields/date_view.ejs +0 -9
- package/view/chimera/fields/datetime_edit.ejs +0 -24
- package/view/chimera/fields/datetime_list.ejs +0 -9
- package/view/chimera/fields/datetime_view.ejs +0 -10
- package/view/chimera/fields/default_edit.ejs +0 -10
- package/view/chimera/fields/default_list.ejs +0 -15
- package/view/chimera/fields/default_view.ejs +0 -1
- package/view/chimera/fields/enum_edit.ejs +0 -10
- package/view/chimera/fields/geopoint_edit.ejs +0 -10
- package/view/chimera/fields/geopoint_list.ejs +0 -9
- package/view/chimera/fields/geopoint_view.ejs +0 -9
- package/view/chimera/fields/habtm_edit.ejs +0 -5
- package/view/chimera/fields/hasoneparent_edit.ejs +0 -6
- package/view/chimera/fields/hasoneparent_list.ejs +0 -1
- package/view/chimera/fields/object_edit.ejs +0 -8
- package/view/chimera/fields/password_edit.ejs +0 -12
- package/view/chimera/fields/schema_edit.ejs +0 -14
- package/view/chimera/fields/text_edit.ejs +0 -5
- package/view/chimera/fields/text_list.ejs +0 -9
- package/view/chimera/fields/text_view.ejs +0 -3
- package/view/chimera/fields/time_edit.ejs +0 -15
- package/view/chimera/fields/time_list.ejs +0 -9
- package/view/chimera/fields/time_view.ejs +0 -9
- package/view/chimera/page/edit.ejs +0 -18
- package/view/chimera/page_editor.ejs +0 -5
- package/view/chimera/sidebar.ejs +0 -40
- package/view/chimera/tasks/index.ejs +0 -114
- package/view/layouts/chimera.ejs +0 -12
- package/view/layouts/chimera_base.ejs +0 -11
- package/view/layouts/chimera_body.ejs +0 -43
|
@@ -1,351 +0,0 @@
|
|
|
1
|
-
@import "chimera/core.less";
|
|
2
|
-
@import "font-awesome4.1/font-awesome.less";
|
|
3
|
-
@import "foundation/foundation-icons.less";
|
|
4
|
-
|
|
5
|
-
@color-text--modelList: @light-gray;
|
|
6
|
-
@color-row--modelList: @lightest-gray;
|
|
7
|
-
@color-tab--radioTabs: @light-gray;
|
|
8
|
-
|
|
9
|
-
@color-radioTabs-label--background: @light-gray;
|
|
10
|
-
@color-radioTabs-label--text: #FFFFFF;
|
|
11
|
-
|
|
12
|
-
@color-radioTabs-label-active--text: @light-gray;
|
|
13
|
-
@color-radioTabs-label-active--background: @lightest-gray;
|
|
14
|
-
|
|
15
|
-
@color-radioTabs-content--background: @lightest-gray;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
.pageTitle {
|
|
19
|
-
color: @color--pageTitle;
|
|
20
|
-
text-transform: uppercase;
|
|
21
|
-
line-height: 1.5rem;
|
|
22
|
-
font-weight: 400;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.chimeraField {
|
|
26
|
-
|
|
27
|
-
&-container {
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&-prime.selectize-control {
|
|
32
|
-
width: 100%;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&-row {
|
|
36
|
-
.clearfix();
|
|
37
|
-
margin-bottom: 1rem;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&-left {
|
|
41
|
-
float: left;
|
|
42
|
-
width: 9rem;
|
|
43
|
-
text-align: right;
|
|
44
|
-
margin-right: 1rem;
|
|
45
|
-
padding-top: 0.375rem;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&-intake {
|
|
49
|
-
float: left;
|
|
50
|
-
width: ~"calc(100% - 10rem)";
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&-entry {
|
|
54
|
-
display: flex;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&-string {
|
|
58
|
-
padding: 0.375rem 0.75rem;
|
|
59
|
-
border: none;
|
|
60
|
-
height: 2rem;
|
|
61
|
-
width: 100%;
|
|
62
|
-
margin-bottom:0.375rem;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&-wysiwyg {
|
|
66
|
-
.clearfix();
|
|
67
|
-
padding: 0.375rem 0.75rem;
|
|
68
|
-
min-height: 10rem;
|
|
69
|
-
background-color: white;
|
|
70
|
-
p{
|
|
71
|
-
margin-bottom: 10px;
|
|
72
|
-
}
|
|
73
|
-
ul{
|
|
74
|
-
padding-left: 17px;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// .chimeraEditor should not be used for fields anymore, those go in .chimeraField
|
|
80
|
-
.chimeraEditor {
|
|
81
|
-
margin-top: 2.3rem;
|
|
82
|
-
|
|
83
|
-
&-header {
|
|
84
|
-
align-items: flex-end;
|
|
85
|
-
margin-bottom: 1rem;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&-fieldGroup {
|
|
89
|
-
.clearfix();
|
|
90
|
-
margin-bottom: 1rem;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&-fieldLabel {
|
|
94
|
-
float: left;
|
|
95
|
-
width: 9rem;
|
|
96
|
-
text-align: right;
|
|
97
|
-
margin-right: 1rem;
|
|
98
|
-
padding-top: 0.375rem;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&-fieldWrap {
|
|
102
|
-
float: left;
|
|
103
|
-
width: ~"calc(100% - 10rem)";
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&-input {
|
|
107
|
-
padding: 0.375rem 0.75rem;
|
|
108
|
-
border: none;
|
|
109
|
-
height: 2rem;
|
|
110
|
-
width: 100%;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&-boolean {
|
|
114
|
-
width: 3rem;
|
|
115
|
-
text-align: center;
|
|
116
|
-
color: white;
|
|
117
|
-
text-transform: uppercase;
|
|
118
|
-
font-size: 0.9rem;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&-actions--inline {
|
|
122
|
-
text-align: right;
|
|
123
|
-
width: 12rem;
|
|
124
|
-
|
|
125
|
-
// @todo: temporary fix to remove save action from listing
|
|
126
|
-
.action-save {
|
|
127
|
-
display: none;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.btn-inline {
|
|
131
|
-
background-color: transparent;
|
|
132
|
-
border-bottom: 0;
|
|
133
|
-
color: @color-text--modelList;
|
|
134
|
-
font-size: 1.5rem;
|
|
135
|
-
&:hover {
|
|
136
|
-
color: @color--btn-background;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
&-footer {
|
|
141
|
-
align-items: flex-end;
|
|
142
|
-
margin-top: 1rem;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.boolean-false {
|
|
147
|
-
background-color: @red;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.boolean-true {
|
|
151
|
-
background-color: @green;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.chimeraEditor-boolean-text, .chimeraEditor-boolean-list {
|
|
155
|
-
.select(none);
|
|
156
|
-
transition: all 0.3s ease;
|
|
157
|
-
width: 3rem;
|
|
158
|
-
line-height: 1.5rem;
|
|
159
|
-
height: 1.5rem;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.chimeraEditor-boolean-text {
|
|
163
|
-
cursor: pointer;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.chimeraEditor-boolean-list {
|
|
167
|
-
cursor: default;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.chimeraEditor-edit-boolean {
|
|
171
|
-
display: none;
|
|
172
|
-
|
|
173
|
-
&:checked + .chimeraEditor-boolean-text {
|
|
174
|
-
background-color: @green;
|
|
175
|
-
|
|
176
|
-
.u-no {
|
|
177
|
-
display: none;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
&:not(:checked) + .chimeraEditor-boolean-text {
|
|
182
|
-
background-color: @red;
|
|
183
|
-
|
|
184
|
-
.u-yes {
|
|
185
|
-
display: none;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.chimeraGallery {
|
|
191
|
-
.flexParent(row);
|
|
192
|
-
|
|
193
|
-
&-card {
|
|
194
|
-
width: 17rem;
|
|
195
|
-
height: 17rem;
|
|
196
|
-
padding: 1.25rem;
|
|
197
|
-
margin-bottom: 1.25rem;
|
|
198
|
-
background-color: @lightest-gray;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
&-figure {
|
|
202
|
-
height: 12rem;
|
|
203
|
-
background-size: cover !important;
|
|
204
|
-
background-position: 50% !important;
|
|
205
|
-
margin-bottom: 1rem;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
&-actions {
|
|
209
|
-
height: 4.5rem;
|
|
210
|
-
text-align: center;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.chimeraGallery > x-hawkejs {
|
|
215
|
-
.flexChild(0 0 auto);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.modelList {
|
|
219
|
-
width: 100%;
|
|
220
|
-
border-collapse: collapse;
|
|
221
|
-
|
|
222
|
-
th {
|
|
223
|
-
text-align: left;
|
|
224
|
-
height: 3rem;
|
|
225
|
-
padding: 5px;
|
|
226
|
-
background-color: @light-gray;
|
|
227
|
-
color: @white;
|
|
228
|
-
font-size: 0.9rem;
|
|
229
|
-
font-weight: 400;
|
|
230
|
-
text-transform: uppercase;
|
|
231
|
-
&.modelList-right {
|
|
232
|
-
text-align: right;
|
|
233
|
-
padding-right: 0.75rem;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
&-radio {
|
|
238
|
-
width: 4rem;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
&-record {
|
|
242
|
-
height: 3rem;
|
|
243
|
-
text-align: left;
|
|
244
|
-
color: @color-text--modelList;
|
|
245
|
-
|
|
246
|
-
&:nth-child(even) {
|
|
247
|
-
background-color: @color-row--modelList;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
td {
|
|
251
|
-
padding: 5px;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.radioTabs {
|
|
257
|
-
.clearfix();
|
|
258
|
-
.select(none);
|
|
259
|
-
position: relative;
|
|
260
|
-
|
|
261
|
-
&-input {
|
|
262
|
-
display: none;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
&-label {
|
|
266
|
-
float: left;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
&-title {
|
|
270
|
-
height: 3.375rem;
|
|
271
|
-
min-width: 4rem;
|
|
272
|
-
padding: 1rem;
|
|
273
|
-
text-transform: uppercase;
|
|
274
|
-
background-color: @color-radioTabs-label--background;
|
|
275
|
-
color: @color-radioTabs-label--text;
|
|
276
|
-
font-weight: @fontWeight-normal;
|
|
277
|
-
font-size: @fontSize-large;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
&-input + label &-content {
|
|
281
|
-
display: none;
|
|
282
|
-
.select(text);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
&-input:checked + label &-title {
|
|
286
|
-
background-color: @color-radioTabs-label-active--background;
|
|
287
|
-
color: @color-radioTabs-label-active--text;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
&-input:checked + label &-content {
|
|
291
|
-
display: block;
|
|
292
|
-
position: absolute;
|
|
293
|
-
left: 0;
|
|
294
|
-
right: 0;
|
|
295
|
-
top: 3.375rem;
|
|
296
|
-
|
|
297
|
-
padding: 1.5rem;
|
|
298
|
-
background-color: @color-radioTabs-content--background;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
.geopoint-list {
|
|
303
|
-
height: 6rem;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.geopoint-view, .geopoint-edit {
|
|
307
|
-
height: 18rem;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.modelList-record .chimeraField-intake {
|
|
311
|
-
width: 100%;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
.chimera-remove{
|
|
315
|
-
|
|
316
|
-
.btn{
|
|
317
|
-
margin-top: 1.5rem;
|
|
318
|
-
height: 2.5rem;
|
|
319
|
-
display: inline-block;
|
|
320
|
-
background-color: @lightest-gray;
|
|
321
|
-
border-bottom: 0.1875rem solid @light-gray;
|
|
322
|
-
padding: 0.625rem 1.562rem;
|
|
323
|
-
color: @light-gray;
|
|
324
|
-
text-decoration: none;
|
|
325
|
-
text-transform: uppercase;
|
|
326
|
-
font-weight: 700;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
.btn-red{
|
|
330
|
-
background-color: @red;
|
|
331
|
-
color: @color--btn-text;
|
|
332
|
-
border-bottom: 0.1875rem solid @dark-red;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
.chimera-pagination-sort {
|
|
338
|
-
text-decoration: none;
|
|
339
|
-
color: #ffffff;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.alchemyPagination {
|
|
343
|
-
font-size: 1.2rem;
|
|
344
|
-
|
|
345
|
-
a {
|
|
346
|
-
text-decoration: none;
|
|
347
|
-
display: inline-block;
|
|
348
|
-
width: 1rem;
|
|
349
|
-
color: #afafaf;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
@import "font.less";
|
|
2
|
-
@import "mixins.less";
|
|
3
|
-
|
|
4
|
-
// Main colours
|
|
5
|
-
@dark-gray: #4C4C4C;
|
|
6
|
-
@gray: #656565;
|
|
7
|
-
@blue: #6BA7D1;
|
|
8
|
-
@dark-blue: #5399CA;
|
|
9
|
-
@green: #35C1A3;
|
|
10
|
-
@dark-green: #3AAC91;
|
|
11
|
-
@yellow: #FCCC89;
|
|
12
|
-
@red: #F57D6C;
|
|
13
|
-
@dark-red: #CF5948;
|
|
14
|
-
@light-gray: #AFAFAF;
|
|
15
|
-
@lightest-gray: #F4F4F4;
|
|
16
|
-
@white: #FFFFFF;
|
|
17
|
-
|
|
18
|
-
// Section colours
|
|
19
|
-
@nav-bg-color: @dark-gray;
|
|
20
|
-
@chimera-title-color: @white;
|
|
21
|
-
|
|
22
|
-
// From here on the variables have correct names
|
|
23
|
-
@width--pageSidebar: 18rem;
|
|
24
|
-
@color-gray: #656565;
|
|
25
|
-
@color--pageTitle: @green;
|
|
26
|
-
@color--btn-background: @green;
|
|
27
|
-
@color--btn-border: @dark-green;
|
|
28
|
-
@color--btn-text: @white;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* RESETS
|
|
32
|
-
*/
|
|
33
|
-
// Apply a natural box layout model to all elements, but allowing components to change
|
|
34
|
-
html {
|
|
35
|
-
// border-box makes `width` include padding & borders
|
|
36
|
-
box-sizing: border-box;
|
|
37
|
-
padding: 0;
|
|
38
|
-
margin: 0;
|
|
39
|
-
|
|
40
|
-
// The basis for rem units
|
|
41
|
-
// Regular text (like in an article) should be 1rem
|
|
42
|
-
font-size: 14px;
|
|
43
|
-
color: @color-gray;
|
|
44
|
-
|
|
45
|
-
// We use the Lato font
|
|
46
|
-
font-family: 'Lato', sans-serif;
|
|
47
|
-
text-rendering: optimizeLegibility;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
* {
|
|
51
|
-
box-sizing: inherit;
|
|
52
|
-
padding: 0;
|
|
53
|
-
margin: 0;
|
|
54
|
-
|
|
55
|
-
&:before, &:after {
|
|
56
|
-
box-sizing: inherit;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
body {
|
|
62
|
-
// The body should be at least 100vh high
|
|
63
|
-
// vh = Viewportunits Height
|
|
64
|
-
min-height: 100vh;
|
|
65
|
-
margin: 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
x-hawkejs {
|
|
69
|
-
display: block;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// Main div layout (only >child of body that should matter)
|
|
73
|
-
#layout {
|
|
74
|
-
// Take up the entire page
|
|
75
|
-
width: 100%;
|
|
76
|
-
|
|
77
|
-
// And AT-LEAST entire height
|
|
78
|
-
min-height: 100vh;
|
|
79
|
-
|
|
80
|
-
// Turn it into a flexbox wrapper
|
|
81
|
-
display: flex;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// The first header is semantic container for info, navigation, ...
|
|
85
|
-
.pageSidebar {
|
|
86
|
-
flex: 1 0 18rem; // Turn it into a flex item
|
|
87
|
-
order: -1; // Display as first
|
|
88
|
-
background-color: @nav-bg-color;
|
|
89
|
-
background-image: url('/public/chimera/codedor.svg');
|
|
90
|
-
background-position: center bottom;
|
|
91
|
-
background-repeat: no-repeat;
|
|
92
|
-
background-size: 18rem;
|
|
93
|
-
padding-bottom: 10rem;
|
|
94
|
-
|
|
95
|
-
// The sidebar is 18rems wide (so 18x16px)
|
|
96
|
-
max-width: @width--pageSidebar;
|
|
97
|
-
|
|
98
|
-
&-fixed {
|
|
99
|
-
// This is also a flex container
|
|
100
|
-
display: flex;
|
|
101
|
-
flex-flow: column wrap;
|
|
102
|
-
width: @width--pageSidebar;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&-branding {
|
|
106
|
-
flex: 0 0 6.9rem;
|
|
107
|
-
padding: 1.3rem 1.7rem 0;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&-title {
|
|
111
|
-
flex: 1 0 auto;
|
|
112
|
-
.fontStyle(larger, bold, normal);
|
|
113
|
-
letter-spacing: -0.048rem;
|
|
114
|
-
color: white;
|
|
115
|
-
font-weight: 400;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.home-btn{
|
|
119
|
-
color: @white;
|
|
120
|
-
font-size: 1.6rem;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// Side navigation component
|
|
125
|
-
.sideNav {
|
|
126
|
-
flex: 1 0 auto;
|
|
127
|
-
.active {
|
|
128
|
-
background-color: @green;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&-collection {
|
|
132
|
-
display: flex;
|
|
133
|
-
flex-flow: column nowrap;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
&.is-child {
|
|
137
|
-
// First anchor of a nested ul does not need a border top
|
|
138
|
-
>.sideNav-link > .sideNav-text {
|
|
139
|
-
border-top: none;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.sideNav-link > .sideNav-text {
|
|
143
|
-
padding-left: 3.9rem;
|
|
144
|
-
text-transform: none;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&.hidden {
|
|
149
|
-
display: none;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// LI element
|
|
154
|
-
&-link {
|
|
155
|
-
flex: none;
|
|
156
|
-
position: relative;
|
|
157
|
-
|
|
158
|
-
// @todo: Why is this not inheriting from html?
|
|
159
|
-
box-sizing: border-box;
|
|
160
|
-
|
|
161
|
-
&:first-child {
|
|
162
|
-
|
|
163
|
-
.sideNav-text {
|
|
164
|
-
border-top: 1px solid @gray;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
&.is-parent {
|
|
169
|
-
>.sideNav-text::after {
|
|
170
|
-
content: attr(data-after);
|
|
171
|
-
.fontStyle(small, normal);
|
|
172
|
-
position: absolute;
|
|
173
|
-
right: 1.4rem;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
// Mostly a span or anchor
|
|
179
|
-
&-text {
|
|
180
|
-
display: block;
|
|
181
|
-
width: 100%;
|
|
182
|
-
height: 2.91rem;
|
|
183
|
-
border-bottom: 1px solid @gray;
|
|
184
|
-
// Animate transitions
|
|
185
|
-
transition: all 0.1s ease-in 0.01s;
|
|
186
|
-
|
|
187
|
-
.fontStyle(large, normal, normal);
|
|
188
|
-
text-decoration: none;
|
|
189
|
-
text-transform: uppercase;
|
|
190
|
-
color: white;
|
|
191
|
-
letter-spacing: -0.06rem;
|
|
192
|
-
line-height: ~"calc(3rem - 1px)"; // Let the browser handle calc, not less
|
|
193
|
-
padding-left: 1.652rem;
|
|
194
|
-
line-height: 2.91rem;
|
|
195
|
-
|
|
196
|
-
&:hover {
|
|
197
|
-
background-color: @dark-green;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
&.section {
|
|
201
|
-
font-weight: 400;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
// pageCentral component
|
|
207
|
-
.pageCentral {
|
|
208
|
-
flex: 1 0 ~"calc(100% - 18rem)";
|
|
209
|
-
background-image: url('/public/chimera/chimera.svg');
|
|
210
|
-
background-position: right bottom;
|
|
211
|
-
background-repeat: no-repeat;
|
|
212
|
-
background-size: 30rem 30rem;
|
|
213
|
-
padding-bottom: 4rem;
|
|
214
|
-
.flexParent(column);
|
|
215
|
-
|
|
216
|
-
&-child {
|
|
217
|
-
.flexChild(1 0 auto);
|
|
218
|
-
padding: 0 1.3125rem;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
&-topBar {
|
|
222
|
-
letter-spacing: -0.02rem;
|
|
223
|
-
padding-top: 1.25rem;
|
|
224
|
-
.fontStyle(larger, normal, normal);
|
|
225
|
-
.flexChild(0 0 4.2rem);
|
|
226
|
-
.flexParent();
|
|
227
|
-
}
|
|
228
|
-
.logout {
|
|
229
|
-
color: @green;
|
|
230
|
-
padding-left: 5px;
|
|
231
|
-
font-size: 1.7rem;
|
|
232
|
-
&:hover {
|
|
233
|
-
color: @dark-green;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.btn-top {
|
|
239
|
-
height: 2.5rem;
|
|
240
|
-
display: inline-block;
|
|
241
|
-
background-color: @color--btn-background;
|
|
242
|
-
border-bottom: 0.3rem solid @color--btn-border;
|
|
243
|
-
padding: 0 1.562rem;
|
|
244
|
-
color: @color--btn-text;
|
|
245
|
-
text-decoration: none;
|
|
246
|
-
text-transform: uppercase;
|
|
247
|
-
font-weight: @fontWeight-bold;
|
|
248
|
-
font-size: 1.3rem;
|
|
249
|
-
line-height: 2.5rem;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
.btn-inline {
|
|
253
|
-
display: inline-block;
|
|
254
|
-
background-color: @color--btn-background;
|
|
255
|
-
border-bottom: 0.2em solid @color--btn-border;
|
|
256
|
-
padding: 0 0.75rem;
|
|
257
|
-
color: @white;
|
|
258
|
-
text-decoration: none;
|
|
259
|
-
text-transform: uppercase;
|
|
260
|
-
font-weight: @fontWeight-normal;
|
|
261
|
-
font-size: 1rem;
|
|
262
|
-
line-height: 1.7rem;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.cbx {
|
|
266
|
-
// Fix inline-label block line-height
|
|
267
|
-
font-size: 0px;
|
|
268
|
-
|
|
269
|
-
// The box should not be selectable itself
|
|
270
|
-
.select(none);
|
|
271
|
-
|
|
272
|
-
&-input {
|
|
273
|
-
display: none;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
&-label {
|
|
277
|
-
margin-top: 0.25rem;
|
|
278
|
-
padding: 0 2.5rem 0 1.25rem;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
&-span {
|
|
282
|
-
display: inline-block;
|
|
283
|
-
width: 1rem;
|
|
284
|
-
height: 1rem;
|
|
285
|
-
background: url('/public/chimera/radiobutton2.svg') left top no-repeat;
|
|
286
|
-
background-size: 2rem 1rem;
|
|
287
|
-
&:hover {
|
|
288
|
-
cursor: pointer;
|
|
289
|
-
background-position: -1.04165rem;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
&-input:checked + &-label &-span {
|
|
294
|
-
background-position: -1.04165rem;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
// Stretch - Group: unite & divide
|
|
300
|
-
|
|
301
|
-
#chimera-title {
|
|
302
|
-
color: @chimera-title-color;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
// Utilities
|
|
306
|
-
.u-stretch {
|
|
307
|
-
width: 100%;
|
|
308
|
-
.flexParent();
|
|
309
|
-
|
|
310
|
-
> .u-child {
|
|
311
|
-
.flexChild(none);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
@import "page-editor.less";
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
@import url(http://fonts.googleapis.com/css?family=Lato:400,900italic,900,700italic,700,400italic,300italic,300,100italic,100&subset=latin,latin-ext);
|
|
2
|
-
|
|
3
|
-
// Font Weights
|
|
4
|
-
@fontWeight-thin: 100;
|
|
5
|
-
@fontWeight-light: 200;
|
|
6
|
-
@fontWeight-normal: 400;
|
|
7
|
-
@fontWeight-bold: 700;
|
|
8
|
-
@fontWeight-ultra: 900;
|
|
9
|
-
|
|
10
|
-
// Each step under `base` is 0.125rem smaller
|
|
11
|
-
@fontSize-micro: 0.5rem;
|
|
12
|
-
@fontSize-smallest: 0.625rem;
|
|
13
|
-
@fontSize-smaller: 0.75rem;
|
|
14
|
-
@fontSize-small: 0.875rem;
|
|
15
|
-
|
|
16
|
-
// Base size is always 1rem;
|
|
17
|
-
@fontSize-base: 1rem;
|
|
18
|
-
|
|
19
|
-
// Each step above `base` is 0.250rem larger
|
|
20
|
-
@fontSize-large: 1.250rem;
|
|
21
|
-
@fontSize-larger: 1.500rem;
|
|
22
|
-
@fontSize-largest: 1.750rem;
|
|
23
|
-
@fontSize-jumbo: 2.000rem;
|
|
24
|
-
|
|
25
|
-
// fontStyle mixin
|
|
26
|
-
.fontStyle(@size; @weight: normal; @style: normal) {
|
|
27
|
-
|
|
28
|
-
// Construct the correct variable name
|
|
29
|
-
@_size: ~"fontSize-@{size}";
|
|
30
|
-
@_weight: ~"fontWeight-@{weight}";
|
|
31
|
-
|
|
32
|
-
// Use those variables
|
|
33
|
-
font-weight: @@_weight;
|
|
34
|
-
font-size: @@_size;
|
|
35
|
-
|
|
36
|
-
// There are only 2 valid styles (+ inherits)
|
|
37
|
-
font-style: @style;
|
|
38
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
.flexParent(@type: row; @alignment: space-between; @wrap: wrap) {
|
|
2
|
-
//display: -webkit-flex;
|
|
3
|
-
display: flex;
|
|
4
|
-
|
|
5
|
-
//-webkit-flex-flow: @type @wrap;
|
|
6
|
-
flex-flow: @type @wrap;
|
|
7
|
-
|
|
8
|
-
//-webkit-justify-content: @alignment;
|
|
9
|
-
justify-content: @alignment;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.flexChild(@type: 0 0 auto) {
|
|
13
|
-
//-webkit-flex: @type;
|
|
14
|
-
flex: @type;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.clearfix {
|
|
18
|
-
&:before, &:after {
|
|
19
|
-
content: "";
|
|
20
|
-
display: table;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&:after {
|
|
24
|
-
clear: both;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.select(@type) {
|
|
29
|
-
-webkit-touch-callout: @type;
|
|
30
|
-
-webkit-user-select: @type;
|
|
31
|
-
-khtml-user-select: @type;
|
|
32
|
-
-moz-user-select: @type;
|
|
33
|
-
-ms-user-select: @type;
|
|
34
|
-
user-select: @type;
|
|
35
|
-
}
|