Skip to content

Commit

Permalink
Update demo styles around sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
javierjulio committed Dec 25, 2022
1 parent 90c0087 commit 4a2349d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions demo/demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,11 @@ pre {

.demo-options a {
display: inline-block;
/* font-size: 14px; */
margin: 0 8px;
}

.site-footer {
font-size: 1.125rem;
margin-top: 60px;
}

textarea {
Expand Down
4 changes: 2 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1 class="logo">Textarea AutoSize</h1>
<p>The sample code assumes a single line is the default.</p>

<p>Sample HTML:</p>
<div class="highlight highlight-html"><pre>&lt;textarea class="js-auto-size" rows="1"&gt;&lt;/textarea&gt;
<div><pre>&lt;textarea class="js-auto-size" rows="1"&gt;&lt;/textarea&gt;
&lt;script type="module"&gt;
import { TextareaAutoSize } from './src/textarea-autosize.js'
const wrapper = new TextareaAutoSize(
Expand All @@ -44,7 +44,7 @@ <h1 class="logo">Textarea AutoSize</h1>
}
</pre></div>

<p>The min and max height in the sample CSS is a pre-calculated value. If your font-size is 16px, line-height is 1.5 and top/bottom padding is 6px each, then the minimum height would be 36px since 16 * 1.5 + 12 = 36.</p>
<p class="margin-bottom-5x">The min and max height in the sample CSS is a pre-calculated value. If your font-size is 16px, line-height is 1.5 and top/bottom padding is 6px each, then the minimum height would be 36px since 16 * 1.5 + 12 = 36.</p>

<footer class="site-footer text-center">
<p>
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1 class="logo">Textarea AutoSize</h1>
<p>The sample code assumes a single line is the default.</p>

<p>Sample HTML:</p>
<div class="highlight highlight-html"><pre>&lt;textarea class="js-auto-size" rows="1"&gt;&lt;/textarea&gt;
<div><pre>&lt;textarea class="js-auto-size" rows="1"&gt;&lt;/textarea&gt;
&lt;script type="module"&gt;
import { TextareaAutoSize } from './src/textarea-autosize.js'
const wrapper = new TextareaAutoSize(
Expand All @@ -43,7 +43,7 @@ <h1 class="logo">Textarea AutoSize</h1>
}
</pre></div>

<p>The min and max height in the sample CSS is a pre-calculated value. If your font-size is 16px, line-height is 1.5 and top/bottom padding is 6px each, then the minimum height would be 36px since 16 * 1.5 + 12 = 36.</p>
<p class="margin-bottom-5x">The min and max height in the sample CSS is a pre-calculated value. If your font-size is 16px, line-height is 1.5 and top/bottom padding is 6px each, then the minimum height would be 36px since 16 * 1.5 + 12 = 36.</p>

<footer class="site-footer text-center">
<p>
Expand Down
2 changes: 0 additions & 2 deletions public/demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,11 @@ pre {

.demo-options a {
display: inline-block;
/* font-size: 14px; */
margin: 0 8px;
}

.site-footer {
font-size: 1.125rem;
margin-top: 60px;
}

textarea {
Expand Down

0 comments on commit 4a2349d

Please sign in to comment.