uBlock/src/css/dyna-rules.css

172 lines
3.7 KiB
CSS
Raw Normal View History

div > p:first-child {
margin-top: 0;
}
div > p:last-child {
margin-bottom: 0;
}
2015-01-18 21:01:50 +01:00
code {
background-color: #eee;
font: 11px monospace;
padding: 2px 4px;
2015-02-11 17:34:51 +01:00
}
#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 */
2015-02-11 17:34:51 +01:00
}
#diff .pane {
2015-02-11 17:34:51 +01:00
border: 0;
2015-02-11 19:13:04 +01:00
box-sizing: border-box;
2015-02-11 17:34:51 +01:00
display: inline-block;
2015-02-11 18:03:21 +01:00
font: 12px/1.8 monospace;
2015-02-11 17:34:51 +01:00
margin: 0;
padding: 0;
position: relative;
white-space: normal;
width: 50%;
2015-02-11 17:34:51 +01:00
}
#diff .pane .rulesContainer {
position: relative;
min-height: 150px; /* too short is confusing */
}
#diff .ruleActions {
2015-02-11 17:34:51 +01:00
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;
2015-02-11 17:34:51 +01:00
}
#diff .right > ul {
color: #888;
}
#diff li {
background-color: #ddd;
2015-02-11 17:34:51 +01:00
direction: ltr;
2015-02-11 18:03:21 +01:00
padding: 0;
2015-02-11 17:34:51 +01:00
text-align: left;
white-space: nowrap;
padding-left: 3px; /* a bit of padding; must also be in textarea */
2015-02-11 17:34:51 +01:00
}
#diff li:nth-child(even) {
2015-02-11 17:34:51 +01:00
background-color: #eee;
}
#diff .right li {
opacity: 0.5;
2015-02-11 17:34:51 +01:00
}
#diff .right li:hover {
}
#diff .right li.notLeft {
color: #000;
opacity: 1;
2015-02-11 17:34:51 +01:00
}
#diff .right li.notRight {
color: #000;
}
#diff .right li.toRemove {
color: #000;
text-decoration: line-through;
opacity: 1;
2015-02-11 17:34:51 +01:00
}
#diff textarea {
background-color: #f8f8ff;
border: 0;
2015-05-16 21:45:27 +02:00
color: black;
margin: 0;
2015-02-11 17:34:51 +01:00
border-top: 1px solid #eee;
direction: ltr;
font: 12px monospace;
2015-02-11 18:03:21 +01:00
line-height: 1.8;
2015-02-11 17:34:51 +01:00
overflow: hidden;
overflow-y: auto;
padding: 1em 0 0 3px; /* same left and top padding as ul/li */
2015-02-11 17:34:51 +01:00
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
box-sizing: border-box;
2015-02-11 17:34:51 +01:00
resize: none;
visibility: hidden;
2015-05-16 22:32:51 +02:00
white-space: pre; /* this implies nowrap; break only on \n and <br>.
2015-02-11 18:50:30 +01:00
nowrap doesn't consistently
2015-05-16 22:32:51 +02:00
respect \n's (example: Safari) per the CSS spec:
http://www.w3.org/wiki/CSS/Properties/white-space */
word-wrap: normal;
2015-02-11 17:34:51 +01:00
}
#diff.edit textarea {
visibility: visible;
}