Skip to content

Commit

Permalink
Moved to a bit compact layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mgibas committed Aug 31, 2017
1 parent caab4e5 commit 386af28
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dashboard/dashboard-fragment.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
}

</style>
<fragment-layout title="CorpoPong">
<fragment-layout title="CorpoPong" fullbleed>
<a href="/matches/create">
<paper-fab icon="corpopong:paddles"></paper-fab>
</a>
Expand Down
14 changes: 12 additions & 2 deletions src/layouts/fragment-layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,17 @@
<template>
<style include="app-styles"></style>
<style>
.content-wrapper {
@apply --layout-horizontal;
@apply --layout-center-justified;
}
.content {
@apply --layout-flex;
padding: 1rem;
}
:host(:not([fullbleed])) .content {
max-width: var(--corpopong-content-max-width);
}
[hidden] {
display: none !important;
}
Expand Down Expand Up @@ -62,8 +70,10 @@
<user-menu></user-menu>
</app-toolbar>
</app-header>
<div class="content">
<slot></slot>
<div class="content-wrapper">
<div class="content">
<slot></slot>
</div>
</div>
</app-header-layout>
</template>
Expand Down
2 changes: 2 additions & 0 deletions src/styles/app-theme.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
--text-primary-color: var(--dark-theme-text-color);
--default-primary-color: var(--primary-color);
--paper-progress-active-color: var(--accent-color);

--corpopong-content-max-width: 960px;
}
</style>
</custom-style>

0 comments on commit 386af28

Please sign in to comment.