Commit Graph

9 Commits

Author SHA1 Message Date
Morten Rand-Hendriksen 31df4716c8 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 <main> 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
2020-04-18 19:26:11 +01:00
Benoît Chantre 100081feee Use full width layout when there’s no sidebar 2017-11-12 20:37:24 +01:00
Truong Giang 5ba1b9acb0 Add new line at the end of file and missing white space 2017-07-24 08:22:43 +07:00
PJ de9c9888b7 Updated documentation in comments at the top of files.
I tried to standardize and expand the documentation and links to
codex.wordpress.org in the comments at the top of most files.
2015-07-12 12:38:18 -04:00
obenland 810e499b93 _s: Use `<main>` element for main content.
See: http://www.w3.org/TR/html51/grouping-content.html#the-main-element

Props @BFTrick for initial patch.
Fixes #222.
2013-07-30 12:12:45 -07:00
obenland ebe5c56c42 _s: Update layouts to use classes when appropriate. Fixes #55. 2013-02-27 13:35:28 -08:00
Konstantin Kovshenin 3b013b5264 Layouts were broken by 752d08afd7. This commit fixes the layouts according to the new naming conventions. 2012-09-04 11:34:27 +04:00
Ian Stewart afe244fe68 _s: More consistency with class names in the structural markup 2012-02-01 16:55:36 +00:00
Ian Stewart 5cad5adab9 _s: adding sample layouts for content-sidebar, sidebar-content, and sidebar-content-sidebar 2012-01-13 20:57:16 +00:00