Skip to content

Commit

Permalink
Fix Compatibility with Twenty Twenty theme
Browse files Browse the repository at this point in the history
  • Loading branch information
arielk committed Mar 24, 2021
1 parent 89b2895 commit 708a19f
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 23 deletions.
20 changes: 11 additions & 9 deletions assets/css/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*! pojo-accessibility - v2.0.3 - 28-05-2018 */
#pojo-a11y-toolbar {
position: fixed;
font-size: 16px !important;
Expand Down Expand Up @@ -31,11 +30,6 @@
#pojo-a11y-toolbar.pojo-a11y-toolbar-left .pojo-a11y-toolbar-toggle {
left: 180px;
}
#pojo-a11y-toolbar.pojo-a11y-toolbar-open .pojo-a11y-toolbar-toggle,
#pojo-a11y-toolbar.pojo-a11y-toolbar-open .pojo-a11y-toolbar-overlay {
-webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}
#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle {
position: absolute;
}
Expand All @@ -52,6 +46,9 @@
-webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}
#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle svg {
max-width: inherit;
}
#pojo-a11y-toolbar .pojo-a11y-toolbar-overlay {
border: 1px solid;
font-size: 100%;
Expand All @@ -64,6 +61,11 @@
padding: 10px 15px 0;
margin: 0;
}
#pojo-a11y-toolbar .pojo-a11y-toolbar-overlay.pojo-a11y-toolbar-open .pojo-a11y-toolbar-toggle a,
#pojo-a11y-toolbar .pojo-a11y-toolbar-overlay.pojo-a11y-toolbar-open .pojo-a11y-toolbar-overlay {
-webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}
#pojo-a11y-toolbar .pojo-a11y-toolbar-overlay ul.pojo-a11y-toolbar-items {
list-style: none;
margin: 0;
Expand Down Expand Up @@ -1452,9 +1454,9 @@ body.rtl .pojo-skip-link:focus {
right: 50px;
left: auto;
}
*,
::before,
::after {
#pojo-a11y-toolbar *,
#pojo-a11y-toolbar ::before,
#pojo-a11y-toolbar ::after {
box-sizing: border-box;
}
.pojo-a11y-visible-phone {
Expand Down
3 changes: 1 addition & 2 deletions assets/css/style.min.css

Large diffs are not rendered by default.

21 changes: 13 additions & 8 deletions assets/less/_toolbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@
.pojo-a11y-toolbar-position(right);
.pojo-a11y-toolbar-position(left);

&.pojo-a11y-toolbar-open {
.pojo-a11y-toolbar-toggle,
.pojo-a11y-toolbar-overlay {
-webkit-box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
}
}

.pojo-a11y-toolbar-toggle {
position: absolute;

Expand All @@ -62,6 +54,10 @@
box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
}
}

svg {
max-width: inherit; //Compatibility for Twenty Twenty theme `svg {max-width:100%;}`
}
}

.pojo-a11y-toolbar-overlay {
Expand All @@ -77,6 +73,15 @@
margin: 0;
}

&.pojo-a11y-toolbar-open {

.pojo-a11y-toolbar-toggle a,
.pojo-a11y-toolbar-overlay {
-webkit-box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
}
}

ul.pojo-a11y-toolbar-items {
list-style: none;
margin: 0;
Expand Down
11 changes: 8 additions & 3 deletions assets/less/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,13 @@ body.rtl {
}
}

*, ::before, ::after {
box-sizing: border-box;
#pojo-a11y-toolbar {

*,
::before,
::after {
box-sizing: border-box;
}
}

@import "_visibility";
@import "_visibility";
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
"grunt-wp-deploy": "~1.2.1",
"matchdep": "~2.0.0"
}
}
}

0 comments on commit 708a19f

Please sign in to comment.