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

Commit

Permalink
Rebuild RTL styles based on latest changes (#990)
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonwebz authored Nov 10, 2019
1 parent db82df5 commit c7fefee
Showing 1 changed file with 33 additions and 0 deletions.
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

0 comments on commit c7fefee

Please sign in to comment.