Skip to content
This repository has been archived by the owner on Jun 24, 2020. It is now read-only.

Commit

Permalink
Update: Removing @apply from styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodek committed Apr 4, 2019
1 parent 94af70d commit a9bcf8f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -46,7 +46,6 @@
],
"dependencies": {
"@polymer/polymer": "^3.0.0",
"@polymer/paper-fab": "^3.0.0",
"@polymer/iron-flex-layout": "^3.0.0"
"@polymer/paper-fab": "^3.0.0"
}
}
4 changes: 2 additions & 2 deletions paper-fab-menu-item.js
Expand Up @@ -17,7 +17,6 @@ the License.
import {PolymerElement} from '../../@polymer/polymer/polymer-element.js';
import {html} from '../../@polymer/polymer/lib/utils/html-tag.js';
import '../../@polymer/paper-fab/paper-fab.js';
import '../../@polymer/iron-flex-layout/iron-flex-layout.js';
/**
* The `<paper-fab-menu-item>` is a menu item that can be used with `<paper-fab-menu>`.
*
Expand All @@ -35,7 +34,8 @@ class PaperFabMenuItem extends PolymerElement {
<style>
:host {
display: block;
@apply --layout-flex;
flex: 1;
flex-basis: 0.000000001px;
margin: 4px;
}
Expand Down
17 changes: 10 additions & 7 deletions paper-fab-menu.js
Expand Up @@ -18,7 +18,6 @@ import {PolymerElement} from '../../@polymer/polymer/polymer-element.js';
import {html} from '../../@polymer/polymer/lib/utils/html-tag.js';
import {afterNextRender} from '../../@polymer/polymer/lib/utils/render-status.js';
import '../../@polymer/paper-fab/paper-fab.js';
import '../../@polymer/iron-flex-layout/iron-flex-layout.js';
import './paper-fab-menu-item.js';
/**
* Material design:
Expand Down Expand Up @@ -78,9 +77,11 @@ class PaperFabMenu extends PolymerElement {
}
.main-items {
@apply --layout-vertical;
@apply --layout-flex;
@apply --layout-self-center;
display: flex;
flex-direction: column;
flex: 1;
flex-basis: 0.000000001px;
align-self: center;
-webkit-flex-basis: 0%;
flex-basis: 0%;
}
Expand All @@ -90,12 +91,14 @@ class PaperFabMenu extends PolymerElement {
}
.menu-fab-button {
@apply --layout-vertical;
@apply --layout-self-center;
display: flex;
flex-direction: column;
align-self: center;
}
.paper-fab-menu-container {
@apply --layout-vertical;
display: flex;
flex-direction: column;
}
:host(:not([children-visible])) .main-items {
Expand Down

0 comments on commit a9bcf8f

Please sign in to comment.