Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(theme): add new corporate theme #479

Merged
merged 14 commits into from
Jun 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
$block-bg-default: #ebeff5;
$block-bg-cosmic: #2f296b;
$block-fg-cosmic: #7d838b;
$block-bg-corporate: #f1f5f8;

display: flex;
flex-direction: column;
Expand Down Expand Up @@ -106,6 +107,10 @@
}
}

&.theme-corporate {
background-color: $block-bg-corporate;
}

.iframe-container {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,18 @@ export class NgdLiveExampleBlockComponent implements OnInit, AfterViewInit, OnDe
return this.currentTheme === 'cosmic';
}

@HostBinding('class.theme-corporate')
private get isCorporate() {
return this.currentTheme === 'corporate';
}

iframeHeight: number;
alive: boolean = true;

themes: {label: string; value: string}[] = [
{ label: 'Default', value: 'default' },
{ label: 'Cosmic', value: 'cosmic' },
{ label: 'Corporate', value: 'corporate' },
];

currentTheme: string = 'default';
Expand Down
12 changes: 12 additions & 0 deletions docs/structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,18 @@ export const structure = [
},
],
},
{
type: 'page',
name: 'Corporate',
children: [
{
type: 'block',
block: 'theme',
name: 'Corporate',
source: 'corporate',
},
],
},
],
},
{
Expand Down
Loading