Browse Source

updates formatting of form validation docs, modifies definition table to not use outer border

Former-commit-id: a2d5688e9e06f0688550d77fb36e75b3756912e5
Former-commit-id: 4e44bf54100149de420d80f43da5bfa6c281136a
beta
jlukic 11 years ago
parent
commit
5548d3592a
  1. 6
      build/less/collections/table.less
  2. 6
      build/uncompressed/collections/table.css
  3. 22
      node/src/documents/modules/form.html.eco
  4. 7
      node/src/documents/modules/shape.html.eco
  5. 6
      node/src/documents/modules/sidebar.html.eco
  6. 6
      node/src/files/build/less/collections/table.less
  7. 6
      node/src/files/build/uncompressed/collections/table.css
  8. 6
      src/collections/table.less

6
build/less/collections/table.less

@ -459,12 +459,6 @@
Definition Definition
---------------*/ ---------------*/
.ui.definition.table {
border: 1px solid rgba(0, 0, 0, 0.1);
}
.ui.definition.table tr {
border-top: 1px solid rgba(0, 0, 0 ,0.1);
}
.ui.definition.table td:first-child { .ui.definition.table td:first-child {
font-weight: bold; font-weight: bold;
} }

6
build/uncompressed/collections/table.css

@ -409,12 +409,6 @@
/*-------------- /*--------------
Definition Definition
---------------*/ ---------------*/
.ui.definition.table {
border: 1px solid rgba(0, 0, 0, 0.1);
}
.ui.definition.table tr {
border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.ui.definition.table td:first-child { .ui.definition.table td:first-child {
font-weight: bold; font-weight: bold;
} }

22
node/src/documents/modules/form.html.eco

@ -253,7 +253,7 @@ type : 'UI Behavior'
<tr> <tr>
<td>on</td> <td>on</td>
<td>submit</td> <td>submit</td>
<td>Event used to trigger validation. Can be either submit, blur or change.</td> <td>Event used to trigger validation. Can be either <b>submit</b>, <b>blur</b> or <b>change</b>.</td>
</tr> </tr>
<tr> <tr>
<td>inline</td> <td>inline</td>
@ -265,7 +265,7 @@ type : 'UI Behavior'
<td> <td>
scale scale
</td> </td>
<td>Named transition to use when animating menu in and out. Fade and slide down are available without including <a href="/modules/transition.html">ui transitions</a></td> <td>Named transition to use when animating validation errors. Fade and slide down are available without including <a href="/modules/transition.html">ui transitions</a></td>
</tr> </tr>
<tr> <tr>
<td>duration</td> <td>duration</td>
@ -275,11 +275,13 @@ type : 'UI Behavior'
</tbody> </tbody>
</table> </table>
<div class="ui horizontal divider"><i class="icon setting"></i></div>
<h3 class="ui header"> <h3 class="ui header">
Validation Rules Validation Rules
<div class="sub header">Validation rules are a set of conditions required to validate a field</div> <div class="sub header">Validation rules are a set of conditions required to validate a field</div>
</h3> </h3>
<div class="ui info message">Validation rules are found in <code>settings.rules</code></div> <div class="ui info message">Validation rules are found in <code>settings.rules</code>, to add new global validation rules, modify <code>$.fn.form.settings.rules</code> to include your function.</div>
<table class="ui teal celled definition table segment"> <table class="ui teal celled definition table segment">
<thead> <thead>
<th class="four wide">Name</th> <th class="four wide">Name</th>
@ -335,13 +337,14 @@ type : 'UI Behavior'
</tbody> </tbody>
</table> </table>
<div class="ui horizontal divider"><i class="icon setting"></i></div>
<h3 class="ui header"> <h3 class="ui header">
Callbacks Callbacks
<div class="sub header">Callback settings specify a function to occur after a specific behavior.</div> <div class="sub header">Callback settings specify a function to occur after a specific behavior.</div>
</h3> </h3>
<table class="ui celled definition table segment"> <table class="ui celled green definition table segment">
<thead> <thead>
<th class="four wide">Setting</th> <th class="four wide">Setting</th>
<th>Context</th> <th>Context</th>
@ -371,14 +374,14 @@ type : 'UI Behavior'
</tbody> </tbody>
</table> </table>
<div class="ui horizontal section divider"><i class="icon setting"></i></div> <div class="ui horizontal divider"><i class="icon setting"></i></div>
<h3 class="ui header"> <h3 class="ui header">
Templates Templates
<div class="sub header">Templates are used to construct elements</div> <div class="sub header">Templates are used to construct elements</div>
</h3> </h3>
<div class="ui info message">Templates are found in <code>settings.template</code></div> <div class="ui info message">Templates are found in <code>settings.template</code>, to modify templates across all forms, modify <code>$.fn.form.settings.templates</code> to include your function. They must return html.</div>
<table class="ui celled definition table segment"> <table class="ui celled blue definition table segment">
<thead> <thead>
<th class="four wide">Template</th> <th class="four wide">Template</th>
<th>Arguments</th> <th>Arguments</th>
@ -398,13 +401,13 @@ type : 'UI Behavior'
</tbody> </tbody>
</table> </table>
<div class="ui horizontal divider"><i class="icon setting"></i></div>
<h3 class="ui header"> <h3 class="ui header">
DOM Settings DOM Settings
<div class="sub header">DOM settings specify how this module should interface with the DOM</div> <div class="sub header">DOM settings specify how this module should interface with the DOM</div>
</h3> </h3>
<table class="ui celled definition table segment"> <table class="ui celled purple definition table segment">
<thead> <thead>
<th>Setting</th> <th>Setting</th>
<th class="six wide">Default</th> <th class="six wide">Default</th>
@ -463,6 +466,7 @@ type : 'UI Behavior'
</tbody> </tbody>
</table> </table>
<div class="ui horizontal divider"><i class="icon setting"></i></div>
<h3 class="ui header"> <h3 class="ui header">
Debug Settings Debug Settings

7
node/src/documents/modules/shape.html.eco

@ -45,7 +45,6 @@ type : 'UI Module'
<h2 class="ui dividing header">Examples</h2> <h2 class="ui dividing header">Examples</h2>
<div class="ui clearing divider"></div>
<h3 class="ui header">Interactive</h3> <h3 class="ui header">Interactive</h3>
<div class="demo square ui shape"> <div class="demo square ui shape">
@ -78,6 +77,7 @@ type : 'UI Module'
<div class="ui button" data-animation="flip" data-direction="back">Back</div> <div class="ui button" data-animation="flip" data-direction="back">Back</div>
</div> </div>
<div class="ui clearing section divider"></div>
<h3 class="ui header">Shape with Content</h3> <h3 class="ui header">Shape with Content</h3>
<div class="dog ui shape"> <div class="dog ui shape">
@ -227,11 +227,6 @@ type : 'UI Module'
<th colspan="3">Shape Settings</th> <th colspan="3">Shape Settings</th>
</thead> </thead>
<tbody> <tbody>
<tr>
<td>useCSS</td>
<td>True</td>
<td>Not currently supported. Will allow for use of javascript requestAnimationFrame transitions instead of css3 transitions.</td>
</tr>
<tr> <tr>
<td>duration</td> <td>duration</td>
<td>1000ms</td> <td>1000ms</td>

6
node/src/documents/modules/sidebar.html.eco

@ -65,8 +65,8 @@ type : 'UI Module'
<div class="ui ignored warning message"> <div class="ui ignored warning message">
<div class="header">Fixed Position Snafoos</div> <div class="header">Fixed Position Snafoos</div>
Fixed position content may have issues changing it's position when a sidebar appears. There are two solutions Fixed position content may have issues changing it's position when a sidebar appears. There are two solutions
<ul class="list"> <ul class="ui list">
<li>Specify your fixed content without using the css left property <li>Specify your fixed content without using the css left or top properties.</li>
<li>Apply styles on the fixed element to adjust its position when the sidebar appears. You can do this by descending from the body tag which receives the class <code>(direction) pushed</code> when the view is moved.</li> <li>Apply styles on the fixed element to adjust its position when the sidebar appears. You can do this by descending from the body tag which receives the class <code>(direction) pushed</code> when the view is moved.</li>
</ul> </ul>
</div> </div>
@ -211,7 +211,7 @@ type : 'UI Module'
</div> </div>
</div> </div>
<h2 class="ui header">Behavior</h2> <h2 class="ui dividing header">Behavior</h2>
All the following behaviors can be called using the syntax <code>$('.foo').sidebar('behavior name')</code> All the following behaviors can be called using the syntax <code>$('.foo').sidebar('behavior name')</code>

6
node/src/files/build/less/collections/table.less

@ -459,12 +459,6 @@
Definition Definition
---------------*/ ---------------*/
.ui.definition.table {
border: 1px solid rgba(0, 0, 0, 0.1);
}
.ui.definition.table tr {
border-top: 1px solid rgba(0, 0, 0 ,0.1);
}
.ui.definition.table td:first-child { .ui.definition.table td:first-child {
font-weight: bold; font-weight: bold;
} }

6
node/src/files/build/uncompressed/collections/table.css

@ -409,12 +409,6 @@
/*-------------- /*--------------
Definition Definition
---------------*/ ---------------*/
.ui.definition.table {
border: 1px solid rgba(0, 0, 0, 0.1);
}
.ui.definition.table tr {
border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.ui.definition.table td:first-child { .ui.definition.table td:first-child {
font-weight: bold; font-weight: bold;
} }

6
src/collections/table.less

@ -459,12 +459,6 @@
Definition Definition
---------------*/ ---------------*/
.ui.definition.table {
border: 1px solid rgba(0, 0, 0, 0.1);
}
.ui.definition.table tr {
border-top: 1px solid rgba(0, 0, 0 ,0.1);
}
.ui.definition.table td:first-child { .ui.definition.table td:first-child {
font-weight: bold; font-weight: bold;
} }

Loading…
Cancel
Save