Skip to content

Commit 180d26b

Browse files
committed
move textarea styles to style.css
1 parent e086863 commit 180d26b

File tree

3 files changed

+38
-13
lines changed

3 files changed

+38
-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: 23 additions & 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;
@@ -50,6 +50,28 @@ <h1>The Sims 2 tools</h1>
5050
to see explanations of what they do.
5151
</p>
5252
</dd>
53+
54+
<dt><a href="resource-list-to-table.html">Resource list to table</a></dt>
55+
<dd>
56+
<p>
57+
A web tool for modders that converts
58+
<a href="https://modthesims.info/showthread.php?t=630456" target="_blank">SimPe</a>
59+
resource lists to HTML
60+
and <a href="https://modthesims.info/" target="_blank">Mod The Sims</a> BBCode tables.
61+
The tool includes group and type names,
62+
and allows to sort the rows of the generated code.
63+
</p>
64+
<p>
65+
It's intended to make preparing technical descriptions for mods easier.
66+
<a href="https://modthesims.info/d/688444#overridden%20resources" target="_blank">
67+
See an example of how it can be used.
68+
</a>
69+
</p>
70+
<p>
71+
Hover over interface elements (e.g. buttons, icons, text areas)
72+
to see explanations of what they do.
73+
</p>
74+
</dd>
5375
</dl>
5476
<section id="site-icons">
5577
<a href="https://github.com/Cosmatevs/cosmatevs.github.io" target="_blank" title="Go to the GitHub repository">

0 commit comments

Comments
 (0)