Skip to content

Commit 27dd05b

Browse files
authored
Enable default :focus outline (hestiacp#3417)
1 parent d35ecd7 commit 27dd05b

File tree

9 files changed

+19
-38
lines changed

9 files changed

+19
-38
lines changed

web/css/src/base.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ html {
1414
box-sizing: inherit;
1515
}
1616

17-
:focus {
18-
outline: none;
19-
}
20-
2117
[x-cloak] {
2218
display: none !important;
2319
}

web/css/src/themes/dark.css

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -591,21 +591,6 @@ strong {
591591
inset 0 0 3px rgb(0 0 0 / 65%);
592592
}
593593

594-
&:focus {
595-
color: #eee;
596-
text-shadow: 0 1px 1px rgb(0 0 0 / 35%);
597-
border-color: #0090ff;
598-
background: #303030;
599-
background: linear-gradient(
600-
0deg,
601-
rgb(48 48 48 / 100%) 0%,
602-
rgb(53 53 53 / 100%) 35%,
603-
rgb(69 69 69 / 100%) 100%
604-
);
605-
box-shadow: 0 1px 4px rgb(0 0 0 / 20%), inset 0 0 1px rgb(20 20 20 / 100%),
606-
inset 0 0 3px rgb(0 0 0 / 50%);
607-
}
608-
609594
&:active {
610595
color: #d4d4d4;
611596
text-shadow: 0 -1px 1px rgb(0 0 0 / 55%);
@@ -733,6 +718,13 @@ strong {
733718
background-color: #282828;
734719
}
735720

721+
/* Spinner
722+
========================================================================== */
723+
724+
.fullscreen-loader {
725+
background-color: rgb(0 0 0 / 50%);
726+
}
727+
736728
/* Badge component
737729
========================================================================== */
738730

web/css/src/themes/default.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,8 +1863,7 @@
18631863
transition: 0.2s;
18641864
}
18651865

1866-
&:active,
1867-
&:focus {
1866+
&:active {
18681867
color: #517bab;
18691868
text-shadow: 0 -1px 2px rgb(255 255 255 / 85%);
18701869
border-color: #0066b4;
@@ -1901,8 +1900,7 @@
19011900
border-color: #f27e71;
19021901
}
19031902

1904-
.button-danger:active,
1905-
.button-danger:focus {
1903+
.button-danger:active {
19061904
background: linear-gradient(to bottom, #fcd0ca 0%, #f5a69d 50%, #f9e3df 100%);
19071905
color: #ce1500;
19081906
text-shadow: 0 1px 1px rgb(255 255 255 / 20%), 0 -1px 1px rgb(255 255 255 / 60%);
@@ -2187,7 +2185,7 @@
21872185
justify-content: center;
21882186
align-items: center;
21892187
padding: 50px;
2190-
background-color: rgb(0 0 0 / 50%);
2188+
background-color: rgb(0 0 0 / 10%);
21912189
font-size: 50px;
21922190
z-index: 9999;
21932191
visibility: hidden;

web/css/src/themes/flat.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ strong {
122122
);
123123
}
124124

125-
&:active,
126-
&:focus {
125+
&:active {
127126
box-shadow: none;
128127
background: linear-gradient(
129128
to bottom,
@@ -145,8 +144,7 @@ strong {
145144
border-color: #f27e71;
146145
}
147146

148-
&:active,
149-
:focus {
147+
&:active {
150148
background: #a91200;
151149
color: #fff;
152150
border-color: #f4301a;

web/css/src/themes/vestia.css

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,7 @@ strong {
196196
text-transform: none;
197197
}
198198

199-
&:active,
200-
&:focus {
199+
&:active {
201200
color: #ff6701;
202201
background: none;
203202
text-shadow: none;
@@ -264,8 +263,7 @@ strong {
264263
box-shadow: none;
265264
}
266265

267-
&:active,
268-
&:focus {
266+
&:active {
269267
border-color: transparent;
270268
color: #fff;
271269
background: #809c00;
@@ -293,8 +291,7 @@ strong {
293291
background: #f5f5f5;
294292
}
295293

296-
&:active,
297-
&:focus {
294+
&:active {
298295
color: #326b9b;
299296
text-shadow: none;
300297
border-color: #aaa;

web/css/themes/dark.min.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.

web/css/themes/default.min.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.

web/css/themes/flat.min.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.

web/css/themes/vestia.min.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.

0 commit comments

Comments
 (0)