uBlock/src/css/common.css

133 lines
2.7 KiB
CSS
Raw Normal View History

2014-06-23 22:42:43 +00:00
@font-face {
font-family: 'FontAwesome';
font-weight: normal;
font-style: normal;
2015-03-31 13:25:39 +00:00
src: url('fonts/fontawesome-webfont.ttf') format('truetype');
}
2014-06-23 22:42:43 +00:00
.fa {
2015-03-31 13:25:39 +00:00
display: inline-block;
2014-06-23 22:42:43 +00:00
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
2014-06-23 22:42:43 +00:00
}
2015-04-07 16:05:38 +00:00
body {
2015-05-16 16:28:56 +00:00
background-color: white;
color: black;
font: 14px/1.5 sans-serif;
2016-11-05 18:48:42 +00:00
}
2018-03-28 20:15:50 +00:00
code {
background-color: #eee;
padding: 0 0.25em;
}
2016-11-05 18:48:42 +00:00
textarea {
font-size: 90%;
2015-04-07 16:05:38 +00:00
}
/* I designed the button with: http://charliepark.org/bootstrap_buttons/ */
button.custom {
align-items: flex-end;
border: 1px solid transparent;
border-radius: 3px;
background-color: #e6e6e6;
display: inline-flex;
padding: 0.6em 1em;
-moz-appearance: none;
-webkit-appearance: none;
}
2018-03-28 20:15:50 +00:00
button.custom:hover {
background-color: #d4d4d4;
2018-03-28 20:15:50 +00:00
}
button.custom.important {
background-color: #ffddaa;
}
button.custom.important:hover {
background-color: #ffcc80;
2018-03-28 20:15:50 +00:00
}
button.custom.disabled,
2018-03-28 20:15:50 +00:00
button.custom[disabled],
button.custom.important.disabled,
button.custom.important[disabled] {
background-color: #eee;
color: #888;
pointer-events: none;
}
button.custom.iconifiable > .fa,
button.custom.iconifiable > .fa-icon {
2018-03-28 20:15:50 +00:00
padding-right: 0.5em;
}
body[dir="rtl"] button.custom.iconifiable > .fa,
body[dir="rtl"] button.custom.iconifiable > .fa-icon {
2018-03-28 20:15:50 +00:00
padding-left: 0.5em;
}
2018-03-28 20:15:50 +00:00
.hidden {
display: none;
2015-04-07 16:05:38 +00:00
height: 0;
visibility: hidden;
width: 0;
}
label {
align-items: center;
display: inline-flex;
}
input[type="checkbox"] {
margin: 0;
margin-inline-start: 0.4em;
-webkit-margin-start: 0.4em;
margin-inline-end: 0.4em;
-webkit-margin-end: 0.4em;
}
.ul {
margin: 0.5em 0;
}
.li {
align-items: center;
display: flex;
margin: 0.5em 0;
}
.liul {
margin: 0.5em 0;
margin-inline-start: 2em;
-webkit-margin-start: 2em;
}
2018-03-28 20:15:50 +00:00
@media (max-width: 640px) {
button.custom.iconifiable > .fa,
button.custom.iconifiable > .fa-icon {
font-size: 120%;
2018-03-28 20:15:50 +00:00
padding: 0;
}
button.custom.iconifiable > [data-i18n] {
display: none;
}
}
.ubo-icon {
align-items: center;
background-color: transparent;
border: 0;
display: inline-flex;
justify-content: center;
margin: 0;
padding: 0.1em;
position: relative;
}
.ubo-icon > * {
pointer-events: none;
}
.ubo-icon.disabled,
.disabled > .ubo-icon,
.ubo-icon[disabled],
[disabled] > .ubo-icon {
color: #000;
fill: #000;
opacity: 0.25;
stroke: #888;
pointer-events: none;
}
.ubo-icon > svg {
height: 1em;
width: 1em;
}