Skip to content

Commit 965aa3b

Browse files
committed
applied styling structure standards to previous commit
1 parent 2d34305 commit 965aa3b

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.form-control-highlighted {
2+
border-color: $input-focus-border-color;
3+
4+
transition: box-shadow 0.3s ease-in-out;
5+
animation: form-control-highlighted-blink 1s infinite;
6+
}
7+
8+
@keyframes form-control-highlighted-blink {
9+
0% {
10+
box-shadow: 0 0 0 0 transparent;
11+
}
12+
13+
50% {
14+
@if $enable-shadows {
15+
@include box-shadow($input-box-shadow, $input-focus-box-shadow);
16+
} @else {
17+
// Avoid using mixin so we can pass custom focus shadow properly
18+
box-shadow: $input-focus-box-shadow;
19+
}
20+
}
21+
22+
100% {
23+
box-shadow: 0 0 0 0 transparent;
24+
}
25+
}

packages/bootstrap-vue-3/src/styles/styles.scss

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
@import "../components/BTransition/transition";
1212
@import "../components/BTable/table";
1313
@import "../components/BToast/index";
14+
@import "../components/BFormInput/form-input";
1415

1516
.container,
1617
.container-fluid {
@@ -41,29 +42,3 @@
4142
.bv-no-focus-ring:focus {
4243
outline: none;
4344
}
44-
45-
.form-control-highlighted {
46-
border-color: $input-focus-border-color;
47-
48-
transition: box-shadow 0.3s ease-in-out;
49-
animation: form-control-highlighted-blink 1s infinite;
50-
}
51-
52-
@keyframes form-control-highlighted-blink {
53-
0% {
54-
box-shadow: 0 0 0 0 transparent;
55-
}
56-
57-
50% {
58-
@if $enable-shadows {
59-
@include box-shadow($input-box-shadow, $input-focus-box-shadow);
60-
} @else {
61-
// Avoid using mixin so we can pass custom focus shadow properly
62-
box-shadow: $input-focus-box-shadow;
63-
}
64-
}
65-
66-
100% {
67-
box-shadow: 0 0 0 0 transparent;
68-
}
69-
}

0 commit comments

Comments
 (0)