aurweb/web/html/css/arch.css
PyroPeter 3d6c6cc98a Support for langauges written right-to-left
Signed-off-by: PyroPeter <abi1789@googlemail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-02-18 13:52:38 +01:00

424 lines
6.5 KiB
CSS

* { margin: 0; padding: 0; }
* ul { padding: 20px; }
body {
min-width: 600px;
background-color: white;
color: #555;
font-family: "DejaVu Sans", sans-serif;
font-size: 12px;
}
/* Divs */
#title {
display: block;
position: relative;
height: 123px;
}
#main_nav,
#sub_nav {
list-style: none;
font-size: 13px;
line-height: 26px;
padding: 0 32px;
}
#main_nav {
background-color: #333;
text-align: right;
}
#sub_nav {
min-width: 700px;
background-color: #1793d1;
text-align: right;
}
#main_nav a.selected {
background-color: #1793d1;
}
#sub_nav a.selected {
background-color: #333;
}
#main_nav a,
#sub_nav a {
padding: 5px 9px;
line-height: 26px;
color: #fff;
font-weight: bold;
text-decoration: none;
}
#main_nav a:hover {
background-color: #1793d1;
}
#sub_nav a:hover {
background-color: #333;
}
#lang_sub {
display: block;
font-size: 10pt;
text-align: right;
margin-bottom: 40px;
margin-right: 35px;
margin-left: 35px;
}
#lang_sub ul {
list-style: none;
padding: 0px;
}
#lang_sub ul a {
text-decoration: none;
}
#lang_sub ul a:hover {
text-decoration: underline;
}
#lang_sub ul li {
display: inline;
padding-right: 1px;
}
#login_bar {
display: block;
margin-bottom: 10px;
}
#login_bar input {
margin-right: 5px;
}
#login_bar .button {
margin: 2px;
}
#updates {
font-size: small;
/*position: relative;*/
top: 0px;
background-color: #e7f0f6;
border: 1px solid #92cbe8;
padding: 10px;
}
#logo {
z-index: 1;
position: relative;
top: 10px;
left: 25px;
width: 350px;
}
#logo h1#archtitle {
background: transparent url("../images/titlelogo.png") no-repeat top left;
margin: 0px;
padding: 0px;
}
#logo h1#archtitle a {
color: transparent;
display: block;
width: 350px;
height: 103px;
}
.clear {
clear: both;
margin: 0px;
padding: 0px;
}
.right {
float: right;
width: 320px;
padding: 0px 10px 10px 0px;
}
.left {
padding: 10px;
margin-right: 360px;
}
.left p {
padding-bottom: 10px;
}
.box {
padding: 10px;
}
.greybox {
padding: 10px;
background-color: #f6f3dd;
border: 1px solid #d9d6c2;
}
div.listing {
padding-right: 10px;
}
.error {
color: #dd0000;
font-size: small;
}
.foot {
clear: both;
text-align: center;
font-size: 0.75em;
}
#search {
float: right;
position: relative;
top: -2em;
font-size: 0.8em;
}
#search input {
background-color: #f6f3dd;
border: 1px solid #d9d6c2;
}
.smalltext {
text-align: right;
font-size: x-small;
}
/* Headers */
h2 {
margin: 20px 0px 10px 0px;
}
h2.title {
border-bottom: 1px solid #46494d;
}
h3 {
margin-bottom: 10px;
}
h3.title {
text-align: right;
border-bottom: 1px solid #46494d;
}
h4.title {
border-bottom: 1px solid #46494d;
}
h4.news {
border-bottom: 1px dotted #0771a6;
margin-bottom: .25em;
padding-bottom: .2em;
}
div.listing h4 {
color: #fff;
background-color: #0771a6;
padding: 3px;
}
/* Paragraphs, Anchors, Images */
p {
padding-bottom: 20px;
}
p.news {
font-size: small;
}
a {
color: #0771a6;
}
a:hover {
color: #333;
}
#about {
position: relative;
top: -9px;
}
ol {
padding-left: 45px;
}
ul.small {
list-style: none;
font-size: x-small;
}
ul.links {
list-style: none;
font-size: small;
padding: 0px 0px 20px 20px;
}
img {
border: none;
}
hr {
border: none;
border-top: 1px solid #46494d;
}
.greybox input,
button,
textarea,
select {
background-color: #e1e3e6;
border: 1px solid #8faecd;
}
.box input, button {
padding: 2px;
background-color: #c1c3f6;
font-size: x-small;
border: 1px solid #8faecd;
}
button#f_trigger {
background-color: #e1e3e6;
}
/* Table stuff */
table.center {
margin-left: auto;
margin-right: auto;
}
table.results {
padding: 0px;
border-collapse: collapse;
}
.results th {
background-color: #e1e3e6;
border-bottom: 1px solid #46494d;
border-top: 1px solid #46494d;
padding: 0px 5px 0px 0px;
}
.results th>a {
text-decoration: none;
color: #46494d;
}
.results td {
padding-right: 5px;
vertical-align: top;
font-size: 0.8em;
}
.listing th {
font-size: small;
vertical-align: top;
padding: 2px;
}
.listing td {
font-size: small;
padding: 2px;
}
blockquote.code {
background-color: #f3f3f3;
border: 1px solid #ccc;
margin-left: auto;
margin-right: auto;
white-space: nowrap;
padding: 5px;
font-family: "DejaVu Sans Mono", "Bitstream Vera Sans Mono", Courier, "Courier New", Monospace;
color: #333;
font-size: .95em;
}
.pkg_search_results_footer {
overflow: auto;
}
.pkg_search_results_footer .legend_and_actions {
float: left;
}
.pkg_search_results_footer .legend {
margin-bottom: 3px;
}
.pkg_search_results_footer .page_links {
float: right;
margin: 0 0;
padding: 0 0;
}
/* AUR Styles */
.pgbox {
margin: 0 25px;
margin-bottom: 1%;
background-color: #fff;
border: 2px solid #ddd;
padding: 3px;
}
.frontpgboxbody {
padding: 10px;
}
.frontpgboxbody > table {
width: 100%;
}
.pgboxtitle {
border: 2px solid #ddd;
border-top: 1px solid #fff;
border-left: 1px solid #fff;
background-color: #f1f2f4;
padding: 2px 10px 2px 10px;
}
.pgboxbody,
.pgboxbody-comment {
padding: 10px;
}
.pgboxbody input {
margin-right: 10px;
}
.pgboxbody-comment > table {
border-collapse: separate;
border-spacing: 0px 15px;
}
#advanced-search li {
font-size: 11px;
list-style: none;
display: inline;
padding-right: 15px;
text-decoration: none;
}
.page_nav {
margin: 5px 0;
}
.page_nav .page_num {
border: 1px solid #ddd;
padding: 2px;
color: #0771a6;
}
.page_nav .page_num:hover {
border: 1px solid #8faecd;
color: #333;
}
.page_nav .page_sel {
border: 1px solid #8faecd;
padding: 2px;
color: #333;
font-weight: bold;
}
.comment-header {
background-color: #f1f2f4;
color: #888;
font-size: 14px;
font-weight: bold;
margin-left: 5px;
margin-top: 5px;
padding: 2px;
}
.comment-body {
margin-left: 5px;
padding: 2px;
font-family: monospace;
}
.pkgoutput {
margin: 0 25px;
font-size: 18px;
font-weight: bold;
}
div.version {
font-weight:bold;
font-size:14px;
text-align:right;
}
/**
*
* =============== Language-specific declarations ======================
*
* (e.g. right-to-left texts for Hebrew)
*
* */
/**
* RIGHT - TO - LEFT
*
* Too add a language, just add it's language code to all
* :lang()-pseudo-classes, delimited by a hyphen ("-").
* */
body:lang(he) {
direction: rtl;
}
th:lang(he) {
text-align: right;
}
#lang_sub:lang(he) {
text-align: left;
}
.pkg_search_results_footer:lang(he) .legend_and_actions {
float: right;
}
.pkg_search_results_footer:lang(he) .page_links {
float: left;
}
div.version:lang(he) {
text-align: left;
}