Skip to content

Commit

Permalink
Form default margin: 0
Browse files Browse the repository at this point in the history
  • Loading branch information
soyjavi committed Nov 5, 2012
1 parent fb885bd commit 8f124d1
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 47 deletions.
79 changes: 39 additions & 40 deletions kitchen-sink/app/sections/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,48 +6,47 @@
</header>

<article class="scroll">
<form>
<input type="search" placeholder="type your search" />
<a href="#" class="button theme" data-icon="search"></a>

<div class="six columns">
<label>Address</label>
<input type="text" placeholder="placeholder"/>
</div>
<div class="three columns right">
<label>Pin Code</label>
<input type="password" value="value" disabled/>
<form class="margined">
<input type="search" placeholder="type your search" />
<a href="#" class="button theme" data-icon="search"></a>

<div class="six columns">
<label>Address</label>
<input type="text" placeholder="placeholder"/>
</div>
<div class="three columns right">
<label>Pin Code</label>
<input type="password" value="value" disabled/>
</div>
<textarea></textarea>

<label>Select your skill</label>
<label class="select">
<select class="custom">
<option value="1">HTML5 Jedi</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
</label>


<label>Progress of project</label>
<div id="progress-normal" data-progress="25%"></div>

<label>Range 50%</label>
<input type="range" placeholder="type your name" />

<div class="one row">
<input type="range" min="0" max="1" class="checkbox left" value="0">
<input type="range" min="0" max="1" class="checkbox right active" value="1">
</div>
<div class="four columns left">
<a href="#" class="button big theme" data-label="Accept" data-icon="check"></a>
</div>
<textarea></textarea>

<label>Select your skill</label>
<label class="select">
<select class="custom">
<option value="1">HTML5 Jedi</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
</label>


<label>Progress of project</label>
<div id="progress-normal" data-progress="25%"></div>

<label>Range 50%</label>
<input type="range" placeholder="type your name" />

<div class="one row">
<input type="range" min="0" max="1" class="checkbox left" value="0">
<input type="range" min="0" max="1" class="checkbox right active" value="1">
<div class="four columns right">
<a href="#" class="button big red" data-label="Cancel" data-icon="close"></a>
</div>
<div class="four columns left">
<a href="#" class="button big theme" data-label="Accept" data-icon="check"></a>
</div>
<div class="four columns right">
<a href="#" class="button big red" data-label="Cancel" data-icon="close"></a>
</div>
</form>
</ul>
</form>


</article>
Expand Down
4 changes: 2 additions & 2 deletions kitchen-sink/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
</nav>
<div class="left">
<div class="centered title with-subtitle">
Lungo Framework
<small class="subtitle">BETA 2.d</small>
Lungo
<small class="subtitle">HTML5 Cross-Device Framework</small>
</div>
</div>
</header>
Expand Down
1 change: 0 additions & 1 deletion src/stylesheets/Lungo.widgets.form.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@


form {
margin: 3%;

&.wrapper input:not([type=checkbox]), textarea, select {
margin: 3px 0px 3px 0px;
Expand Down
3 changes: 2 additions & 1 deletion src/stylesheets/Lungo.widgets.less
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@
&.right { float: right;}
}


.hidden { display: none; }
.indented > * { margin: 10px; }
.margined { margin: 3%; }

.wrapper { padding: 8px 8px; }

.icon.small { font-size: 1.3em; }
Expand Down
3 changes: 3 additions & 0 deletions src/stylesheets/css/Lungo.widgets.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
.indented > * {
margin: 10px;
}
.margined {
margin: 3%;
}
.wrapper {
padding: 8px 8px;
}
Expand Down
5 changes: 2 additions & 3 deletions src/stylesheets/css/Lungo.widgets.form.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
/* DIMENSIONS */
/* COLORS */
form {
margin: 3%;
/* @group search */

}
Expand Down Expand Up @@ -77,13 +76,13 @@ form input[type=search] {
width: 86%;
display: inline-block;
}
form input[type=search] + .button {
form input[type=search] + .button {
float: right;
padding: 0px;
width: 11%;
height: 30px;
}
form input[type=search] + .button .icon {
form input[type=search] + .button .icon {
top: -3px;
float: none;
}
Expand Down

0 comments on commit 8f124d1

Please sign in to comment.