activeadmin_blaze_theme 0.2.2 → 0.2.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8de268e234775dd6ec714336cdfcfa3099977b51
4
- data.tar.gz: 709120d8309e679ea00eb6f9442ac9853efcf7f1
3
+ metadata.gz: b62a6f9a1f7bb1f14aecb9ff45c89b024f9ee90c
4
+ data.tar.gz: 7d65828b99ae146d8dd966caec162eb6477c88be
5
5
  SHA512:
6
- metadata.gz: b4fe541aafdf5014663e453658b560ed3dc493ca62f53ecb1a029822f4b069501f4e21a67fcbca4b6fd761f6db389f555b139570dc7c698769b8996ffd1c9276
7
- data.tar.gz: 675c8ea900807a83b0a7d504ea9507085a5ab8b510b8692891478086667ff3d290b89f00680803333cd689b0e345d5899290e8a029e0ea62e43220e41e215ee1
6
+ metadata.gz: 2ded722c1bcd17b961da7513562d2dee5257a25422ea6dc5cef43625bf5416a4d1978202acb665e5a239d86e2e90a32c693e0ddeea38f3c041d2ee94c6d060c2
7
+ data.tar.gz: 9817a79f09ee13260fd3d1800f4195a7f97f49213cf1f0f3df35bad041b6f5b24b4a00d1bf0a661fb1d9f6ac17666b508750c4b1b059007bd50c2d8b496e4c7b
data/README.md CHANGED
@@ -6,7 +6,7 @@ Features:
6
6
 
7
7
  - clean UI
8
8
  - compact nested forms
9
- - [customizable](#customize)
9
+ - [customizable](#customize): colors, sidebar position, compact title bar, scroll on cells
10
10
  - custom boolean input: [toggle](#toggle)
11
11
  - Blaze CSS [widgets](#blaze-widgets)
12
12
 
@@ -54,6 +54,28 @@ $height-inputs: 28px;
54
54
  $text-shadow: #000;
55
55
  ```
56
56
 
57
+ - To move sidebar on the left add to your ActiveAdmin styles (after blaze theme import):
58
+
59
+ ```css
60
+ #active_admin_content.with_sidebar {
61
+ @extend .sidebar_left;
62
+ }
63
+ ```
64
+
65
+ - More options:
66
+
67
+ ```css
68
+ // compact title bar
69
+ #title_bar {
70
+ @extend .compact_titlebar;
71
+ }
72
+
73
+ // scrollable table cells
74
+ .index_content table {
75
+ @extend .scoll_cells;
76
+ }
77
+ ```
78
+
57
79
  ## Custom fields
58
80
 
59
81
  ### Toggle
@@ -34,6 +34,41 @@ body.active_admin {
34
34
  box-shadow: initial;
35
35
  text-shadow: $text-shadow 0 1px 0;
36
36
  }
37
+ .compact_titlebar {
38
+ padding-top: 0;
39
+ padding-bottom: 0;
40
+ .breadcrumb {
41
+ float: left;
42
+ font-size: 1em;
43
+ line-height: initial;
44
+ margin: 0;
45
+ padding: 0;
46
+ }
47
+ #page_title {
48
+ font-size: 2em;
49
+ }
50
+ #titlebar_left, #titlebar_right {
51
+ height: 36px;
52
+ }
53
+ }
54
+ .sidebar_left {
55
+ #main_content_wrapper {
56
+ float: right;
57
+ width: calc( 100% - 300px );
58
+ #main_content {
59
+ margin-right: 0;
60
+ }
61
+ }
62
+ #sidebar {
63
+ margin-left: 0;
64
+ }
65
+ }
66
+ table.scoll_cells {
67
+ th, td {
68
+ max-width: 200px;
69
+ overflow: scroll;
70
+ }
71
+ }
37
72
 
38
73
  // forms
39
74
  form {
@@ -297,6 +332,12 @@ body.active_admin {
297
332
  }
298
333
  .site_title {
299
334
  color: $fg-menu-items;
335
+ img {
336
+ max-height: 36px;
337
+ max-width: 250px;
338
+ top: -1px;
339
+ vertical-align: middle;
340
+ }
300
341
  }
301
342
  ul.tabs {
302
343
  li > a {
@@ -463,40 +504,57 @@ body.active_admin {
463
504
  }
464
505
  }
465
506
  .index_table {
466
- @extend .c-table;
467
- // @extend .c-table--striped;
468
- // @extend .c-table--condensed;
469
- > thead {
470
- @extend .c-table__head;
471
- > tr {
472
- @extend .c-table__row;
473
- @extend .c-table__row--heading;
474
- > th {
475
- @extend .c-table__cell;
476
- margin-bottom: 0;
477
- &.col-selectable > div {
478
- margin-left: auto;
479
- margin-right: auto;
480
- }
481
- }
482
- }
507
+ th {
508
+ background-image: none;
509
+ background-color: #eee;
510
+ border: 0 none;
511
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 1px #fff inset;
483
512
  }
484
- > tbody {
485
- @extend .c-table__body;
513
+ tbody > tr > td:first-child {
486
514
  border-left: 1px solid $fg-table-borders;
515
+ }
516
+ tbody > tr > td {
487
517
  border-right: 1px solid $fg-table-borders;
488
- > tr {
489
- @extend .c-table__row;
490
- > td {
491
- @extend .c-table__cell;
492
- &.col-selectable > div {
493
- margin-left: auto;
494
- margin-right: auto;
495
- }
496
- }
497
- }
518
+ }
519
+ .col.col-selectable > div {
520
+ text-align: center;
498
521
  }
499
522
  }
523
+ // .index_table {
524
+ // @extend .c-table;
525
+ // // @extend .c-table--striped;
526
+ // // @extend .c-table--condensed;
527
+ // > thead {
528
+ // @extend .c-table__head;
529
+ // > tr {
530
+ // @extend .c-table__row;
531
+ // @extend .c-table__row--heading;
532
+ // > th {
533
+ // @extend .c-table__cell;
534
+ // margin-bottom: 0;
535
+ // &.col-selectable > div {
536
+ // margin-left: auto;
537
+ // margin-right: auto;
538
+ // }
539
+ // }
540
+ // }
541
+ // }
542
+ // > tbody {
543
+ // @extend .c-table__body;
544
+ // border-left: 1px solid $fg-table-borders;
545
+ // border-right: 1px solid $fg-table-borders;
546
+ // > tr {
547
+ // @extend .c-table__row;
548
+ // > td {
549
+ // @extend .c-table__cell;
550
+ // &.col-selectable > div {
551
+ // margin-left: auto;
552
+ // margin-right: auto;
553
+ // }
554
+ // }
555
+ // }
556
+ // }
557
+ // }
500
558
  .panel_contents table tr:last-child {
501
559
  > td, > th {
502
560
  border-bottom: 0 none;
@@ -505,6 +563,7 @@ body.active_admin {
505
563
 
506
564
  // title bar
507
565
  #title_bar {
566
+ background-image: none;
508
567
  .action_items span.action_item {
509
568
  > a,
510
569
  > .dropdown_menu > a {
@@ -580,4 +639,8 @@ body.active_admin {
580
639
  }
581
640
  }
582
641
  }
642
+ // textarea comments
643
+ #active_admin_comment_body {
644
+ width: 100%;
645
+ }
583
646
  }
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminBlazeTheme
2
- VERSION = "0.2.2"
2
+ VERSION = '0.2.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_blaze_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattia Roccoberton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-21 00:00:00.000000000 Z
11
+ date: 2017-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin