Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Simplify header (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
robdodson committed May 30, 2016
1 parent ceacd6a commit e438edd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 37 deletions.
33 changes: 4 additions & 29 deletions src/psk-app/psk-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,9 @@
color: #444;
}

.title-toolbar {
@apply(--layout-center-center);
width: 100vw;
box-sizing: border-box;
}

app-drawer-layout:not([narrow]) .title-toolbar {
width: 100%;
}

.title {
padding-bottom: 40px;
font-size: 50px;
font-weight: 800;
[title] {
font-size: 20px;
font-weight: normal;
}

iron-selector {
Expand All @@ -107,14 +96,6 @@
iron-pages > * {
min-height: 100vh;
}

@media (max-width: 580px) {
/* make title smaller to fit on screen */
.title {
font-size: 30px;
padding-bottom: 16px;
}
}
</style>

<!-- setup routes -->
Expand Down Expand Up @@ -148,15 +129,9 @@
<!-- main panel -->
<app-header-layout>
<app-header reveals effects="waterfall" class="main-header">
<!-- top toolbar -->
<app-toolbar>
<!-- menu button -->
<paper-icon-button icon="app:menu" drawer-toggle></paper-icon-button>
</app-toolbar>

<!-- bottom toolbar -->
<app-toolbar class="title-toolbar">
<h1 class="title">Polymer Starter Kit</h1>
<h1 title>Polymer Starter Kit</h1>
</app-toolbar>
</app-header>
</app-header-layout>
Expand Down
9 changes: 1 addition & 8 deletions src/styles/shared-styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,10 @@
<style>
/* shared style for page titles */
.page-title {
font-size: 40px;
font-size: 26px;
margin-left: 40px;
color: var(--paper-grey-800);
}

@media (max-width: 580px) {
/* make page title smaller */
.page-title {
font-size: 26px;
}
}
</style>
</template>
</dom-module>

0 comments on commit e438edd

Please sign in to comment.