aboutsummaryrefslogtreecommitdiffstats
path: root/src/css/dyna-rules.css
blob: 04259d7d824e2ee7f15c62ad68e703276a4cd19a (plain)
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
div > p:first-child {
    margin-top: 0;
    }
div > p:last-child {
    margin-bottom: 0;
    }
code {
    background-color: #eee;
    font: 11px monospace;
    padding: 2px 4px;
}
#diff {
    border: 0;
    border-top: 1px solid #eee;
    margin: 0;
    padding: 0.5em 0 0 0;
    white-space: nowrap;
    font-size: 0; /* otherwise spaces between inline-blocks will be rendered */
}
#diff .pane {
    border: 0;
    box-sizing: border-box;
    display: inline-block;
    font: 12px/1.8 monospace;
    margin: 0;
    padding: 0;
    position: relative;
    white-space: normal;
    width: 50%;
    }
#diff .pane .rulesContainer {
    position: relative;
    min-height: 150px; /* too short is confusing */
    }
#diff .ruleActions {
    padding: 0 0 1em 0;
    text-align: center;
    }
body[dir="ltr"] #revertButton:after {
    content: '\2009\f061';
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    vertical-align: baseline;
    display: inline-block;
    }
body[dir="rtl"] #revertButton:after {
    content: '\2009\f060';
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    vertical-align: baseline;
    display: inline-block;
    }
body[dir="ltr"] #commitButton:before {
    content: '\f060\2009';
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    vertical-align: baseline;
    display: inline-block;
    }
body[dir="rtl"] #commitButton:before {
    content: '\f061\2009';
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    vertical-align: baseline;
    display: inline-block;
    }
#revertButton,
#commitButton,
#diff.edit #editEnterButton {
    opacity: 0.25;
    pointer-events: none;
    }
#editStopButton,
#editCancelButton {
    display: none;
    }
#diff.dirty:not(.edit) #revertButton,
#diff.dirty:not(.edit) #commitButton {
    opacity: 1;
    pointer-events: auto;
    }
#diff.edit #editStopButton,
#diff.edit #editCancelButton {
    display: initial;
    }
#diff.edit #importButton,
#diff.edit #exportButton {
    display: none;
    }
#diff ul {
    border: 0;
    border-top: 1px solid #eee;
    list-style-type: none;
    margin: 0;
    overflow: hidden;
    padding: 1em 0 0 0;
    }
#diff.edit .right ul {
    visibility: hidden;
    }
#diff .left {
    border-right: 1px solid #eee;
    }
#diff .right > ul {
    color: #888;
    }
#diff li {
    background-color: #ddd;
    direction: ltr;
    padding: 0;
    text-align: left;
    white-space: nowrap;
    padding-left: 3px; /* a bit of padding; must also be in textarea */
    }
#diff li:nth-child(even) {
    background-color: #eee;
    }
#diff .right li {
    opacity: 0.5;
    }
#diff .right li:hover {
    }
#diff .right li.notLeft {
    color: #000;
    opacity: 1;
    }
#diff .right li.notRight {
    color: #000;
    }
#diff .right li.toRemove {
    color: #000;
    text-decoration: line-through;
    opacity: 1;
    }
#diff textarea {
    background-color: #f8f8ff;
    border: 0;
    color: black;
    margin: 0;
    border-top: 1px solid #eee;
    direction: ltr;
    font: 12px monospace;
    line-height: 1.8;
    overflow: hidden;
    overflow-y: auto;
    padding: 1em 0 0 3px; /* same left and top padding as ul/li */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    resize: none;
    visibility: hidden;
    white-space: pre; /* this implies nowrap; break only on \n and <br>.
                         nowrap doesn't consistently
                         respect \n's (example: Safari) per the CSS spec:
                         http://www.w3.org/wiki/CSS/Properties/white-space */
    word-wrap: normal;
    }
#diff.edit textarea {
    visibility: visible;
    }