Skip to content

Commit bfea623

Browse files
committed
move textarea styles to style.css
1 parent da22ed8 commit bfea623

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

assets/style.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,22 @@ textarea, iframe, button, select {
7272
font-family: inherit;
7373
}
7474

75+
textarea {
76+
min-height: 1rem;
77+
min-width: 3rem;
78+
resize: none;
79+
}
80+
7581
textarea[readonly] {
7682
opacity: 0.8;
7783
}
7884

85+
textarea.code {
86+
font-family: "Consolas", monospace;
87+
font-size: .8rem;
88+
font-weight: 500;
89+
}
90+
7991
/* custom elements */
8092
#site-icons {
8193
display: flex;

bhav-to-diagram.html

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>The Sims 2 BHAV to Mermaid diagram</title>
88
<link rel="icon" type="image/x-icon" href="assets/favicon.svg">
9-
<link rel="stylesheet" href="assets/style.css?v=5" />
9+
<link rel="stylesheet" href="assets/style.css?v=6" />
1010
<script src="assets/common.js?v=3"></script>
1111
<script src="assets/svg-pan-zoom-container.js?v=0.6.1"></script> <!-- https://github.com/luncheon/svg-pan-zoom-container -->
1212
<style>
@@ -39,15 +39,6 @@
3939
flex-grow: 1;
4040
}
4141

42-
textarea {
43-
min-height: 1rem;
44-
min-width: 3rem;
45-
resize: none;
46-
font-family: "Consolas", monospace;
47-
font-size: .8rem;
48-
font-weight: 500;
49-
}
50-
5142
textarea.error {
5243
background: var(--error-color);
5344
color: var(--on-error-color);
@@ -128,7 +119,7 @@
128119

129120
<body>
130121
<section id="textareas">
131-
<textarea id="input-code" spellcheck="false" placeholder="Here goes your BHAV code"></textarea>
122+
<textarea id="input-code" class="code" spellcheck="false" placeholder="Here goes your BHAV code"></textarea>
132123
<section id="settings">
133124
<button id="tutorial-button" title="Replace the code in the BHAV textbox with a tutorial code">
134125
Show tutorial
@@ -165,7 +156,7 @@
165156
</a>
166157
</div>
167158
</section>
168-
<textarea id="output-code" readonly placeholder="The BHAV code translated into Mermaid diagram code"></textarea>
159+
<textarea id="output-code" class="code" readonly placeholder="The BHAV code translated into Mermaid diagram code"></textarea>
169160
</section>
170161
<section id="visual-output">
171162
<div id="diagram-wrapper" data-zoom-on-wheel="zoom-amount: 0.001; min-scale: 0.9; max-scale: 20;" data-pan-on-drag>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Nopke's web tools</title>
88
<link rel="icon" type="image/x-icon" href="assets/favicon.svg">
9-
<link rel="stylesheet" href="assets/style.css?v=5" />
9+
<link rel="stylesheet" href="assets/style.css?v=6" />
1010
<style>
1111
body {
1212
--body-padding: 1.5rem;

0 commit comments

Comments
 (0)