-
Notifications
You must be signed in to change notification settings - Fork 3
/
textAreaUnderline.css
60 lines (50 loc) · 1.5 KB
/
textAreaUnderline.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**
* @name ClearVision Add-on: Text Area Underline
* @author Randymations
* @version 1.0.0
* @description Dynamic text area underline on hover or focus
* @source https://github.com/ClearVision/Addons
* @website https://clearvision.github.io
* @invite 2fKpjAR
* @authorId 384167892012498944
*/
/*
This theme is designed for Clearvision-v6 but is applicable to any other theme.
If you are using ClearVision or another theme, copy and paste the following line below other imports:
@import url(https://clearvision.github.io/Addons/textAreaUnderline.css);
Additionally, if you are using a theme that is not ClearVision, copy the contents of root into your theme's root.
If you are not using another theme, uncomment root.
*/
/*
:root {
--main-color: var(--brand-experiment);
--background-color: var(--channeltextarea-background);
}
*/
.channelTextArea__648e5 {
background: var(--background-color, rgba(0, 0, 0, 0.6));
transition: all 0.15s ease-in-out;
}
.channelTextArea__648e5:focus-within {
box-shadow: none;
}
.channelTextArea__648e5:after {
display: block;
content: '';
border-bottom: 2px solid var(--main-color, var(--brand-experiment));
opacity: 0.5;
transform: scaleX(0);
transition: all 0.2s linear 0s;
margin-left: 4px;
margin-right: 4px;
}
.channelTextArea__648e5:hover:after {
opacity: 0.5;
transform: scaleX(0.5);
}
.channelTextArea__648e5:focus-within:after {
opacity: 1;
transform: scaleX(1);
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
}