Skip to content

Commit 29544df

Browse files
author
Darius Rosendahl
committed
Merge remote-tracking branch 'origin/master' into develop
2 parents 7aed282 + 85d9ed6 commit 29544df

File tree

5 files changed

+26
-5
lines changed

5 files changed

+26
-5
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ The project will watch for changes in your scss and html files in your /views an
1616

1717
## Build and run manually
1818
- Build the project: ```npm run create_all```
19+
- Only build CSS: ```npm run create_css```
20+
- Only build HTML: ```npm run create_html```
21+
- Only build JS: ```npm run create_js```
1922

2023
You can now see the project in dist folder, open a .html page in your browser
2124

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "castlecss-docs",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "Documentation website for CastleCSS",
55
"main": "index.js",
66
"sasslintConfig": "sass-lint.yml",

scss/variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ $input-border-color-focus: #eee;
136136
$input-border: 1px solid $input-border-color;
137137

138138
/* Custom select */
139-
$select-arrow: "\2039";
139+
$select-arrow: "\203A";
140140

141141
/* Labels */
142142
$input-label-color: #aaa;

views/forms.html

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,30 @@ <h5>Moves to bottom inside the input</h5>
185185
<h2>Textarea</h2>
186186
<div class="g">
187187
<div class="gi b0_12">
188-
<ul class="form-fields label-top">
189-
<li class="form-field input-textarea" data-castlecss-field>
188+
<ul class="form-fields">
189+
<li class="form-field form-textarea" data-castlecss-field>
190190
<label for="textarea">Example</label>
191191
<textarea maxlength="30000" cols="50" rows="10" id="textarea" name="textarea"></textarea>
192192
</li>
193+
<li class="form-field form-textarea label-top" data-castlecss-field>
194+
<label for="textarea2">Example with label-top</label>
195+
<textarea maxlength="30000" cols="50" rows="10" id="textarea2" name="textarea2"></textarea>
196+
</li>
193197
</ul>
198+
<pre class="brush: html">
199+
<form class="form form-horizontal">
200+
<ul class="form-fields">
201+
<li class="form-field form-textarea" data-castlecss-field>
202+
<label for="textarea">Example</label>
203+
<textarea maxlength="30000" cols="50" rows="10" id="textarea" name="textarea"></textarea>
204+
</li>
205+
<li class="form-field form-textarea label-top" data-castlecss-field>
206+
<label for="textarea2">Example with label-top</label>
207+
<textarea maxlength="30000" cols="50" rows="10" id="textarea2" name="textarea2"></textarea>
208+
</li>
209+
</ul>
210+
</form>
211+
</pre>
194212
<div class="alert mb-2x">Remember the label placements mentioned above? The classes <code>.label-bottom</code>, <code>.label-top</code> and <code>.label-above</code> also work well with textareas. By default all labels are vertical-aligned in the middle. If you want to prevent this behaviour with textarea's you can add a parent class of <code>.input-textarea</code></div>
195213
</div>
196214
</div>

0 commit comments

Comments
 (0)