uBlock/src/css/popup.css

346 lines
7.7 KiB
CSS
Raw Normal View History

2014-08-03 06:08:13 +02:00
body {
background-color: white;
2014-08-03 06:08:13 +02:00
border: 0;
float: left;
2014-08-03 06:08:13 +02:00
font: 13px sans-serif;
margin: 0;
2015-03-25 15:12:56 +01:00
overflow: hidden;
padding: 0;
white-space: nowrap;
2014-08-03 06:08:13 +02:00
}
2015-02-06 23:42:09 +01:00
h2 {
background-color: #eee;
2014-08-03 06:08:13 +02:00
border: 0;
2015-02-06 23:42:09 +01:00
color: #666;
font-size: 14px;
font-weight: normal;
margin: 1em 0 0.5em 0;
padding: 2px 0;
text-align: center;
2014-08-03 06:08:13 +02:00
}
2015-02-06 23:42:09 +01:00
h2:nth-of-type(1) {
margin-top: 0;
}
2014-08-03 06:08:13 +02:00
a {
color: inherit;
text-decoration: none;
}
2014-12-25 14:53:30 +01:00
:focus {
2014-08-03 06:08:13 +02:00
outline: 0;
}
2014-12-25 14:53:30 +01:00
#gotoPrefs {
display: block;
margin: 0;
border: 0;
padding: 4px;
color: white;
font-weight: bold;
background-color: #444;
text-align: center;
cursor: pointer;
}
2014-08-03 06:08:13 +02:00
#version {
font-size: 11px;
font-weight: normal;
margin-left: 1em;
}
body[dir="ltr"] #panes {
direction: rtl;
}
body[dir="rtl"] #panes {
direction: ltr;
}
body, #panes {
text-align: right; /* this helps the popup render better at "intermediate" widths */
}
#panes > div {
display: inline-block;
2014-12-30 22:36:29 +01:00
position: relative;
vertical-align: top;
}
body[dir="ltr"] #panes > div {
direction: ltr;
}
body[dir="rtl"] #panes > div {
direction: rtl;
}
#panes > div:nth-of-type(2) {
2015-03-15 14:00:30 +01:00
overflow-y: auto;
2014-12-30 22:36:29 +01:00
overflow-x: hidden;
2015-03-15 14:00:30 +01:00
width: 320px;
}
body[dir="ltr"] #panes > div:nth-of-type(2) {
direction: rtl; /* scroll bar to the left */
}
body[dir="rtl"] #panes > div:nth-of-type(2) {
direction: ltr; /* scroll bar to the right */
2014-12-30 22:36:29 +01:00
}
#panes:not(.dfEnabled) > div:nth-of-type(2) {
display: none;
}
#panes > div:nth-of-type(1) {
min-width: 150px;
2015-02-06 23:42:09 +01:00
padding: 4px 1px;
2014-08-03 06:08:13 +02:00
}
p {
text-align: center;
white-space: nowrap;
2014-08-03 06:08:13 +02:00
}
2015-02-06 23:42:09 +01:00
#switch {
margin: 8px 0;
}
2014-08-03 06:08:13 +02:00
#switch .fa {
2015-02-10 00:24:18 +01:00
color: #0046ff;
2014-08-03 06:08:13 +02:00
cursor: pointer;
2015-02-06 23:42:09 +01:00
font-size: 96px;
margin: 0;
2014-08-03 06:08:13 +02:00
}
#switch .fa:hover {
opacity: 0.9;
}
2015-02-09 21:24:01 +01:00
body.off #switch .fa {
2014-08-03 06:08:13 +02:00
color: #ccc;
}
#switch-hint {
color: #888;
font-size: 11px;
2014-08-03 06:08:13 +02:00
}
#page-blocked {
font-size: 20px;
}
2015-02-06 23:42:09 +01:00
.statName {
color: #666;
margin: 1em 0 0.2em 0;
text-align: center;
2014-08-03 06:08:13 +02:00
}
2015-02-06 23:42:09 +01:00
.statValue {
font-size: 14px;
margin: 0;
2014-08-03 06:08:13 +02:00
text-align: center;
}
.tool {
color: #aaa;
cursor: pointer;
display: none;
2014-11-30 03:38:55 +01:00
font-size: 14px;
unicode-bidi: embed;
2014-08-03 06:08:13 +02:00
}
.tool.enabled {
display: inline;
}
.tool:hover {
color: #444;
}
2015-02-06 23:42:09 +01:00
body.advancedUser h2 {
2015-01-10 17:23:28 +01:00
cursor: pointer;
}
2015-02-06 23:42:09 +01:00
body.advancedUser h2:before {
color: #aaa;
content: '+ ';
}
2015-02-06 23:42:09 +01:00
body.advancedUser #panes.dfEnabled h2:before {
content: '\2212 ';
}
2015-01-10 17:23:28 +01:00
#refresh {
background-color: #ffe;
border: 1px solid #eec;
border-radius: 4px;
bottom: 4px;
color: #888;
cursor: pointer;
display: none;
font-size: 40px;
left: 4px;
line-height: 40px;
padding: 4px 8px;
position: absolute;
right: 4px;
text-align: center;
}
body.dirty #refresh {
display: block;
}
body.dirty #refresh:hover {
color: black;
}
#firewallContainer {
2014-10-06 20:02:44 +02:00
border: 0;
font-size: 12px;
margin: 0;
2014-10-06 20:02:44 +02:00
padding: 0;
text-align: right;
2014-10-06 20:02:44 +02:00
}
#firewallContainer > div {
background-color: #e6e6e6;
2014-10-06 20:02:44 +02:00
border: 0;
border-bottom: 1px solid white;
direction: ltr;
margin: 0;
2014-10-06 20:02:44 +02:00
padding: 0;
2014-12-30 22:36:29 +01:00
}
#firewallContainer > div:hover {
2014-12-30 22:36:29 +01:00
background-color: #f0f0f0;
}
2015-02-17 03:15:09 +01:00
#firewallContainer.minimized > div.isSubDomain {
display: none;
}
#firewallContainer > div > span {
background-color: transparent;
border: none;
2014-10-06 20:02:44 +02:00
box-sizing: border-box;
-moz-box-sizing: border-box;
color: #000;
display: inline-block;
2015-02-04 18:51:43 +01:00
height: 22px;
line-height: 22px;
overflow: hidden;
position: relative;
2015-02-08 16:07:15 +01:00
vertical-align: middle;
}
#firewallContainer > div:nth-of-type(1) > span {
2015-02-08 16:07:15 +01:00
height: 18px;
2015-02-25 13:26:13 +01:00
line-height: 20px;
2014-10-06 20:02:44 +02:00
}
2015-02-17 03:15:09 +01:00
#firewallContainer > div:nth-of-type(1) > span:nth-of-type(1) {
cursor: pointer;
}
#firewallContainer > div > span:nth-of-type(1) {
border-right: 1px solid white;
padding-right: 2px;
2015-03-25 15:12:56 +01:00
position: relative;
2015-01-01 06:16:02 +01:00
text-overflow: ellipsis;
width: 70%;
2014-10-06 20:02:44 +02:00
}
#firewallContainer > div > span:nth-of-type(2) {
cursor: pointer;
width: 15%;
2014-10-06 20:02:44 +02:00
}
2015-02-17 03:15:09 +01:00
#firewallContainer > div > span:nth-of-type(3),
#firewallContainer > div > span:nth-of-type(4) {
border-left: 1px solid white;
color: #444;
cursor: pointer;
2014-12-25 14:53:30 +01:00
text-align: center;
width: 15%;
2014-10-06 20:02:44 +02:00
}
2015-02-17 03:15:09 +01:00
#firewallContainer > div > span:nth-of-type(4) {
display: none;
}
#firewallContainer > div.isDomain > span:nth-of-type(1) {
2014-12-30 22:36:29 +01:00
font-weight: bold;
}
2015-02-25 13:26:13 +01:00
#firewallContainer > div:nth-of-type(1) > span:nth-of-type(1):before {
color: #aaa;
content: '\2012';
padding-right: 0.25em;
}
#firewallContainer.minimized > div:nth-of-type(1) > span:nth-of-type(1):before {
content: '+';
}
2015-02-17 03:15:09 +01:00
#firewallContainer.minimized > div.isDomain > span:nth-of-type(3) {
display: none;
}
#firewallContainer.minimized > div.isDomain > span:nth-of-type(4) {
display: inline-block;
}
2015-03-25 15:12:56 +01:00
#firewallContainer > div.allowed > span:nth-of-type(1):before,
#firewallContainer > div.blocked > span:nth-of-type(1):before,
#firewallContainer.minimized > div.isDomain.totalAllowed > span:nth-of-type(1):before,
#firewallContainer.minimized > div.isDomain.totalBlocked > span:nth-of-type(1):before {
box-sizing: border-box;
content: '';
display: inline-block;
height: 100%;
left: 0;
opacity: 0.4;
position: absolute;
width: 7px;
}
#firewallContainer > div.allowed > span:nth-of-type(1):before,
#firewallContainer.minimized > div.isDomain.totalAllowed > span:nth-of-type(1):before {
background-color: rgb(0, 160, 0);
}
2015-03-25 15:12:56 +01:00
#firewallContainer > div.blocked > span:nth-of-type(1):before,
#firewallContainer.minimized > div.isDomain.totalBlocked > span:nth-of-type(1):before {
background-color: rgb(192, 0, 0);
}
2015-03-25 15:12:56 +01:00
#firewallContainer > div.allowed.blocked > span:nth-of-type(1):before,
#firewallContainer.minimized > div.isDomain.totalAllowed.totalBlocked > span:nth-of-type(1):before {
background-color: rgb(192, 160, 0);
2014-10-06 20:02:44 +02:00
}
#firewallContainer > div > span.aRule {
background-color: rgba(0, 160, 0, 0.3);
}
#firewallContainer > div > span.bRule {
background-color: rgba(192, 0, 0, 0.3);
}
#firewallContainer > div > span.nRule {
background-color: rgba(96, 96, 96, 0.3);
}
#firewallContainer > div > span.ownRule {
color: white;
}
#firewallContainer > div > span.aRule.ownRule {
background-color: rgba(0, 160, 0, 1);
2014-10-06 20:02:44 +02:00
}
#firewallContainer > div > span.bRule.ownRule {
background-color: rgba(192, 0, 0, 1);
2014-10-06 20:02:44 +02:00
}
#firewallContainer > div > span.nRule.ownRule {
background-color: rgba(108, 108, 108, 1);
}
#actionSelector {
bottom: 0;
left: 0;
position: absolute;
right: 0;
top: 0;
}
#actionSelector > span {
display: inline-block;
2015-02-04 18:51:43 +01:00
height: 22px;
opacity: 0.2;
width: 33.33%;
}
#actionSelector > span:hover {
opacity: 0.75;
}
#actionSelector > span:nth-of-type(1) {
background-color: rgb(0, 160, 0);
}
#actionSelector > span:nth-of-type(2) {
background-color: rgb(108, 108, 108);
}
#actionSelector > span:nth-of-type(3) {
background-color: rgb(192, 0, 0);
}
#firewallContainer span.aRule #actionSelector > span:nth-of-type(1),
#firewallContainer span.nRule #actionSelector > span:nth-of-type(2),
#firewallContainer span.bRule #actionSelector > span:nth-of-type(3) {
visibility: hidden;
}
2015-02-09 21:24:01 +01:00
#saveRules {
background-color: #ffe;
border: 1px solid #eec;
border-radius: 4px;
color: #888;
cursor: pointer;
2015-02-09 21:24:01 +01:00
display: none;
font-size: 30px;
line-height: 40px;
padding: 0.1em 0.4em;
position: fixed;
text-align: center;
2015-02-09 21:24:01 +01:00
}
#firewallContainer.dirty ~ #saveRules {
2015-02-09 21:24:01 +01:00
display: block;
}
#firewallContainer.dirty ~ #saveRules:hover {
color: black;
}