active_admin_face 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +21 -0
- data/app/assets/images/active_admin_face/logo.jpg +0 -0
- data/app/assets/javascripts/active_admin_face/base.js.coffee +34 -0
- data/app/assets/stylesheets/active_admin_face/_base.scss +38 -0
- data/app/assets/stylesheets/active_admin_face/_forms.scss +551 -0
- data/app/assets/stylesheets/active_admin_face/_header.scss +283 -0
- data/app/assets/stylesheets/active_admin_face/_mixins.scss +1 -0
- data/app/assets/stylesheets/active_admin_face/_typography.scss +250 -0
- data/app/assets/stylesheets/active_admin_face/components/_batch_actions.scss +13 -0
- data/app/assets/stylesheets/active_admin_face/components/_blank_slates.scss +32 -0
- data/app/assets/stylesheets/active_admin_face/components/_breadcrumbs.scss +27 -0
- data/app/assets/stylesheets/active_admin_face/components/_buttons.scss +16 -0
- data/app/assets/stylesheets/active_admin_face/components/_ckeditor.scss +6 -0
- data/app/assets/stylesheets/active_admin_face/components/_columns.scss +3 -0
- data/app/assets/stylesheets/active_admin_face/components/_comments.scss +52 -0
- data/app/assets/stylesheets/active_admin_face/components/_date_picker.scss +315 -0
- data/app/assets/stylesheets/active_admin_face/components/_dropdown_menu.scss +161 -0
- data/app/assets/stylesheets/active_admin_face/components/_flash_messages.scss +44 -0
- data/app/assets/stylesheets/active_admin_face/components/_grid.scss +57 -0
- data/app/assets/stylesheets/active_admin_face/components/_index_list.scss +12 -0
- data/app/assets/stylesheets/active_admin_face/components/_init.scss +16 -0
- data/app/assets/stylesheets/active_admin_face/components/_links.scss +8 -0
- data/app/assets/stylesheets/active_admin_face/components/_modal_dialog.scss +67 -0
- data/app/assets/stylesheets/active_admin_face/components/_nav.scss +64 -0
- data/app/assets/stylesheets/active_admin_face/components/_pagination.scss +70 -0
- data/app/assets/stylesheets/active_admin_face/components/_panels.scss +89 -0
- data/app/assets/stylesheets/active_admin_face/components/_popovers.scss +124 -0
- data/app/assets/stylesheets/active_admin_face/components/_scopes.scss +10 -0
- data/app/assets/stylesheets/active_admin_face/components/_status_tags.scss +28 -0
- data/app/assets/stylesheets/active_admin_face/components/_table_tools.scss +70 -0
- data/app/assets/stylesheets/active_admin_face/components/_tables.scss +305 -0
- data/app/assets/stylesheets/active_admin_face/mixins/_all.scss +11 -0
- data/app/assets/stylesheets/active_admin_face/mixins/_buttons.scss +71 -0
- data/app/assets/stylesheets/active_admin_face/mixins/_gradients.scss +52 -0
- data/app/assets/stylesheets/active_admin_face/mixins/_icons.scss +31 -0
- data/app/assets/stylesheets/active_admin_face/mixins/_reset.scss +214 -0
- data/app/assets/stylesheets/active_admin_face/mixins/_rounded.scss +42 -0
- data/app/assets/stylesheets/active_admin_face/mixins/_sections.scss +38 -0
- data/app/assets/stylesheets/active_admin_face/mixins/_select.scss +22 -0
- data/app/assets/stylesheets/active_admin_face/mixins/_shadows.scss +21 -0
- data/app/assets/stylesheets/active_admin_face/mixins/_utilities.scss +17 -0
- data/app/assets/stylesheets/active_admin_face/mixins/_variables.scss +69 -0
- data/app/assets/stylesheets/active_admin_face/pages/_logged_out.scss +96 -0
- data/app/assets/stylesheets/active_admin_face/print.scss +283 -0
- data/app/assets/stylesheets/active_admin_face/structure/_footer.scss +28 -0
- data/app/assets/stylesheets/active_admin_face/structure/_main_structure.scss +86 -0
- data/app/assets/stylesheets/active_admin_face/structure/_title_bar.scss +69 -0
- data/config/routes.rb +2 -0
- data/lib/active_admin_face.rb +11 -0
- data/lib/active_admin_face/version.rb +3 -0
- data/lib/generators/active_admin_face/variables/USAGE +8 -0
- data/lib/generators/active_admin_face/variables/variables_generator.rb +15 -0
- metadata +126 -0
@@ -0,0 +1,89 @@
|
|
1
|
+
// ----------------------------------- Helper class to apply to elements to make them sections
|
2
|
+
.section, .panel {
|
3
|
+
@include section;
|
4
|
+
}
|
5
|
+
|
6
|
+
// ----------------------------------- Sidebar Sections
|
7
|
+
|
8
|
+
.sidebar_section {
|
9
|
+
@include section;
|
10
|
+
|
11
|
+
form fieldset.inputs {
|
12
|
+
background-color: $main-background-color;
|
13
|
+
border: 1px solid $secondary-color;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
.sidebar_section.panel {
|
18
|
+
background: #fff;
|
19
|
+
border: 1px solid #d3d8dc;
|
20
|
+
|
21
|
+
@include no-shadow;
|
22
|
+
|
23
|
+
@include rounded(0);
|
24
|
+
|
25
|
+
form .buttons {
|
26
|
+
background: #f1f5f6;
|
27
|
+
margin: 25px -15px -15px;
|
28
|
+
padding: 10px 15px;
|
29
|
+
}
|
30
|
+
|
31
|
+
form fieldset {
|
32
|
+
margin-bottom: 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
& > h3 {
|
36
|
+
background: $panelHeaderBck;
|
37
|
+
color: $panelHeaderTextColor;
|
38
|
+
border: none;
|
39
|
+
margin: 0;
|
40
|
+
padding: 8px 15px;
|
41
|
+
|
42
|
+
@include no-shadow;
|
43
|
+
|
44
|
+
@include rounded(0);
|
45
|
+
|
46
|
+
text-shadow: none;
|
47
|
+
font-weight: bold;
|
48
|
+
}
|
49
|
+
|
50
|
+
.filter_form_field {
|
51
|
+
label {
|
52
|
+
color: #95a5a6;
|
53
|
+
font-weight: normal;
|
54
|
+
font-size: 13px;
|
55
|
+
text-transform: uppercase;
|
56
|
+
font-family: $skinFontFamily;
|
57
|
+
padding: 7px 0;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
.panel {
|
63
|
+
// background: #fff;
|
64
|
+
border: 1px solid #d3d8dc;
|
65
|
+
position: relative;
|
66
|
+
|
67
|
+
@include no-shadow;
|
68
|
+
|
69
|
+
@include rounded(0);
|
70
|
+
|
71
|
+
> h3 {
|
72
|
+
background: #f0f4f5;
|
73
|
+
color: $panelHeaderBck;
|
74
|
+
padding: 8px 15px;
|
75
|
+
|
76
|
+
@include no-shadow;
|
77
|
+
|
78
|
+
@include rounded(0);
|
79
|
+
|
80
|
+
text-shadow: none;
|
81
|
+
font-weight: bold;
|
82
|
+
border-style: none none solid;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
// Hide unworking panel
|
87
|
+
#status-poiska-_sidebar_section {
|
88
|
+
display: none;
|
89
|
+
}
|
@@ -0,0 +1,124 @@
|
|
1
|
+
.popover {
|
2
|
+
display: inline-block;
|
3
|
+
position: absolute;
|
4
|
+
background-color: white;
|
5
|
+
padding: 2px;
|
6
|
+
box-shadow: rgba(0, 0, 0, 0.4) 0 1px 3px, lighten($primary-color, 15%) 0px 1px 0px 0px inset;
|
7
|
+
background-color: $primary-color;
|
8
|
+
|
9
|
+
@include gradient(lighten($primary-color, 4%), darken($primary-color, 5%));
|
10
|
+
|
11
|
+
border: solid 1px darken($primary-color, 10%);
|
12
|
+
border-top-color: darken($primary-color, 4%);
|
13
|
+
border-bottom-color: darken($primary-color, 17%);
|
14
|
+
border-radius: 4px;
|
15
|
+
|
16
|
+
.popover_nipple {
|
17
|
+
// The nipple's border
|
18
|
+
content: "";
|
19
|
+
position: absolute;
|
20
|
+
top: -6px;
|
21
|
+
display: block;
|
22
|
+
width: 0;
|
23
|
+
height: 0;
|
24
|
+
border-width: 0 6px 6px;
|
25
|
+
border-style: solid;
|
26
|
+
border-color: darken($primary-color, 4%) transparent;
|
27
|
+
z-index: 100;
|
28
|
+
|
29
|
+
// The nipple's inner shadow
|
30
|
+
|
31
|
+
&:before {
|
32
|
+
content: ' ';
|
33
|
+
position: absolute;
|
34
|
+
width: 0;
|
35
|
+
height: 0;
|
36
|
+
border-width: 0 5px 5px;
|
37
|
+
border-style: solid;
|
38
|
+
border-color: lighten($primary-color, 15%) transparent;
|
39
|
+
left: -5px;
|
40
|
+
top: 1px;
|
41
|
+
}
|
42
|
+
|
43
|
+
// The nipple's background color
|
44
|
+
|
45
|
+
&:after {
|
46
|
+
content: ' ';
|
47
|
+
position: absolute;
|
48
|
+
width: 0;
|
49
|
+
height: 0;
|
50
|
+
border-width: 0 5px 5px;
|
51
|
+
border-style: solid;
|
52
|
+
border-color: lighten($primary-color, 4%) transparent;
|
53
|
+
left: -5px;
|
54
|
+
top: 2px;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
.popover_contents {
|
59
|
+
display: block;
|
60
|
+
background-color: #FFF;
|
61
|
+
border: solid 1px darken($primary-color, 10%);
|
62
|
+
box-shadow: lighten($primary-color, 5%) 0px 1px 0px 0px;
|
63
|
+
border-radius: 3px;
|
64
|
+
margin: 0;
|
65
|
+
overflow: hidden;
|
66
|
+
padding: 8px;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
//-------------------------------------- Popover with action list
|
71
|
+
|
72
|
+
.popover {
|
73
|
+
ul.popover_contents {
|
74
|
+
list-style-type: none;
|
75
|
+
padding: 0;
|
76
|
+
|
77
|
+
li {
|
78
|
+
display: block;
|
79
|
+
border-bottom: solid 1px #ebebeb;
|
80
|
+
box-sizing: border-box;
|
81
|
+
|
82
|
+
a {
|
83
|
+
display: block;
|
84
|
+
box-sizing: padding-box;
|
85
|
+
font-size: 0.95em;
|
86
|
+
font-weight: bold;
|
87
|
+
padding: 7px 16px 5px;
|
88
|
+
text-decoration: none;
|
89
|
+
text-align: center;
|
90
|
+
-webkit-font-smoothing: antialiased;
|
91
|
+
|
92
|
+
&:hover {
|
93
|
+
@include highlight-gradient;
|
94
|
+
|
95
|
+
@include text-shadow(#5a83aa);
|
96
|
+
|
97
|
+
color: #FFF;
|
98
|
+
}
|
99
|
+
|
100
|
+
&:active {
|
101
|
+
@include reverse-highlight-gradient;
|
102
|
+
|
103
|
+
color: #FFF;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
&:first-child {
|
108
|
+
a {
|
109
|
+
border-top-left-radius: 2px;
|
110
|
+
border-top-right-radius: 2px;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
&:last-child {
|
115
|
+
a {
|
116
|
+
border-bottom-left-radius: 2px;
|
117
|
+
border-bottom-right-radius: 2px;
|
118
|
+
}
|
119
|
+
|
120
|
+
border: none;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
.status_tag {
|
2
|
+
background: darken($secondary-color, 15%);
|
3
|
+
color: #fff;
|
4
|
+
text-transform: uppercase;
|
5
|
+
letter-spacing: 0.15em;
|
6
|
+
padding: 3px 5px 2px 5px;
|
7
|
+
font-size: 0.8em;
|
8
|
+
|
9
|
+
&.ok, &.published, &.complete, &.completed, &.green {
|
10
|
+
background: #8daa92;
|
11
|
+
}
|
12
|
+
|
13
|
+
&.warn, &.warning, &.orange {
|
14
|
+
background: #e29b20;
|
15
|
+
}
|
16
|
+
|
17
|
+
&.error, &.errored, &.red {
|
18
|
+
background: #d45f53;
|
19
|
+
}
|
20
|
+
|
21
|
+
&.yes {
|
22
|
+
background: #6090DB;
|
23
|
+
}
|
24
|
+
|
25
|
+
&.no {
|
26
|
+
background: grey;
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
.table_tools {
|
2
|
+
@include clearfix;
|
3
|
+
|
4
|
+
margin-bottom: 16px;
|
5
|
+
}
|
6
|
+
|
7
|
+
.table_tools .dropdown_menu {
|
8
|
+
float: left;
|
9
|
+
}
|
10
|
+
|
11
|
+
a.table_tools_button, .table_tools .dropdown_menu_button {
|
12
|
+
@include light-button;
|
13
|
+
|
14
|
+
@include border-colors(#d9d9d9, #d0d0d0, #c5c5c5);
|
15
|
+
|
16
|
+
font-size: 0.9em;
|
17
|
+
padding: 4px 14px 4px;
|
18
|
+
margin: 0;
|
19
|
+
|
20
|
+
&:not(.disabled) {
|
21
|
+
&:hover {
|
22
|
+
background: #FFF;
|
23
|
+
}
|
24
|
+
|
25
|
+
&:active {
|
26
|
+
@include border-colors(#d7d7d7, #c8c8c8, #c3c3c3);
|
27
|
+
|
28
|
+
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.17) inset;
|
29
|
+
|
30
|
+
// @include gradient(#FFFFFF, #E8E8E8);
|
31
|
+
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.table_tools_segmented_control {
|
37
|
+
list-style-type: none;
|
38
|
+
padding: 0;
|
39
|
+
margin: 0;
|
40
|
+
|
41
|
+
li {
|
42
|
+
float: left;
|
43
|
+
|
44
|
+
a {
|
45
|
+
border-width: 1px .5px 1px .5px;
|
46
|
+
border-radius: 0;
|
47
|
+
}
|
48
|
+
|
49
|
+
&:first-child a {
|
50
|
+
border-left-width: 1px;
|
51
|
+
border-radius: 12px 0 0 12px;
|
52
|
+
}
|
53
|
+
|
54
|
+
&:last-child a {
|
55
|
+
border-right-width: 1px;
|
56
|
+
border-radius: 0 12px 12px 0;
|
57
|
+
}
|
58
|
+
|
59
|
+
&.selected a {
|
60
|
+
@include gradient(#F0F0F0, #FDFDFD);
|
61
|
+
|
62
|
+
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1) inset;
|
63
|
+
cursor: default;
|
64
|
+
|
65
|
+
&:hover {
|
66
|
+
@include gradient(#F0F0F0, #FDFDFD);
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
@@ -0,0 +1,305 @@
|
|
1
|
+
// ----------------------------------- Tables
|
2
|
+
|
3
|
+
table tr {
|
4
|
+
td {
|
5
|
+
vertical-align: top;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
// --------- Index Tables
|
10
|
+
|
11
|
+
table.index_table {
|
12
|
+
width: 100%;
|
13
|
+
margin-bottom: 10px;
|
14
|
+
border: 1px solid #d3d8dc;
|
15
|
+
border-spacing: 0;
|
16
|
+
background: #fff;
|
17
|
+
|
18
|
+
th {
|
19
|
+
@include section-header;
|
20
|
+
|
21
|
+
text-align: left;
|
22
|
+
background: #f1f5f6;
|
23
|
+
border: 1px #d3d8dc;
|
24
|
+
border-style: none solid solid none;
|
25
|
+
padding: 7px 10px;
|
26
|
+
|
27
|
+
@include no-shadow;
|
28
|
+
|
29
|
+
color: $skinTextColor;
|
30
|
+
|
31
|
+
a, a:link, a:visited {
|
32
|
+
color: $skinTextColor;
|
33
|
+
text-decoration: none;
|
34
|
+
display: block;
|
35
|
+
white-space: nowrap;
|
36
|
+
-webkit-font-smoothing: antialiased;
|
37
|
+
}
|
38
|
+
|
39
|
+
&.sortable a {
|
40
|
+
position: relative;
|
41
|
+
padding-left: 20px;
|
42
|
+
|
43
|
+
&:before {
|
44
|
+
color: lighten($skinActiveColor, 10%);
|
45
|
+
|
46
|
+
@extend .fa;
|
47
|
+
|
48
|
+
@extend .fa-sort;
|
49
|
+
|
50
|
+
background: none;
|
51
|
+
position: absolute;
|
52
|
+
left: 5px;
|
53
|
+
top: 5px;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
&.sorted-asc a {
|
58
|
+
position: relative;
|
59
|
+
padding-left: 20px;
|
60
|
+
|
61
|
+
&:before {
|
62
|
+
font-size: 1.5em;
|
63
|
+
color: lighten($skinActiveColor, 10%);
|
64
|
+
|
65
|
+
@extend .fa;
|
66
|
+
|
67
|
+
@extend .fa-sort-amount-asc;
|
68
|
+
|
69
|
+
background: none;
|
70
|
+
position: absolute;
|
71
|
+
left: -5px;
|
72
|
+
top: -3px;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
&.sorted-desc a {
|
77
|
+
position: relative;
|
78
|
+
padding-left: 20px;
|
79
|
+
|
80
|
+
&:before {
|
81
|
+
color: lighten($skinActiveColor, 10%);
|
82
|
+
font-size: 1.5em;
|
83
|
+
|
84
|
+
@extend .fa;
|
85
|
+
|
86
|
+
@extend .fa-sort-amount-desc;
|
87
|
+
|
88
|
+
background: none;
|
89
|
+
position: absolute;
|
90
|
+
left: -5px;
|
91
|
+
top: -3px;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
&.sorted-asc, &.sorted-desc {
|
96
|
+
background: $title-bar-background;
|
97
|
+
|
98
|
+
// @include gradient(darken($secondary-gradient-start, 5%), darken($secondary-gradient-stop, 5%));
|
99
|
+
|
100
|
+
}
|
101
|
+
|
102
|
+
&:last-child {
|
103
|
+
border-right: none;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
tr.even td {
|
108
|
+
background: $table-stripe-color;
|
109
|
+
}
|
110
|
+
|
111
|
+
tr:hover td {
|
112
|
+
background-color: $table-selected-color;
|
113
|
+
}
|
114
|
+
|
115
|
+
tr.selected td {
|
116
|
+
background: $table-selected-color;
|
117
|
+
}
|
118
|
+
|
119
|
+
td {
|
120
|
+
padding: 10px $cell-horizontal-padding 8px $cell-horizontal-padding;
|
121
|
+
border-bottom: 1px solid #e8e8e8;
|
122
|
+
vertical-align: top;
|
123
|
+
color: $skinTextTable;
|
124
|
+
|
125
|
+
a, a:link, a:visited {
|
126
|
+
color: $skinTextTable;
|
127
|
+
display: inline-block;
|
128
|
+
padding: 2px 3px;
|
129
|
+
margin: (-2px) 0;
|
130
|
+
transition: $link_transition_dutarion;
|
131
|
+
|
132
|
+
&:hover {
|
133
|
+
color: #fff;
|
134
|
+
background: lighten($skinActiveColor, 10%);
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
a.delete_link {
|
139
|
+
&:hover {
|
140
|
+
background: darken($skinActiveColor, 10%);
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
// --------- Tables inside Panels
|
147
|
+
|
148
|
+
.panel_contents table {
|
149
|
+
margin-top: 5px;
|
150
|
+
|
151
|
+
th {
|
152
|
+
padding-top: 10px;
|
153
|
+
background: none;
|
154
|
+
color: $primary-color;
|
155
|
+
|
156
|
+
@include no-shadow;
|
157
|
+
|
158
|
+
text-transform: uppercase;
|
159
|
+
border-bottom: 1px solid #ccc;
|
160
|
+
}
|
161
|
+
|
162
|
+
tr.odd td {
|
163
|
+
background: darken($table-stripe-color, 3%);
|
164
|
+
}
|
165
|
+
|
166
|
+
tr.even td {
|
167
|
+
background: $table-stripe-color;
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
// -------------------------------------- Resource Attributes Table
|
172
|
+
.attributes_table {
|
173
|
+
overflow: hidden;
|
174
|
+
}
|
175
|
+
|
176
|
+
.attributes_table table {
|
177
|
+
col.even {
|
178
|
+
background: $table-stripe-color;
|
179
|
+
}
|
180
|
+
|
181
|
+
col.odd {
|
182
|
+
background: darken($table-stripe-color, 3%);
|
183
|
+
}
|
184
|
+
|
185
|
+
th, td {
|
186
|
+
padding: 8px $cell-horizontal-padding 6px $cell-horizontal-padding;
|
187
|
+
vertical-align: top;
|
188
|
+
border-bottom: 1px solid #e8e8e8;
|
189
|
+
}
|
190
|
+
|
191
|
+
th {
|
192
|
+
@include no-shadow;
|
193
|
+
|
194
|
+
@include no-gradient;
|
195
|
+
|
196
|
+
width: 150px;
|
197
|
+
font-weight: normal;
|
198
|
+
font-size: 1.2em;
|
199
|
+
padding: 10px 0 10px 10px;
|
200
|
+
font-family: $skinFontFamily;
|
201
|
+
text-transform: uppercase;
|
202
|
+
color: $primary-color;
|
203
|
+
|
204
|
+
@include text-shadow;
|
205
|
+
}
|
206
|
+
|
207
|
+
td {
|
208
|
+
padding: 10px 0 10px 10px;
|
209
|
+
font-family: $skinFontFamily;
|
210
|
+
color: $primary-color;
|
211
|
+
|
212
|
+
.empty {
|
213
|
+
color: #bbb;
|
214
|
+
font-size: 0.8em;
|
215
|
+
text-transform: uppercase;
|
216
|
+
letter-spacing: 0.2em;
|
217
|
+
}
|
218
|
+
|
219
|
+
&:first-child {
|
220
|
+
width: 25%;
|
221
|
+
}
|
222
|
+
}
|
223
|
+
}
|
224
|
+
|
225
|
+
.sidebar_section .attributes_table th {
|
226
|
+
width: 50px;
|
227
|
+
}
|
228
|
+
|
229
|
+
//-----------------------default table styling
|
230
|
+
|
231
|
+
table {
|
232
|
+
width: 100%;
|
233
|
+
max-width: 100%;
|
234
|
+
margin-bottom: 20px;
|
235
|
+
border: 1px solid lighten($primary-color, 35%);
|
236
|
+
|
237
|
+
// Cells
|
238
|
+
> thead,
|
239
|
+
> tbody,
|
240
|
+
> tfoot {
|
241
|
+
> tr {
|
242
|
+
> th,
|
243
|
+
> td {
|
244
|
+
padding: 6px;
|
245
|
+
line-height: 1.5;
|
246
|
+
vertical-align: top;
|
247
|
+
|
248
|
+
// border: 1px solid lighten( $primary-color, 35%);
|
249
|
+
|
250
|
+
}
|
251
|
+
}
|
252
|
+
}
|
253
|
+
|
254
|
+
// Bottom align for column headings
|
255
|
+
> thead > tr {
|
256
|
+
> th {
|
257
|
+
vertical-align: bottom;
|
258
|
+
border-bottom: 2px solid lighten($primary-color, 35%);
|
259
|
+
}
|
260
|
+
|
261
|
+
> th,
|
262
|
+
> td {
|
263
|
+
border-bottom-width: 2px;
|
264
|
+
}
|
265
|
+
}
|
266
|
+
|
267
|
+
> tbody > tr:hover {
|
268
|
+
background-color: $table-selected-color;
|
269
|
+
}
|
270
|
+
|
271
|
+
// Remove top border from thead by default
|
272
|
+
> caption + thead,
|
273
|
+
> colgroup + thead,
|
274
|
+
> thead:first-child {
|
275
|
+
> tr:first-child {
|
276
|
+
> th,
|
277
|
+
> td {
|
278
|
+
border-top: 0;
|
279
|
+
}
|
280
|
+
}
|
281
|
+
}
|
282
|
+
|
283
|
+
// Account for multiple tbody instances
|
284
|
+
> tbody + tbody {
|
285
|
+
border-top: 2px solid lighten($primary-color, 35%);
|
286
|
+
}
|
287
|
+
|
288
|
+
// Nesting
|
289
|
+
.table {
|
290
|
+
background-color: $main-background-color;
|
291
|
+
}
|
292
|
+
}
|
293
|
+
|
294
|
+
.table_actions {
|
295
|
+
text-align: center;
|
296
|
+
|
297
|
+
a.member_link {
|
298
|
+
text-decoration: none;
|
299
|
+
|
300
|
+
&:before {
|
301
|
+
font-size: 1.5em;
|
302
|
+
padding: 5px;
|
303
|
+
}
|
304
|
+
}
|
305
|
+
}
|