Skip to content

Commit

Permalink
Merge pull request #9 from open-template-hub/develop
Browse files Browse the repository at this point in the history
Release/updated assets
  • Loading branch information
furknyavuz authored Apr 12, 2022
2 parents 050efa2 + ace9a34 commit 9a94af6
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 43 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"karma-coverage": "~2.1.0",
"karma-jasmine": "^4.0.2",
"karma-jasmine-html-reporter": "~1.7.0",
"ng-packagr": "^13.0.0",
"ng-packagr": "^13.3.1",
"typescript": "~4.6.2"
}
}
6 changes: 5 additions & 1 deletion projects/led/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"dest": "../../dist/led",
"lib": {
"entryFile": "src/public-api.ts"
}
},
"assets": [
"styles/util/util.scss",
"styles/led/led.scss"
]
}
42 changes: 1 addition & 41 deletions projects/led/src/lib/component/led/led.component.scss
Original file line number Diff line number Diff line change
@@ -1,41 +1 @@
@mixin set-led-color($information-type) {
.led.#{$information-type} {
background-color: var(--#{$information-type});
box-shadow: var(--shadow-darker) 0 -1px 7px 1px, inset var(--#{$information-type}-darker) 0 -1px 9px, var(--#{$information-type}-lighter) 0 2px 12px;

&.animate {
animation: {
name: led-keyframes-#{$information-type};
duration: 1.5s;
direction: normal;
timing-function: ease-in-out;
iteration-count: infinite;
}
}
}

@keyframes led-keyframes-#{$information-type} {
0% {
box-shadow: var(--shadow-darker) 0 -1px 7px 1px, inset var(--#{$information-type}-darker) 0 -1px 9px, var(--#{$information-type}-lighter) 0 2px 12px;
}

50% {
box-shadow: var(--shadow-darker) 0 -1px 7px 1px, inset var(--#{$information-type}-lighter) 0 -1px 9px, var(--#{$information-type}-lighter) 0 2px 12px;
}

100% {
box-shadow: var(--shadow-darker) 0 -1px 7px 1px, inset var(--#{$information-type}-darker) 0 -1px 9px, var(--#{$information-type}-lighter) 0 2px 12px;
}
}
}

@include set-led-color("error");
@include set-led-color("warning");
@include set-led-color("success");
@include set-led-color("info");

.led {
width: 12px;
height: 12px;
border-radius: 50%;
}
@use "../../../../styles/led/led";
43 changes: 43 additions & 0 deletions projects/led/styles/led/led.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
@use "../util/util";

@mixin set-led-color($information-type) {
.led.#{$information-type} {
background-color: var(--#{$information-type});
box-shadow: var(--shadow-darker) 0 -1px 7px 1px, inset var(--#{$information-type}-darker) 0 -1px 9px, var(--#{$information-type}-lighter) 0 2px 12px;

&.animate {
animation: {
name: led-keyframes-#{$information-type};
duration: 1.5s;
direction: normal;
timing-function: ease-in-out;
iteration-count: infinite;
}
}
}

@keyframes led-keyframes-#{$information-type} {
0% {
box-shadow: var(--shadow-darker) 0 -1px 7px 1px, inset var(--#{$information-type}-darker) 0 -1px 9px, var(--#{$information-type}-lighter) 0 2px 12px;
}

50% {
box-shadow: var(--shadow-darker) 0 -1px 7px 1px, inset var(--#{$information-type}-lighter) 0 -1px 9px, var(--#{$information-type}-lighter) 0 2px 12px;
}

100% {
box-shadow: var(--shadow-darker) 0 -1px 7px 1px, inset var(--#{$information-type}-darker) 0 -1px 9px, var(--#{$information-type}-lighter) 0 2px 12px;
}
}
}

@include set-led-color("error");
@include set-led-color("warning");
@include set-led-color("success");
@include set-led-color("info");

.led {
width: 12px;
height: 12px;
border-radius: 50%;
}
File renamed without changes.

0 comments on commit 9a94af6

Please sign in to comment.