8
8
>
9
9
<div >
10
10
<!-- Icon like in GH -->
11
- <span id =" topline" >
11
+ <span class =" topline" >
12
12
<svg
13
13
aria-hidden =" true"
14
14
height =" 16"
23
23
</svg >
24
24
</span >
25
25
<span id =" code" >Code</span >
26
- <span id = " arrow-drop-down " >
26
+ <span class = " topline " >
27
27
<svg
28
28
aria-hidden =" true"
29
29
height =" 16"
64
64
@click =" copyURL"
65
65
id =" text-box"
66
66
>
67
- <span class =" material-icons" id = " copy-button" >content_copy </span >
67
+ <span class =" material-icons copy-button" >content_copy </span >
68
68
</button >
69
69
</div >
70
70
<span class =" copy-notification" >Copied!</span >
71
- <p id =" wget-text" >Use wget or paste the link in your browser.</p >
71
+ <p class =" wget-text" >Use wget or paste the link in your browser.</p >
72
72
<hr class =" solid" />
73
73
</div >
74
74
<NavDownload @showDownloadMsg =" DownloadMsg" />
@@ -200,17 +200,12 @@ export default {
200
200
<!-- Add "scoped" attribute to limit CSS to this component only -->
201
201
<style scoped>
202
202
/* Adjusting the top Code button */
203
- # topline {
203
+ . topline {
204
204
vertical-align: middle;
205
205
}
206
206
207
207
#code {
208
208
font-size: 1rem;
209
- vertical-align: unset;
210
- }
211
-
212
- #arrow-drop-down {
213
- vertical-align: middle;
214
209
}
215
210
216
211
.download-button {
@@ -237,14 +232,6 @@ export default {
237
232
color: white;
238
233
text-align: center;
239
234
}
240
-
241
- /* The container <div> - needed to position the dropdown content */
242
- .dropdown {
243
- position: relative;
244
- display: inline-block;
245
- text-align: center;
246
- }
247
-
248
235
/* Dropdown Content (Hidden by Default) */
249
236
.dropdown-content {
250
237
display: none;
@@ -257,22 +244,7 @@ export default {
257
244
text-align: center; /* Center-align the dropdown content */
258
245
border: 1px solid var(--c-brand-red);
259
246
border-radius: 3%;
260
- }
261
-
262
- /* Links inside the dropdown */
263
- .dropdown-content a {
264
- color: black;
265
- padding: 12px 16px;
266
- text-decoration: none;
267
- display: block;
268
- border: var(--c-brand-red);
269
- text-align: center; /* Center-align the dropdown links */
270
- }
271
-
272
- /* Change color of dropdown links on hover */
273
- .dropdown-content a:hover {
274
- background-color: var(--c-brand-red);
275
- color: var(--c-white-light);
247
+ text-align: -webkit-center;
276
248
}
277
249
278
250
/* Show the dropdown menu on hover */
@@ -286,17 +258,17 @@ export default {
286
258
}
287
259
288
260
.text-input-group {
289
- margin-top: 4vh;
290
- text-align: -webkit-center;
261
+ margin-top: 2vh;
291
262
}
292
263
293
264
.copy-link {
294
265
--height: 1.6rem;
295
266
display: flex;
296
- max-width: 250px ;
267
+ max-width: 50vw ;
297
268
font-size: 80%;
298
- margin-top: 1 %;
269
+ margin-top: 8 %;
299
270
align-self: center;
271
+ margin-left: 1.1vw;
300
272
}
301
273
.generate {
302
274
background-color: #ffffff;
@@ -334,17 +306,12 @@ export default {
334
306
}
335
307
336
308
.copy-link-button {
337
- flex-shrink: 0;
338
309
width: 2rem;
339
310
height: 8%;
340
311
display: flex;
341
- align-items: center;
342
- justify-content: center;
343
312
background: #dddddd;
344
313
color: #333333;
345
- outline: none;
346
314
border: 1px solid var(--c-brand-red);
347
- cursor: pointer;
348
315
font-size: 50%;
349
316
}
350
317
@@ -366,6 +333,17 @@ export default {
366
333
display: block;
367
334
z-index: 10;
368
335
}
336
+ .copy-button {
337
+ font-size: 1rem;
338
+ }
339
+ .wget-text {
340
+ font-size: 0.6em;
341
+ }
342
+
343
+ /* Solid border */
344
+ hr.solid {
345
+ border-top: 1px solid var(--c-brand-red);
346
+ }
369
347
370
348
.download-success {
371
349
position: fixed;
@@ -399,23 +377,4 @@ export default {
399
377
margin: 0;
400
378
color: var(--c-brand-red);
401
379
}
402
-
403
- @media screen and (max-width: 768px) {
404
- .dropdown-content {
405
- min-width: 100%; /* Make the dropdown menu full width on smaller screens */
406
- }
407
- }
408
-
409
- /* Solid border */
410
- hr.solid {
411
- border-top: 1px solid var(--c-brand-red);
412
- }
413
-
414
- #wget-text {
415
- font-size: 0.6em;
416
- text-align: left;
417
- }
418
- #copy-button {
419
- font-size: 1rem;
420
- }
421
380
</style>
0 commit comments