File tree Expand file tree Collapse file tree
stylesheets/activeadmin_blaze_theme Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ @font-face {
2+ font-family : ' icomoon' ;
3+ src : font-url (' icomoon.eot?tb65y2' );
4+ src : font-url (' icomoon.eot?tb65y2#iefix' ) format (' embedded-opentype' ),
5+ font-url (' icomoon.ttf?tb65y2' ) format (' truetype' ),
6+ font-url (' icomoon.woff?tb65y2' ) format (' woff' ),
7+ font-url (' icomoon.svg?tb65y2#icomoon' ) format (' svg' );
8+ font-weight : normal ;
9+ font-style : normal ;
10+ }
11+
12+ [class ^= " icon-" ], [class *= " icon-" ] {
13+ /* use !important to prevent issues with browser extensions that change fonts */
14+ font-family : ' icomoon' !important ;
15+ speak : none ;
16+ font-style : normal ;
17+ font-weight : normal ;
18+ font-variant : normal ;
19+ text-transform : none ;
20+ line-height : 1 ;
21+
22+ /* Better Font Rendering =========== */
23+ -webkit-font-smoothing : antialiased ;
24+ -moz-osx-font-smoothing : grayscale ;
25+ }
26+
27+ .icon-pencil :before {
28+ content : " \e905 " ;
29+ }
30+ .icon-file-text2 :before {
31+ content : " \e926 " ;
32+ }
33+ .icon-folder-open :before {
34+ content : " \e930 " ;
35+ }
36+ .icon-price-tag :before {
37+ content : " \e935 " ;
38+ }
39+ .icon-floppy-disk :before {
40+ content : " \e962 " ;
41+ }
42+ .icon-search :before {
43+ content : " \e986 " ;
44+ }
45+ .icon-cogs :before {
46+ content : " \e995 " ;
47+ }
48+ .icon-bin :before {
49+ content : " \e9ac " ;
50+ }
51+ .icon-link :before {
52+ content : " \e9cb " ;
53+ }
54+ .icon-eye :before {
55+ content : " \e9ce " ;
56+ }
57+ .icon-plus :before {
58+ content : " \ea0a " ;
59+ }
60+ .icon-minus :before {
61+ content : " \ea0b " ;
62+ }
63+ .icon-table :before {
64+ content : " \ea70 " ;
65+ }
66+ .icon-share :before {
67+ content : " \ea7d " ;
68+ }
Original file line number Diff line number Diff line change 1+ @import ' icomoon' ;
12@import ' blaze/blaze' ;
23@import url (' https://fonts.googleapis.com/css?family=Roboto' );
34
@@ -674,6 +675,18 @@ body.active_admin {
674675 border-bottom : 0 none ;
675676 }
676677 }
678+ .col-actions {
679+ padding : 1px 2px 0 6px ;
680+ vertical-align : middle ;
681+ a .c-button {
682+ color : #222 ;
683+ margin-right : 1px ;
684+ margin-left : 1px ;
685+ }
686+ // .table_actions {
687+ // text-align: center;
688+ // }
689+ }
677690
678691 // title bar
679692 #title_bar {
@@ -768,7 +781,8 @@ body.active_admin {
768781 background-image : none ;
769782 }
770783 & .ui-dialog-titlebar-close {
771- display : none ;
784+ // display: none; // hides close button
785+ margin-right : 0 ;
772786 }
773787 }
774788 .ui-dialog-content {
Original file line number Diff line number Diff line change @@ -9,3 +9,20 @@ class Engine < ::Rails::Engine
99 end
1010 end
1111end
12+
13+ ActiveAdmin ::Views ::IndexAsTable ::IndexTableFor ::TableActions . class_eval do
14+ def item *args
15+ cl = args [ 2 ] [ :class ]
16+ if cl . include? 'view_link'
17+ args [ 0 ] = '<span class="icon-eye"></span> ' . html_safe + args [ 0 ]
18+ args [ 2 ] [ :class ] += ' c-button c-button--ghost-info u-xsmall'
19+ elsif cl . include? 'edit_link'
20+ args [ 0 ] = '<span class="icon-pencil"></span> ' . html_safe + args [ 0 ]
21+ args [ 2 ] [ :class ] += ' c-button c-button--ghost-info u-xsmall'
22+ elsif cl . include? 'delete_link'
23+ args [ 0 ] = '<span class="icon-bin"></span> ' . html_safe + args [ 0 ]
24+ args [ 2 ] [ :class ] += ' c-button c-button--ghost-error u-xsmall'
25+ end
26+ text_node link_to *args
27+ end
28+ end
Original file line number Diff line number Diff line change 11module ActiveAdminBlazeTheme
2- VERSION = '0.5.6 '
2+ VERSION = '0.5.8 '
33end
You can’t perform that action at this time.
0 commit comments