Skip to content

Commit c1b92f1

Browse files
author
WebCoder49
committed
Edit some styles
1 parent b11c95a commit c1b92f1

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

plugins/special-chars.css

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,8 @@
4141
text-shadow: none;
4242

4343
vertical-align: middle;
44-
}
45-
46-
.code-input_special-char::before, .code-input_special-char::after {
47-
white-space: pre;
48-
color: inherit;
49-
background-color: inherit;
50-
51-
font-size: calc(100% - 2px);
52-
position: absolute;
53-
line-height: 1;
54-
55-
height: 2em;
56-
width: calc(100% - 2px);
57-
text-align: center;
44+
45+
outline: 1px solid currentColor;
5846
}
5947

6048
/* Default - Two bytes - 4 hex chars */
@@ -65,7 +53,7 @@
6553
background-color: currentColor;
6654
image-rendering: pixelated;
6755
display: inline-block;
68-
width: 100%;
56+
width: calc(100%-2px);
6957
height: 100%;
7058

7159
--char-0: var(--code-input_special-chars_0);
@@ -75,17 +63,15 @@
7563

7664
mask-image: var(--char-0), var(--char-1), var(--char-2), var(--char-3);
7765
mask-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
78-
mask-size: 45%, 45%, 45%, 45%;
79-
mask-position: 2% 2%, 100% 2%, 2% 100%, 100% 100%;
66+
mask-size: 40%, 40%, 40%, 40%;
67+
mask-position: 10% 10%, 90% 10%, 10% 90%, 90% 90%;
8068

8169
-webkit-mask-image: var(--char-0), var(--char-1), var(--char-2), var(--char-3);
8270
-webkit-mask-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
83-
-webkit-mask-size: 40%, 40%, 40%, 40%;
84-
-webkit-mask-position: 10% 10%, 90% 10%, 10% 90%, 90% 90%;
71+
-webkit-mask-size: min(40%, 0.25em), min(40%, 0.25em), min(40%, 0.25em), min(40%, 0.25em);
72+
-webkit-mask-position: 10% 10%, min(90%, 0.5em) 10%, 10% 90%, min(90%, 0.5em) 90%;
8573
}
8674

87-
/* Zero-width - style so takes up no space */
88-
8975
.code-input_special-char_zero-width {
9076
z-index: 1;
9177
width: 1em;

0 commit comments

Comments
 (0)