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

Adopt @skyux/theme #1930

Merged
merged 12 commits into from
Aug 24, 2018
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ package-lock.json
/src/*/dist/
/dist/**
.webpack.json
.skypageslocales

# Doc #
/doc/
Expand Down
18 changes: 6 additions & 12 deletions config/utils/compile-sass.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
var sass = require('node-sass'),
fs = require('fs-extra'),
path = require('path'),
tildeImporter = require('node-sass-tilde-importer');
const fs = require('fs-extra');
const path = require('path');

var result = sass.renderSync({
file: path.resolve(__dirname, '../../src/scss/sky.scss'),
importer: tildeImporter,

});

fs.ensureFileSync(path.resolve(__dirname, '../../dist/css/sky.css'));
fs.writeFileSync(path.resolve(__dirname, '../../dist/css/sky.css'), result.css);
fs.copySync(
path.resolve(__dirname, '../../node_modules/@skyux/theme/css/sky.css'),
path.resolve(__dirname, '../../dist/css/sky.css')
);
35 changes: 0 additions & 35 deletions config/utils/sky-style-loader.js

This file was deleted.

2 changes: 1 addition & 1 deletion config/utils/spec-styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var styleLoader = require('./sky-style-loader');
const styleLoader = require('@skyux/theme/utils/node-js/style-loader');

// A race condition exists in Firefox where tests can begin before styles are loaded.
// This will ensure that styles are loaded before tests run by ensuring the style rule
Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"wdio": "wdio"
},
"dependencies": {
"@skyux/theme": "3.0.0-alpha.10",
"dragula": "3.7.2",
"intl": "1.2.5",
"microedge-rxstate": "2.0.2",
Expand All @@ -55,8 +56,7 @@
"@angular/platform-browser-dynamic": "4.3.6",
"@angular/router": "4.3.6",
"@blackbaud/skyux": "latest",
"@blackbaud/skyux-builder": "1.13.0",
"@blackbaud/skyux-design-tokens": "0.0.8",
"@blackbaud/skyux-builder": "1.19.3",
"@types/core-js": "0.9.41",
"@types/jasmine": "2.5.47",
"@types/node": "7.0.18",
Expand Down Expand Up @@ -90,9 +90,6 @@
"karma-webpack-grep": "1.0.1",
"less": "2.7.2",
"node-resemble-js": "0.2.0",
"node-sass": "4.5.3",
"node-sass-tilde-importer": "1.0.0",
"normalize-scss": "5.0.3",
"raw-loader": "0.5.1",
"remap-istanbul": "0.9.5",
"rimraf": "2.6.1",
Expand Down
3 changes: 1 addition & 2 deletions skyuxconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "skyux2",
"mode": "easy",
"compileMode": "aot",
"cssPath": "./src/scss/sky.scss"
"compileMode": "aot"
}
2 changes: 1 addition & 1 deletion src/app/app-extras.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { NgModule } from '@angular/core';

import { SkyDemoModule } from '../demo';

require('style-loader!./styles.scss');
require('style-loader!@skyux/theme/css/sky.css');

@NgModule({
entryComponents: [],
Expand Down
10 changes: 0 additions & 10 deletions src/app/styles.scss

This file was deleted.

2 changes: 1 addition & 1 deletion src/demos/autocomplete/autocomplete-demo.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '~@blackbaud/skyux-design-tokens/scss/mixins';
@import "~@skyux/theme/scss/mixins";

.autocomplete-demo-form {
::ng-deep .sky-form-group {
Expand Down
4 changes: 2 additions & 2 deletions src/demos/lookup/lookup-demo.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '~@blackbaud/skyux-design-tokens/scss/mixins';
@import "~@skyux/theme/scss/mixins";

.lookup-demo-form {
::ng-deep .sky-form-group {
Expand All @@ -23,4 +23,4 @@
pre {
margin: 0;
}
}
}
2 changes: 1 addition & 1 deletion src/demos/select-field/select-field-demo.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '~@blackbaud/skyux-design-tokens/scss/mixins';
@import "~@skyux/theme/scss/mixins";

.select-field-demo-alert {
padding: 10px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '../../scss/mixins';
@import "~@skyux/theme/scss/mixins";
@import "~@skyux/theme/scss/_compat/mixins";

@media (min-width: $sky-screen-sm-min) {
.sky-action-button-container {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="sky-action-button-header">
<div class="sky-action-button-header sky-section-heading">
<ng-content></ng-content>
</div>
4 changes: 2 additions & 2 deletions src/modules/action-button/action-button-header.component.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@import '../../scss/mixins';
@import "~@skyux/theme/scss/mixins";
@import "~@skyux/theme/scss/_compat/mixins";

.sky-action-button-header {
display: inline-block;
@include sky-section-heading();
}

@media (max-width: $sky-screen-xs-max) {
Expand Down
3 changes: 2 additions & 1 deletion src/modules/action-button/action-button-icon.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '../../scss/mixins';
@import "~@skyux/theme/scss/mixins";
@import "~@skyux/theme/scss/_compat/mixins";

.sky-action-button-icon-container {
display: inline-block;
Expand Down
3 changes: 2 additions & 1 deletion src/modules/action-button/action-button.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '../../scss/mixins';
@import "~@skyux/theme/scss/mixins";
@import "~@skyux/theme/scss/_compat/mixins";

.sky-action-button {
@include sky-border(dark, top, bottom, left, right);
Expand Down
7 changes: 4 additions & 3 deletions src/modules/alert/alert.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "../../scss/variables";
@import "~@skyux/theme/scss/mixins";
@import "~@skyux/theme/scss/_compat/mixins";

.sky-alert {
padding: 0 $sky-padding;
Expand All @@ -13,7 +14,7 @@
padding-top: $sky-padding;
padding-bottom: $sky-padding;
width: 100%;

::ng-deep a {
color: change-color($sky-text-color-default, $alpha: 0.8);
text-decoration: underline;
Expand All @@ -24,7 +25,7 @@
}
}



button {
margin-left: auto;
Expand Down
3 changes: 2 additions & 1 deletion src/modules/avatar/avatar.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '../../scss/mixins';
@import "~@skyux/theme/scss/mixins";
@import "~@skyux/theme/scss/_compat/mixins";

.sky-avatar {
/deep/ .sky-file-drop-accept {
Expand Down
3 changes: 2 additions & 1 deletion src/modules/avatar/avatar.inner.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '../../scss/mixins';
@import "~@skyux/theme/scss/mixins";
@import "~@skyux/theme/scss/_compat/mixins";

.sky-avatar-wrapper {
height: $sky-avatar-height + ($sky-avatar-border-width * 2);
Expand Down
3 changes: 2 additions & 1 deletion src/modules/card/card-actions.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "../../scss/mixins";
@import "~@skyux/theme/scss/mixins";
@import "~@skyux/theme/scss/_compat/mixins";

:host {
display: block;
Expand Down
4 changes: 2 additions & 2 deletions src/modules/card/card.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<div (click)="contentClick()" class="sky-card-header" *ngIf="selectable || showTitle">
<div class="sky-card-heading-middle">
<h1 class="sky-card-title" *ngIf="showTitle">
<h1 class="sky-card-title sky-section-heading" *ngIf="showTitle">
<ng-content select="sky-card-title"></ng-content>
</h1>
</div>
Expand All @@ -24,7 +24,7 @@ <h1 class="sky-card-title" *ngIf="showTitle">
</div>
</div>
</header>
<div class="sky-card-content" (click)="contentClick()">
<div class="sky-card-content sky-padding-even-default" (click)="contentClick()">
<ng-content select="sky-card-content"></ng-content>
</div>
<div class="sky-card-actions" [hidden]="actionsEl.children.length === 0" #actionsEl>
Expand Down
6 changes: 2 additions & 4 deletions src/modules/card/card.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "../../scss/mixins";
@import "~@skyux/theme/scss/mixins";
@import "~@skyux/theme/scss/_compat/mixins";

.sky-card {
background-color: #fff;
Expand Down Expand Up @@ -44,7 +45,6 @@

.sky-card-heading-left,
.sky-card-heading-right {
//@include ellipsis();
font-weight: normal;
max-width: 34px;
}
Expand All @@ -64,7 +64,6 @@
}

.sky-card-title {
@include sky-section-heading();
margin: 0;
line-height: $sky-line-height-base;
}
Expand All @@ -82,7 +81,6 @@
flex-grow: 1;
font-weight: normal;
margin: 0;
padding: $sky-padding;
overflow: hidden;
}

Expand Down
5 changes: 3 additions & 2 deletions src/modules/chevron/chevron.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "../../scss/variables";
@import "~@skyux/theme/scss/mixins";
@import "~@skyux/theme/scss/_compat/mixins";

.sky-chevron {
border: none;
Expand All @@ -10,7 +11,7 @@
padding: 0;
width: $sky-context-menu-size;
cursor: pointer;

&:hover .sky-chevron-part {
border-color: darken($sky-text-color-icon-borderless, 20%);
}
Expand Down
12 changes: 6 additions & 6 deletions src/modules/colorpicker/colorpicker.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
<div
[style.left.px]="slider.saturation"
[style.top.px]="slider.value"
class="cursor">
class="cursor sky-rounded-circle">
</div>
</div>
<div class="box">
<div class="left">
<div class="selected-color-background">
<div class="selected-color-background sky-rounded-circle">
</div>
<div
[style.background-color]="selectedColor?.rgbaText"
class="selected-color">
class="selected-color sky-rounded-circle">
</div>
</div>
<div class="right">
Expand All @@ -44,7 +44,7 @@
#hueSlider>
<div
[style.left.px]="slider.hue"
class="cursor">
class="cursor sky-rounded-circle">
</div>
</div>
<div
Expand All @@ -56,7 +56,7 @@
#alphaSlider>
<div
[style.left.px]="slider.alpha"
class="cursor">
class="cursor sky-rounded-circle">
</div>
</div>
</div>
Expand Down Expand Up @@ -153,7 +153,7 @@
</div>
</div>

<div class="sky-colorpicker-container sky-colorpicker-footer">
<div class="sky-colorpicker-container sky-colorpicker-footer sky-padding-even-large">
<section class="sky-colorpicker-column">
<button
class="sky-btn sky-btn-primary sky-btn-colorpicker-apply"
Expand Down
Loading