forked from Breeze/breeze.js.labs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
breeze.directives.css
78 lines (72 loc) · 1.73 KB
/
breeze.directives.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
* CSS to accompany the breeze.directives
* such as breeze.directives.js
*
* v.1.3
*
* Copyright 2014 IdeaBlade, Inc. All Rights Reserved.
* Licensed under the MIT License
* http://opensource.org/licenses/mit-license.php
* Author: Ward Bell
*/
/*#region validation */
.icon-asterisk-invalid {
color: red;
margin: 0.2em;
font-size: 2em;
font-weight: bold;
}
.z-required {
margin: 0.2em;
position: relative;
}
input + .z-decorator > .z-required {
top: 0.4em;
}
select + .z-decorator > .z-required {
top: 0.2em;
}
.invalid {
position: absolute;
display: none;
-moz-min-width: 200px;
-ms-min-width: 200px;
-o-min-width: 200px;
-webkit-min-width: 200px;
min-width: 200px;
min-height: 20px;
max-width: 450px;
max-height: 40px;
}
input:invalid,
select:invalid {
border: red solid 1px !important;
border-left: 5px solid red !important;
}
span.z-decorator span.invalid,
input:invalid + .z-decorator > .invalid,
select:invalid + .z-decorator > .invalid {
visibility: visible;
display: inline-block;
background-color: rgb(189, 54, 47);
margin: 0.3em 0 0 1em;
padding: 4px 10px;
-ms-border-radius: 3px 3px 3px 3px !important;
border-radius: 3px 3px 3px 3px !important;
background-position: 15px center;
background-repeat: no-repeat;
-webkit-box-shadow: 0 0 12px #999999;
-ms-box-shadow: 0 0 12px #999999;
box-shadow: 0 0 12px #999999;
color: #ffffff;
-ms-opacity: 0.8;
opacity: 0.8;
z-index: 20;
}
select:invalid + .z-decorator > .invalid {
margin: 0.1em 0 0 1em;
}
.invalid > i {
margin-right: 8px;
}
/*#endregion */