Browse Source

Adds list style, docs

pull/13/head
jlukic 11 years ago
parent
commit
3ff6bc3f51
26 changed files with 1008 additions and 254 deletions
  1. 16
      build/uncompressed/collections/grid.css
  2. 2
      build/uncompressed/collections/menu.css
  3. 1
      build/uncompressed/collections/message.css
  4. 218
      build/uncompressed/elements/list.css
  5. 2
      node/package.json
  6. 32
      node/src/documents/collections/grid.html
  7. 9
      node/src/documents/collections/menu.html
  8. 4
      node/src/documents/elements/button.html
  9. 156
      node/src/documents/elements/list.html
  10. 18
      node/src/documents/index.html
  11. 2
      node/src/documents/index_old.html
  12. 85
      node/src/documents/introduction/definitions.html
  13. 6
      node/src/documents/introduction/types.html
  14. 2
      node/src/documents/module.html
  15. 182
      node/src/documents/modules/sidebar.html
  16. 3
      node/src/documents/modules/transition.html
  17. 16
      node/src/files/components/semantic/collections/grid.css
  18. 2
      node/src/files/components/semantic/collections/menu.css
  19. 1
      node/src/files/components/semantic/collections/message.css
  20. 218
      node/src/files/components/semantic/elements/list.css
  21. 9
      node/src/files/stylesheets/semantic.css
  22. 1
      node/src/layouts/default.html.eco
  23. 16
      src/collections/grid.less
  24. 2
      src/collections/menu.less
  25. 1
      src/collections/message.less
  26. 258
      src/elements/list.less

16
build/uncompressed/collections/grid.css

@ -279,7 +279,7 @@
margin-left: 0% !important;
margin-right: 0% !important;
}
.ui.divided.grid > .column,
.ui.divided.grid > .column:not(.row),
.ui.divided.grid > .row > .column {
display: table-cell;
-webkit-box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.8);
@ -297,16 +297,16 @@
}
/* Vertically Divided */
.ui.vertically.divided.grid > .row {
-webkit-box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8);
-moz-box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8);
box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8);
-webkit-box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important;
-moz-box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important;
box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important;
}
.ui.vertically.divided.grid > .row > .column,
.ui.vertically.divided.grid > .column,
.ui.vertically.divided.grid > .column:not(.row),
.ui.vertically.divided.grid > .row:first-child {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
box-shadow: none !important;
}
/*----------------------
Celled

2
build/uncompressed/collections/menu.css

@ -390,7 +390,7 @@
margin: 0em;
}
.ui.vertical.menu .dropdown.item .menu .item {
font-size: 0.875em;
font-size: 1em;
padding: 0.75em 1em;
}
.ui.vertical.menu .dropdown.item .menu .item .icon {

1
build/uncompressed/collections/message.css

@ -70,7 +70,6 @@
.ui.message ul.list li {
position: relative;
list-style-type: none;
font-style: italic;
margin: 0em 0em 0em 1em;
padding: 0em;
}

218
build/uncompressed/elements/list.css

@ -0,0 +1,218 @@
/*
* # Semantic List - Flat
* http://github.com/quirkyinc/semantic
*
*
* Copyright 2013 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
* Released: April 26 2013
*/
/*******************************
List
*******************************/
ul.ui.list,
.ui.list {
margin: 1em 0em;
}
ul.ui.list:first-child,
.ui.list:first-child {
margin-top: 1em;
}
ul.ui.list:last-child,
.ui.list:last-child {
margin-bottom: 0em;
}
ul.ui.list,
li:first-child,
.ui.list .item:first-child {
border-top: none;
}
/*******************************
Content
*******************************/
/* List Item */
ul.ui.list li,
.ui.list .item {
display: list-item;
list-style-type: none;
list-style-position: inside;
padding: 0.3em 0em;
line-height: 1.2;
}
/* Icon */
.ui.list .icon {
margin: 0em 0.5em 0em 0em;
}
/* Link */
ul.ui.list a,
.ui.list a {
cursor: pointer;
}
.ui.list a .icon {
color: rgba(0, 0, 0, 0.6);
-webkit-transition: color 0.2s ease;
-moz-transition: color 0.2s ease;
-o-transition: color 0.2s ease;
-ms-transition: color 0.2s ease;
transition: color 0.2s ease;
}
/* Header */
.ui.list .header {
font-weight: bold;
}
/*******************************
Types
*******************************/
/*******************************
States
*******************************/
/*-------------------
Hover
--------------------*/
.ui.list a:hover .icon {
color: rgba(0, 0, 0, 0.8);
}
/*******************************
Variations
*******************************/
/*-------------------
Bulleted
--------------------*/
ul.ui.bulleted.list,
.ui.bulleted.list {
margin-left: 1.5em;
}
ul.ui.bulleted.list li,
.ui.bulleted.list .item {
position: relative;
}
ul.ui.bulleted.list li:before,
.ui.bulleted.list .item:before {
position: absolute;
top: 0.4em;
left: -1.5em;
content: '\25CF';
font-size: 0.8em;
line-height: 1.2rem;
vertical-align: top;
color: rgba(0, 0, 0, 0.6);
}
/*-------------------
Ordered
--------------------*/
ol.ui.list,
ul.ui.ordered.list,
.ui.ordered.list {
counter-reset: ordered;
margin-left: 2em;
}
ol.ui.list li,
ul.ui.ordered.list li,
.ui.ordered.list .item {
counter-increment: ordered;
position: relative;
}
ol.ui.list li:before,
ul.ui.ordered.list li:before,
.ui.ordered.list .item:before {
position: absolute;
top: 0.4em;
left: -2em;
content: counter(ordered);
width: 0.8em;
margin-right: 0.5rem;
border-right: 1px solid rgba(0, 0, 0, 0.1);
padding-right: 0.5em;
text-align: right;
line-height: 1.2rem;
vertical-align: top;
opacity: 0.8;
}
/*-------------------
Divided
--------------------*/
ul.ui.divided.list li,
.ui.divided.list .item {
border-top: 1px solid rgba(0, 0, 0, 0.1);
padding-left: 0.5em;
padding-right: 0.5em;
}
ul.ui.divided.list,
li:first-child,
.ui.divided.list .item:first-child {
border-top: none;
}
/* Divided bulleted */
ul.ui.divided.bulleted.list,
.ui.divided.bulleted.list {
margin-left: 0em;
}
ul.ui.divided.bulleted.list li,
.ui.divided.bulleted.list .item {
padding-left: 1.5em;
}
ul.ui.divided.bulleted.list li:before,
.ui.divided.bulleted.list .item:before {
left: 0em;
}
/* Divided ordered */
ol.ui.divided.list,
ul.ui.divided.ordered.list,
.ui.divided.ordered.list {
margin-left: 0em;
}
ol.ui.divided.list li,
ul.ui.divided.ordered.list li,
.ui.divided.ordered.list .item {
padding-left: 2em;
}
ol.ui.divided.list li:before,
ul.ui.divided.ordered.list li:before,
.ui.divided.ordered.list .item:before {
left: 0em;
}
/*-------------------
Celled
--------------------*/
ul.ui.celled.list li,
.ui.celled.list .item {
border-top: 1px solid rgba(0, 0, 0, 0.1);
padding-left: 0.5em;
padding-right: 0.5em;
}
ul.ui.celled.list,
li:last-child,
.ui.celled.list .item:last-child {
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
/* Celled Bulleted */
ul.ui.celled.bulleted.list,
.ui.celled.bulleted.list {
margin-left: 0em;
}
ul.ui.celled.bulleted.list li,
.ui.celled.bulleted.list .item {
padding-left: 1.5em;
}
ul.ui.celled.bulleted.list li:before,
.ui.celled.bulleted.list .item:before {
left: 0em;
}
/* Celled Ordered */
ol.ui.celled.list,
ul.ui.celled.ordered.list,
.ui.celled.ordered.list {
margin-left: 0em;
}
ol.ui.celled.list li,
ul.ui.celled.ordered.list li,
.ui.celled.ordered.list .item {
padding-left: 2em;
}
ol.ui.celled.list li:before,
ul.ui.celled.ordered.list li:before,
.ui.celled.ordered.list .item:before {
left: 0em;
}

2
node/package.json

@ -4,6 +4,6 @@
"version": 0.1
},
"dependencies": {
"docpad": "~6.48.1"
"docpad": "~6.49.0"
}
}

32
node/src/documents/collections/grid.html

@ -57,7 +57,6 @@ type : 'UI Collection'
<div class="highlighted example">
<h4 class="ui header">Rows</h4>
<p>A row is used to create vertical padding between groups of columns on a page. If no rows are specified columns will sit flush vertically.</p>
<p>
<div class="ui grid">
<div class="row">
<div class="column">
@ -339,6 +338,33 @@ type : 'UI Collection'
</div>
</div>
<div class="example">
<h4 class="ui header">Vertically Divided Grid</h4>
<p>A grid can have dividers between rows</p>
<div class="ui vertically divided grid">
<div class="two column row">
<div class="column">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
</div>
<div class="column">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
</div>
</div>
<div class="three column row">
<div class="column">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
</div>
<div class="column">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
</div>
<div class="column">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
</div>
</div>
</div>
</div>
<div class="example">
<h4 class="ui header">Celled Grid</h4>
<p>A grid can have rows divided into cells</p>
@ -782,7 +808,7 @@ type : 'UI Collection'
<div class="example">
<h4 class="ui header">Row Alignment (Floating)</h4>
<p>A column can be"floated", to either the left or right of its row.</p>
<p>A column can be "floated", to either the left or right of its row.</p>
<div class="ui grid">
<div class="left floated four wide column">
<div class="ui vertical fluid menu">
@ -814,7 +840,7 @@ type : 'UI Collection'
</div>
<div class="example">
<h4 class="ui header">Column Width</h4>
<p>A column can span across multiple grid columns.</p>
<p>A column can vary in width taking up more than a single grid column.</p>
<div class="ui grid">
<div class="three wide column">
<div class="ui segment"><b>Colume One</b> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum iaculis sapien.</div>

9
node/src/documents/collections/menu.html

@ -47,7 +47,14 @@ type : 'UI Collection'
More <i class="dropdown icon"></i>
<div class="menu">
<a class="item"><i class="edit icon"></i> Edit Profile</a>
<a class="item"><i class="globe icon"></i> Choose Language</a>
<div class="ui simple dropdown item">
<i class="globe icon"></i> Choose Language
<div class="menu">
<div class="item">English</div>
<div class="item">Russian</div>
<div class="item">Spanish</div>
</div>
</div>
<a class="item"><i class="settings icon"></i> Account Settings</a>
</div>
</div>

4
node/src/documents/elements/button.html

@ -10,8 +10,8 @@ type : 'UI Element'
<div class="container">
<h1 class="ui dividing header">
Button
<div class="sub header">Buttons indicate a possible user action.</div>
</h1>
<p>Buttons indicate a possible user action.</p>
</div>
</div>
<div class="main container">
@ -24,7 +24,7 @@ type : 'UI Element'
<a class="item">Groups</a>
</div>
</div>
<h2 class="ui dividing header">Standard</h2>
<h2 class="ui dividing header">Types</h2>
<div class="example">
<h4 class="ui header">Basic:</h4>

156
node/src/documents/elements/list.html

@ -0,0 +1,156 @@
---
layout : 'default'
css : 'list'
title : 'List'
type : 'UI Collection'
---
<div class="segment">
<div class="container">
<h1 class="ui dividing header">
List
</h1>
<p>A list is a group of related items ordered consecutively.</p>
</div>
</div>
<div class="main container">
<div class="peek">
<div class="ui vertical pointing secondary menu">
<a class="active item">Types</a>
<a class="item">Content</a>
<a class="item">States</a>
<a class="item">Variations</a>
</div>
</div>
<h2 class="ui dividing header">Standard</h2>
<div class="example">
<h4 class="ui header">List</h4>
<p>A standard list</p>
<div class="ui list">
<div class="item">New York City</div>
<div class="item">Chicago</div>
<div class="item">Los Angeles</div>
<div class="item">San Francisco</div>
</div>
</div>
<div class="example">
<h4 class="ui header">Icon List</h4>
<p>An icon list</p>
<div class="ui list">
<a class="item">
<i class="right doc icon"></i>
What is a FAQ?
</a>
<a class="item">
<i class="right doc icon"></i>
How does one go about reading answers to questions in a FAQ
</a>
<a class="item">
<i class="right docs icon"></i>
How do you close a web browser?
</a>
<a class="item">
<i class="right doc icon"></i>
What is the most popular FAQ question?
</a>
</div>
</div>
<h2 class="ui dividing header">Content</h2>
<div class="example">
<h4 class="ui header">Link</h4>
<p>A list can contain a link</p>
<div class="ui list">
<a class="item">What is a FAQ?</a>
<a class="item">How does one go about reading answers to questions in a FAQ</a>
<a class="item">How do you close a web browser?</a>
<a class="item">What is the most popular FAQ question?</a>
</div>
</div>
<div class="example">
<h4 class="ui header">Header</h4>
<p>A list can contain a header</p>
<div class="ui ordered list">
<div class="item">
<div class="header">New York City</div>
A lovely city
</div>
<div class="item">
<div class="header">Chicago</div>
Also quite a lovely city
</div>
<div class="item">
<div class="header">Los Angeles</div>
Sometimes can be a lovely city
</div>
<div class="item">
<div class="header">San Francisco</div>
What a lovely city
</div>
</div>
</div>
<h2 class="ui dividing header">States</h2>
<h2 class="ui dividing header">Variations</h2>
<div class="example">
<h4 class="ui header">Bulleted</h4>
<p>A list can mark items with a bullet</p>
<div class="ui bulleted list">
<div class="item">New York City</div>
<div class="item">Chicago</div>
<div class="item">Los Angeles</div>
<div class="item">San Francisco</div>
</div>
</div>
<div class="example">
<h4 class="ui header">Ordered</h4>
<p>A list can be ordered numerically</p>
<div class="ui ordered list">
<div class="item">New York City</div>
<div class="item">Chicago</div>
<div class="item">Los Angeles</div>
<div class="item">San Francisco</div>
<div class="item">Detroit</div>
<div class="item">Richmond</div>
<div class="item">Nashville</div>
<div class="item">St Louis</div>
<div class="item">Kansas City</div>
<div class="item">Oakland</div>
<div class="item">Virginia Beach</div>
</div>
</div>
<div class="example">
<h4 class="ui header">Divided</h4>
<p>A list can show divisions between content</p>
<div class="ui divided list">
<div class="item">New York City</div>
<div class="item">Chicago</div>
<div class="item">Los Angeles</div>
<div class="item">San Francisco</div>
</div>
</div>
<div class="example">
<h4 class="ui header">Celled</h4>
<p>A list can divide its items into cells</p>
<div class="ui celled list">
<div class="item">New York City</div>
<div class="item">Chicago</div>
<div class="item">Los Angeles</div>
<div class="item">San Francisco</div>
</div>
</div>
</div>

18
node/src/documents/index.html

@ -1,7 +1,7 @@
---
layout : 'default'
css : 'index'
title : 'Introduction'
title : 'Getting Started'
type : 'Semantic'
---
<script src="/javascript/home.js"></script>
@ -21,8 +21,9 @@ type : 'Semantic'
<div class="ui responsive grid">
<div class="ui column">
<h3 class="ui header">Comparing UI Frameworks</h3>
<p>3 column grid</p>
<div class="ui three column grid">
<div class="ui vertically divided grid">
<div class="three column row">
<p>3 column grid</p>
<div class="column">
<a class="ui teal below pointing label" href="/collections/grid.html">Semantic</a>
<div class="code" data-type="html">
@ -54,9 +55,8 @@ type : 'Semantic'
</div>
</div>
</div>
<div class="ui divider"></div>
<p>Navigation Menu</p>
<div class="ui two column grid">
<div class="ui two column row">
<p>Navigation Menu</p>
<div class="column">
<a class="ui teal below pointing label" href="/collections/menu.html">Semantic</a>
<div class="code" data-type="html">
@ -86,9 +86,8 @@ type : 'Semantic'
</div>
</div>
</div>
<div class="ui divider"></div>
<p>Buttons</p>
<div class="ui two column grid">
<div class="ui two column row">
<p>Buttons</p>
<div class="column">
<a class="ui teal below pointing label" href="/elements/button.html">Semantic</a>
<div class="code" data-type="html">
@ -109,5 +108,6 @@ type : 'Semantic'
</div>
</div>
</div>
</div>
</div>
</div>

2
node/src/documents/index_old.html

@ -2,7 +2,7 @@
layout : 'default'
css : 'index'
title : 'Introduction'
type : 'Semantic'
type : 'Not Used'
---
<script src="/javascript/home.js"></script>

85
node/src/documents/introduction/definitions.html

@ -26,26 +26,40 @@ type : 'UI Introduction'
<h2 class="ui dividing header">Defining Definitions</h2>
<p>Definitions in semantic are groups of css, fonts, images, and javascript which make up a single element on a page. A UI definition is portable, and stand-alone</p>
<p>Definitions in semantic are groups of css, fonts, images, and javascript which make up a single element. Unlike other javascript libraries, semantic UI elements are stand-alone and only require their own assets to function correctly.</p>
<p>Definitions avoid conflicts with other elements by descending rules from a common namespace.</p>
<p>CSS Definitions avoid conflicts with other elements by descending rules from a common ui namespace. UI namespaces should use a single word class name that represents its function descriptively on a web site. For example, a button will be namespaced in html using the class name "ui button".</p>
<h3>Definition Types</h3>
<p>Semantic has five different ui definitions. These are useful patterns for describing re-usable parts of a website.</p>
<ul class="ui list">
<li><b>Element</b> - a basic building block of a website, exists alone or in homogenous groups</li>
<li><b>Collection</b> - a heterogeneous group of several elements which are usually found together</li>
<li><b>View</b> - a way to present common website content</li>
<li><b>Module</b> - an element that also includes behavior as part of its definition</li>
<li><b>Behavior</b> - a set of behaviors not specfically tied to a design</li>
</ul>
<table class="ui celled table">
<tr>
<td class="two wide"><b>Element</b></td>
<td> a basic building block of a website, exists alone or in homogenous groups</td>
</tr>
<tr>
<td><b>Collection</b></td>
<td> a heterogeneous group of several elements which are usually found together</td>
</tr>
<tr>
<td><b>View</b></td>
<td> a way to present common website content</td>
</tr>
<tr>
<td><b>Module</b></td>
<td> an element that also includes behavior as part of its definition</td>
</tr>
<tr>
<td><b>Behavior</b></td>
<td> a set of behaviors not specfically tied to a design</td>
</tr>
</table>
<h2 class="ui dividing header">UI Elements</h2>
<p>UI Elements are interface elements which do not contain other elements inside themselves. This can be thought of as similar in definition as an "element" in chemistry.</p>
<p>UI elements can have plural definitions when they are known to exist together frequently.</p>
<p>UI Elements are page elements which are indivisible. This can be thought of as similar in definition as an "element" in chemistry.</p>
<p>In this case each button will be large because we understand it is a part of the large button group</p>
<p>UI elements can have plural definitions when they are known to exist together in groups. Plural variations allow you to only specify qualities once, allowing them to be inferred across all members of a group.</p>
<div class="code" data-type="html" data-label="true">
<div class="large ui buttons">
@ -55,19 +69,46 @@ type : 'UI Introduction'
</div>
Examples of UI elements:
<ul class="ui list">
<li>Buttons</li>
<li>Labels</li>
<li>Headers</li>
<li>Progress bars</li>
</ul>
<table class="ui celled table">
<tr>
<td class="two wide"><b>Button</b></td>
<td>
<div class="ui button">Button</div>
</td>
</tr>
<tr>
<td><b>Label</b></td>
<td>
<div class="ui label">label</div>
</td>
</tr>
<tr>
<td><b>Input</b></td>
<td>
<div class="ui input">
<input value="input">
</div>
</td>
</tr>
<tr>
<td><b>Loader</b></td>
<td>
<div class="ui active inline loader"></div>
</td>
</tr>
<tr>
<td><b>Segment</b></td>
<td>
<div class="ui segment">Segment</div>
</td>
</tr>
</table>
<h2 class="ui dividing header">UI Collections</h2>
<p>UI Collections are groups of heteregeneous UI elements which are usually found together. Carrying the chemistry metaphor, these can be thought of as molecules.</p>
<p>UI Collections are groups of heteregeneous page elements which are usually found together. Carrying the chemistry metaphor, these can be thought of as molecules.</p>
<p>UI collections have a definition of elements that exist, or could exist inside of them. They do not usually require all elements to be found, but they describe a list of the "usual suspects". Unlike elements, collections are not typically useful to define in plural.</p>
<p>UI collections have a definition of elements that exist, or could exist inside of them. They do not usually require all elements to be found, but they describe a list of the "usual suspects". Unlike elements definitions, collections are not typically useful to define in plural.</p>
<p>Examples of UI collections:</p>
<ul class="ui list">

6
node/src/documents/introduction/types.html

@ -12,7 +12,7 @@ type : 'UI Introduction'
<div class="ui label">Draft</div>
<div class="ui red label">Incomplete</div>
</h1>
<p>Types are exclusive versions of an element included in its definition</p>
<p>Types are exclusive versions of an element that very from its prototype or standard definition</p>
</div>
</div>
<div class="main container">
@ -27,7 +27,7 @@ type : 'UI Introduction'
<p>A <b>type</b> is a mutually exclusive change to an element. Types may require different html structures to work correctly, or expect different content.</p>
<h3 class="ui header">Content</h3>
<p>For example an icon menu might expect you to include glyphs instead of text to be formatted correctly</p>
<p>An icon menu might expect you to include glyphs instead of text to be formatted correctly</p>
<div class="code" data-type="html" data-label="true">
<div class="ui icon menu">
@ -55,7 +55,7 @@ type : 'UI Introduction'
</div>
<h3 class="ui header">HTML Differences</h3>
<p>Types may also require different html to be formatted correctly. A tiered menu needs additional content like a sub menu to display itself correctly</p>
<p>Types may also require different html. For example, a tiered menu needs html specified for a sub menu to display itself correctly</p>
<div class="code" data-type="html" data-label="true">
<div class="ui tiered menu">

2
node/src/documents/module.html

@ -30,7 +30,7 @@ type : 'Semantic'
<p>Settings in UI widgets are any part of a widget definition which is mutable. Most UI widgets have a set of common settings which are useful across all plugins.
<h3 class="ui header">Common Settings</h3>
<table class="ui table">
<table class="ui celled table segment">
<thead>
<th>Name</th>
<th>Usage</th>

182
node/src/documents/modules/sidebar.html

@ -1,6 +1,6 @@
---
layout : 'default'
css : 'sidebar'
css : 'side'
title : 'Sidebar'
type : 'UI Module'
@ -10,7 +10,7 @@ type : 'UI Module'
<div class="segment">
<div class="container">
<h1 class="ui dividing header">Sidebar</h1>
<h1 class="ui dividing header">Sidebar <div class="ui red label">Incomplete</div></h1>
<p>A sidebar is a menu hidden beside page content</p>
</div>
</div>
@ -25,180 +25,14 @@ type : 'UI Module'
<a class="item">Settings</a>
</div>
</div>
<div class="ui grid">
<div class="ten wide column">
<h2 class="ui header">Initializing</h2>
<p>Sidebars are initialized by calling sidebar on an element with class ui sidebar</p>
<div class="code" data-demo="true" data-title="Initializing a sidebar">
$('.ui.sidebar')
.sidebar()
;
</div>
<h3>Controlling a sidebar</h3>
<p>It may also be useful to set a dedicated button as controlling a sidebar. You can do this by calling a separate method</p>
<div class="code" data-demo="true" data-title="Initializing a sidebar">
$('.sidebar')
.sidebar('attach events', '.toggle.button')
;
</div>
<h3>Altering a sidebar width</h3>
<p>Altering the size of sidebar can be done by modifying sidebar.css</p>
<h2 class="ui dividing header">Usage</h2>
<p>If a sidebar is called without any arguments all default settings will be used.</p>
<h3 class="ui header">Visibility</h3>
<p>After the animation queue finishes for an element, its final visibility state is determined. If an animation is an outward sidebar, the final visibility status will be hidden. If an animation is inward the element will be visible after the animatino finishes.</p>
<div class="code" data-demo="true" data-title="Disapearing element">
$('.dog.image')
.sidebar('scale')
;
</div>
<h3 class="ui header">Static Animations</h3>
<p>Animations that do not have an in or out animation defined, will maintain their current visibility after running</p>
<div class="code" data-demo="true" data-title="Looping">
$('.dog.image')
.sidebar('pulse')
;
</div>
<h3 class="ui header">Sidebar Direction</h3>
<p>If an animation direction is not specified it will automatically be determined based on the elements current visibility. For example, if the element is visible the animation "fade out" will be called, if the animation is not visible "fade in".</p>
<div class="code" data-demo="true" data-title="Automatically choosing direction">
$('.dog.image')
// fade up out is used if available
.sidebar('fade up')
// this is now fade up in
.sidebar('fade up')
;
</div>
<div class="code" data-demo="true" data-title="Specifying a direction">
$('.dog.image')
// if a direction if specified it will be obeyed
.sidebar('horizontal flip in')
.sidebar('vertical flip in')
;
</div>
<h3 class="ui header">Passing in settings</h3>
<p>Sidebars use similar argument shorthand as <a href="http://api.jquery.com/animate/">animate</a>. You can specify callback functions, animation duration, and other settings using the same arguments. Durations can be specified as strings with css shorthand, or with numbers.</p>
<h3 class="ui header">Queuing animations</h3>
<p>Animations called in sequence will be queued. Any queued animation will automatically determine the sidebar direction if none is specified.</p>
<div class="code" data-demo="true" data-title="Queueing animations">
$('.dog.image')
.sidebar('horizontal flip', '500ms')
.sidebar('horizontal flip', 500, function() {
alert('done!');
})
;
</div>
<h2 class="ui dividing header">Types</h2>
<h3>Emphasis</h3>
<div class="example">
<h4 class="ui header">Flash</h4>
<p>An element can flash to draw attention to itself</p>
<div class="code" data-demo="true">
$('.dog.image')
.sidebar('flash')
;
</div>
</div>
<div class="example">
<h4 class="ui header">Shake</h4>
<p>An element can shake to draw attention to its position</p>
<div class="code" data-demo="true">
$('.dog.image')
.sidebar('shake')
;
</div>
</div>
<div class="example">
<h4 class="ui header">Tada</h4>
<p>An element can give user positive feedback for an action</p>
<div class="code" data-demo="true">
$('.dog.image')
.sidebar('tada')
;
</div>
</div>
<div class="example">
<h4 class="ui header">Bounce</h4>
<p>An element can bounce to politely remind you of itself</p>
<div class="code" data-demo="true">
$('.dog.image')
.sidebar('bounce')
;
</div>
</div>
<h3>Appearance</h3>
<div class="example">
<h4 class="ui header">Flip</h4>
<p>An element can flip into or out of view vertically or horizontally</p>
<div class="code" data-demo="true">
$('.dog.image')
.sidebar('horizontal flip')
.sidebar('vertical flip')
;
</div>
</div>
<div class="example">
<h4 class="ui header">Fade</h4>
<p>An element can fade into or out of view descending and ascending</p>
<div class="code" data-demo="true">
$('.dog.image')
.sidebar('fade')
.sidebar('fade up')
.sidebar('fade down')
;
</div>
</div>
<div class="example">
<h4 class="ui header">Scale</h4>
<p>An element can scale into or out of view</p>
<div class="code" data-demo="true">
$('.dog.image')
.sidebar('scale')
;
</div>
</div>
<div class="example">
<h4 class="ui header">Slide</h4>
<div class="code" data-demo="true">
$('.dog.image')
.sidebar('slide up')
.sidebar('slide down')
;
</div>
</div>
<h2 class="ui dividing header">Behavior</h2>
<h2 class="ui dividing header">Settings</h2>
</div>
<div class="five wide right floated fixed column">
<img src="/images/demo/vector.png" class="ui dog image">
</div>
<h2 class="ui header">Initializing</h2>
<p>Sidebars are initialized by calling sidebar on an element with class ui sidebar</p>
<div class="code" data-demo="true" data-title="Initializing a sidebar">
$('.ui.sidebar')
.sidebar()
;
</div>
</div>
</body>
</html>

3
node/src/documents/modules/transition.html

@ -170,10 +170,11 @@ type : 'UI Module'
<div class="example">
<h4 class="ui header">Slide</h4>
<p>An element can appear to slide in from above or below
<div class="code" data-demo="true">
$('.dog.image')
.transition('slide up')
.transition('slide down')
.transition('slide up')
;
</div>
</div>

16
node/src/files/components/semantic/collections/grid.css

@ -279,7 +279,7 @@
margin-left: 0% !important;
margin-right: 0% !important;
}
.ui.divided.grid > .column,
.ui.divided.grid > .column:not(.row),
.ui.divided.grid > .row > .column {
display: table-cell;
-webkit-box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1), -2px 0px 0px 0px rgba(255, 255, 255, 0.8);
@ -297,16 +297,16 @@
}
/* Vertically Divided */
.ui.vertically.divided.grid > .row {
-webkit-box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8);
-moz-box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8);
box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8);
-webkit-box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important;
-moz-box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important;
box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important;
}
.ui.vertically.divided.grid > .row > .column,
.ui.vertically.divided.grid > .column,
.ui.vertically.divided.grid > .column:not(.row),
.ui.vertically.divided.grid > .row:first-child {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
box-shadow: none !important;
}
/*----------------------
Celled

2
node/src/files/components/semantic/collections/menu.css

@ -390,7 +390,7 @@
margin: 0em;
}
.ui.vertical.menu .dropdown.item .menu .item {
font-size: 0.875em;
font-size: 1em;
padding: 0.75em 1em;
}
.ui.vertical.menu .dropdown.item .menu .item .icon {

1
node/src/files/components/semantic/collections/message.css

@ -70,7 +70,6 @@
.ui.message ul.list li {
position: relative;
list-style-type: none;
font-style: italic;
margin: 0em 0em 0em 1em;
padding: 0em;
}

218
node/src/files/components/semantic/elements/list.css

@ -0,0 +1,218 @@
/*
* # Semantic List - Flat
* http://github.com/quirkyinc/semantic
*
*
* Copyright 2013 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
* Released: April 26 2013
*/
/*******************************
List
*******************************/
ul.ui.list,
.ui.list {
margin: 1em 0em;
}
ul.ui.list:first-child,
.ui.list:first-child {
margin-top: 1em;
}
ul.ui.list:last-child,
.ui.list:last-child {
margin-bottom: 0em;
}
ul.ui.list,
li:first-child,
.ui.list .item:first-child {
border-top: none;
}
/*******************************
Content
*******************************/
/* List Item */
ul.ui.list li,
.ui.list .item {
display: list-item;
list-style-type: none;
list-style-position: inside;
padding: 0.3em 0em;
line-height: 1.2;
}
/* Icon */
.ui.list .icon {
margin: 0em 0.5em 0em 0em;
}
/* Link */
ul.ui.list a,
.ui.list a {
cursor: pointer;
}
.ui.list a .icon {
color: rgba(0, 0, 0, 0.6);
-webkit-transition: color 0.2s ease;
-moz-transition: color 0.2s ease;
-o-transition: color 0.2s ease;
-ms-transition: color 0.2s ease;
transition: color 0.2s ease;
}
/* Header */
.ui.list .header {
font-weight: bold;
}
/*******************************
Types
*******************************/
/*******************************
States
*******************************/
/*-------------------
Hover
--------------------*/
.ui.list a:hover .icon {
color: rgba(0, 0, 0, 0.8);
}
/*******************************
Variations
*******************************/
/*-------------------
Bulleted
--------------------*/
ul.ui.bulleted.list,
.ui.bulleted.list {
margin-left: 1.5em;
}
ul.ui.bulleted.list li,
.ui.bulleted.list .item {
position: relative;
}
ul.ui.bulleted.list li:before,
.ui.bulleted.list .item:before {
position: absolute;
top: 0.4em;
left: -1.5em;
content: '\25CF';
font-size: 0.8em;
line-height: 1.2rem;
vertical-align: top;
color: rgba(0, 0, 0, 0.6);
}
/*-------------------
Ordered
--------------------*/
ol.ui.list,
ul.ui.ordered.list,
.ui.ordered.list {
counter-reset: ordered;
margin-left: 2em;
}
ol.ui.list li,
ul.ui.ordered.list li,
.ui.ordered.list .item {
counter-increment: ordered;
position: relative;
}
ol.ui.list li:before,
ul.ui.ordered.list li:before,
.ui.ordered.list .item:before {
position: absolute;
top: 0.4em;
left: -2em;
content: counter(ordered);
width: 0.8em;
margin-right: 0.5rem;
border-right: 1px solid rgba(0, 0, 0, 0.1);
padding-right: 0.5em;
text-align: right;
line-height: 1.2rem;
vertical-align: top;
opacity: 0.8;
}
/*-------------------
Divided
--------------------*/
ul.ui.divided.list li,
.ui.divided.list .item {
border-top: 1px solid rgba(0, 0, 0, 0.1);
padding-left: 0.5em;
padding-right: 0.5em;
}
ul.ui.divided.list,
li:first-child,
.ui.divided.list .item:first-child {
border-top: none;
}
/* Divided bulleted */
ul.ui.divided.bulleted.list,
.ui.divided.bulleted.list {
margin-left: 0em;
}
ul.ui.divided.bulleted.list li,
.ui.divided.bulleted.list .item {
padding-left: 1.5em;
}
ul.ui.divided.bulleted.list li:before,
.ui.divided.bulleted.list .item:before {
left: 0em;
}
/* Divided ordered */
ol.ui.divided.list,
ul.ui.divided.ordered.list,
.ui.divided.ordered.list {
margin-left: 0em;
}
ol.ui.divided.list li,
ul.ui.divided.ordered.list li,
.ui.divided.ordered.list .item {
padding-left: 2em;
}
ol.ui.divided.list li:before,
ul.ui.divided.ordered.list li:before,
.ui.divided.ordered.list .item:before {
left: 0em;
}
/*-------------------
Celled
--------------------*/
ul.ui.celled.list li,
.ui.celled.list .item {
border-top: 1px solid rgba(0, 0, 0, 0.1);
padding-left: 0.5em;
padding-right: 0.5em;
}
ul.ui.celled.list,
li:last-child,
.ui.celled.list .item:last-child {
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
/* Celled Bulleted */
ul.ui.celled.bulleted.list,
.ui.celled.bulleted.list {
margin-left: 0em;
}
ul.ui.celled.bulleted.list li,
.ui.celled.bulleted.list .item {
padding-left: 1.5em;
}
ul.ui.celled.bulleted.list li:before,
.ui.celled.bulleted.list .item:before {
left: 0em;
}
/* Celled Ordered */
ol.ui.celled.list,
ul.ui.celled.ordered.list,
.ui.celled.ordered.list {
margin-left: 0em;
}
ol.ui.celled.list li,
ul.ui.celled.ordered.list li,
.ui.celled.ordered.list .item {
padding-left: 2em;
}
ol.ui.celled.list li:before,
ul.ui.celled.ordered.list li:before,
.ui.celled.ordered.list .item:before {
left: 0em;
}

9
node/src/files/stylesheets/semantic.css

@ -265,12 +265,9 @@ a:hover {
z-index: 999;
}
#example .main.menu .count {
/* font-family: "Hevletica Neue", Arial, sans-serif;
font-size: 0.8em; */
color: rgba(255, 255, 255, 0.6);
}
#example .main.menu .count:hover {
color: rgba(255, 255, 255, 0.8);
font-family: "Hevletica Neue", Arial, sans-serif;
font-size: 0.8em;
padding-top: 0.9em;
}
/* lists */

1
node/src/layouts/default.html.eco

@ -34,6 +34,7 @@
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/image.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/input.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/label.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/list.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/loader.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/progress.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/segment.css">

16
src/collections/grid.less

@ -330,7 +330,7 @@
margin-left: 0% !important;
margin-right: 0% !important;
}
.ui.divided.grid > .column,
.ui.divided.grid > .column:not(.row),
.ui.divided.grid > .row > .column {
display: table-cell;
-webkit-box-shadow:
@ -360,23 +360,23 @@
.ui.vertically.divided.grid > .row {
-webkit-box-shadow:
0px -1px 0px 0px rgba(0, 0, 0, 0.1),
0px -2px 0px 0px rgba(255, 255, 255, 0.8)
0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important
;
-moz-box-shadow:
0px -1px 0px 0px rgba(0, 0, 0, 0.1),
0px -2px 0px 0px rgba(255, 255, 255, 0.8)
0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important
;
box-shadow:
0px -1px 0px 0px rgba(0, 0, 0, 0.1),
0px -2px 0px 0px rgba(255, 255, 255, 0.8)
0px -2px 0px 0px rgba(255, 255, 255, 0.8) !important
;
}
.ui.vertically.divided.grid > .row > .column,
.ui.vertically.divided.grid > .column,
.ui.vertically.divided.grid > .column:not(.row),
.ui.vertically.divided.grid > .row:first-child {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
box-shadow: none !important;
}

2
src/collections/menu.less

@ -527,7 +527,7 @@
margin: 0em;
}
.ui.vertical.menu .dropdown.item .menu .item {
font-size: 0.875em;
font-size: 1em;
padding: 0.75em 1em;
}
.ui.vertical.menu .dropdown.item .menu .item .icon {

1
src/collections/message.less

@ -108,7 +108,6 @@
.ui.message ul.list li {
position: relative;
list-style-type: none;
font-style: italic;
margin: 0em 0em 0em 1em;
padding: 0em;
}

258
src/elements/list.less

@ -0,0 +1,258 @@
/*
* # Semantic List - Flat
* http://github.com/quirkyinc/semantic
*
*
* Copyright 2013 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
* Released: April 26 2013
*/
/*******************************
List
*******************************/
ul.ui.list,
.ui.list {
margin: 1em 0em;
}
ul.ui.list:first-child,
.ui.list:first-child {
margin-top: 1em;
}
ul.ui.list:last-child,
.ui.list:last-child {
margin-bottom: 0em;
}
ul.ui.list, li:first-child,
.ui.list .item:first-child {
border-top: none;
}
/*******************************
Content
*******************************/
/* List Item */
ul.ui.list li,
.ui.list .item {
display: list-item;
list-style-type: none;
list-style-position: inside;
padding: 0.3em 0em;
line-height: 1.2;
}
/* Icon */
.ui.list .icon {
margin: 0em 0.5em 0em 0em;
}
/* Link */
ul.ui.list a,
.ui.list a {
cursor: pointer;
}
.ui.list a .icon {
color: rgba(0, 0, 0, 0.6);
-webkit-transition: color 0.2s ease;
-moz-transition: color 0.2s ease;
-o-transition: color 0.2s ease;
-ms-transition: color 0.2s ease;
transition: color 0.2s ease;
}
/* Header */
.ui.list .header {
font-weight: bold;
}
/*******************************
Types
*******************************/
/*******************************
States
*******************************/
/*-------------------
Hover
--------------------*/
.ui.list a:hover .icon {
color: rgba(0, 0, 0, 0.8);
}
/*******************************
Variations
*******************************/
/*-------------------
Bulleted
--------------------*/
ul.ui.bulleted.list,
.ui.bulleted.list {
margin-left: 1.5em;
}
ul.ui.bulleted.list li,
.ui.bulleted.list .item {
position: relative;
}
ul.ui.bulleted.list li:before,
.ui.bulleted.list .item:before {
position: absolute;
top: 0.4em;
left: -1.5em;
content: '\25CF';
font-size: 0.8em;
line-height: 1.2rem;
vertical-align: top;
color: rgba(0, 0, 0, 0.6);
}
/*-------------------
Ordered
--------------------*/
ol.ui.list,
ul.ui.ordered.list,
.ui.ordered.list {
counter-reset: ordered;
margin-left: 2em;
}
ol.ui.list li,
ul.ui.ordered.list li,
.ui.ordered.list .item {
counter-increment: ordered;
position: relative;
}
ol.ui.list li:before,
ul.ui.ordered.list li:before,
.ui.ordered.list .item:before {
position: absolute;
top: 0.4em;
left: -2em;
content: counter(ordered);
width: 0.8em;
margin-right: 0.5rem;
border-right: 1px solid rgba(0, 0, 0, 0.1);
padding-right: 0.5em;
text-align: right;
line-height: 1.2rem;
vertical-align: top;
opacity: 0.8;
}
/*-------------------
Divided
--------------------*/
ul.ui.divided.list li,
.ui.divided.list .item {
border-top: 1px solid rgba(0, 0, 0, 0.1);
padding-left: 0.5em;
padding-right: 0.5em;
}
ul.ui.divided.list, li:first-child,
.ui.divided.list .item:first-child {
border-top: none;
}
/* Divided bulleted */
ul.ui.divided.bulleted.list,
.ui.divided.bulleted.list {
margin-left: 0em;
}
ul.ui.divided.bulleted.list li,
.ui.divided.bulleted.list .item {
padding-left: 1.5em;
}
ul.ui.divided.bulleted.list li:before,
.ui.divided.bulleted.list .item:before {
left: 0em;
}
/* Divided ordered */
ol.ui.divided.list,
ul.ui.divided.ordered.list,
.ui.divided.ordered.list {
margin-left: 0em;
}
ol.ui.divided.list li,
ul.ui.divided.ordered.list li,
.ui.divided.ordered.list .item {
padding-left: 2em;
}
ol.ui.divided.list li:before,
ul.ui.divided.ordered.list li:before,
.ui.divided.ordered.list .item:before {
left: 0em;
}
/*-------------------
Celled
--------------------*/
ul.ui.celled.list li,
.ui.celled.list .item {
border-top: 1px solid rgba(0, 0, 0, 0.1);
padding-left: 0.5em;
padding-right: 0.5em;
}
ul.ui.celled.list, li:last-child,
.ui.celled.list .item:last-child {
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
/* Celled Bulleted */
ul.ui.celled.bulleted.list,
.ui.celled.bulleted.list {
margin-left: 0em;
}
ul.ui.celled.bulleted.list li,
.ui.celled.bulleted.list .item {
padding-left: 1.5em;
}
ul.ui.celled.bulleted.list li:before,
.ui.celled.bulleted.list .item:before {
left: 0em;
}
/* Celled Ordered */
ol.ui.celled.list,
ul.ui.celled.ordered.list,
.ui.celled.ordered.list {
margin-left: 0em;
}
ol.ui.celled.list li,
ul.ui.celled.ordered.list li,
.ui.celled.ordered.list .item {
padding-left: 2em;
}
ol.ui.celled.list li:before,
ul.ui.celled.ordered.list li:before,
.ui.celled.ordered.list .item:before {
left: 0em;
}
Loading…
Cancel
Save