Browse Source

Adds tabs to icons, fixes some doc text

pull/1129/head
jlukic 10 years ago
parent
commit
9c3dbd4a9b
7 changed files with 137 additions and 133 deletions
  1. 2
      server/documents/collections/message.html.eco
  2. 32
      server/documents/elements/divider.html.eco
  3. 190
      server/documents/elements/icon.html.eco
  4. 20
      server/documents/index.html.eco
  5. 12
      server/files/javascript/home.js
  6. 12
      server/files/stylesheets/home.css
  7. 2
      server/layouts/default.html.eco

2
server/documents/collections/message.html.eco

@ -201,7 +201,7 @@ themes : ['Default', 'GitHub', 'Google']
<p>A message may be formatted to display a positive message.</p>
<b class="ignored">
<i class="attention icon"></i>
Positive/Success and Negative/Error nessages by default use similar colors, but each has their own color variables that can be distinguished in your theme.
Positive/Success and Negative/Error messages by default use similar colors, but each has their own color variables that can be distinguished in your theme.
</b>
<div class="ui positive message">
<i class="close icon"></i>

32
server/documents/elements/divider.html.eco

@ -70,23 +70,25 @@ themes : ['default']
<p>A divider can segment content horizontally</p>
<div class="ui ignored positive message">Horizontal dividers can also be used in combination with <a href="/elements/header.html">header</a> and <a href="/elements/icon.html">icons</a> to create different styles of dividers.
</div>
<div class="ui ignored message">Dividers in Semantic <code>1.0</code> will automatically vary the size of their rules to match the length of your text</div>
<div class="ui tertiary form segment">
<div class="field">
<label>Lookup Order</label>
<div class="ui left labeled icon input">
<i class="search icon"></i>
<input type="text" placeholder="Order #">
<div class="ui ignored message">Dividers will automatically vary the size of their dividing rules to match the length of your text</div>
<div class="ui segment">
<div class="ui form">
<div class="field">
<label>Lookup Order</label>
<div class="ui left labeled icon input">
<i class="search icon"></i>
<input type="text" placeholder="Order #">
</div>
</div>
<div class="ui blue submit button">Search</div>
</div>
<div class="ui horizontal divider">
Or
</div>
<div class="ui teal labeled icon button">
Create New Order
<i class="add icon"></i>
</div>
<div class="ui blue submit button">Search</div>
</div>
<div class="ui horizontal divider">
Or
</div>
<div class="ui teal labeled icon button">
Create New Order
<i class="add icon"></i>
</div>
</div>
<div class="another example">

190
server/documents/elements/icon.html.eco

@ -12,21 +12,19 @@ type : 'UI Element'
themes : ['Default']
---
<%- @partial('header') %>
<%- @partial('header', { tabs: { icons: 'Icons', definition: 'Definition' } }) %>
<div class="main container">
<h2 class="ui dividing header">Types</h2>
<div class="ui active tab" data-tab="icons">
<h4 class="ui header">Icon Set</h4>
<p>An icon sets contains an arbitrary number of glyphs</p>
<div class="ui ignored warning message">
Icons serve a very similar function to text in a page. In Semantic icons receive a special tag <code>&lt;i&gt;</code> which allow for an abbreviated markup when sitting along-side text.
</div>
<div class="ui ignored message">Semantic includes a complete port of <a href="http://fortawesome.github.io/Font-Awesome/" target="_blank">Font Awesome</a> designed by <a href="http://www.twitter.com/davegandy">Dave Gandy</a> for its standard icon set.</div>
<h2 class="ui header">Icon Set</h2>
<p>An icon sets contains an arbitrary number of glyphs</p>
<div class="ui ignored warning message">
Icons serve a very similar function to text in a page. In Semantic icons receive a special tag <code>&lt;i&gt;</code> which allow for an abbreviated markup when sitting along-side text.
</div>
<div class="ui segment">
<div class="ui ignored message">Semantic includes a complete port of <a href="http://fortawesome.github.io/Font-Awesome/" target="_blank">Font Awesome</a> designed by <a href="http://www.twitter.com/davegandy">Dave Gandy</a> for its standard icon set.</div>
<div class="icon example">
<h4 class="ui header">Web Content</h4>
<p>Icons can represent types of content found on websites</p>
@ -1064,107 +1062,109 @@ themes : ['Default']
</div>
</div>
<div class="ui tab" data-tab="definition">
<h2 class="ui dividing header">States</h2>
<h2 class="ui dividing header">States</h2>
<div class="example">
<h4 class="ui header">Disabled</h4>
<p>An icon can show that it is disabled</p>
<i class="disabled users icon"></i>
</div>
<div class="example">
<h4 class="ui header">Disabled</h4>
<p>An icon can show that it is disabled</p>
<i class="disabled users icon"></i>
</div>
<div class="example">
<h4 class="ui header">Loading</h4>
<p>An icon can be used as a simple loader</p>
<i class="spinner loading icon"></i>
<i class="notched circle loading icon"></i>
<i class="asterisk loading icon"></i>
</div>
<div class="example">
<h4 class="ui header">Loading</h4>
<p>An icon can be used as a simple loader</p>
<i class="spinner loading icon"></i>
<i class="notched circle loading icon"></i>
<i class="asterisk loading icon"></i>
</div>
<h2 class="ui dividing header">Variations</h2>
<h2 class="ui dividing header">Variations</h2>
<div class="example">
<h4 class="ui header">Size</h4>
<p>An icon can vary in size</p>
<i class="small home icon"></i>
<br>
<i class="home icon"></i>
<br>
<i class="large home icon"></i>
<br>
<i class="big home icon"></i>
<br>
<i class="huge home icon"></i>
<br>
<i class="massive home icon"></i>
</div>
<div class="example">
<h4 class="ui header">Size</h4>
<p>An icon can vary in size</p>
<i class="small home icon"></i>
<br>
<i class="home icon"></i>
<br>
<i class="large home icon"></i>
<br>
<i class="big home icon"></i>
<br>
<i class="huge home icon"></i>
<br>
<i class="massive home icon"></i>
</div>
<div class="example">
<h4 class="ui header">Link</h4>
<p>An icon can be formatted as a link</p>
<i class="close icon link icon"></i>
<i class="help icon link icon"></i>
</div>
<div class="example">
<h4 class="ui header">Link</h4>
<p>An icon can be formatted as a link</p>
<i class="close icon link icon"></i>
<i class="help icon link icon"></i>
</div>
<div class="example">
<h4 class="ui header">Flipped</h4>
<p>An icon can be flipped</p>
<i class="horizontally flipped cloud icon"></i>
<i class="vertically flipped cloud icon"></i>
</div>
<div class="example">
<h4 class="ui header">Flipped</h4>
<p>An icon can be flipped</p>
<i class="horizontally flipped cloud icon"></i>
<i class="vertically flipped cloud icon"></i>
</div>
<div class="example">
<h4 class="ui header">Rotated</h4>
<p>An icon can be rotated</p>
<i class="clockwise rotated cloud icon"></i>
<i class="counterclockwise rotated cloud icon"></i>
</div>
<div class="example">
<h4 class="ui header">Rotated</h4>
<p>An icon can be rotated</p>
<i class="clockwise rotated cloud icon"></i>
<i class="counterclockwise rotated cloud icon"></i>
</div>
<div class="example">
<h4 class="ui header">Circular</h4>
<p>An icon can be formatted to appear circular</p>
<i class="circular users icon"></i>
<i class="circular teal users icon"></i>
<i class="circular inverted users icon"></i>
<i class="circular inverted teal users icon"></i>
</div>
<div class="example">
<h4 class="ui header">Circular</h4>
<p>An icon can be formatted to appear circular</p>
<i class="circular users icon"></i>
<i class="circular teal users icon"></i>
<i class="circular inverted users icon"></i>
<i class="circular inverted teal users icon"></i>
</div>
<div class="example">
<h4 class="ui header">Bordered</h4>
<div class="ui info message">
In <code>0.x.x</code> bordered was formally known as <code>squared</code>
</div>
<p>An icon can be formatted to appear bordered</p>
<i class="bordered users icon"></i>
<i class="bordered teal users icon"></i>
<i class="bordered inverted black users icon"></i>
<i class="bordered inverted teal users icon"></i>
</div>
<div class="example">
<h4 class="ui header">Bordered</h4>
<div class="ui info message">
In <code>0.x.x</code> bordered was formally known as <code>squared</code>
<div class="example">
<h4 class="ui header">Colors</h4>
<p>An icon can be formatted with different colors</p>
<i class="black users icon"></i>
<i class="blue user icon"></i>
<i class="red users icon"></i>
<i class="green user icon"></i>
<i class="purple chat icon"></i>
<i class="teal comment icon"></i>
</div>
<p>An icon can be formatted to appear bordered</p>
<i class="bordered users icon"></i>
<i class="bordered teal users icon"></i>
<i class="bordered inverted users icon"></i>
<i class="bordered inverted teal users icon"></i>
</div>
<div class="example">
<h4 class="ui header">Colors</h4>
<p>An icon can be formatted with different colors</p>
<i class="black users icon"></i>
<i class="blue user icon"></i>
<i class="red users icon"></i>
<i class="green user icon"></i>
<i class="purple chat icon"></i>
<i class="teal comment icon"></i>
</div>
<div class="example">
<h4 class="ui header">Inverted</h4>
<p>an icon can have its colors inverted for contrast</p>
<i class="inverted black users icon"></i>
<i class="inverted blue user icon"></i>
<i class="inverted red users icon"></i>
<i class="inverted green user icon"></i>
<i class="inverted purple chat icon"></i>
<i class="inverted teal comment icon"></i>
</div>
<div class="example">
<h4 class="ui header">Inverted</h4>
<p>an icon can have its colors inverted for contrast</p>
<i class="inverted black users icon"></i>
<i class="inverted blue user icon"></i>
<i class="inverted red users icon"></i>
<i class="inverted green user icon"></i>
<i class="inverted purple chat icon"></i>
<i class="inverted teal comment icon"></i>
</div>
</div>

20
server/documents/index.html.eco

@ -13,11 +13,8 @@ type : 'Semantic'
<div class="ui page grid">
<div class="column">
<img src="images/share.png" class="logo">
<a class="ui pointing left teal version label" href="https://github.com/semantic-org/Semantic-UI/blob/css/RELEASE%20NOTES.md">
Version 1.0.0 Beta
</a>
<div class="ui large inverted right floated secondary menu">
<div class="ui language top right pointing dropdown item" id="languages">
<div class="ui language floating dropdown item" id="languages">
<i class="world icon"></i>
<div class="text">Select Language</div>
<div class="menu">
@ -45,6 +42,9 @@ type : 'Semantic'
<div class="ui page grid">
<div class="column">
<div class="introduction">
<a class="ui black version label" href="https://github.com/semantic-org/Semantic-UI/blob/css/RELEASE%20NOTES.md">
1.0.0 Beta
</a>
<h1 class="ui inverted header">
<span class="library">
Semantic UI
@ -54,7 +54,7 @@ type : 'Semantic'
<span class="text">is the vocabulary of the web.</span>
</h1>
<div class="ui hidden divider"></div>
<a href="customize.html" class="ui huge basic inverted teal download button">
<a href="/build/semantic.zip" class="ui huge basic inverted teal download button">
Download Now
<i class="right chevron icon"></i>
</a>
@ -704,10 +704,9 @@ type : 'Semantic'
<div class="twelve wide column">
<h1 class="ui inverted icon header">
<img src="/images/icons/pen.png" class="ui icon image">
Lose the Hieroglyphics
Simplify Your Codebase
</h1>
<p>Semantic's naming conventions are based around <em>common usage</em>, not arbitrarily prescribed standards—a practice borrowed from <a href="https://www.princeton.edu/~achaney/tmve/wiki100k/docs/Descriptive_linguistics.html" target="_blank">descriptive linguistics</a>.</p>
<div class="hidden code" data-type="html">
<p>Semantic's design is based around <a target="_blank" href="https://www.princeton.edu/~achaney/tmve/wiki100k/docs/Descriptive_linguistics.html"><em>common usage</em></a>, using features of natural language like, plurality, tense, and word order to make your code self-explanatory.</p>
<div class="ui stackable center aligned very relaxed page grid">
<div class="twelve wide column">
<h1 class="ui inverted icon header">
@ -715,9 +714,8 @@ type : 'Semantic'
Decodified Code
</h1>
<p>
Semantic's naming conventions are based around <em>common usage</em>, not arbitrarily prescribed standards—a practice borrowed from
<a>descriptive linguistics</a>
.
<p>Semantic's design is based around <a target="_blank"><em>common usage</em></a>, using features of natural language like, plurality, tense, and word order to make your code self-explanatory.
</p>
</p>
<!-- Recursion Omitted (Turtles all the way down) !-->
</div>

12
server/files/javascript/home.js

@ -9,6 +9,8 @@ semantic.home.ready = function() {
$ui = $header.find('h1 b'),
$phrase = $header.find('h1 span'),
$download = $header.find('.download'),
$library = $header.find('.library'),
$version = $header.find('.version'),
handler
;
@ -26,11 +28,6 @@ semantic.home.ready = function() {
;
}, 1500);
/* setTimeout(function() {
$header
.addClass('colored')
;
}, 10000);*/
$ui.typed({
replaceBaseText : true,
strings : [
@ -42,8 +39,11 @@ semantic.home.ready = function() {
backDelay : 500
});
setTimeout(function() {
$('.masthead .library').transition('scale up', 1000);
$library.transition('scale in', 1000);
}, 6400);
setTimeout(function() {
$version.transition('fade', 600);
}, 7000);
}
};

12
server/files/stylesheets/home.css

@ -189,9 +189,9 @@
-o-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-transform: rotateX(50deg) rotateZ(0deg) rotateY(0deg) translateY(-14%) translateX(-2%) translateZ(300px);
-moz-transform: rotateX(50deg) rotateZ(0deg) rotateY(0deg) translateY(-14%) translateX(-2%) translateZ(300px);
transform: rotateX(50deg) rotateZ(0deg) rotateY(0deg) translateY(-14%) translateX(-2%) translateZ(300px);
-webkit-transform: rotateX(50deg) rotateZ(0deg) rotateY(0deg) translateY(-10%) translateX(-2%) translateZ(370px);
-moz-transform: rotateX(50deg) rotateZ(0deg) rotateY(0deg) translateY(-10%) translateX(-2%) translateZ(370px);
transform: rotateX(50deg) rotateZ(0deg) rotateY(0deg) translateY(-10%) translateX(-2%) translateZ(370px);
}
/* Zoomed Out */
@ -541,7 +541,7 @@
#example.index .following.bar {
position: absolute;
top: 50px;
top: 53px;
z-index: 1;
left: 0%;
width: 100%;
@ -557,6 +557,10 @@
margin: 0.25em 0px 0px 1em;
}
#example.index .introduction .version.label {
visibility: hidden;
}
/*--------------
Stripes
---------------*/

2
server/layouts/default.html.eco

@ -181,7 +181,7 @@
<a class="hide item">
<i class="close icon"></i> Close Menu
</a>
<a class="item" href="/customize.html">
<a class="item" href="/build/semantic.zip">
<i class="download icon"></i> <b>Download</b>
</a>
<div class="item">

Loading…
Cancel
Save