Skip to content

feat(theme): add corporate theme#1727

Merged
nnixaa merged 5 commits intoakveo:masterfrom
denStrigo:feat/corporate_theme
Jun 21, 2018
Merged

feat(theme): add corporate theme#1727
nnixaa merged 5 commits intoakveo:masterfrom
denStrigo:feat/corporate_theme

Conversation

@denStrigo
Copy link
Copy Markdown
Collaborator

Please read and mark the following check list before creating a pull request (check one with "x"):

Short description of what this resolves:

@denStrigo denStrigo force-pushed the feat/corporate_theme branch from d2f86e8 to 2b658d9 Compare June 20, 2018 16:43
<nb-search type="rotate-layout" (click)="startSearch()"></nb-search>
</nb-action>
</nb-actions>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary new line

@import '~@nebular/theme/styles/core/functions';

@include nb-install-component() {
$default-switcher-background: #ebeff5;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we move these variables to the theme?


&::before {
// Hack for IE11, IE11 should not set background
background: -webkit-linear-gradient(#01dbb5, #0bbb79);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we move these variables to the theme?

color: #0bbb79;

// Hack for IE11, IE11 should not set background
background: -webkit-linear-gradient(#01dbb5, #0bbb79);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we move these variables to the theme?


constructor(protected themeService: NbThemeService) {
this.themeSubscription = this.themeService.getJsTheme().subscribe(theme => {
this.currentTheme = theme.name;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's re-do this with alive


constructor(private themeService: NbThemeService) {
this.themeSubscription = this.themeService.getJsTheme().subscribe(theme => {
this.currentTheme = theme.name;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's re-do this with alive

}

@include nb-for-theme(corporate) {
nb-tabset /deep/ ul li.active {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are these styles for?

&.warning,
&.danger,
&.secondary {
box-shadow: none;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if we keep the shadow?

<div class="btn-group btn-group-toggle btn-outline-toggle-group" data-toggle="buttons"
[(ngModel)]="paginationModel" ngbRadioGroup>
<label ngbButtonLabel class="btn btn-outline-success">
<label ngbButtonLabel
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's revert this

currentTheme: string;
themeSubscription: Subscription;

constructor(private themeService: NbThemeService) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so no need in this

}

i {
$icon-color-default: #0bbb79;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move on top

cursor: pointer;

&:hover {
span {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need in additional { }

theme: NbJSThemeOptions;

themes = [{
title: 'Light',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

array-object styling looks strange to me

@nnixaa nnixaa merged commit e37f12d into akveo:master Jun 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants