Defect #43664 » fix-tab-left-right-buttons-in-rtl.patch
| app/assets/stylesheets/application.css | ||
|---|---|---|
|
#main-menu .menu-children li a:hover {color: var(--oc-white); background-color: var(--oc-blue-7);}
|
||
|
#main-menu .tabs-buttons {
|
||
|
right: 6px;
|
||
|
inset-inline-end: 6px;
|
||
|
background-color: transparent;
|
||
|
border-bottom-color: transparent;
|
||
|
}
|
||
| ... | ... | |
|
#content .tabs ul li a.selected:hover {background-color: var(--oc-white);}
|
||
|
div.tabs-buttons { position:absolute; right: 0; width: 54px; height: 24px; background: white; bottom: 0; border-bottom: 1px solid var(--oc-gray-5); }
|
||
|
div.tabs-buttons {
|
||
|
position: absolute;
|
||
|
inset-inline-end: 0;
|
||
|
width: 54px;
|
||
|
height: 24px;
|
||
|
background: white;
|
||
|
bottom: 0;
|
||
|
border-bottom: 1px solid var(--oc-gray-5);
|
||
|
}
|
||
|
button.tab-left, button.tab-right {
|
||
|
font-size: 0.9em;
|
||
| ... | ... | |
|
}
|
||
|
button.tab-left {
|
||
|
right: 28px;
|
||
|
inset-inline-end: 28px;
|
||
|
border-top-left-radius:3px;
|
||
|
}
|
||
|
button.tab-right {
|
||
|
right: 4px;
|
||
|
inset-inline-end: 4px;
|
||
|
border-top-right-radius:3px;
|
||
|
}
|
||
| app/assets/stylesheets/rtl.css | ||
|---|---|---|
|
margin-right:0px; margin-left:4px;
|
||
|
}
|
||
|
div.tabs-buttons {right:auto; left:0;}
|
||
|
button.tab-left {
|
||
|
right:auto; left:20px;
|
||
|
}
|
||
|
button.tab-right {
|
||
|
right:auto; left:20px;
|
||
|
}
|
||
|
/***** Diff *****/
|
||
|
/***** My page layout *****/
|
||
| app/views/common/_tabs.html.erb | ||
|---|---|---|
|
</ul>
|
||
|
<div class="tabs-buttons" style="display:none;">
|
||
|
<button class="tab-left icon-only" type="button" onclick="moveTabLeft(this);">
|
||
|
<%= sprite_icon "angle-left" %>
|
||
|
<%= sprite_icon("angle-left", rtl: true) %>
|
||
|
</button>
|
||
|
<button class="tab-right icon-only" type="button" onclick="moveTabRight(this);">
|
||
|
<%= sprite_icon "angle-right" %>
|
||
|
<%= sprite_icon("angle-right", rtl: true) %>
|
||
|
</button>
|
||
|
</div>
|
||
|
</div>
|
||
| app/views/layouts/base.html.erb | ||
|---|---|---|
|
<%= render_main_menu(@project) %>
|
||
|
<div class="tabs-buttons" style="display:none;">
|
||
|
<button class="tab-left icon-only" onclick="moveTabLeft(this); return false;">
|
||
|
<%= sprite_icon "angle-left" %>
|
||
|
<%= sprite_icon("angle-left", rtl: true) %>
|
||
|
</button>
|
||
|
<button class="tab-right icon-only" onclick="moveTabRight(this); return false;">
|
||
|
<%= sprite_icon "angle-right" %>
|
||
|
<%= sprite_icon("angle-right", rtl: true) %>
|
||
|
</button>
|
||
|
</div>
|
||
|
</div>
|
||
- « Previous
- 1
- 2
- 3
- Next »