Skip to content

Commit 9cf3af8

Browse files
committed
Update theme and ngjs dependency
1 parent 9b06d35 commit 9cf3af8

File tree

2 files changed

+13
-41
lines changed

2 files changed

+13
-41
lines changed

projects/angular-natural-gallery/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
},
1212
"dependencies": {
13-
"@ecodev/natural-gallery-js": "^10.0.1",
13+
"@ecodev/natural-gallery-js": "^11.1.0",
1414
"tslib": "^2.8.1"
1515
},
1616
"peerDependencies": {

projects/angular-natural-gallery/src/lib/styles/_natural-gallery.theme.scss

Lines changed: 12 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -18,45 +18,17 @@
1818
$background: map.get($theme, background);
1919
$foreground: map.get($theme, foreground);
2020

21-
natural-gallery {
22-
.natural-gallery-js .natural-gallery-body .figure {
23-
background-color: mat-color($primary, 0.1);
24-
}
25-
26-
.natural-gallery-js .natural-gallery-body .figure.errored {
27-
background-color: mat-color($warn, 0.1);
28-
}
29-
30-
/* Highlighted */
31-
.natural-gallery-js .natural-gallery-next svg {
32-
color: mat-color($primary) !important;
33-
fill: currentColor !important;
34-
}
35-
36-
.natural-gallery-js .natural-gallery-next:hover {
37-
background-color: mat-color($foreground, base, 0.1) !important;
38-
}
39-
40-
.natural-gallery-js .selectBtn .marker {
41-
border-color: mat-color($accent);
42-
}
43-
44-
.natural-gallery-js .figure.selected .marker {
45-
background: mat-color($accent);
46-
}
47-
48-
.natural-gallery-js .figure.selected .marker::before,
49-
.natural-gallery-js .figure.selected .marker::after {
50-
background: mat-color($accent, default-contrast);
51-
}
52-
53-
.natural-gallery-js .button {
54-
background: mat-color($primary) !important;
55-
border-top: 1px solid color.adjust(mat-color($primary), $lightness: 0.9%, $space: hsl);
56-
}
57-
58-
.natural-gallery-js .button:hover {
59-
background: color.adjust(mat-color($primary), $lightness: -10%, $space: hsl) !important;
60-
}
21+
.natural-gallery-js {
22+
--ngjs-figure-radius: 4px;
23+
--ngjs-focus-outline: 1px solid #{mat-color($accent)};
24+
--ngjs-marker-border-color: #{mat-color($accent)};
25+
--ngjs-marker-check-color: transparent;
26+
--ngjs-selected-marker-color: #{mat-color($accent)};
27+
--ngjs-selected-marker-check: #{mat-color($accent, default-contrast)};
28+
--ngjs-link-bg: rgb(0, 0, 0, 0.7);
29+
--ngjs-link-color: white;
30+
--ngjs-link-radius: 4px;
31+
--ngjs-link-hover-bg: rgb(0, 0, 0);
32+
--ngjs-link-hover-color: white;
6133
}
6234
}

0 commit comments

Comments
 (0)