mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-14 23:12:28 +02:00
6d49ef0dac
... for the sake of portability. When including vapi-common.js in an HTML file, then the body element there will have a "dir" attribute filled with the current locale's direction (ltr or rtl). The following languages are considered right-to-left: ar, he, fa, ps, ur. Everything else is left-to-right. After the "dir" attribute is set, we can decide in CSS which elements should have different styling for rtl languages (e.g., body[dir=rtl] #id).
69 lines
1.3 KiB
CSS
69 lines
1.3 KiB
CSS
html, body {
|
|
margin: 0;
|
|
border: 0;
|
|
padding: 0;
|
|
font: 15px httpsb,sans-serif;
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
#dashboard-nav {
|
|
margin: 0;
|
|
border: 0;
|
|
padding: 0;
|
|
position: absolute;
|
|
width: 100%;
|
|
top: 0;
|
|
height: 50px;
|
|
z-index: 10;
|
|
}
|
|
#dashboard-nav-widgets {
|
|
margin: 0;
|
|
border-bottom: 1px solid #ccc;
|
|
padding: 4px 0 0;
|
|
white-space: nowrap;
|
|
background-color: white;
|
|
}
|
|
#dashboard-nav-widgets span {
|
|
padding: 0 0.5em;
|
|
font-size: larger;
|
|
}
|
|
.tabButton {
|
|
margin: 0;
|
|
border: 1px solid #ccc;
|
|
border-top-left-radius: 3px;
|
|
border-top-right-radius: 3px;
|
|
border-bottom: 1px solid #ccc;
|
|
padding: 4px;
|
|
display: inline-block;
|
|
position: relative;
|
|
top: 1px;
|
|
color: black;
|
|
background-color: #eee;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
}
|
|
.tabButton:focus {
|
|
outline: 0;
|
|
}
|
|
.tabButton:active,.tabButton:visited {
|
|
color: inherited;
|
|
}
|
|
.tabButton.selected {
|
|
border-bottom: 1px solid white;
|
|
background-color: white;
|
|
border-bottom: 1px solid white;
|
|
}
|
|
iframe {
|
|
margin: 0;
|
|
border: 0;
|
|
padding: 0;
|
|
background-color: transparent;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-top: 50px solid transparent;
|
|
box-sizing: border-box;
|
|
}
|