Skip to content

Commit f39395d

Browse files
authored
Merge pull request #64 from gethinode/develop
Develop
2 parents 9565862 + 28d73d8 commit f39395d

File tree

1 file changed

+63
-50
lines changed

1 file changed

+63
-50
lines changed

assets/scss/hanko.scss

Lines changed: 63 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -2,56 +2,60 @@ hanko-auth,
22
hanko-dialog,
33
hanko-login,
44
hanko-profile {
5-
/* Color Scheme */
6-
--color: var(--bs-body-color);
7-
--color-shade-1: #8f9095;
8-
--color-shade-2: #e5e6ef;
9-
--brand-color: #{$primary};
10-
--brand-color-shade-1: #{$primary};
11-
--brand-contrast-color: var(--bs-body-bg);
12-
--background-color: var(--bs-body-bg);
13-
--error-color: #{$danger};
14-
--link-color: #{$primary};
15-
16-
/* Font Styles */
17-
--font-weight: $font-weight-normal;
18-
--font-size: $font-size-base;
19-
--font-family: $font-family-sans-serif;
20-
21-
/* Border Styles */
22-
--border-radius: #{$theme-border-radius};
23-
--border-style: solid;
24-
--border-width: 1px;
25-
26-
/* Item Styles */
27-
--item-height: 34px;
28-
--item-margin: 0.5rem 0;
29-
30-
/* Container Styles */
31-
--container-padding: 30px;
32-
--container-max-width: 410px;
33-
34-
/* Headline Styles */
35-
--headline1-font-size: 24px;
36-
--headline1-font-weight: 600;
37-
--headline1-margin: 0 0 1rem;
38-
--headline2-font-size: 16px;
39-
--headline2-font-weight: 600;
40-
--headline2-margin: 1rem 0 0.5rem;
41-
42-
/* Divider Styles */
43-
--divider-padding: 0 42px;
44-
--divider-visibility: visible;
45-
46-
/* Link Styles */
47-
--link-text-decoration: none;
48-
--link-text-decoration-hover: underline;
49-
50-
/* Input Styles */
51-
--input-min-width: 14em;
52-
53-
/* Button Styles */
54-
--button-min-width: max-content;
5+
/* Color Scheme */
6+
--color: var(--bs-body-color);
7+
--color-shade-1: #8f9095;
8+
--color-shade-2: #e5e6ef;
9+
--brand-color: #{$primary};
10+
--brand-color-shade-1: #{$primary};
11+
--brand-contrast-color: var(--bs-body-bg);
12+
--background-color: var(--bs-body-bg);
13+
--error-color: #{$danger};
14+
--link-color: #{$primary};
15+
16+
/* Font Styles */
17+
--font-weight: $font-weight-normal;
18+
--font-size: $font-size-base;
19+
--font-family: $font-family-sans-serif;
20+
21+
/* Border Styles */
22+
--border-radius: #{$theme-border-radius};
23+
--border-style: solid;
24+
--border-width: 1px;
25+
26+
/* Item Styles */
27+
--item-height: 34px;
28+
--item-margin: 0.5rem 0;
29+
30+
/* Container Styles */
31+
--container-padding: 30px;
32+
--container-max-width: 410px;
33+
34+
/* Headline Styles */
35+
--headline1-font-size: 24px;
36+
--headline1-font-weight: 600;
37+
--headline1-margin: 0 0 1rem;
38+
--headline2-font-size: 16px;
39+
--headline2-font-weight: 600;
40+
--headline2-margin: 1rem 0 0.5rem;
41+
42+
/* Divider Styles */
43+
--divider-padding: 0 42px;
44+
--divider-visibility: visible;
45+
46+
/* Link Styles */
47+
--link-text-decoration: none;
48+
--link-text-decoration-hover: underline;
49+
50+
/* Input Styles */
51+
--input-min-width: 14em;
52+
53+
/* Button Styles */
54+
--button-min-width: max-content;
55+
56+
&::part(primary-button):hover {
57+
background-color: shade-color($primary, $btn-hover-bg-shade-amount);
58+
}
5559
}
5660

5761
@if $enable-dark-mode {
@@ -62,6 +66,15 @@ hanko-profile {
6266
hanko-profile {
6367
--link-color: #{$primary-text-emphasis-dark};
6468
--brand-contrast-color: var(--bs-body-color);
69+
70+
&::part(primary-button):hover {
71+
background-color: var(--bs-primary);
72+
color: var(--bs-body-bg);
73+
}
74+
75+
&::part(secondary-button):hover {
76+
background-color: var(--bs-tertiary-bg);
77+
}
6578
}
6679
}
6780
}

0 commit comments

Comments
 (0)