@keenmate/pure-css 1.0.0-rc06 → 1.0.0-rc08
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +491 -341
- package/README.md +184 -148
- package/dist/css/base.css +142 -66
- package/dist/css/component-reset.css +27 -0
- package/dist/css/pure-css.css +172 -84
- package/dist/css/reboot.css +1 -1
- package/dist/css/scrollbars.css +4 -4
- package/package.json +83 -81
- package/src/js/fit.js +5 -2
- package/src/scss/_base-css-variables.scss +429 -630
- package/src/scss/_layout-container.scss +168 -168
- package/src/scss/_navbar-elements.scss +10 -1
- package/src/scss/_sidebar-states.scss +2 -2
- package/src/scss/_sidebar.scss +443 -420
- package/src/scss/component-reset.scss +65 -0
- package/src/scss/reboot.scss +134 -134
- package/src/scss/scrollbars.scss +48 -48
- package/src/scss/variables/_base.scss +368 -232
- package/src/scss/variables/_colors.scss +208 -231
- package/src/scss/variables/_index.scss +27 -23
- package/src/scss/variables/_system.scss +19 -23
- package/src/scss/variables/_components.scss +0 -840
package/src/js/fit.js
CHANGED
|
@@ -613,8 +613,10 @@
|
|
|
613
613
|
moreLink.className = 'pc-navmenu__link';
|
|
614
614
|
moreLink.setAttribute('aria-haspopup', 'true');
|
|
615
615
|
moreLink.setAttribute('aria-expanded', 'false');
|
|
616
|
+
// Empty span — the glyph is painted by CSS (--base-icon-chevron mask). No
|
|
617
|
+
// text char (the old "›" rendered inconsistently and would double up on the mask).
|
|
616
618
|
moreLink.innerHTML = navEscapeHtml(moreLabel) +
|
|
617
|
-
' <span class="pc-navmenu__more-chevron" aria-hidden="true"
|
|
619
|
+
' <span class="pc-navmenu__more-chevron" aria-hidden="true"></span>';
|
|
618
620
|
moreLi.appendChild(moreLink);
|
|
619
621
|
ul.appendChild(moreLi);
|
|
620
622
|
moreLi.style.display = 'none';
|
|
@@ -736,8 +738,9 @@
|
|
|
736
738
|
btn.type = 'button';
|
|
737
739
|
btn.className = 'pc-sidebar__toggle';
|
|
738
740
|
btn.setAttribute('aria-expanded', active ? 'true' : 'false');
|
|
741
|
+
// Empty chevron span — glyph painted by CSS (--base-icon-chevron mask).
|
|
739
742
|
btn.innerHTML = iconHtml(icon) + labelHtml(text) +
|
|
740
|
-
'<span class="pc-sidebar__chevron" aria-hidden="true"
|
|
743
|
+
'<span class="pc-sidebar__chevron" aria-hidden="true"></span>';
|
|
741
744
|
li.appendChild(btn);
|
|
742
745
|
var submenu = document.createElement('ul');
|
|
743
746
|
submenu.className = 'pc-sidebar__submenu' + (active ? ' pc-sidebar__submenu--open' : '');
|