Commit 2e7b2073 authored by webchick's avatar webchick

Issue #766458 by aspilicious, xjm, Jeff Burnz, tsi: Fixed Seven theme lacks rtl styling.

parent e8164832
......@@ -28,6 +28,7 @@ div.add-or-remove-shortcuts a span.text {
padding-right: 10px;
padding-left: 0;
}
div.add-or-remove-shortcuts a:focus span.text,
div.add-or-remove-shortcuts a:hover span.text {
-moz-border-radius: 5px 0 0 5px;
-webkit-border-top-left-radius: 5px;
......
ul.tabs.primary {
padding: 0;
}
ul.primary li,
ul.primary li a,
ul.primary li.active a {
float: none !important;
display: inline;
}
ul.primary li,
ul.primary li a,
ul.primary li a.active,
ul.primary li a:active,
ul.primary li a:visited,
ul.primary li a:hover,
ul.primary li.active a {
zoom: 1;
position: relative;
}
ul.admin-list li {
position: static;
}
......@@ -11,7 +11,9 @@
</div>
<div id="page">
<?php print render($secondary_local_tasks); ?>
<?php if ($secondary_local_tasks): ?>
<div class="tabs-secondary clearfix"><ul class="tabs secondary"><?php print render($secondary_local_tasks); ?></ul></div>
<?php endif; ?>
<div id="content" class="clearfix">
<div class="element-invisible"><a id="main-content"></a></div>
......
......@@ -2,23 +2,248 @@
/**
* Generic elements.
*/
dl dd,
dl dl {
margin-right: 20px;
}
ul,
.block ul,
.item-list ul,
.item-list ul {
margin: 0.25em 1.5em 0.25em 0;
}
ol {
margin: 0.25em 2em 0.25em 0;
}
/* User login block */
#user-login-form .openid-links {
/**
* Skip link.
*/
#skip-link {
right: 50%;
margin-right: -5.25em;
}
#skip-link a,
#skip-link a:link,
#skip-link a:visited {
padding: 1px 10px 2px 10px;
}
/**
* Branding.
*/
#branding {
padding: 20px 20px 0 20px;
}
#branding div.block {
float: left;
padding-left: 0;
padding-right: 10px;
}
#branding div.block form div.form-item {
float: right;
}
#branding div.block form input.form-text {
margin-left: 10px;
margin-right: 0;
}
#user-login-form .openid-links .user-link {
/**
* Help.
*/
#help div.more-help-link {
text-align: left;
}
/**
* Page title.
*/
#branding h1.page-title {
float: right;
}
/**
* Tabs.
*/
ul.primary li,
ul.primary li a:link,
ul.primary li a.active {
float: right;
}
ul.primary,
ul.secondary {
float: left;
}
ul.secondary li {
float: none;
}
ul.primary {
padding-top: 0;
}
/**
* Page layout.
*/
#page {
padding: 20px 0 40px 0;
margin-left: 40px;
margin-right: 40px;
}
#secondary-links ul.links li {
padding: 0 0 10px 10px;
}
ul.links li,
ul.inline li {
padding-left: 1em;
padding-right: 0;
}
ul.admin-list li {
padding: 9px 30px 0 0;
margin-right: 0;
background: url(images/list-item-rtl.png) no-repeat right 11px;
}
ul.admin-list li a {
margin-right: -30px;
margin-left: 0;
margin-right: 1.5em;
padding: 0 30px 4px 0;
}
ul.admin-list.compact li a {
margin-right: 0;
}
ul.admin-list li div.description a {
margin-right: 0;
}
/* Sortable tables */
/**
* Tables.
*/
table th.active a {
padding: 0 0 0 25px;
}
table th.active img {
left: 3px;
right: auto;
}
/**
* Exception for webkit bug with the right border of the last cell
* in some tables, since it's webkit only, we can use :last-child
*/
tr td:last-child {
border-left: 1px solid #bebfb9;
border-right: none;
}
/**
* Fieldsets.
*/
fieldset {
padding: 2.5em 0 0 0;
}
fieldset .fieldset-legend {
padding-right: 15px;
right: 0;
}
fieldset .fieldset-wrapper {
padding: 0 15px 13px 13px;
}
/* Filter */
.filter-wrapper .form-item,
.filter-wrapper .filter-guidelines,
.filter-wrapper .filter-help {
padding: 2px 0 0 0;
}
ul.tips li {
margin: 0.25em 1.5em 0.25em 0;
}
body div.form-type-radio div.description,
body div.form-type-checkbox div.description {
margin-left: 0;
margin-right: 1.5em;
}
input.form-submit,
a.button {
margin-left: 1em;
margin-right: 0;
}
ul.action-links li {
float: right;
margin: 0 0 0 1em;
}
ul.action-links a {
padding-left: 0;
padding-right: 15px;
background-position: right center;
}
/* admin/content and admin/people */
dl.multiselect,
dl.multiselect dt,
dl.multiselect dd {
margin: 0 0 0 10px;
}
/* Update options. */
div.admin-options label,
div.admin-options div.form-item {
margin-left: 10px;
margin-right: 0;
float: right;
}
/* Maintenance theming */
body.in-maintenance #sidebar-first {
float: right;
}
body.in-maintenance #content {
float: left;
padding-left: 20px;
padding-right: 0;
}
ol.task-list {
margin-right: 0;
}
ol.task-list li {
padding: 0.5em 20px 0.5em 1em;
}
ol.task-list li.active {
background: transparent url(images/task-item-rtl.png) no-repeat right 50%;
padding: 0.5em 20px 0.5em 1em;
}
/* Overlay theming */
.overlay #branding div.breadcrumb {
float: right;
}
.overlay ul.secondary {
margin: -1.4em 0 0.3em 0;
}
/* Shortcut theming */
div.add-or-remove-shortcuts {
float: none;
padding-left: 0;
padding-right: 6px;
}
/* Dashboard */
#dashboard div.block div.content {
padding: 10px 5px 5px 5px;
}
#dashboard div.block div.content ul.menu {
margin-right: 20px;
}
/* Recent content block */
#block-node-recent .more-link {
padding: 0 0 5px 5px;
}
/* User login block */
#user-login-form .openid-links {
margin-right: 0;
}
#user-login-form .openid-links .user-link {
margin-right: 1.5em;
}
This diff is collapsed.
......@@ -17,9 +17,11 @@ function seven_preprocess_maintenance_page(&$vars) {
*/
function seven_preprocess_html(&$vars) {
// Add conditional CSS for IE8 and below.
drupal_add_css(path_to_theme() . '/ie.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), 'preprocess' => FALSE));
drupal_add_css(path_to_theme() . '/ie.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), 'weight' => 999, 'preprocess' => FALSE));
// Add conditional CSS for IE7 and below.
drupal_add_css(path_to_theme() . '/ie7.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 7', '!IE' => FALSE), 'weight' => 999, 'preprocess' => FALSE));
// Add conditional CSS for IE6.
drupal_add_css(path_to_theme() . '/ie6.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lt IE 7', '!IE' => FALSE), 'preprocess' => FALSE));
drupal_add_css(path_to_theme() . '/ie6.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 6', '!IE' => FALSE), 'weight' => 999, 'preprocess' => FALSE));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment