Skip to content
This repository has been archived by the owner on Dec 1, 2019. It is now read-only.

Rebuild RTL styles based on latest changes #990

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ path {
position: absolute !important;
width: 1px;
word-wrap: normal !important;
word-break: normal;
}

.screen-reader-text:focus {
Expand Down Expand Up @@ -1702,6 +1703,38 @@ ul.primary-menu {
transform: rotate(-180deg);
}

/*
* Enable nav submenu expansion with tapping on arrows on large-viewport
* touch interfaces (e.g. tablets or laptops with touch screens).
* These rules are supported by all browsers (>IE11) and when JS is disabled.
*/
@media (any-pointer: coarse) {

.primary-menu > li.menu-item-has-children > a {
padding-left: 0;
margin-left: 2rem;
}

.primary-menu ul li.menu-item-has-children > a {
margin-left: 4.5rem;
padding-left: 0;
width: unset;
}

}

/* Repeat previous rules for IE11 (when JS enabled for polyfill). */
body.touch-enabled .primary-menu > li.menu-item-has-children > a {
padding-left: 0;
margin-left: 2rem;
}

body.touch-enabled .primary-menu ul li.menu-item-has-children > a {
margin-left: 4.5rem;
padding-left: 0;
width: unset;
}

/* -------------------------------------------------------------------------- */

/* 5. Menu Modal
Expand Down