forked from quoid/userscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTag.svelte
More file actions
55 lines (46 loc) · 1.17 KB
/
Copy pathTag.svelte
File metadata and controls
55 lines (46 loc) · 1.17 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
<script>
export let type = undefined;
</script>
<div class="script__tag {`script__tag--${type}`}"></div>
<style>
.script__tag {
background-color: transparent;
border: 1px solid var(--color-red);
border-radius: var(--border-radius);
color: var(--color-red);
font-size: 0.563rem;
font-weight: 500;
letter-spacing: 0.022rem;
line-height: 0.75rem;
margin-right: 0.5rem;
max-height: 1rem;
min-width: 2rem;
padding: 0.063rem 0.25rem;
text-align: center;
text-transform: uppercase;
}
.script__tag::before {
content: "???";
}
.script__tag--css {
border-color: var(--color-green);
color: var(--color-green);
}
.script__tag--css::before {
content: "css";
}
.script__tag--js {
border-color: var(--color-yellow);
color: var(--color-yellow);
}
.script__tag--js::before {
content: "js";
}
.script__tag--request {
border-color: var(--editor-string-2);
color: var(--editor-string-2);
}
.script__tag--request::before {
content: "req";
}
</style>