flattened_active_admin 0.0.2
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/README.rdoc +3 -0
- data/Rakefile +21 -0
- data/app/assets/stylesheets/flattened_active_admin/_base.css.scss +42 -0
- data/app/assets/stylesheets/flattened_active_admin/_forms.css.scss +355 -0
- data/app/assets/stylesheets/flattened_active_admin/_header.css.scss +156 -0
- data/app/assets/stylesheets/flattened_active_admin/_mixins.css.scss +1 -0
- data/app/assets/stylesheets/flattened_active_admin/_typography.css.scss +100 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_batch_actions.css.scss +11 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_blank_slates.scss +31 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_breadcrumbs.scss +20 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_buttons.scss +11 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_columns.scss +3 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_comments.css.scss +41 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_date_picker.css.scss +127 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_dropdown_menu.scss +150 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_flash_messages.css.scss +39 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_grid.scss +9 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_index_list.scss +12 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_links.scss +5 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_modal_dialog.scss +31 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_pagination.scss +34 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_panels.scss +6 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_popovers.css.scss +123 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_scopes.scss +10 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_status_tags.scss +16 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_table_tools.css.scss +64 -0
- data/app/assets/stylesheets/flattened_active_admin/components/_tables.css.scss +110 -0
- data/app/assets/stylesheets/flattened_active_admin/mixins/_all.css.scss +11 -0
- data/app/assets/stylesheets/flattened_active_admin/mixins/_buttons.css.scss +64 -0
- data/app/assets/stylesheets/flattened_active_admin/mixins/_gradients.css.scss +47 -0
- data/app/assets/stylesheets/flattened_active_admin/mixins/_icons.css.scss +20 -0
- data/app/assets/stylesheets/flattened_active_admin/mixins/_reset.css.scss +165 -0
- data/app/assets/stylesheets/flattened_active_admin/mixins/_rounded.css.scss +43 -0
- data/app/assets/stylesheets/flattened_active_admin/mixins/_sections.css.scss +31 -0
- data/app/assets/stylesheets/flattened_active_admin/mixins/_shadows.css.scss +22 -0
- data/app/assets/stylesheets/flattened_active_admin/mixins/_typography.scss +3 -0
- data/app/assets/stylesheets/flattened_active_admin/mixins/_utilities.scss +26 -0
- data/app/assets/stylesheets/flattened_active_admin/mixins/_variables.css.scss +45 -0
- data/app/assets/stylesheets/flattened_active_admin/pages/_logged_out.scss +44 -0
- data/app/assets/stylesheets/flattened_active_admin/print.css.scss +284 -0
- data/app/assets/stylesheets/flattened_active_admin/structure/_footer.scss +14 -0
- data/app/assets/stylesheets/flattened_active_admin/structure/_main_structure.scss +29 -0
- data/app/assets/stylesheets/flattened_active_admin/structure/_title_bar.scss +45 -0
- data/config/routes.rb +2 -0
- data/lib/flattened_active_admin/engine.rb +4 -0
- data/lib/flattened_active_admin/version.rb +3 -0
- data/lib/flattened_active_admin.rb +4 -0
- data/lib/generators/flattened_active_admin/variables/USAGE +8 -0
- data/lib/generators/flattened_active_admin/variables/templates/variables.css.scss +44 -0
- data/lib/generators/flattened_active_admin/variables/variables_generator.rb +9 -0
- data/lib/tasks/flattened_active_admin_tasks.rake +4 -0
- metadata +125 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
.blank_slate_container {
|
2
|
+
clear: both;
|
3
|
+
text-align: center;
|
4
|
+
|
5
|
+
.blank_slate {
|
6
|
+
@include rounded;
|
7
|
+
-webkit-font-smoothing: antialiased;
|
8
|
+
border: $blank-slate-border;
|
9
|
+
color: $blank-slate-primary-color;
|
10
|
+
display: inline-block;
|
11
|
+
font-size: 1.2em;
|
12
|
+
font-weight: bold;
|
13
|
+
padding: 14px 25px;
|
14
|
+
text-align: center;
|
15
|
+
|
16
|
+
small {
|
17
|
+
display: block;
|
18
|
+
font-size: 0.9em;
|
19
|
+
font-weight: normal;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
.admin_dashboard .blank_slate_container .blank_slate {
|
25
|
+
margin-top: 40px;
|
26
|
+
margin-bottom: 40px;
|
27
|
+
}
|
28
|
+
|
29
|
+
.with_sidebar .blank_slate_container .blank_slate {
|
30
|
+
margin-top: 80px;
|
31
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
.breadcrumb {
|
2
|
+
display: block;
|
3
|
+
font-size: 0.9em;
|
4
|
+
font-weight: normal;
|
5
|
+
line-height: 1.0em;
|
6
|
+
margin-bottom: 12px;
|
7
|
+
text-transform: uppercase;
|
8
|
+
|
9
|
+
a, a:link, a:visited, a:active {
|
10
|
+
color: $breadcrumbs-color;
|
11
|
+
text-decoration: none;
|
12
|
+
}
|
13
|
+
|
14
|
+
a:hover { text-decoration: underline; }
|
15
|
+
|
16
|
+
.breadcrumb_sep {
|
17
|
+
margin: 0 2px;
|
18
|
+
color: $breadcrumbs-separator-color;
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
// -------------------------------------- Admin Notes
|
2
|
+
.comments {
|
3
|
+
|
4
|
+
.active_admin_comment {
|
5
|
+
clear: both;
|
6
|
+
margin-top: 10px;
|
7
|
+
margin-bottom: 40px;
|
8
|
+
max-width: 700px;
|
9
|
+
|
10
|
+
.active_admin_comment_meta {
|
11
|
+
width: 130px;
|
12
|
+
float: left;
|
13
|
+
overflow: hidden;
|
14
|
+
font-size: 0.9em;
|
15
|
+
color: lighten($primary-color, 10%);
|
16
|
+
.active_admin_comment_author {
|
17
|
+
font-size: 1.2em;
|
18
|
+
font-weight: bold;
|
19
|
+
margin: 0;
|
20
|
+
color: $primary-color;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
.active_admin_comment_body {
|
24
|
+
margin-left: 150px;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
form.active_admin_comment {
|
28
|
+
margin: 0;
|
29
|
+
padding: 0;
|
30
|
+
margin-left: 150px;
|
31
|
+
|
32
|
+
fieldset.inputs {
|
33
|
+
margin: 0;
|
34
|
+
padding: 0;
|
35
|
+
background: none;
|
36
|
+
@include no-shadow;
|
37
|
+
}
|
38
|
+
li { padding: 0; }
|
39
|
+
fieldset.buttons { padding: 0; margin-top: 5px;}
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,127 @@
|
|
1
|
+
//= depend_on_asset "active_admin/datepicker/datepicker-nipple.png"
|
2
|
+
//= depend_on_asset "active_admin/datepicker/datepicker-header-bg.png"
|
3
|
+
//= depend_on_asset "active_admin/datepicker/datepicker-prev-link-icon.png"
|
4
|
+
//= depend_on_asset "active_admin/datepicker/datepicker-next-link-icon.png"
|
5
|
+
// -------------------------------------- Date Picker
|
6
|
+
.ui-datepicker {
|
7
|
+
background: #fff;
|
8
|
+
-webkit-background-clip: padding-box;
|
9
|
+
-moz-background-clip: padding-box;
|
10
|
+
background-clip: padding-box;
|
11
|
+
color: #fff;
|
12
|
+
display: none;
|
13
|
+
margin-top: 2px;
|
14
|
+
padding: 0;
|
15
|
+
text-align: center;
|
16
|
+
width: 160px;
|
17
|
+
|
18
|
+
background: image-url('active_admin/datepicker/datepicker-nipple.png') no-repeat 0 -40px;
|
19
|
+
|
20
|
+
a {
|
21
|
+
text-decoration: none;
|
22
|
+
&:hover {
|
23
|
+
cursor: pointer;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
.ui-datepicker-header {
|
28
|
+
background: image-url('active_admin/datepicker/datepicker-header-bg.png') no-repeat 0px 0px;
|
29
|
+
height: 12px;
|
30
|
+
padding: 16px 7px 8px;
|
31
|
+
position: relative;
|
32
|
+
z-index: 2000;
|
33
|
+
|
34
|
+
.ui-datepicker-title {
|
35
|
+
@include text-shadow(#000);
|
36
|
+
color: #fff;
|
37
|
+
display: block;
|
38
|
+
font-size: 1.1em;
|
39
|
+
font-weight: bold;
|
40
|
+
line-height: 0.8em;
|
41
|
+
text-align: center;
|
42
|
+
}
|
43
|
+
|
44
|
+
a {
|
45
|
+
color: #fff;
|
46
|
+
display: block;
|
47
|
+
height: 19px;
|
48
|
+
margin-top: -4px;
|
49
|
+
width: 20px;
|
50
|
+
|
51
|
+
&.ui-datepicker-prev {
|
52
|
+
float: left;
|
53
|
+
background: image-url('active_admin/datepicker/datepicker-prev-link-icon.png') no-repeat 2px 5px;
|
54
|
+
}
|
55
|
+
&.ui-datepicker-next {
|
56
|
+
float: right;
|
57
|
+
background: image-url('active_admin/datepicker/datepicker-next-link-icon.png') no-repeat 12px 5px;
|
58
|
+
}
|
59
|
+
&:active {
|
60
|
+
margin-top: -3px;
|
61
|
+
height: 18px;
|
62
|
+
}
|
63
|
+
|
64
|
+
span {
|
65
|
+
display: none;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
table.ui-datepicker-calendar {
|
71
|
+
@include rounded-bottom;
|
72
|
+
@include shadow(0,1px,6px,rgba(0,0,0,0.26));
|
73
|
+
background-color: #f4f4f4;
|
74
|
+
border: solid 1px #63686e;
|
75
|
+
left: 2px;
|
76
|
+
margin-bottom: 0px;
|
77
|
+
position: relative;
|
78
|
+
top: -2px;
|
79
|
+
width: 156px;
|
80
|
+
|
81
|
+
td, th {
|
82
|
+
padding: 0px;
|
83
|
+
text-align: center;
|
84
|
+
}
|
85
|
+
|
86
|
+
thead th {
|
87
|
+
background-color: #dbdddf;
|
88
|
+
color: #333333;
|
89
|
+
font-weight: normal;
|
90
|
+
font-size: 0.8em;
|
91
|
+
padding-top: 1px;
|
92
|
+
}
|
93
|
+
|
94
|
+
tbody {
|
95
|
+
color: #666666;
|
96
|
+
|
97
|
+
td {
|
98
|
+
border: none;
|
99
|
+
height: 24px;
|
100
|
+
width: 22px;
|
101
|
+
|
102
|
+
a {
|
103
|
+
@include rounded;
|
104
|
+
color: #666666;
|
105
|
+
font-weight: bold;
|
106
|
+
font-size: 0.85em;
|
107
|
+
padding: 4px;
|
108
|
+
|
109
|
+
&.ui-state-active {
|
110
|
+
background-color: #5a5f64;
|
111
|
+
color: #fff;
|
112
|
+
&.ui-state-hover {
|
113
|
+
background-color: #5a5f64;
|
114
|
+
color: #fff;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
&.ui-state-hover {
|
118
|
+
background-color: #eceef0;
|
119
|
+
}
|
120
|
+
&.ui-state-highlight {
|
121
|
+
background-color: #dbdddf;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
@@ -0,0 +1,150 @@
|
|
1
|
+
.dropdown_menu {
|
2
|
+
display: inline;
|
3
|
+
|
4
|
+
.dropdown_menu_button {
|
5
|
+
@include light-button;
|
6
|
+
position: relative;
|
7
|
+
padding-right: 22px !important;
|
8
|
+
cursor: pointer;
|
9
|
+
|
10
|
+
&:before {
|
11
|
+
content: ' ';
|
12
|
+
position: absolute;
|
13
|
+
width: 0;
|
14
|
+
height: 0;
|
15
|
+
border-width: 3px 3px 0;
|
16
|
+
border-style: solid;
|
17
|
+
border-color: #FFF transparent;
|
18
|
+
right: 12px;
|
19
|
+
top: 45%;
|
20
|
+
}
|
21
|
+
|
22
|
+
&:after {
|
23
|
+
content: ' ';
|
24
|
+
position: absolute;
|
25
|
+
width: 0;
|
26
|
+
height: 0;
|
27
|
+
border-width: 3px 3px 0;
|
28
|
+
border-style: solid;
|
29
|
+
border-color: #777 transparent;
|
30
|
+
right: 12px;
|
31
|
+
top: 45%;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
.dropdown_menu_nipple {
|
36
|
+
|
37
|
+
// The nipple's border
|
38
|
+
content: "";
|
39
|
+
position: absolute;
|
40
|
+
top: -6px;
|
41
|
+
display: block;
|
42
|
+
width: 0;
|
43
|
+
height: 0;
|
44
|
+
border-width: 0 6px 6px;
|
45
|
+
border-style: solid;
|
46
|
+
border-color: darken($primary-color, 4%) transparent;
|
47
|
+
z-index: 100;
|
48
|
+
|
49
|
+
// The nipple's inner shadow
|
50
|
+
|
51
|
+
&:before {
|
52
|
+
content: ' ';
|
53
|
+
position: absolute;
|
54
|
+
width: 0;
|
55
|
+
height: 0;
|
56
|
+
border-width: 0 5px 5px;
|
57
|
+
border-style: solid;
|
58
|
+
border-color: lighten($primary-color, 15%) transparent;
|
59
|
+
left: -5px;
|
60
|
+
top: 1px;
|
61
|
+
}
|
62
|
+
|
63
|
+
// The nipple's background color
|
64
|
+
|
65
|
+
&:after {
|
66
|
+
content: ' ';
|
67
|
+
position: absolute;
|
68
|
+
width: 0;
|
69
|
+
height: 0;
|
70
|
+
border-width: 0 5px 5px;
|
71
|
+
border-style: solid;
|
72
|
+
border-color: lighten($primary-color, 4%) transparent;
|
73
|
+
left: -5px;
|
74
|
+
top: 2px;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
.dropdown_menu_list_wrapper {
|
79
|
+
display: inline-block;
|
80
|
+
position: absolute;
|
81
|
+
background-color: white;
|
82
|
+
padding: 2px;
|
83
|
+
box-shadow: rgba(0,0,0,0.4) 0 1px 3px, lighten($primary-color, 15%) 0px 1px 0px 0px inset;
|
84
|
+
background-color: $primary-color;
|
85
|
+
border: solid 1px darken($primary-color, 10%);
|
86
|
+
border-top-color: darken($primary-color, 4%);
|
87
|
+
border-bottom-color: darken($primary-color, 17%);
|
88
|
+
|
89
|
+
border-radius: 4px;
|
90
|
+
|
91
|
+
.dropdown_menu_list {
|
92
|
+
display: block;
|
93
|
+
background-color: #FFF;
|
94
|
+
border: solid 1px darken($primary-color, 10%);
|
95
|
+
box-shadow: lighten($primary-color, 5%) 0px 1px 0px 0px;
|
96
|
+
border-radius: 3px;
|
97
|
+
margin: 0;
|
98
|
+
overflow: hidden;
|
99
|
+
padding: 8px;
|
100
|
+
|
101
|
+
list-style-type: none;
|
102
|
+
padding: 0;
|
103
|
+
|
104
|
+
li {
|
105
|
+
display: block;
|
106
|
+
border-bottom: solid 1px #ebebeb;
|
107
|
+
@include box-sizing(border-box);
|
108
|
+
|
109
|
+
a {
|
110
|
+
display: block;
|
111
|
+
@include box-sizing(padding-box);
|
112
|
+
font-size: 0.95em;
|
113
|
+
font-weight: bold;
|
114
|
+
padding: 7px 16px 5px;
|
115
|
+
text-decoration: none;
|
116
|
+
text-align: center;
|
117
|
+
-webkit-font-smoothing: antialiased;
|
118
|
+
|
119
|
+
&:hover {
|
120
|
+
@include highlight-gradient;
|
121
|
+
@include text-shadow(#5a83aa);
|
122
|
+
color: #FFF;
|
123
|
+
}
|
124
|
+
|
125
|
+
&:active {
|
126
|
+
@include reverse-highlight-gradient;
|
127
|
+
color: #FFF;
|
128
|
+
}
|
129
|
+
|
130
|
+
}
|
131
|
+
|
132
|
+
&:first-child {
|
133
|
+
a {
|
134
|
+
border-top-left-radius: 2px;
|
135
|
+
border-top-right-radius: 2px;
|
136
|
+
}
|
137
|
+
|
138
|
+
}
|
139
|
+
|
140
|
+
&:last-child {
|
141
|
+
a {
|
142
|
+
border-bottom-left-radius: 2px;
|
143
|
+
border-bottom-right-radius: 2px;
|
144
|
+
}
|
145
|
+
border: none;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
body.logged_in {
|
2
|
+
.flashes{
|
3
|
+
.flash {
|
4
|
+
background-color: #f7f1d3;
|
5
|
+
border-bottom: 1px solid #eee098;
|
6
|
+
color: #cb9810;
|
7
|
+
font-weight: bold;
|
8
|
+
font-size: 1.1em;
|
9
|
+
line-height: 1.0em;
|
10
|
+
padding: 13px 30px 11px;
|
11
|
+
position: relative;
|
12
|
+
|
13
|
+
&.flash_notice {
|
14
|
+
background-color: #dce9dd;
|
15
|
+
border-bottom: 1px solid #adcbaf;
|
16
|
+
border-top: 1px solid #adcbaf;
|
17
|
+
color: #416347;
|
18
|
+
}
|
19
|
+
&.flash_error {
|
20
|
+
background: #f5e4e4;
|
21
|
+
border-bottom: 1px solid #e0c2c0;
|
22
|
+
color: #b33c33;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
body.logged_out {
|
29
|
+
.flash {
|
30
|
+
@include no-shadow;
|
31
|
+
@include text-shadow(#fff);
|
32
|
+
background: none;
|
33
|
+
color: #666;
|
34
|
+
font-weight: bold;
|
35
|
+
line-height: 1.0em;
|
36
|
+
padding: 0;
|
37
|
+
margin-bottom: 8px;
|
38
|
+
}
|
39
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
// -------------------------------------- Index as Grid
|
2
|
+
table.index_grid td { border: none; background: none; padding: 0 20px 20px 0; margin: 0;}
|
3
|
+
|
4
|
+
// -------------------------------------- Columns
|
5
|
+
.columns {
|
6
|
+
clear: both;
|
7
|
+
padding: 0;
|
8
|
+
.column { float: left; }
|
9
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
.ui-widget-overlay {
|
2
|
+
position: fixed;
|
3
|
+
background: rgba(0,0,0,.2);
|
4
|
+
top: 0; left: 0; right: 0; bottom: 0;
|
5
|
+
z-index: 1001;
|
6
|
+
}
|
7
|
+
|
8
|
+
.ui-dialog {
|
9
|
+
position: fixed;
|
10
|
+
z-index: 1002;
|
11
|
+
@include section-background;
|
12
|
+
box-shadow: rgba(0,0,0,0.5) 0 0 10px;
|
13
|
+
|
14
|
+
.ui-dialog-titlebar {
|
15
|
+
@include section-header;
|
16
|
+
span { font-size: 1.1em }
|
17
|
+
}
|
18
|
+
.ui-dialog-titlebar-close { display: none }
|
19
|
+
|
20
|
+
ul { list-style-type: none }
|
21
|
+
li { margin: 10px 0 }
|
22
|
+
label { margin-right: 10px }
|
23
|
+
|
24
|
+
.ui-dialog-buttonpane, form {
|
25
|
+
padding: 7px 15px 13px
|
26
|
+
}
|
27
|
+
.ui-dialog-buttonpane button {
|
28
|
+
&:first-child { @include dark-button } // OK
|
29
|
+
&:last-child { @include light-button } // Cancel
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
.paginated_collection_contents {
|
2
|
+
clear: both;
|
3
|
+
}
|
4
|
+
|
5
|
+
.pagination {
|
6
|
+
float: right;
|
7
|
+
font-size: 0.9em;
|
8
|
+
margin-left: 10px;
|
9
|
+
|
10
|
+
a {
|
11
|
+
@include light-button;
|
12
|
+
}
|
13
|
+
|
14
|
+
span.page.current {
|
15
|
+
@include default-button;
|
16
|
+
}
|
17
|
+
|
18
|
+
a, span.page.current {
|
19
|
+
@include rounded(0px);
|
20
|
+
margin-right: 4px;
|
21
|
+
padding: 2px 5px;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
.pagination_information {
|
26
|
+
float: right;
|
27
|
+
margin-bottom: 5px;
|
28
|
+
color: #b3bcc1;
|
29
|
+
b { color: #5c6469; }
|
30
|
+
}
|
31
|
+
|
32
|
+
.download_links {
|
33
|
+
float: left;
|
34
|
+
}
|
@@ -0,0 +1,123 @@
|
|
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
|
+
@include gradient(lighten($primary-color, 4%), darken($primary-color, 5%));
|
9
|
+
border: solid 1px darken($primary-color, 10%);
|
10
|
+
border-top-color: darken($primary-color, 4%);
|
11
|
+
border-bottom-color: darken($primary-color, 17%);
|
12
|
+
|
13
|
+
border-radius: 4px;
|
14
|
+
|
15
|
+
.popover_nipple{
|
16
|
+
|
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
|
+
|
71
|
+
//-------------------------------------- Popover with action list
|
72
|
+
|
73
|
+
.popover {
|
74
|
+
ul.popover_contents {
|
75
|
+
list-style-type: none;
|
76
|
+
padding: 0;
|
77
|
+
|
78
|
+
li {
|
79
|
+
display: block;
|
80
|
+
border-bottom: solid 1px #ebebeb;
|
81
|
+
@include box-sizing(border-box);
|
82
|
+
|
83
|
+
a {
|
84
|
+
display: block;
|
85
|
+
@include box-sizing(padding-box);
|
86
|
+
font-size: 0.95em;
|
87
|
+
font-weight: bold;
|
88
|
+
padding: 7px 16px 5px;
|
89
|
+
text-decoration: none;
|
90
|
+
text-align: center;
|
91
|
+
-webkit-font-smoothing: antialiased;
|
92
|
+
|
93
|
+
&:hover {
|
94
|
+
@include highlight-gradient;
|
95
|
+
@include text-shadow(#5a83aa);
|
96
|
+
color: #FFF;
|
97
|
+
}
|
98
|
+
|
99
|
+
&:active {
|
100
|
+
@include reverse-highlight-gradient;
|
101
|
+
color: #FFF;
|
102
|
+
}
|
103
|
+
|
104
|
+
}
|
105
|
+
|
106
|
+
&:first-child {
|
107
|
+
a {
|
108
|
+
border-top-left-radius: 2px;
|
109
|
+
border-top-right-radius: 2px;
|
110
|
+
}
|
111
|
+
|
112
|
+
}
|
113
|
+
|
114
|
+
&:last-child {
|
115
|
+
a {
|
116
|
+
border-bottom-left-radius: 2px;
|
117
|
+
border-bottom-right-radius: 2px;
|
118
|
+
}
|
119
|
+
border: none;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
@@ -0,0 +1,16 @@
|
|
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 { background: #8daa92; }
|
10
|
+
&.warn, &.warning, &.orange { background: #e29b20; }
|
11
|
+
&.error, &.errored, &.red { background: #d45f53; }
|
12
|
+
|
13
|
+
&.yes { background: #6090DB }
|
14
|
+
&.no { background: grey }
|
15
|
+
|
16
|
+
}
|