Skip to content

Commit 3be9e73

Browse files
committed
Fix: button hover
1 parent 551351f commit 3be9e73

File tree

5 files changed

+20
-25
lines changed

5 files changed

+20
-25
lines changed

djangocms_frontend/static/djangocms_frontend/css/base.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

djangocms_frontend/static/djangocms_frontend/css/button_group.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

private/sass/components/_bs-buttons.scss

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,6 @@
1414
--bs-warning: #ffc107;
1515
--bs-info: #0dcaf0;
1616

17-
.btn {
18-
border-color: var(--bs-secondary);
19-
box-shadow: none;
20-
transition: all 0.15s ease-in-out;
21-
22-
&:hover {
23-
color: var(--bs-white);
24-
filter: saturate(60%);
25-
}
26-
27-
&:focus,
28-
&.focus {
29-
filter: saturate(80%);
30-
text-decoration: none;
31-
}
32-
}
33-
34-
.btn {
35-
padding: 0.375rem 0.75rem;
36-
border-radius: 4px;
37-
}
38-
3917
.btn-primary {
4018
color: white;
4119
background-color: var(--bs-primary)

private/sass/components/_button-group.scss

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,26 @@
1111
.btn {
1212
box-sizing: border-box;
1313
cursor: pointer;
14-
-webkit-appearance: none;
1514
margin: 2px;
15+
padding: 0.375rem 0.75rem;
16+
border-radius: 4px;
1617
overflow: hidden;
1718
text-overflow: ellipsis;
19+
white-space: nowrap;
20+
21+
border-color: var(--bs-secondary);
22+
box-shadow: none;
23+
transition: all 0.15s ease-in-out;
24+
25+
&:hover {
26+
filter: opacity(0.8);
27+
}
28+
29+
&:focus,
30+
&.focus {
31+
filter: opacity(0.85);
32+
text-decoration: none;
33+
}
1834
}
1935

2036
// adds basic active effect

private/sass/components/_tabs.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ form ul.djangocms-frontend.nav {
3131
.nav-link {
3232
position: relative;
3333
text-decoration: none;
34+
color: $black;
3435

3536
span.indicator {
3637
display: none;

0 commit comments

Comments
 (0)