-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathgo-to-line.css
77 lines (66 loc) · 1.66 KB
/
go-to-line.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
@keyframes code-input_go-to-line_roll-in {
0% {opacity: 0; transform: translateY(-34px);}
100% {opacity: 1; transform: translateY(0px);}
}
@keyframes code-input_go-to-line_roll-out {
0% {opacity: 1; transform: translateY(0px);}
100% {opacity: 0; transform: translateY(-34px);}
}
.code-input_go-to-line_dialog {
position: absolute;
top: 0; right: 14px;
height: 28px;
padding: 6px;
padding-top: 8px;
border: solid 1px #00000044;
background-color: white;
border-radius: 6px;
box-shadow: 0 .2em 1em .2em rgba(0, 0, 0, 0.16);
}
.code-input_go-to-line_dialog:not(.code-input_go-to-line_hidden-dialog) {
animation: code-input_go-to-line_roll-in .2s;
opacity: 1;
pointer-events: all;
}
.code-input_go-to-line_dialog.code-input_go-to-line_hidden-dialog {
animation: code-input_go-to-line_roll-out .2s;
opacity: 0;
pointer-events: none;
}
.code-input_go-to-line_dialog input::placeholder {
font-size: 80%;
}
.code-input_go-to-line_dialog input {
position: relative;
width: 240px; height: 32px; top: -3px;
font-size: large;
color: #000000aa;
border: 0;
}
.code-input_go-to-line_dialog input.code-input_go-to-line_error {
color: #ff0000aa;
}
.code-input_go-to-line_dialog input:focus {
outline: none;
}
/* Cancel icon */
.code-input_go-to-line_dialog span {
display: inline-block;
width: 24px;
line-height: 24px;
font-family: system-ui;
font-size: 22px;
font-weight: 500;
text-align: center;
border-radius: 50%;
color: black;
opacity: 0.6;
vertical-align: top;
}
.code-input_go-to-line_dialog span:before {
content: "\00d7";
}
.code-input_go-to-line_dialog span:hover {
opacity: .8;
background-color: #00000018;
}