Skip to content

Commit

Permalink
increased mask size
Browse files Browse the repository at this point in the history
  • Loading branch information
xSentry committed Aug 22, 2024
1 parent 9000519 commit 9b95923
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 28 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@omnedia/ngx-dotpattern",
"description": "A simple component library to create a container with a pattern background.",
"version": "1.0.0",
"version": "1.0.1",
"peerDependencies": {
"@angular/common": "^18.2.0",
"@angular/core": "^18.2.0"
Expand Down
40 changes: 22 additions & 18 deletions src/lib/ngx-dotpattern.component.scss
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
.om-dotpattern {
position: relative;
overflow: hidden;
position: relative;
overflow: hidden;

--om-dotpattern-color: hsla(0, 0%, 64%, .8);
--om-dotpattern-color: hsla(0, 0%, 64%, 0.8);

.om-dotpattern-background {
position: absolute;
pointer-events: none;
height: 100%;
width: 100%;
.om-dotpattern-background {
position: absolute;
pointer-events: none;
height: 100%;
width: 100%;

svg {
pointer-events: none;
inset: 0;
height: 100%;
width: 100%;
fill: var(--om-dotpattern-color);
svg {
pointer-events: none;
inset: 0;
height: 100%;
width: 100%;
fill: var(--om-dotpattern-color);

-webkit-mask-image: radial-gradient(300px circle at center, #fff, transparent);
mask-image: radial-gradient(300px circle at center, #fff, transparent);
}
-webkit-mask-image: radial-gradient(
500px circle at center,
#fff,
transparent
);
mask-image: radial-gradient(500px circle at center, #fff, transparent);
}
}
}
}
9 changes: 0 additions & 9 deletions src/lib/ngx-dotpattern.service.ts

This file was deleted.

0 comments on commit 9b95923

Please sign in to comment.