Skip to content

Commit c3ba9c0

Browse files
authored
Merge pull request #33 from WebCoder49/fix-line-height
Fix line-height bug & remove margin from code-input
2 parents 78706ad + 20dfe9f commit c3ba9c0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

code-input.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ code-input {
1414

1515
/* Normal inline styles */
1616
padding: 8px;
17-
margin: 8px;
17+
margin: 0!important;
1818
width: calc(100% - 16px);
1919
height: 250px;
20-
2120
font-size: normal;
2221
font-family: monospace;
23-
line-height: normal;
22+
line-height: 1.5; /* Inherited to child elements */
2423
tab-size: 2;
2524
caret-color: darkgrey;
2625
white-space: pre;
@@ -98,4 +97,4 @@ code-input:not(.code-input_registered)::before {
9897
content: "Use codeInput.registerTemplate to set up.";
9998
display: block;
10099
color: grey;
101-
}
100+
}

0 commit comments

Comments
 (0)