cambium 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -1
  3. data/Rakefile +0 -1
  4. data/bin/cambium +20 -0
  5. data/cambium.gemspec +24 -1
  6. data/lib/cambium/engine.rb +6 -0
  7. data/lib/cambium/version.rb +1 -1
  8. data/lib/cambium.rb +1 -1
  9. data/lib/docs/notes.md +4 -0
  10. data/lib/generators/cambium/setup/config_generator.rb +185 -0
  11. data/lib/generators/cambium/setup/controllers_generator.rb +95 -0
  12. data/lib/generators/cambium/setup/devise_generator.rb +78 -0
  13. data/lib/generators/cambium/setup/helpers_generator.rb +71 -0
  14. data/lib/generators/cambium/setup/javascripts_generator.rb +111 -0
  15. data/lib/generators/cambium/setup/models_generator.rb +116 -0
  16. data/lib/generators/cambium/setup/stylesheets_generator.rb +86 -0
  17. data/lib/generators/cambium/setup/utilities_generator.rb +87 -0
  18. data/lib/generators/cambium/setup/views_generator.rb +86 -0
  19. data/lib/generators/cambium/templates/Gemfile.erb +41 -0
  20. data/lib/generators/cambium/templates/app/assets/javascripts/.DS_Store +0 -0
  21. data/lib/generators/cambium/templates/app/assets/javascripts/admin/admin.js +12 -0
  22. data/lib/generators/cambium/templates/app/assets/javascripts/admin/backbone/admin.js.coffee +22 -0
  23. data/lib/generators/cambium/templates/app/assets/javascripts/admin/backbone/models/.gitkeep +0 -0
  24. data/lib/generators/cambium/templates/app/assets/javascripts/admin/backbone/routers/router.js.coffee +12 -0
  25. data/lib/generators/cambium/templates/app/assets/javascripts/admin/backbone/templates/paginator_controls.jst.ejs +8 -0
  26. data/lib/generators/cambium/templates/app/assets/javascripts/admin/backbone/templates/paginator_nav.jst.ejs +11 -0
  27. data/lib/generators/cambium/templates/app/assets/javascripts/admin/backbone/views/accordion.js.coffee +33 -0
  28. data/lib/generators/cambium/templates/app/assets/javascripts/admin/backbone/views/counter.js.coffee +25 -0
  29. data/lib/generators/cambium/templates/app/assets/javascripts/admin/backbone/views/dropdown_toggle.js.coffee +16 -0
  30. data/lib/generators/cambium/templates/app/assets/javascripts/admin/backbone/views/init_counter.js.coffee +13 -0
  31. data/lib/generators/cambium/templates/app/assets/javascripts/admin/backbone/views/paginator.js.coffee +86 -0
  32. data/lib/generators/cambium/templates/app/assets/javascripts/admin/backbone/views/publishable.js.coffee +12 -0
  33. data/lib/generators/cambium/templates/app/assets/javascripts/admin/backbone/views/wysiwyg.js.coffee +10 -0
  34. data/lib/generators/cambium/templates/app/assets/javascripts/admin/wysihtml5.js +9521 -0
  35. data/lib/generators/cambium/templates/app/assets/javascripts/application.js +7 -0
  36. data/lib/generators/cambium/templates/app/assets/javascripts/backbone/app.js.coffee +22 -0
  37. data/lib/generators/cambium/templates/app/assets/javascripts/backbone/routers/router.js.coffee +23 -0
  38. data/lib/generators/cambium/templates/app/assets/javascripts/backbone/views/default_helpers.js.coffee +16 -0
  39. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/admin.scss +14 -0
  40. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/bones/bones-config/__default.scss +14 -0
  41. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/bones/bones-config/_buttons.scss +21 -0
  42. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/bones/bones-config/_colors.scss +93 -0
  43. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/bones/bones-config/_components.scss +4 -0
  44. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/bones/bones-config/_forms.scss +28 -0
  45. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/bones/bones-config/_helpers.scss +31 -0
  46. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/bones/bones-config/_images.scss +23 -0
  47. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/bones/bones-config/_nav.scss +117 -0
  48. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/bones/bones-config/_tables.scss +12 -0
  49. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/bones/bones-config/_typography.scss +83 -0
  50. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/bones/bones-config/_wireframe.scss +18 -0
  51. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/bones/bones.scss +68 -0
  52. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/partials/_content.scss +88 -0
  53. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/partials/_form.scss +470 -0
  54. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/partials/_globals.scss +39 -0
  55. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/partials/_header.scss +121 -0
  56. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/partials/_icons.scss +5194 -0
  57. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/partials/_nav.scss +45 -0
  58. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/partials/_wireframe.scss +24 -0
  59. data/lib/generators/cambium/templates/app/assets/stylesheets/admin/wysihtml5.css +7 -0
  60. data/lib/generators/cambium/templates/app/assets/stylesheets/application.scss +9 -0
  61. data/lib/generators/cambium/templates/app/controllers/admin/users_controller.rb +13 -0
  62. data/lib/generators/cambium/templates/app/controllers/admin_controller.rb +88 -0
  63. data/lib/generators/cambium/templates/app/controllers/application_controller.rb +15 -0
  64. data/lib/generators/cambium/templates/app/helpers/admin_helper.rb +120 -0
  65. data/lib/generators/cambium/templates/app/models/concerns/idx.rb +28 -0
  66. data/lib/generators/cambium/templates/app/models/concerns/name.rb +7 -0
  67. data/lib/generators/cambium/templates/app/models/concerns/publishable.rb +50 -0
  68. data/lib/generators/cambium/templates/app/models/concerns/slug.rb +52 -0
  69. data/lib/generators/cambium/templates/app/models/concerns/tags.rb +28 -0
  70. data/lib/generators/cambium/templates/app/models/concerns/title.rb +7 -0
  71. data/lib/generators/cambium/templates/app/models/user.rb +14 -0
  72. data/lib/generators/cambium/templates/app/views/admin/_buttons.html.erb +5 -0
  73. data/lib/generators/cambium/templates/app/views/admin/_form.html.erb +11 -0
  74. data/lib/generators/cambium/templates/app/views/admin/_title.html.erb +1 -0
  75. data/lib/generators/cambium/templates/app/views/admin/edit.html.erb +2 -0
  76. data/lib/generators/cambium/templates/app/views/admin/index.html.erb +50 -0
  77. data/lib/generators/cambium/templates/app/views/admin/new.html.erb +2 -0
  78. data/lib/generators/cambium/templates/app/views/admin/shared/_footer.html.erb +2 -0
  79. data/lib/generators/cambium/templates/app/views/admin/shared/_header.html.erb +2 -0
  80. data/lib/generators/cambium/templates/app/views/admin/shared/_nav.html.erb +12 -0
  81. data/lib/generators/cambium/templates/app/views/admin/shared/_status.html.erb +3 -0
  82. data/lib/generators/cambium/templates/app/views/admin/shared/forms/_editor.html.erb +54 -0
  83. data/lib/generators/cambium/templates/app/views/admin/shared/forms/_form_column_left.html.erb +9 -0
  84. data/lib/generators/cambium/templates/app/views/admin/shared/forms/_form_column_right.html.erb +9 -0
  85. data/lib/generators/cambium/templates/app/views/admin/shared/forms/_form_page.html.erb +18 -0
  86. data/lib/generators/cambium/templates/app/views/admin/shared/forms/_form_section.html.erb +8 -0
  87. data/lib/generators/cambium/templates/app/views/admin/shared/forms/_publishable.html.erb +33 -0
  88. data/lib/generators/cambium/templates/app/views/admin/users/_form.html.erb +11 -0
  89. data/lib/generators/cambium/templates/app/views/application/_status.html.erb +3 -0
  90. data/lib/generators/cambium/templates/app/views/layouts/.DS_Store +0 -0
  91. data/lib/generators/cambium/templates/app/views/layouts/admin.html.erb +44 -0
  92. data/lib/generators/cambium/templates/app/views/layouts/application.html.erb +24 -0
  93. data/lib/generators/cambium/templates/config/application.rb +15 -0
  94. data/lib/generators/cambium/templates/config/database.mysql2.yml.erb +15 -0
  95. data/lib/generators/cambium/templates/config/database.pg.yml.erb +14 -0
  96. data/lib/generators/cambium/templates/config/database.sqlite3.yml.erb +18 -0
  97. data/lib/generators/cambium/templates/config/initializers/_settings.rb +11 -0
  98. data/lib/generators/cambium/templates/config/initializers/assets.rb +1 -0
  99. data/lib/generators/cambium/templates/config/routes.rb.erb +33 -0
  100. data/lib/generators/cambium/templates/config/settings.yml +15 -0
  101. data/lib/generators/cambium/templates/config/settings_private.sample.yml +15 -0
  102. data/lib/generators/cambium/templates/config/settings_private.yml +13 -0
  103. data/lib/generators/cambium/templates/db/seeds.rb +25 -0
  104. data/lib/generators/cambium/templates/gitignore +29 -0
  105. data/lib/generators/cambium/templates/lib/.DS_Store +0 -0
  106. data/lib/generators/cambium/templates/lib/tasks/db.rake +22 -0
  107. data/lib/generators/cambium/templates/lib/tasks/rename.rake +28 -0
  108. data/lib/generators/cambium/templates/vendor/assets/javascripts/modernizr.js +4 -0
  109. data/lib/generators/cambium/templates/vendor/assets/stylesheets/normalize.scss +406 -0
  110. data/lib/help/cambium +7 -0
  111. metadata +375 -4
@@ -0,0 +1,88 @@
1
+ .table-container {
2
+ padding: 25px 50px;
3
+
4
+ table {
5
+ opacity: 0;
6
+ @include transition(opacity 0.5s ease);
7
+
8
+ &.active {
9
+ opacity: 1;
10
+ }
11
+
12
+ tbody tr {
13
+ display: none;
14
+ }
15
+
16
+ th {
17
+ &.actions {
18
+ width: 175px;
19
+ }
20
+ }
21
+
22
+ td {
23
+ &.actions {
24
+ text-align: center;
25
+ a {
26
+ margin: 0 7.5px;
27
+ }
28
+ }
29
+ &.image {
30
+ width: 120px;
31
+ }
32
+ }
33
+
34
+ img {
35
+ width: 100px;
36
+ margin: 5px;
37
+ border: 1px solid $color-light-dark;
38
+ }
39
+
40
+ a {
41
+ border-bottom: 1px dotted $color-1;
42
+ &:hover {
43
+ border-bottom: 1px solid $color-1-dark;
44
+ i {
45
+ color: $color-1-dark;
46
+ }
47
+ }
48
+ i {
49
+ color: $color-1;
50
+ }
51
+ }
52
+ }
53
+
54
+ .controls {
55
+ .next, .prev {
56
+ i {
57
+ color: $color-light;
58
+ }
59
+ }
60
+ }
61
+
62
+ .paginav {
63
+ padding: 25px;
64
+ background: $color-light-dark;
65
+ .location {
66
+ padding: 3px 0;
67
+ }
68
+ .jump-to {
69
+ float: right;
70
+ input {
71
+ float: right;
72
+ outline: none;
73
+ &:focus {
74
+ outline: none;
75
+ }
76
+ }
77
+ input[type=submit] {
78
+ margin: 0;
79
+ font-size: 14px;
80
+ padding: 5px;
81
+ background: $color-1;
82
+ &:focus, &:hover {
83
+ background: $color-1-dark;
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
@@ -0,0 +1,470 @@
1
+ .form-container {
2
+ padding: 25px;
3
+
4
+ form {
5
+ .column-6 {
6
+ width: 50%;
7
+ }
8
+
9
+ .picker__table {
10
+ thead tr th {
11
+ color: $color-light;
12
+ }
13
+ }
14
+
15
+ .picker__nav--prev:hover, .picker__nav--next {
16
+ background: transparent;
17
+ }
18
+
19
+ .picker__button--clear, .picker__button--today {
20
+ color: $color-dark-lightest;
21
+ }
22
+
23
+ h3 {
24
+ font-size: 26px;
25
+ font-weight: 400;
26
+ color: $color-dark-lightest;
27
+ }
28
+
29
+ .button {
30
+ margin: 0;
31
+ padding: 16px;
32
+ font-size: 16px;
33
+ background: $color-2;
34
+ &:hover, &:active {
35
+ background: $color-2-dark;
36
+ }
37
+ span, i {
38
+ color: $color-light;
39
+ font-size: 14px;
40
+ }
41
+ }
42
+
43
+ input[type=submit] {
44
+ padding: 15px;
45
+ background: $color-1;
46
+ &:hover, &:active {
47
+ background: $color-1-dark;
48
+ }
49
+ }
50
+
51
+ .accordion, .group {
52
+ margin: 0 0 25px 0;
53
+ display: block;
54
+ header {
55
+ position: relative;
56
+ margin: 0;
57
+ padding: 10px 15px;
58
+ background: $color-1;
59
+ h2 {
60
+ margin: 0;
61
+ font-size: 1.15em;
62
+ font-weight: 200;
63
+ color: $shade-1;
64
+ }
65
+ a.arrow {
66
+ position: absolute;
67
+ top: 7px;
68
+ right: 15px;
69
+ padding: 5px;
70
+ background: $shade-4;
71
+ &:hover {
72
+ background: $color-dark;
73
+ }
74
+ i {
75
+ color: $shade-1;
76
+ }
77
+ }
78
+ }
79
+
80
+ .fields {
81
+ @include clearfix;
82
+ box-sizing: border-box;
83
+ width: 100%;
84
+ padding: 25px;
85
+ border: 1px solid $shade-2;
86
+
87
+ h3 {
88
+ clear: both;
89
+ margin: 15px 0 5px 0;
90
+ font-size: 18px;
91
+ text-transform: uppercase;
92
+ color: $color-dark-lightest;
93
+ }
94
+
95
+ img {
96
+ position: relative;
97
+ float: left;
98
+ width: 150px;
99
+ height: 150px;
100
+ margin: 0 15px 5px 0;
101
+ }
102
+
103
+ input[type=file] {
104
+ margin-top: 7.5px;
105
+ }
106
+
107
+ textarea {
108
+ height: 300px;
109
+ &.small {
110
+ height: 150px;
111
+ }
112
+ }
113
+
114
+ label.check_boxes {
115
+ display: none;
116
+ }
117
+
118
+ ul.inline {
119
+ margin: 0;
120
+ padding: 0;
121
+ list-style: none;
122
+ li {
123
+ display: inline-block;
124
+ margin: 3px 10px;
125
+ width: 200px;
126
+ }
127
+ }
128
+
129
+ .checkbox {
130
+ display: inline-block;
131
+ width: 250px;
132
+ label {
133
+ display: inline;
134
+ margin-left: 5px;
135
+ }
136
+ }
137
+
138
+ .feature-image-preview {
139
+ float: right;
140
+ margin-right: 5px;
141
+ }
142
+
143
+ .datetime {
144
+ select {
145
+ display: inline;
146
+ width: auto;
147
+ }
148
+ }
149
+
150
+ .time-js, .date-js {
151
+ display: inline;
152
+ float: left;
153
+ width: 48%;
154
+ margin: 10px 2% 15px 0;
155
+ }
156
+
157
+ .warning {
158
+ color: $color-danger;
159
+ font-weight: 600;
160
+ }
161
+
162
+ .item-status {
163
+ .status {
164
+ margin-right: 10px;
165
+ }
166
+ .published {
167
+ color: $color-success;
168
+ font-weight: 600;
169
+ i {
170
+ color: $color-success;
171
+ }
172
+ }
173
+ .draft {
174
+ color: $color-danger;
175
+ font-weight: 600;
176
+ i {
177
+ color: $color-danger;
178
+ }
179
+ }
180
+ }
181
+
182
+ .images-container {
183
+ @include clearfix;
184
+ div.image {
185
+ position: relative;
186
+ float: left;
187
+ width: 160px;
188
+ height: 160px;
189
+ margin: 5px;
190
+ a {
191
+ position: absolute;
192
+ top: 5px;
193
+ right: 5px;
194
+ padding: 5px;
195
+ background: $color-dark-lightest;
196
+ &:hover {
197
+ background: $color-dark-lighter;
198
+ }
199
+ &.edit {
200
+ right: 31px;
201
+ }
202
+ i {
203
+ color: $color-light;
204
+ }
205
+ }
206
+ img {
207
+ border: 5px solid transparent;
208
+ &:hover {
209
+ border-color: $color-light-darkest;
210
+ cursor: pointer;
211
+ }
212
+ &.featured {
213
+ border-color: $color-1;
214
+ }
215
+ }
216
+ }
217
+
218
+ div.loading {
219
+ float: left;
220
+ width: 150px;
221
+ height: 150px;
222
+ margin: 5px;
223
+ border: 5px solid $color-light-darkest;
224
+ }
225
+ }
226
+
227
+ #new-category, #new-client {
228
+ select {
229
+ width: 386px;
230
+ }
231
+ hr {
232
+ width: 386px;
233
+ margin: 15px 0 5px 0;
234
+ }
235
+ input#new-cat-title, input#new-client-title {
236
+ display: inline-block;
237
+ width: 250px;
238
+ padding: 8px;
239
+ }
240
+ .add-new-cat, .add-new-client {
241
+ display: inline-block;
242
+ width: 100px;
243
+ text-align: center;
244
+ }
245
+ }
246
+
247
+ .crop-image-container {
248
+ display: none;
249
+
250
+ .crop-image {
251
+ width: 500px;
252
+ margin: 25px auto 0 auto;
253
+ }
254
+ }
255
+ }
256
+
257
+ #tag-container {
258
+ position: relative;
259
+ z-index: 99;
260
+
261
+ ul.autocomplete {
262
+ position: absolute;
263
+ top: 28px;
264
+ width: 100%;
265
+ margin: 0;
266
+ padding: 0;
267
+ list-style: none;
268
+ background: $color-light;
269
+ li {
270
+ border: 1px solid $color-light-dark;
271
+ border-top: none;
272
+ a {
273
+ display: block;
274
+ width: 100%;
275
+ padding: 5px 10px;
276
+ }
277
+ &.active, a:hover {
278
+ background: $color-light-dark;
279
+ }
280
+ }
281
+ }
282
+
283
+ ul#tag-list {
284
+ list-style: none;
285
+ margin: 0;
286
+ padding: 0;
287
+
288
+ li {
289
+ display: inline-block;
290
+ margin: 0 10px;
291
+ a {
292
+ i {
293
+ font-size: 14px;
294
+ color: $color-light-darkest;
295
+ }
296
+ &:hover {
297
+ i {
298
+ color: $color-1;
299
+ }
300
+ }
301
+ }
302
+ }
303
+
304
+ .separator {
305
+ color: $color-light-darkest;
306
+ &:last-child {
307
+ display: none;
308
+ }
309
+ }
310
+ }
311
+ }
312
+ }
313
+
314
+ .table-container {
315
+ margin: 35px 0 0 0;
316
+ padding: 0;
317
+ }
318
+ }
319
+ }
320
+
321
+ form .wysihtml5-toolbar {
322
+ margin-top: 25px;
323
+ background: $color-light-dark;
324
+
325
+ & > .group {
326
+ display: inline-block;
327
+ width: auto;
328
+ margin: 0 25px 0 0;
329
+ padding: 0;
330
+
331
+ a {
332
+ display: inline-block;
333
+ margin: 0 -3px 0 0;
334
+ padding: 10px;
335
+ line-height: 20px;
336
+ font-weight: 600;
337
+ color: $color-dark;
338
+
339
+ &:hover, &.wysihtml5-command-active, &.wysihtml5-command-dialog-opened {
340
+ background: $color-1;
341
+ color: $color-light;
342
+ i {
343
+ color: $color-light;
344
+ }
345
+ }
346
+ }
347
+
348
+ .dialog {
349
+ position: absolute;
350
+ width: 350px;
351
+ padding: 10px 25px;
352
+ background: $color-light-dark;
353
+ border: 1px solid $color-light-darker;
354
+
355
+ a:hover {
356
+ cursor: pointer;
357
+ }
358
+ }
359
+
360
+ &.right {
361
+ float: right;
362
+ margin: 0 0 0 25px;
363
+ a {
364
+ margin: 0;
365
+ }
366
+ }
367
+ }
368
+
369
+ &.wysihtml5-commands-disabled {
370
+
371
+ .group {
372
+
373
+ a {
374
+ color: $color-light-darker;
375
+ i {
376
+ color: $color-light-darker;
377
+ }
378
+ &:hover {
379
+ color: $color-light-darker;
380
+ background: transparent;
381
+ cursor: default;
382
+ i {
383
+ color: $color-light-darker;
384
+ }
385
+ }
386
+ &.wysihtml5-action-active {
387
+ background: $color-1;
388
+ color: $color-light;
389
+ i {
390
+ color: $color-light;
391
+ }
392
+ &:hover {
393
+ cursor: pointer;
394
+ }
395
+ }
396
+ }
397
+ }
398
+ }
399
+ }
400
+
401
+ #wysihtml5-insert-image-modal {
402
+ display: none;
403
+ position: fixed;
404
+ top: 0;
405
+ left: 0;
406
+ width: 100%;
407
+ height: 100%;
408
+ z-index: 9999;
409
+ background: rgba(0,0,0,0.5);
410
+
411
+ .modal {
412
+ position: absolute;
413
+ width: 662px;
414
+ height: 400px;
415
+ padding: 10px 20px;
416
+ background: $color-light-dark;
417
+ border: 1px solid $color-light-darkest;
418
+ opacity: 1;
419
+ overflow: scroll;
420
+
421
+ a.close {
422
+ float: right;
423
+ padding: 5px 10px;
424
+ border: 2px solid $color-light-darkest;
425
+ color: $color-light-darkest;
426
+ font-size: 24px;
427
+ font-weight: 600;
428
+ &:hover {
429
+ color: $color-1;
430
+ border-color: $color-1;
431
+ }
432
+ }
433
+
434
+ h1 {
435
+ font-size: 24px;
436
+ }
437
+
438
+ hr {
439
+ background: $color-light-darker;
440
+ }
441
+
442
+ img {
443
+ float: left;
444
+ width: 125px;
445
+ margin: 10px;
446
+ border: 5px solid transparent;
447
+ outline: 2.5px solid $color-light-darker;
448
+ &:hover {
449
+ cursor: pointer;
450
+ outline-color: $color-1;
451
+ }
452
+ }
453
+
454
+ div.loading {
455
+ float: left;
456
+ width: 125px;
457
+ margin: 10px;
458
+ border: 5px solid transparent;
459
+ outline: 2.5px solid $color-light-darker;
460
+ }
461
+ }
462
+ }
463
+
464
+ .wysihtml5-sandbox {
465
+ margin: 0 0 12px 0 !important;
466
+ }
467
+
468
+ .wysihtml5-textarea {
469
+ margin-top: 0;
470
+ }
@@ -0,0 +1,39 @@
1
+ /*
2
+ * formatting
3
+ *
4
+ */
5
+ $sidebar-width: 100px;
6
+
7
+ /*
8
+ * additional color helpers
9
+ *
10
+ * several shades of grey (no novel included)
11
+ * from lightest to darkest
12
+ *
13
+ */
14
+ $shade-1: $color-light;
15
+ $shade-2: $color-light-dark;
16
+ $shade-3: lighten($color-dark, 60%);
17
+ $shade-4: lighten($color-dark, 50%);
18
+
19
+ /*
20
+ * mixins
21
+ *
22
+ */
23
+ @mixin media($size) {
24
+ @if $size == tablet {
25
+ @media (max-width: 800px) { @content; }
26
+ }
27
+ @if $size == phone {
28
+ @media (max-width: 500px) { @content; }
29
+ }
30
+ }
31
+
32
+ /*
33
+ * global styles
34
+ *
35
+ */
36
+ * {
37
+ font-family: 'Source Sans Pro', 'Segoe UI', 'Droid Sans', Tahoma,
38
+ "Helvetica Neue", Helvetica, Arial, sans-serif;
39
+ }
@@ -0,0 +1,121 @@
1
+ header {
2
+ position: relative;
3
+ background: $color-light-dark;
4
+ margin: 0 0 25px 0;
5
+ padding: 25px;
6
+ @include media(tablet) {
7
+ margin-bottom: 0;
8
+ }
9
+
10
+ h1 {
11
+ margin: 0;
12
+ font-weight: 200;
13
+ }
14
+
15
+ a.new {
16
+ margin: -5px 0 0 25px;
17
+ padding: 20px;
18
+ font-size: 22px;
19
+ span, i {
20
+ color: $color-light;
21
+ font-size: 22px;
22
+ }
23
+ }
24
+
25
+ div.dropdown-toggle {
26
+ a.trigger {
27
+ &.active {
28
+ background: $color-1-darker;
29
+ }
30
+ }
31
+ ul {
32
+ display: none;
33
+ position: absolute;
34
+ top: 46px;
35
+ right: -3px;
36
+ min-width: 200px;
37
+ padding: 0;
38
+ list-style: none;
39
+ border-right: 3px solid white;
40
+ border-bottom: 3px solid white;
41
+ border-left: 3px solid white;
42
+ li {
43
+ a {
44
+ display: block;
45
+ padding: 10px;
46
+ font-size: 16px;
47
+ color: $color-light;
48
+ background: $color-1;
49
+ &:hover {
50
+ color: $color-light;
51
+ background: $color-1-light;
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+
58
+ div.button-toggle {
59
+ float: right;
60
+ position: relative;
61
+ }
62
+
63
+ div.title-toggle {
64
+ display: inline-block;
65
+ position: relative;
66
+ h1 a {
67
+ padding: 7.5px 10px;
68
+ background: $color-1;
69
+ &.trigger {
70
+ display: inline-block;
71
+ vertical-align: middle;
72
+ }
73
+ i {
74
+ font-size: 28px;
75
+ color: $color-light;
76
+ }
77
+ }
78
+ ul {
79
+ top: 39px;
80
+ }
81
+ }
82
+
83
+ .breadcrumbs {
84
+ margin-bottom: 15px;
85
+ a {
86
+ &.disabled {
87
+ color: $shade-4;
88
+ &:hover {
89
+ cursor: default;
90
+ }
91
+ }
92
+ }
93
+ span {
94
+ color: $shade-3;
95
+ margin: 0 5px;
96
+ }
97
+ }
98
+
99
+ .published-toggle {
100
+ position: absolute;
101
+ top: 40px;
102
+ right: 30px;
103
+ padding: 10px 15px;
104
+ background: $color-danger;
105
+ span, i {
106
+ color: $color-light;
107
+ }
108
+ i {
109
+ margin-right: 10px;
110
+ }
111
+ &:hover {
112
+ color: $color-danger-dark;
113
+ }
114
+ &.published {
115
+ background: $color-success;
116
+ &:hover {
117
+ background: $color-success-dark;
118
+ }
119
+ }
120
+ }
121
+ }