From 31df4716c847b114a71bbd82e3b216e3989d3e96 Mon Sep 17 00:00:00 2001 From: Morten Rand-Hendriksen Date: Tue, 2 Jan 2018 14:57:02 -0800 Subject: [PATCH] Refactor the css layout to use grid and flex Remove #primary Remove #primary, take 2 Change primary layout module to CSS grid. Remove ::before / ::after based clearfixes. When using flex and grid, pseudo-elements are considered flex/grid elements and cause unexpected behavior. Clearfix is a tool to resolve clearing when using float-based layouts. Modern flex/grid-based layouts do not need them. Main menu: Use flex as layout module. Main menu cleanup. Comments, Posts, and Post Navigation: Use flex for layout. Automatic RTL. Remove errant test data. - Fixed skip to content link to point to main content (#primary). - Changed ID for
to #primary to preserve original separation between main and sidebar (#secondary). - Removed superfluous ID reference to #secondary in CSS. - Cleaned up whitespace triggering Travis errors. Fix wpcs issues Cleaning the rebase Compile CSS Remove primary div from WooCommerce too grid-template-columns property doesn't support negative values --- 404.php | 22 ++++++------- README.md | 2 +- archive.php | 6 ++-- footer.php | 2 -- header.php | 4 +-- inc/woocommerce.php | 6 ++-- index.php | 6 ++-- layouts/content-sidebar.css | 26 ++++++++------- layouts/sidebar-content.css | 26 ++++++++------- page.php | 6 ++-- sass/layout/_content-sidebar.scss | 27 ++++++++------- sass/layout/_sidebar-content.scss | 27 ++++++++------- sass/mixins/_mixins-master.scss | 12 ------- sass/modules/_accessibility.scss | 2 +- sass/modules/_clearings.scss | 18 ---------- sass/navigation/_menus.scss | 21 ++++++------ sass/shop/_components.scss | 4 --- sass/shop/_products.scss | 2 -- sass/shop/_single-product.scss | 4 --- sass/style.scss | 6 ---- search.php | 6 ++-- single.php | 6 ++-- style-rtl.css | 55 ++++++++----------------------- style.css | 55 ++++++++----------------------- woocommerce.css | 15 --------- 25 files changed, 123 insertions(+), 243 deletions(-) delete mode 100644 sass/modules/_clearings.scss diff --git a/404.php b/404.php index ba5d537a..70f199df 100644 --- a/404.php +++ b/404.php @@ -10,16 +10,15 @@ get_header(); ?> -
-
+
-
- +
+ -
-

+
+

-
-
+
+ -
- + -
-
+
@@ -45,8 +44,7 @@ get_header(); endif; ?> -
-
+ - -