Skip to content

Commit

Permalink
Merge pull request #70 from PolymerElements/style-inside-template
Browse files Browse the repository at this point in the history
style tag needs to live inside the template
  • Loading branch information
notwaldorf authored Jul 14, 2016
2 parents 3f6676b + 1a482a0 commit 9932755
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
16 changes: 6 additions & 10 deletions demo/simple-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,13 @@
<link rel="import" href="../../paper-styles/color.html">

<dom-module id="simple-menu">

<style>

.content ::content > .iron-selected {
color: white;
background-color: var(--google-blue-500);
}

</style>

<template>
<style>
.content ::content > .iron-selected {
color: white;
background-color: var(--google-blue-500);
}
</style>

<div class="content">
<content></content>
Expand Down
24 changes: 10 additions & 14 deletions demo/simple-menubar.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,17 @@
<link rel="import" href="../../paper-styles/color.html">

<dom-module id="simple-menubar">

<style>

.content ::content > .iron-selected {
color: white;
background-color: var(--google-red-500);
}

.content ::content > * {
display: inline-block;
}

</style>

<template>
<style>
.content ::content > .iron-selected {
color: white;
background-color: var(--google-red-500);
}

.content ::content > * {
display: inline-block;
}
</style>

<div class="content">
<content></content>
Expand Down

0 comments on commit 9932755

Please sign in to comment.