colorgy_style 0.0.0.1 → 0.0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/assets/javascripts/colorgy/addons/holder.js +1 -0
- data/assets/javascripts/colorgy/components/alert.js +9 -0
- data/assets/javascripts/colorgy/components/dropdown.js +8 -0
- data/assets/javascripts/colorgy/flash.js +86 -0
- data/assets/javascripts/colorgy/lib/interactiveStyle.js +5 -0
- data/assets/javascripts/colorgy/lib/jquery.getOrAddChild.js +12 -0
- data/assets/javascripts/colorgy/main.js +3 -0
- data/assets/javascripts/vendor/holder.js +2471 -0
- data/assets/javascripts/vendor/toastr.js +442 -0
- data/assets/stylesheets/colorgy/components/_alert.scss +40 -0
- data/assets/stylesheets/colorgy/components/_badge.scss +9 -0
- data/assets/stylesheets/colorgy/components/_breadcrumb.scss +9 -0
- data/assets/stylesheets/colorgy/components/_button.scss +50 -7
- data/assets/stylesheets/colorgy/components/_button_group.scss +33 -0
- data/assets/stylesheets/colorgy/components/_dropdown.scss +18 -0
- data/assets/stylesheets/colorgy/components/_input_group.scss +23 -0
- data/assets/stylesheets/colorgy/components/_label.scss +39 -0
- data/assets/stylesheets/colorgy/components/_list_group.scss +9 -0
- data/assets/stylesheets/colorgy/components/_media.scss +9 -0
- data/assets/stylesheets/colorgy/components/_nav.scss +33 -0
- data/assets/stylesheets/colorgy/components/_navbar.scss +23 -0
- data/assets/stylesheets/colorgy/components/_page_header.scss +11 -0
- data/assets/stylesheets/colorgy/components/_pager.scss +9 -0
- data/assets/stylesheets/colorgy/components/_pagination.scss +23 -0
- data/assets/stylesheets/colorgy/components/_panel.scss +39 -0
- data/assets/stylesheets/colorgy/components/_progress_bar.scss +41 -0
- data/assets/stylesheets/colorgy/components/_thumbnail.scss +9 -0
- data/assets/stylesheets/colorgy/components/_toast.scss +352 -0
- data/assets/stylesheets/colorgy/components/_well.scss +23 -0
- data/assets/stylesheets/colorgy/core/_base.scss +1 -1
- data/assets/stylesheets/colorgy/core/_config.scss +1 -1
- data/assets/stylesheets/colorgy/core/_grid.scss +1 -1
- data/assets/stylesheets/colorgy/core/_tools.scss +9 -0
- data/assets/stylesheets/colorgy/layouts/_default.scss +3 -0
- data/assets/stylesheets/colorgy/main.scss +3 -1
- data/assets/stylesheets/colorgy/structures/_jumbotron.scss +9 -0
- data/assets/stylesheets/vendor/animate.scss +3272 -0
- data/lib/colorgy_style/version.rb +1 -1
- data/styleguide/index.html.haml +40 -1
- data/styleguide/javascripts/body.js +7 -1
- data/styleguide/styleblocks/_alert.html.erb +3 -0
- data/styleguide/styleblocks/_badge.html.erb +5 -0
- data/styleguide/styleblocks/_breadcrumb.html.erb +5 -0
- data/styleguide/styleblocks/_button.html.erb +6 -6
- data/styleguide/styleblocks/_button_group.html.erb +41 -0
- data/styleguide/styleblocks/_dropdown.html.erb +65 -0
- data/styleguide/styleblocks/_input_group.html.erb +131 -0
- data/styleguide/styleblocks/_label.html.erb +7 -0
- data/styleguide/styleblocks/_list_group.html.erb +31 -0
- data/styleguide/styleblocks/_media.html.erb +60 -0
- data/styleguide/styleblocks/_nav.html.erb +18 -0
- data/styleguide/styleblocks/_navbar.html.erb +53 -0
- data/styleguide/styleblocks/_page_header.html.erb +3 -0
- data/styleguide/styleblocks/_pager.html.erb +6 -0
- data/styleguide/styleblocks/_pagination.html.erb +19 -0
- data/styleguide/styleblocks/_panel.html.erb +100 -0
- data/styleguide/styleblocks/_progress_bar.html.erb +12 -0
- data/styleguide/styleblocks/_thumbnail.html.erb +56 -0
- data/styleguide/styleblocks/_toast.html.erb +35 -0
- data/styleguide/styleblocks/_well.html.erb +1 -0
- data/styleguide/stylesheets/styleguide/styles.scss +14 -0
- metadata +53 -4
- data/assets/stylesheets/colorgy/components/.keep +0 -0
- data/assets/stylesheets/colorgy/structures/.keep +0 -0
@@ -1,18 +1,61 @@
|
|
1
|
-
//
|
1
|
+
// *************************************
|
2
|
+
//
|
3
|
+
// Default buttons.
|
2
4
|
//
|
3
5
|
// :hover - On mouse hovered.
|
4
6
|
// :active, .active - Active state.
|
5
7
|
// :disabled, .disabled - Disabled state.
|
6
|
-
// .
|
7
|
-
// .
|
8
|
-
// .
|
9
|
-
// .
|
8
|
+
// .lg - Large button.
|
9
|
+
// .sm - Small button.
|
10
|
+
// .xs - Tiny button.
|
11
|
+
// .block - Block level buttons, span the full width of a parent.
|
12
|
+
//
|
13
|
+
// Styleguide Button.
|
10
14
|
//
|
11
|
-
//
|
15
|
+
// *************************************
|
12
16
|
|
13
17
|
@import "bootstrap/buttons";
|
14
18
|
|
15
19
|
.btn {
|
16
20
|
@extend .btn-default;
|
17
|
-
|
21
|
+
|
22
|
+
&.primary {
|
23
|
+
@extend .btn-primary;
|
24
|
+
}
|
25
|
+
|
26
|
+
&.success {
|
27
|
+
@extend .btn-success;
|
28
|
+
}
|
29
|
+
|
30
|
+
&.info {
|
31
|
+
@extend .btn-info;
|
32
|
+
}
|
33
|
+
|
34
|
+
&.warning {
|
35
|
+
@extend .btn-warning;
|
36
|
+
}
|
37
|
+
|
38
|
+
&.danger {
|
39
|
+
@extend .btn-danger;
|
40
|
+
}
|
41
|
+
|
42
|
+
&.link {
|
43
|
+
@extend .btn-link;
|
44
|
+
}
|
45
|
+
|
46
|
+
&.lg {
|
47
|
+
@extend .btn-lg;
|
48
|
+
}
|
49
|
+
|
50
|
+
&.sm {
|
51
|
+
@extend .btn-sm;
|
52
|
+
}
|
53
|
+
|
54
|
+
&.xs {
|
55
|
+
@extend .btn-xs;
|
56
|
+
}
|
57
|
+
|
58
|
+
&.block {
|
59
|
+
@extend .btn-block;
|
60
|
+
}
|
18
61
|
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// *************************************
|
2
|
+
//
|
3
|
+
// Button groups.
|
4
|
+
//
|
5
|
+
// .lg - Large.
|
6
|
+
// .sm - Small.
|
7
|
+
// .xs - Extra small.
|
8
|
+
// .justified - Stretch at equal sizes to span the entire width of its parent.
|
9
|
+
//
|
10
|
+
// Styleguide ButtonGroup.
|
11
|
+
//
|
12
|
+
// *************************************
|
13
|
+
|
14
|
+
@import "bootstrap/button-groups";
|
15
|
+
|
16
|
+
.btn-group {
|
17
|
+
|
18
|
+
&.lg {
|
19
|
+
@extend .btn-group-lg;
|
20
|
+
}
|
21
|
+
|
22
|
+
&.sm {
|
23
|
+
@extend .btn-group-sm;
|
24
|
+
}
|
25
|
+
|
26
|
+
&.xs {
|
27
|
+
@extend .btn-group-xs;
|
28
|
+
}
|
29
|
+
|
30
|
+
&.justified {
|
31
|
+
@extend .btn-group-justified;
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// *************************************
|
2
|
+
//
|
3
|
+
// Dropdowns. Requires `components/dropdown.js` to make interactive.
|
4
|
+
//
|
5
|
+
// .right - Pulls right the <code>dropdown-menu</code>.
|
6
|
+
//
|
7
|
+
// Styleguide Dropdown.
|
8
|
+
//
|
9
|
+
// *************************************
|
10
|
+
|
11
|
+
@import "bootstrap/dropdowns";
|
12
|
+
|
13
|
+
.dropdown-menu {
|
14
|
+
|
15
|
+
&.right {
|
16
|
+
@extend .dropdown-menu-right;
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
// *************************************
|
2
|
+
//
|
3
|
+
// Input groups.
|
4
|
+
//
|
5
|
+
// .lg - Large.
|
6
|
+
// .sm - Small.
|
7
|
+
//
|
8
|
+
// Styleguide InputGroup.
|
9
|
+
//
|
10
|
+
// *************************************
|
11
|
+
|
12
|
+
@import "bootstrap/input-groups";
|
13
|
+
|
14
|
+
.input-group {
|
15
|
+
|
16
|
+
&.lg {
|
17
|
+
@extend .input-group-lg;
|
18
|
+
}
|
19
|
+
|
20
|
+
&.sm {
|
21
|
+
@extend .input-group-sm;
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
// *************************************
|
2
|
+
//
|
3
|
+
// Labels.
|
4
|
+
//
|
5
|
+
// .primary - Primary.
|
6
|
+
// .success - Success.
|
7
|
+
// .info - Info.
|
8
|
+
// .warning - Warning.
|
9
|
+
// .danger - Danger.
|
10
|
+
//
|
11
|
+
// Styleguide Label.
|
12
|
+
//
|
13
|
+
// *************************************
|
14
|
+
|
15
|
+
@import "bootstrap/labels";
|
16
|
+
|
17
|
+
.label {
|
18
|
+
@extend .label-default;
|
19
|
+
|
20
|
+
&.primary {
|
21
|
+
@extend .label-primary;
|
22
|
+
}
|
23
|
+
|
24
|
+
&.success {
|
25
|
+
@extend .label-success;
|
26
|
+
}
|
27
|
+
|
28
|
+
&.info {
|
29
|
+
@extend .label-info;
|
30
|
+
}
|
31
|
+
|
32
|
+
&.warning {
|
33
|
+
@extend .label-warning;
|
34
|
+
}
|
35
|
+
|
36
|
+
&.danger {
|
37
|
+
@extend .label-danger;
|
38
|
+
}
|
39
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// *************************************
|
2
|
+
//
|
3
|
+
// Navs.
|
4
|
+
//
|
5
|
+
// .tabs - Tabs.
|
6
|
+
// .pills - Pills.
|
7
|
+
// .stacked - Stacked.
|
8
|
+
// .justified - Justified.
|
9
|
+
//
|
10
|
+
// Styleguide Nav.
|
11
|
+
//
|
12
|
+
// *************************************
|
13
|
+
|
14
|
+
@import "bootstrap/navs";
|
15
|
+
|
16
|
+
.nav {
|
17
|
+
|
18
|
+
&.tabs {
|
19
|
+
@extend .nav-tabs;
|
20
|
+
}
|
21
|
+
|
22
|
+
&.pills {
|
23
|
+
@extend .nav-pills;
|
24
|
+
}
|
25
|
+
|
26
|
+
&.stacked {
|
27
|
+
@extend .nav-stacked;
|
28
|
+
}
|
29
|
+
|
30
|
+
&.justified {
|
31
|
+
@extend .nav-justified;
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
// *************************************
|
2
|
+
//
|
3
|
+
// Navbars.
|
4
|
+
//
|
5
|
+
// .default - Default style.
|
6
|
+
// .inverse - Inverted.
|
7
|
+
//
|
8
|
+
// Styleguide Navbar.
|
9
|
+
//
|
10
|
+
// *************************************
|
11
|
+
|
12
|
+
@import "bootstrap/navbar";
|
13
|
+
|
14
|
+
.navbar {
|
15
|
+
|
16
|
+
&.default {
|
17
|
+
@extend .navbar-default;
|
18
|
+
}
|
19
|
+
|
20
|
+
&.inverse {
|
21
|
+
@extend .navbar-inverse;
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
// *************************************
|
2
|
+
//
|
3
|
+
// Paginations.
|
4
|
+
//
|
5
|
+
// .lg - Large.
|
6
|
+
// .sm - Small.
|
7
|
+
//
|
8
|
+
// Styleguide Pagination.
|
9
|
+
//
|
10
|
+
// *************************************
|
11
|
+
|
12
|
+
@import "bootstrap/pagination";
|
13
|
+
|
14
|
+
.pagination {
|
15
|
+
|
16
|
+
&.lg {
|
17
|
+
@extend .pagination-lg;
|
18
|
+
}
|
19
|
+
|
20
|
+
&.sm {
|
21
|
+
@extend .pagination-sm;
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
// *************************************
|
2
|
+
//
|
3
|
+
// Panels.
|
4
|
+
//
|
5
|
+
// .primary - Primary.
|
6
|
+
// .success - Success.
|
7
|
+
// .info - Info.
|
8
|
+
// .warning - Warning.
|
9
|
+
// .danger - Danger.
|
10
|
+
//
|
11
|
+
// Styleguide Panel.
|
12
|
+
//
|
13
|
+
// *************************************
|
14
|
+
|
15
|
+
@import "bootstrap/panels";
|
16
|
+
|
17
|
+
.panel {
|
18
|
+
@extend .panel-default;
|
19
|
+
|
20
|
+
&.primary {
|
21
|
+
@extend .panel-primary;
|
22
|
+
}
|
23
|
+
|
24
|
+
&.success {
|
25
|
+
@extend .panel-success;
|
26
|
+
}
|
27
|
+
|
28
|
+
&.info {
|
29
|
+
@extend .panel-info;
|
30
|
+
}
|
31
|
+
|
32
|
+
&.warning {
|
33
|
+
@extend .panel-warning;
|
34
|
+
}
|
35
|
+
|
36
|
+
&.danger {
|
37
|
+
@extend .panel-danger;
|
38
|
+
}
|
39
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
// *************************************
|
2
|
+
//
|
3
|
+
// Progress bars.
|
4
|
+
//
|
5
|
+
// .primary - Primary.
|
6
|
+
// .success - Success.
|
7
|
+
// .info - Info.
|
8
|
+
// .warning - Warning.
|
9
|
+
// .danger - Danger.
|
10
|
+
// .striped - Striped.
|
11
|
+
// .striped.active - Stripe animated.
|
12
|
+
//
|
13
|
+
// Styleguide ProgressBar.
|
14
|
+
//
|
15
|
+
// *************************************
|
16
|
+
|
17
|
+
@import "bootstrap/progress-bars";
|
18
|
+
|
19
|
+
|
20
|
+
.progress-bar {
|
21
|
+
|
22
|
+
&.success {
|
23
|
+
@extend .progress-bar-success;
|
24
|
+
}
|
25
|
+
|
26
|
+
&.info {
|
27
|
+
@extend .progress-bar-info;
|
28
|
+
}
|
29
|
+
|
30
|
+
&.warning {
|
31
|
+
@extend .progress-bar-warning;
|
32
|
+
}
|
33
|
+
|
34
|
+
&.danger {
|
35
|
+
@extend .progress-bar-danger;
|
36
|
+
}
|
37
|
+
|
38
|
+
&.striped {
|
39
|
+
@extend .progress-bar-striped;
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,352 @@
|
|
1
|
+
// *************************************
|
2
|
+
//
|
3
|
+
// Toast notifications.
|
4
|
+
//
|
5
|
+
// With `flash.js`, you can send flash toasts interactively using JS:
|
6
|
+
// `flash.info()`, `flash.success()`, `flash.error()` and `flash.warning()`.
|
7
|
+
//
|
8
|
+
// For example:
|
9
|
+
//
|
10
|
+
// flash.info('Hello World', '<button class="btn">Ok</button>', 'Hi');
|
11
|
+
//
|
12
|
+
// .success - Success.
|
13
|
+
// .error - error.
|
14
|
+
// .warning - Warning.
|
15
|
+
//
|
16
|
+
// Styleguide Toast.
|
17
|
+
//
|
18
|
+
// *************************************
|
19
|
+
|
20
|
+
@import "compass/css3/transition";
|
21
|
+
|
22
|
+
.toast {
|
23
|
+
position: relative;
|
24
|
+
-moz-box-sizing: border-box;
|
25
|
+
-webkit-box-sizing: border-box;
|
26
|
+
box-sizing: border-box;
|
27
|
+
width: 300px;
|
28
|
+
-moz-border-radius: 3px;
|
29
|
+
-webkit-border-radius: 3px;
|
30
|
+
border-radius: 3px;
|
31
|
+
background-color: #555;
|
32
|
+
background-repeat: no-repeat;
|
33
|
+
background-position: 15px center;
|
34
|
+
color: #ffffff;
|
35
|
+
-moz-box-shadow: 0 0 12px #999999;
|
36
|
+
-webkit-box-shadow: 0 0 12px #999999;
|
37
|
+
box-shadow: 0 0 12px #999999;
|
38
|
+
overflow: hidden;
|
39
|
+
opacity: .8;
|
40
|
+
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
|
41
|
+
filter: alpha(opacity=80);
|
42
|
+
|
43
|
+
// @include transition-property(margin, margin-top);
|
44
|
+
// @include transition-duration(.3s);
|
45
|
+
|
46
|
+
// &:hover {
|
47
|
+
// -moz-box-shadow: 0 0 12px #000000;
|
48
|
+
// -webkit-box-shadow: 0 0 12px #000000;
|
49
|
+
// box-shadow: 0 0 12px #000000;
|
50
|
+
// opacity: 1;
|
51
|
+
// -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
|
52
|
+
// filter: alpha(opacity=100);
|
53
|
+
// cursor: pointer;
|
54
|
+
// }
|
55
|
+
|
56
|
+
> * {
|
57
|
+
display: table-cell;
|
58
|
+
}
|
59
|
+
|
60
|
+
.toast-content {
|
61
|
+
width: 10000px;
|
62
|
+
padding: 15px;
|
63
|
+
vertical-align: middle;
|
64
|
+
}
|
65
|
+
|
66
|
+
@media all and (max-width: 240px) {
|
67
|
+
|
68
|
+
& {
|
69
|
+
padding: 8px;
|
70
|
+
width: 11em;
|
71
|
+
}
|
72
|
+
|
73
|
+
& .toast-close-button {
|
74
|
+
right: -.2em;
|
75
|
+
top: -.2em;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
@media all and (min-width: 241px) and (max-width: 480px) {
|
80
|
+
|
81
|
+
& {
|
82
|
+
width: 18em;
|
83
|
+
|
84
|
+
.toast-content {
|
85
|
+
padding: 8px;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
& .toast-close-button {
|
90
|
+
right: -.2em;
|
91
|
+
top: -.2em;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
@media all and (min-width: 481px) and (max-width: 768px) {
|
96
|
+
|
97
|
+
& {
|
98
|
+
width: 25em;
|
99
|
+
|
100
|
+
.toast-content {
|
101
|
+
padding: 15px;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
// -------------------------------------
|
108
|
+
// Modifiers
|
109
|
+
// -------------------------------------
|
110
|
+
|
111
|
+
.toast-success,
|
112
|
+
.toast.success {
|
113
|
+
background-color: #51a351;
|
114
|
+
}
|
115
|
+
|
116
|
+
.toast-error,
|
117
|
+
.toast.error {
|
118
|
+
background-color: #bd362f;
|
119
|
+
}
|
120
|
+
|
121
|
+
.toast-warning,
|
122
|
+
.toast.warning {
|
123
|
+
background-color: #f89406;
|
124
|
+
}
|
125
|
+
|
126
|
+
// -------------------------------------
|
127
|
+
// Elements
|
128
|
+
// -------------------------------------
|
129
|
+
|
130
|
+
.toast-title {
|
131
|
+
font-weight: bold;
|
132
|
+
}
|
133
|
+
|
134
|
+
.toast-message {
|
135
|
+
-ms-word-wrap: break-word;
|
136
|
+
word-wrap: break-word;
|
137
|
+
}
|
138
|
+
|
139
|
+
.toast-message a,
|
140
|
+
.toast-message label {
|
141
|
+
color: #ffffff;
|
142
|
+
|
143
|
+
&:hover {
|
144
|
+
color: #cccccc;
|
145
|
+
text-decoration: none;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
.toast-actions {
|
150
|
+
position: relative;
|
151
|
+
text-align: center;
|
152
|
+
vertical-align: middle;
|
153
|
+
|
154
|
+
.btn, > * {
|
155
|
+
display: table-row;
|
156
|
+
display: block;
|
157
|
+
padding: 7px 14px 7px 16px;
|
158
|
+
min-height: 44px;
|
159
|
+
line-height: 44px;
|
160
|
+
|
161
|
+
&,
|
162
|
+
&:hover,
|
163
|
+
&:active,
|
164
|
+
&:focus,
|
165
|
+
&:visited {
|
166
|
+
border: 0;
|
167
|
+
background-color: transparent;
|
168
|
+
color: #ffffff;
|
169
|
+
text-decoration: none;
|
170
|
+
cursor: pointer;
|
171
|
+
}
|
172
|
+
|
173
|
+
&::before {
|
174
|
+
content: '';
|
175
|
+
display: block;
|
176
|
+
position: absolute;
|
177
|
+
z-index: -1;
|
178
|
+
top: 0;
|
179
|
+
bottom: 0;
|
180
|
+
left: 0;
|
181
|
+
right: 0;
|
182
|
+
border: 1px solid rgba(255,255,255, .32);
|
183
|
+
border-top-width: 0;
|
184
|
+
border-right-width: 0;
|
185
|
+
border-bottom-width: 0;
|
186
|
+
}
|
187
|
+
|
188
|
+
&:first-child::before {
|
189
|
+
bottom: 50%;
|
190
|
+
}
|
191
|
+
|
192
|
+
&:last-child::before {
|
193
|
+
top: 50%;
|
194
|
+
border-top-width: 1px;
|
195
|
+
}
|
196
|
+
|
197
|
+
&:only-child::before {
|
198
|
+
top: 0;
|
199
|
+
bottom: 0;
|
200
|
+
border-top-width: 0;
|
201
|
+
}
|
202
|
+
|
203
|
+
&:hover::before {
|
204
|
+
background-color: rgba(255,255,255, .12);
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|
208
|
+
|
209
|
+
.toast-close-button {
|
210
|
+
position: relative;
|
211
|
+
right: -.3em;
|
212
|
+
top: -.3em;
|
213
|
+
float: right;
|
214
|
+
font-size: 20px;
|
215
|
+
font-weight: bold;
|
216
|
+
color: #ffffff;
|
217
|
+
-webkit-text-shadow: 0 1px 0 #ffffff;
|
218
|
+
text-shadow: 0 1px 0 #ffffff;
|
219
|
+
opacity: .8;
|
220
|
+
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
|
221
|
+
filter: alpha(opacity=80);
|
222
|
+
|
223
|
+
&:hover,
|
224
|
+
&:focus {
|
225
|
+
color: #000000;
|
226
|
+
text-decoration: none;
|
227
|
+
cursor: pointer;
|
228
|
+
opacity: .4;
|
229
|
+
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
|
230
|
+
filter: alpha(opacity=40);
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
button.toast-close-button {
|
235
|
+
padding: 0;
|
236
|
+
cursor: pointer;
|
237
|
+
background: transparent;
|
238
|
+
border: 0;
|
239
|
+
-webkit-appearance: none;
|
240
|
+
}
|
241
|
+
|
242
|
+
.toast-progress {
|
243
|
+
position: absolute;
|
244
|
+
left: 0;
|
245
|
+
bottom: 0;
|
246
|
+
height: 4px;
|
247
|
+
background-color: #000000;
|
248
|
+
opacity: .4;
|
249
|
+
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
|
250
|
+
filter: alpha(opacity=40);
|
251
|
+
}
|
252
|
+
|
253
|
+
// -------------------------------------
|
254
|
+
// Container Position
|
255
|
+
// -------------------------------------
|
256
|
+
|
257
|
+
#toast-container {
|
258
|
+
position: fixed;
|
259
|
+
z-index: 999999;
|
260
|
+
|
261
|
+
> * {
|
262
|
+
margin-bottom: 12px;
|
263
|
+
}
|
264
|
+
|
265
|
+
&.toast-top-center {
|
266
|
+
top: 0;
|
267
|
+
right: 0;
|
268
|
+
width: 100%;
|
269
|
+
}
|
270
|
+
|
271
|
+
&.toast-bottom-center {
|
272
|
+
right: 0;
|
273
|
+
bottom: 0;
|
274
|
+
width: 100%;
|
275
|
+
}
|
276
|
+
|
277
|
+
&.toast-top-full-width {
|
278
|
+
top: 0;
|
279
|
+
right: 0;
|
280
|
+
width: 100%;
|
281
|
+
}
|
282
|
+
|
283
|
+
&.toast-bottom-full-width {
|
284
|
+
right: 0;
|
285
|
+
bottom: 0;
|
286
|
+
width: 100%;
|
287
|
+
}
|
288
|
+
|
289
|
+
&.toast-top-left {
|
290
|
+
top: 12px;
|
291
|
+
left: 12px;
|
292
|
+
}
|
293
|
+
|
294
|
+
&.toast-top-right {
|
295
|
+
top: 12px;
|
296
|
+
right: 12px;
|
297
|
+
}
|
298
|
+
|
299
|
+
&.toast-bottom-right {
|
300
|
+
right: 12px;
|
301
|
+
bottom: 12px;
|
302
|
+
}
|
303
|
+
|
304
|
+
&.toast-bottom-left {
|
305
|
+
bottom: 12px;
|
306
|
+
left: 12px;
|
307
|
+
}
|
308
|
+
|
309
|
+
&.toast-top-center > div,
|
310
|
+
&.toast-bottom-center > div {
|
311
|
+
width: 300px;
|
312
|
+
margin-left: auto;
|
313
|
+
margin-right: auto;
|
314
|
+
}
|
315
|
+
|
316
|
+
&.toast-top-full-width > div,
|
317
|
+
&.toast-bottom-full-width > div {
|
318
|
+
width: 96%;
|
319
|
+
margin-left: auto;
|
320
|
+
margin-right: auto;
|
321
|
+
}
|
322
|
+
}
|
323
|
+
|
324
|
+
|
325
|
+
// -------------------------------------
|
326
|
+
// Icons
|
327
|
+
// -------------------------------------
|
328
|
+
|
329
|
+
.toast-error,
|
330
|
+
.toast.error {
|
331
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=") !important;
|
332
|
+
|
333
|
+
.toast-content {
|
334
|
+
padding-left: 50px;
|
335
|
+
}
|
336
|
+
}
|
337
|
+
.toast-success,
|
338
|
+
.toast.success {
|
339
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==") !important;
|
340
|
+
|
341
|
+
.toast-content {
|
342
|
+
padding-left: 50px;
|
343
|
+
}
|
344
|
+
}
|
345
|
+
.toast-warning,
|
346
|
+
.toast.warning {
|
347
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=") !important;
|
348
|
+
|
349
|
+
.toast-content {
|
350
|
+
padding-left: 50px;
|
351
|
+
}
|
352
|
+
}
|