express_admin 1.7.16 → 1.7.17
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0eaaae82f2148cb6943ecdfde604389811da1f06
|
4
|
+
data.tar.gz: ea5b54d2df3a06102dad13a9ccf07f6fb9f0ca77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a77959c7d0aea0afb100afcd2ae74cfdc364fa581d71eb45b560a950071e5783b6c45aa79498b699534fecbe56c850589ba6b106c6082c7a5cfc0acf2c1b69c
|
7
|
+
data.tar.gz: d440136c7a263d993632f5902ad00398f27aa740fdf6901065c0037e45873566e4540abee6a201f4c69f855d53f2fb986addd7d38ab9085f095d5bd88152e437
|
@@ -1,84 +1,52 @@
|
|
1
1
|
.flash-messages
|
2
|
-
z-index: 999
|
3
2
|
position: fixed
|
4
|
-
left: 50%
|
5
3
|
top: 5%
|
6
|
-
|
4
|
+
left: 50%
|
7
5
|
transform: translateX(-50%)
|
8
|
-
width: auto
|
9
|
-
|
10
|
-
.success
|
11
|
-
background-color: $success-color
|
12
|
-
border-color: $success-color-alt
|
13
|
-
|
14
|
-
.error
|
15
|
-
background-color: $error-color
|
16
|
-
border-color: $error-color-alt
|
17
|
-
|
18
|
-
.notice
|
19
|
-
background-color: $notice-color
|
20
|
-
border-color: $notice-color-alt
|
21
|
-
color: #4f4f4f
|
22
|
-
|
23
|
-
.close
|
24
|
-
color: #4f4f4f
|
25
|
-
|
26
|
-
.alert
|
27
|
-
background-color: $alert-color
|
28
|
-
border-color: $alert-color-alt
|
29
|
-
|
30
|
-
.alert-box
|
31
|
-
color: #FFFFFF
|
32
|
-
display: block
|
33
|
-
font-size: .9rem
|
34
|
-
line-height: 1.5em
|
35
|
-
position: relative
|
36
|
-
border:
|
37
|
-
radius: 3px
|
38
|
-
style: solid
|
39
|
-
width: 1px
|
40
|
-
margin: 0.5rem 0 1.11111rem 0
|
41
|
-
padding: 1rem
|
42
|
-
padding-right: 2rem
|
43
|
-
transition: opacity 300ms ease-out
|
44
|
-
|
45
|
-
|
46
|
-
.close
|
47
|
-
font-weight: 700
|
48
|
-
font-size: 1.5em
|
49
|
-
text-decoration: none !important
|
50
|
-
position: absolute
|
51
|
-
top: 45%
|
52
|
-
right: 0.5rem
|
53
|
-
transform: translateY(-50%)
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
a
|
58
|
-
color: #fff
|
59
|
-
opacity: 1 !important
|
60
|
-
text-decoration: underline
|
61
|
-
|
62
|
-
&:hover
|
63
|
-
text-decoration: none
|
64
|
-
|
65
|
-
|
66
|
-
&.warning
|
67
|
-
h1
|
68
|
-
font-size: 1.2rem
|
69
|
-
color: white
|
70
|
-
|
71
|
-
ul
|
72
|
-
padding-left: 15px
|
73
|
-
color: white
|
74
|
-
|
75
|
-
a
|
76
|
-
color: black
|
77
|
-
text-decoration: underline
|
78
|
-
|
79
|
-
.dot
|
80
|
-
color: transparent
|
81
6
|
|
82
|
-
|
83
|
-
|
84
|
-
|
7
|
+
.ae-flash
|
8
|
+
display: flex
|
9
|
+
flex-flow: row nowrap
|
10
|
+
margin-bottom: 10px
|
11
|
+
padding: 5px
|
12
|
+
align-items: center
|
13
|
+
border: 1px solid rgba(0, 0, 0, 0.87)
|
14
|
+
border-radius: 2px
|
15
|
+
|
16
|
+
.ae-flash-message,
|
17
|
+
.ae-flash-close
|
18
|
+
margin: 10px
|
19
|
+
color: inherit
|
20
|
+
|
21
|
+
.ae-flash-message
|
22
|
+
flex-grow: 2
|
23
|
+
|
24
|
+
.ae-flash-close
|
25
|
+
flex-grow: 1
|
26
|
+
font-size: 1.5rem
|
27
|
+
font-weight: 700
|
28
|
+
margin-bottom: 13px
|
29
|
+
max-width: 50px
|
30
|
+
text-align: center
|
31
|
+
color: inherit
|
32
|
+
cursor: pointer
|
33
|
+
&:hover
|
34
|
+
color: inherit
|
35
|
+
|
36
|
+
.ae-flash-success,
|
37
|
+
.ae-flash-error,
|
38
|
+
.ae-flash-success,
|
39
|
+
.ae-flash-notice,
|
40
|
+
.ae-flash-alert
|
41
|
+
border: none
|
42
|
+
color: #fff
|
43
|
+
|
44
|
+
.ae-flash-success,
|
45
|
+
.ae-flash-notice
|
46
|
+
background-color: $success-color
|
47
|
+
|
48
|
+
.ae-flash-error
|
49
|
+
background-color: $error-color
|
50
|
+
|
51
|
+
.ae-flash-alert
|
52
|
+
background-color: $alert-color
|
@@ -2,10 +2,10 @@ module ExpressAdmin
|
|
2
2
|
class FlashMessages < ExpressTemplates::Components::Base
|
3
3
|
|
4
4
|
contains -> {
|
5
|
-
helpers.flash.each do |
|
6
|
-
div(class:"flash
|
7
|
-
span
|
8
|
-
a(class: 'close'
|
5
|
+
helpers.flash.each do |key, value|
|
6
|
+
div(class:"ae-flash ae-flash-#{key}") {
|
7
|
+
span(class: 'ae-flash-message') { value }
|
8
|
+
a(class: 'ae-flash-close') { "×".html_safe }
|
9
9
|
}
|
10
10
|
end
|
11
11
|
|
@@ -13,7 +13,7 @@ module ExpressAdmin
|
|
13
13
|
script {
|
14
14
|
%Q(
|
15
15
|
$(function() {
|
16
|
-
$('
|
16
|
+
$('.ae-flash-close').on('click', function(e){
|
17
17
|
e.preventDefault();
|
18
18
|
$(this).parents('.flash-messages').remove();
|
19
19
|
});
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: express_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Talcott Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: express_templates
|