Skip to content

Commit

Permalink
feat(theme): corporate - new theme (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
denStrigo authored and nnixaa committed Jun 19, 2018
1 parent fd95095 commit c75eaf7
Show file tree
Hide file tree
Showing 27 changed files with 648 additions and 288 deletions.
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

0 comments on commit c75eaf7

Please sign in to comment.