Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
helper class 'fit'
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Jun 3, 2014
1 parent ac79fe4 commit 818b560
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions core-toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
height: 64px;
/* typography */
font-size: 1.3em;
/* transition */
transition: height 0.18s ease-in;
}

:host(.medium-tall) {
Expand Down Expand Up @@ -55,12 +53,16 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
/* middle bar */
#middleBar {
position: absolute;
top: calc(100% / 3);
top: 64px;
right: 0;
left: 0;
pointer-events: none;
}

:host(.narrow) #middleBar {
top: 56px;
}

/* bottom bar */
#bottomBar {
position: absolute;
Expand Down Expand Up @@ -97,13 +99,14 @@ polyfill-next-selector { content: ':host > .toolbar-tools > *'; }
margin: 0px 8px;
}

polyfill-next-selector { content: ':host .core-fit, :host [core-fit]'; }
::content > .core-fit, ::content > [core-fit] {
polyfill-next-selector { content: '.toolbar-tools > .fit'; }
::content > .fit {
position: absolute;
top: 0;
top: auto;
right: 0;
bottom: 0;
left: 0;
width: auto;
margin: 0;
}

Expand Down

0 comments on commit 818b560

Please sign in to comment.