-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample
More file actions
156 lines (152 loc) · 3.46 KB
/
Copy pathexample
File metadata and controls
156 lines (152 loc) · 3.46 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<div class="messageBox">
<div class="fileUploadWrapper">
<label for="file">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 337 337">
<circle
stroke-width="20"
stroke="#6c6c6c"
fill="none"
r="158.5"
cy="168.5"
cx="168.5"
></circle>
<path
stroke-linecap="round"
stroke-width="25"
stroke="#6c6c6c"
d="M167.759 79V259"
></path>
<path
stroke-linecap="round"
stroke-width="25"
stroke="#6c6c6c"
d="M79 167.138H259"
></path>
</svg>
<span class="tooltip">Add an Magnet</span>
</label>
<input type="file" id="file" name="file" />
</div>
<input required="" placeholder="Magnet..." type="text" id="messageInput" />
<button id="sendButton">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 664 663">
<path
fill="none"
d="M646.293 331.888L17.7538 17.6187L155.245 331.888M646.293 331.888L17.753 646.157L155.245 331.888M646.293 331.888L318.735 330.228L155.245 331.888"
></path>
<path
stroke-linejoin="round"
stroke-linecap="round"
stroke-width="33.67"
stroke="#6c6c6c"
d="M646.293 331.888L17.7538 17.6187L155.245 331.888M646.293 331.888L17.753 646.157L155.245 331.888M646.293 331.888L318.735 330.228L155.245 331.888"
></path>
</svg>
</button>
</div>
.messageBox {
width: fit-content;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background-color: #2d2d2d;
padding: 0 15px;
border-radius: 10px;
border: 1px solid rgb(63, 63, 63);
}
.messageBox:focus-within {
border: 1px solid rgb(110, 110, 110);
}
.fileUploadWrapper {
width: fit-content;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-family: Arial, Helvetica, sans-serif;
}
#file {
display: none;
}
.fileUploadWrapper label {
cursor: pointer;
width: fit-content;
height: fit-content;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.fileUploadWrapper label svg {
height: 18px;
}
.fileUploadWrapper label svg path {
transition: all 0.3s;
}
.fileUploadWrapper label svg circle {
transition: all 0.3s;
}
.fileUploadWrapper label:hover svg path {
stroke: #fff;
}
.fileUploadWrapper label:hover svg circle {
stroke: #fff;
fill: #3c3c3c;
}
.fileUploadWrapper label:hover .tooltip {
display: block;
opacity: 1;
}
.tooltip {
position: absolute;
top: -40px;
display: none;
opacity: 0;
color: white;
font-size: 10px;
text-wrap: nowrap;
background-color: #000;
padding: 6px 10px;
border: 1px solid #3c3c3c;
border-radius: 5px;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.596);
transition: all 0.3s;
}
#messageInput {
width: 200px;
height: 100%;
background-color: transparent;
outline: none;
border: none;
padding-left: 10px;
color: white;
}
#messageInput:focus ~ #sendButton svg path,
#messageInput:valid ~ #sendButton svg path {
fill: #3c3c3c;
stroke: white;
}
#sendButton {
width: fit-content;
height: 100%;
background-color: transparent;
outline: none;
border: none;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s;
}
#sendButton svg {
height: 18px;
transition: all 0.3s;
}
#sendButton svg path {
transition: all 0.3s;
}
#sendButton:hover svg path {
fill: #3c3c3c;
stroke: white;
}