Skip to content

Commit

Permalink
Migrate Layout style to PostCSS
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed Jul 17, 2016
1 parent 1f55336 commit 247e973
Show file tree
Hide file tree
Showing 8 changed files with 381 additions and 374 deletions.
18 changes: 0 additions & 18 deletions components/layout/_config.scss

This file was deleted.

29 changes: 0 additions & 29 deletions components/layout/_mixins.scss

This file was deleted.

21 changes: 21 additions & 0 deletions components/layout/config.css
@@ -0,0 +1,21 @@
:root {
--standard-increment-mobile: calc(5.6 * var(--unit));
--standard-increment-desktop: calc(6.4 * var(--unit));
--drawer-background-color: var(--palette-grey-50);
--drawer-border-color: var(--palette-grey-300);
--drawer-text-color: var(--palette-grey-800);
--drawer-overlay-color: var(--color-black);
--drawer-overlay-opacity: 60%;

/* from: https://www.google.com/design/spec/layout/structure.html#structure-side-nav */
--navigation-drawer-desktop-width: calc(5 * var(--standard-increment-desktop));
--navigation-drawer-max-desktop-width: calc(40 * var(--unit));

/**
* Mobile:
* Width = Screen width − 56 dp
* Maximum width: 320dp
*/
--navigation-drawer-mobile-width: calc(5 * var(--standard-increment-mobile));
--navigation-drawer-max-mobile-width: calc(100% - 5.6rem);
}
2 changes: 1 addition & 1 deletion components/layout/index.js
Expand Up @@ -4,7 +4,7 @@ import { Layout } from './Layout.js';
import { Panel } from './Panel.js';
import { NavDrawer } from './NavDrawer.js';
import { Sidebar } from './Sidebar.js';
import theme from './theme.scss';
import theme from './theme.css';

const ThemedLayout = themr(LAYOUT, theme)(Layout);
const ThemedPanel = themr(LAYOUT, theme)(Panel);
Expand Down

0 comments on commit 247e973

Please sign in to comment.