Skip to content

Commit 408cb46

Browse files
committed
add styles of counter for input & textarea
1 parent 8d8ba2c commit 408cb46

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

projects/social_platform/src/app/ui/components/input/input.component.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,13 @@
4646
}
4747
}
4848

49-
&--error, &--overflow {
49+
&--error,
50+
&--overflow {
5051
border: 0.5px solid var(--red);
5152

5253
&:focus {
5354
border-color: var(--red);
54-
box-shadow: 0 0 6px rgba(255, 40, 40, 0.308);
55+
box-shadow: 0 0 6px rgb(255 40 40 / 30.8%);
5556
}
5657
}
5758

@@ -147,7 +148,7 @@
147148
&__counter {
148149
position: absolute;
149150
right: 18px;
150-
bottom: 0px;
151+
bottom: 0;
151152

152153
p {
153154
color: var(--dark-grey);

projects/social_platform/src/app/ui/components/textarea/textarea.component.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@
3333
padding-right: 130px;
3434
}
3535

36-
&--error, &--overflow {
36+
&--error,
37+
&--overflow {
3738
border: 0.5px solid var(--red);
3839

3940
&:focus {
4041
border-color: var(--red) !important;
41-
box-shadow: 0 0 6px rgba(255, 40, 40, 0.308) !important;
42+
box-shadow: 0 0 6px rgb(255 40 40 / 30.8%) !important;
4243
}
4344
}
4445

0 commit comments

Comments
 (0)