Commit 23236e0f authored by webchick's avatar webchick

Issue #2587549 by herom, prestonso: Remaining RTL fixes for Drupal 8

parent ce88146d
......@@ -34,6 +34,12 @@
margin: 0;
padding: 0;
}
/* This is required to win over specificity of [dir="rtl"] ul */
[dir="rtl"] .ckeditor-toolbar ul,
[dir="rtl"] .ckeditor-toolbar-disabled ul {
margin-right: 0;
}
.ckeditor-row {
padding: 2px 0 3px;
border-radius: 3px;
......@@ -121,13 +127,19 @@
box-sizing: border-box;
}
.ckeditor-toolbar-disabled .ckeditor-toolbar-available {
float: left;
float: left; /* LTR */
width: 80%;
}
.ckeditor-toolbar-disabled .ckeditor-toolbar-dividers {
[dir="rtl"] .ckeditor-toolbar-disabled .ckeditor-toolbar-available {
float: right;
}
.ckeditor-toolbar-disabled .ckeditor-toolbar-dividers {
float: right; /* LTR */
width: 20%;
}
[dir="rtl"] .ckeditor-toolbar-disabled .ckeditor-toolbar-dividers {
float: left;
}
.ckeditor-toolbar-disabled .ckeditor-buttons li a,
.ckeditor-toolbar .ckeditor-buttons,
.ckeditor-add-new-group button {
......
......@@ -16,19 +16,31 @@
line-height: 1em;
}
.field-ui-overview .field-plugin-summary {
float: left;
float: left; /* LTR */
font-size: .9em;
}
[dir="rtl"] .field-ui-overview .field-plugin-summary {
float: right;
}
.field-ui-overview .field-plugin-summary-cell .warning {
display: block;
float: left;
float: left; /* LTR */
margin-right: .5em;
}
.field-ui-overview .field-plugin-settings-edit-wrapper {
[dir="rtl"] .field-ui-overview .field-plugin-summary-cell .warning {
float: right;
}
.field-ui-overview .field-plugin-settings-edit-wrapper {
float: right; /* LTR */
}
[dir="rtl"] .field-ui-overview .field-plugin-settings-edit-wrapper {
float: left;
}
.field-ui-overview .field-plugin-settings-edit {
float: right;
float: right; /* LTR */
}
[dir="rtl"] .field-ui-overview .field-plugin-settings-edit {
float: left;
}
.field-ui-overview .field-plugin-settings-editing td {
vertical-align: top;
......
......@@ -182,13 +182,22 @@ small .admin-link:after {
float: right;
}
.module-link-help {
background: url(../../../misc/icons/787878/questionmark-disc.svg) 0 50% no-repeat;
background: url(../../../misc/icons/787878/questionmark-disc.svg) 0 50% no-repeat; /* LTR */
}
[dir="rtl"] .module-link-help {
background-position: top 50% right 0;
}
.module-link-permissions {
background: url(../../../misc/icons/787878/key.svg) 0 50% no-repeat;
background: url(../../../misc/icons/787878/key.svg) 0 50% no-repeat; /* LTR */
}
[dir="rtl"] .module-link-permissions {
background-position: top 50% right 0;
}
.module-link-configure {
background: url(../../../misc/icons/787878/cog.svg) 0 50% no-repeat;
background: url(../../../misc/icons/787878/cog.svg) 0 50% no-repeat; /* LTR */
}
[dir="rtl"] .module-link-configure {
background-position: top 50% right 0;
}
/* Status report. */
......
......@@ -352,7 +352,6 @@ td.group-title {
padding-left: 0; /* LTR */
}
[dir="rtl"] .views-displays .tabs li.tabs__tab:hover {
padding-left: 15px;
padding-right: 0;
}
.views-displays .tabs.secondary a {
......
......@@ -11,6 +11,8 @@
}
[dir="rtl"] .region-primary-menu .menu {
text-align: right;
margin-left: 5px; /* This is required to win over specificity of [dir="rtl"] ul.menu */
margin-right: 5px; /* This is required to win over specificity of [dir="rtl"] ul.menu */
}
.region-primary-menu .menu-item {
float: none;
......@@ -115,6 +117,10 @@ body:not(:target) .region-primary-menu .menu-toggle-target-show:target ~ .menu .
padding: 0;
text-align: center;
}
/* This is required to win over specificity of the global [dir="rtl"] .region-primary-menu .menu */
[dir="rtl"] .region-primary-menu .menu {
text-align: center;
}
.region-primary-menu .menu-item,
body:not(:target) .region-primary-menu .menu-item {
float: left; /* LTR */
......@@ -145,6 +151,10 @@ body:not(:target) .region-primary-menu .menu-toggle-target-show:target ~ .menu .
margin-bottom: 5px;
padding: 0.9em 5px;
}
/* This is required to win over specificity of the global [dir="rtl"] .region-primary-menu .menu a */
[dir="rtl"] .region-primary-menu .menu a {
padding: 0.9em 5px;
}
body:not(:target) .region-primary-menu .menu-toggle {
display: none;
}
......
......@@ -8,6 +8,8 @@
}
[dir="rtl"] .region-secondary-menu .menu {
text-align: left;
margin-right: 10px; /* required to win over specificity of [dir="rtl"] ul.menu */
margin-left: 10px;
}
.region-secondary-menu .menu-item {
margin: 0;
......
......@@ -12,6 +12,10 @@
margin-right: 0;
margin-left: 0.5em;
}
/* This is required to win over specificity of [dir="rtl"] .form--inline .form-item */
[dir="rtl"] .views-filterable-options-controls .form-item {
margin-right: 2%;
}
.form--inline .form-item-separator {
margin-top: 2.3em;
margin-right: 1em; /* LTR */
......
......@@ -137,6 +137,10 @@ ul {
margin-left: 0;
margin-right: 1.5em;
}
/* This is required to win over specificity of [dir="rtl"] ul */
[dir="rtl"] .messages__list {
margin-right: 0;
}
ol {
list-style-type: decimal;
margin: 0.25em 0 0.25em 2em; /* LTR */
......
......@@ -19,7 +19,11 @@
background: #6b6b6b;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
padding: 15px 49px 15px 15px;
padding: 15px 49px 15px 15px; /* LTR */
}
[dir="rtl"] .ui-dialog .ui-dialog-titlebar {
padding-left: 49px;
padding-right: 15px;
}
.ui-dialog .ui-dialog-title {
font-size: 1.231em;
......@@ -103,4 +107,3 @@
.ui-dialog .ajax-progress-throbber .message {
display: none;
}
......@@ -18,10 +18,11 @@
-webkit-font-smoothing: antialiased;
text-align: left; /* LTR */
}
[dir="rtl"] .js .dropbutton .dropbutton-action > input,
[dir="rtl"] .js .dropbutton .dropbutton-action > a,
[dir="rtl"] .js .dropbutton .dropbutton-action > button {
[dir="rtl"].js .dropbutton .dropbutton-action > input,
[dir="rtl"].js .dropbutton .dropbutton-action > a,
[dir="rtl"].js .dropbutton .dropbutton-action > button {
text-align: right;
margin-left: 0; /* This is required to win over specificity of [dir="rtl"] .dropbutton-multiple .dropbutton .dropbutton-action > * */
}
.js .dropbutton-action.last {
border-radius: 0 0 0 1em; /* LTR */
......
......@@ -34,6 +34,7 @@ ul.inline li {
[dir="rtl"] ul.links li,
[dir="rtl"] ul.inline li {
padding-left: 1em;
padding-right: 0;
}
ul.inline li {
display: inline;
......
......@@ -108,6 +108,10 @@ th.is-active > a:focus:after {
td .item-list ul {
margin: 0;
}
/* This is required to win over specificity of [dir="rtl"] .item-list ul */
[dir="rtl"] td .item-list ul {
margin: 0;
}
td.is-active {
background: none;
}
......
......@@ -257,6 +257,12 @@ li.tabs__tab a {
margin-left: 0;
margin-right: -1px;
}
/* This is required to win over specificity of [dir="rtl"] .tabs.secondary .tabs__tab */
[dir="rtl"] .views-displays .tabs.secondary li,
[dir="rtl"] .views-displays .tabs.secondary li.is-active {
padding-left: 0;
padding-right: 0;
}
.tabs.secondary .tabs__tab + .tabs__tab {
border-top: 1px solid #d9d8d4;
}
......@@ -270,6 +276,11 @@ li.tabs__tab a {
border-right: 2px solid #004f80;
padding-right: 15px;
}
/* This is required to win over specificity of [dir="rtl"] .tabs.secondary .tabs__tab.is-active */
[dir="rtl"] .views-displays .tabs.secondary li.is-active {
border: 0 none;
padding-right: 0;
}
.tabs.secondary .tabs__tab:hover,
.tabs.secondary .tabs__tab:focus {
color: #008ee6;
......@@ -282,11 +293,26 @@ li.tabs__tab a {
border-right: 2px solid #008ee6;
padding-right: 15px;
}
/* This is required to win over specificity of [dir="rtl"] .tabs.secondary .tabs__tab:hover */
[dir="rtl"] .views-displays .tabs li.tabs__tab:hover {
border: 0 none;
padding-right: 0;
}
.tabs.secondary a {
background-color: transparent;
padding: 7px 13px 5px;
text-decoration: none;
}
/* This is required to win over specificity of [dir="rtl"] li.tabs__tab a */
[dir="rtl"] .tabs.secondary a {
padding-left: 13px;
padding-right: 13px;
}
/* This is required to win over specificity of [dir="rtl"] .tabs.secondary a */
[dir="rtl"] .views-displays .tabs.secondary a {
padding-left: 7px;
padding-right: 7px;
}
.tabs.secondary .is-active a {
color: #004f80;
}
......
......@@ -43,6 +43,13 @@ details.fieldset-no-legend {
[dir="rtl"] .views-admin a.button,
[dir="rtl"] .views-ui-dialog a.button {
margin-left: 0;
margin-right: 1em;
}
[dir="rtl"] .views-admin input.form-submit:first-child,
[dir="rtl"] .views-ui-dialog input.form-submit:first-child,
[dir="rtl"] .views-admin a.button:first-child,
[dir="rtl"] .views-ui-dialog a.button:first-child {
margin-right: 0;
}
.form-radios > .form-item {
......
......@@ -165,6 +165,9 @@
padding: 15px;
margin: 0.25em 0;
}
[dir="rtl"] ul {
margin-right: 0; /* Overrides default [dir="rtl"] ul margin */
}
.layout-sidebar-first {
float: left; /* LTR */
width: 35%;
......
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