QueryBuilder.css
2.22 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
Edit in JSFiddle
JavaScript
HTML
CSS
Resources
Result
@charset "UTF-8";
/* CSS Document */
/*!
* jQuery QueryBuilder 1.3.0-SNAPSHOT
* Copyright 2014 Damien "Mistic" Sorel (http://www.strangeplanet.fr)
* Licensed under MIT (http://opensource.org/licenses/MIT)
*/
.rule-container, .rules-group-container, .rule-placeholder {
margin:4px 0;
border-radius:5px;
padding:5px;
border:1px solid #eee;
background:#fff;
background:rgba(255, 255, 255, 0.9);
}
/* GROUPS */
.rules-group-container {
padding:10px 10px 5px 10px;
border:1px solid #DCC896;
background:#FCF9ED;
background:rgba(250, 240, 210, 0.5);
}
.rules-group-header {
margin-bottom:10px;
}
.rules-group-header input[name$=_cond] {
display:none;
}
/* RULES */
.rules-list {
list-style:none;
padding:0 0 0 20px;
margin:0;
}
.rule-container {
}
.rule-container.has-error {
background:#fdd;
border-color:#f99;
}
.rule-container>div:not(.rule-header) {
display:inline-block;
margin:0 5px 0 0;
vertical-align:top;
}
.rule-value-container:not(:empty) {
border-left:1px solid #ddd;
padding-left:5px;
}
.rule-value-container label {
margin-bottom:0;
}
.rule-value-container label.block {
display:block;
}
.rule-container select, .rule-container input[type=text], .rule-container input[type=number] {
padding:1px;
}
/* TICKS */
.rules-list>* {
position:relative;
}
.rules-list>*:before, .rules-list>*:after {
content:'';
position:absolute;
left:-15px;
width:15px;
height:calc(50% + 4px);
border-color:#ccc;
border-style:solid;
}
.rules-list>*:before {
top:-2px;
border-width:0 0 2px 2px;
}
.rules-list>*:after {
top:50%;
border-width:0 0 0 2px;
}
.rules-list>*:first-child:before {
top:-12px;
height:calc(50% + 14px);
}
.rules-list>*:last-child:before {
border-radius:0 0 0 4px;
}
.rules-list>*:last-child:after {
display:none;
}
/* DRAG & DROP */
.rule-container .drag-handle, .rules-group-container .drag-handle {
cursor:move;
display:inline-block;
}
.rule-container .dragged, .rules-group-container .dragged {
opacity:0.5;
}
.rule-placeholder {
border:1px dashed #bbb;
opacity:0.7;
}
body{
background-color: transparent !important;
}