Browse Source

Update some copy

beta
jlukic 10 years ago
parent
commit
947f15bc33
  1. 5
      server/documents/behaviors/api.html.eco
  2. 28
      server/documents/elements/header.html.eco
  3. 21
      server/documents/index.html.eco
  4. 22
      server/documents/modules/sticky.html.eco
  5. 5
      server/files/stylesheets/docs.css

5
server/documents/behaviors/api.html.eco

@ -26,7 +26,7 @@ type : 'UI Behavior'
<div class="column">
<div class="content">
<div class="ui header"><i class="green check icon"></i>Deal with resources not URLs</div>
<p>Create named actions like <code>'follow user'</code> and have API handle URL templating, parameters, and other annoyances for you.</p>
<p>Use API actions like 'follow user' and not server urls in your code. Centrally manage your entire API making sure you aren't caught modifying urls across your codebase. Define your endpoints using an intuitive templating system that automatically passes data found in your UI.</p>
</div>
</div>
</div>
@ -34,7 +34,8 @@ type : 'UI Behavior'
<div class="column">
<div class="content">
<div class="ui header"><i class="green check icon"></i>State Management</div>
<p>Easily tie server events like AJAX loading elements using intuitive defaults based on the context inside your interface. Set maximum <b>and minimum</b> request times, toggle between UI states, and easily sync state between multiple elements with the same API actions.</p>
<p>API helps your UI keep track of server events, and is designed to work with Semantic's state naming conventions to track loading, disabled, and active stats.</p>
<p>Allowing you to do things like set maximum <b>and minimum</b> request times, toggle between text states, and sync state between multiple buttons with the same API actions.</p>
</div>
</div>
<div class="column">

28
server/documents/elements/header.html.eco

@ -9,7 +9,7 @@ title : 'Header'
description : 'A header provides a short summary of content'
type : 'UI Element'
themes : ['Default', 'Classic', 'Bookish', 'Chubby']
themes : ['Default', 'Classic', 'Bookish', 'Chubby', 'Material']
---
<%- @partial('header') %>
@ -25,22 +25,16 @@ themes : ['Default', 'Classic', 'Bookish', 'Chubby']
<h4 class="ui header">Page Headings</h4>
<p class="header">Headers may be oriented to give the heirarchy of a section in the context of the page</p>
<div class="ignored info ui message">Page headings use standard <code>h1-h6</code> tags, and size themselves relative to the base font of the entire page.</div>
<div class="ui ignored two fluid font buttons">
<a class="increase ui button"> <i class="plus icon"></i> Base Font</a>
<a class="decrease ui button"> <i class="minus icon"></i> Base Font</a>
</div>
<div class="sizer">
<h1 class="ui header">First header</h1>
<img class="ui wireframe image" src="/images/wireframe/short-paragraph.png">
<h2 class="ui header">Second header</h2>
<img class="ui wireframe image" src="/images/wireframe/short-paragraph.png">
<h3 class="ui header">Third header</h3>
<img class="ui wireframe image" src="/images/wireframe/short-paragraph.png">
<h4 class="ui header">Fourth header</h4>
<img class="ui wireframe image" src="/images/wireframe/short-paragraph.png">
<h5 class="ui header">Fifth header</h5>
<img class="ui wireframe image" src="/images/wireframe/short-paragraph.png">
</div>
<h1 class="ui header">First header</h1>
<img class="ui wireframe image" src="/images/wireframe/short-paragraph.png">
<h2 class="ui header">Second header</h2>
<img class="ui wireframe image" src="/images/wireframe/short-paragraph.png">
<h3 class="ui header">Third header</h3>
<img class="ui wireframe image" src="/images/wireframe/short-paragraph.png">
<h4 class="ui header">Fourth header</h4>
<img class="ui wireframe image" src="/images/wireframe/short-paragraph.png">
<h5 class="ui header">Fifth header</h5>
<img class="ui wireframe image" src="/images/wireframe/short-paragraph.png">
</div>
<div class="example">

21
server/documents/index.html.eco

@ -23,6 +23,17 @@ type : 'Semantic'
</div>
</div>
<div class="ui inverted right floated secondary menu">
<div class="item">
<a class="twitter-share-button"
href="http://twitter.com/share"
data-url="http://semantic-ui.com"
data-via="semanticui">
Tweet
</a>
<script type="text/javascript">
window.twttr=(function(d,s,id){var t,js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return}js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);return window.twttr||(t={_e:[],ready:function(f){t._e.push(f)}})}(document,"script","twitter-wjs"));
</script>
</div>
<div class="item">
<iframe class="github" src="http://ghbtns.com/github-btn.html?user=semantic-org&amp;repo=semantic-ui&amp;type=watch&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe>
</div>
@ -48,7 +59,7 @@ type : 'Semantic'
<div class="column">
<div class="introduction">
<a class="ui black version label" href="https://github.com/Semantic-Org/Semantic-UI/blob/1.0/RELEASE-NOTES.md">
1.0.0 Beta
1.0.0
</a>
<h1 class="ui inverted header">
<span class="library">
@ -84,7 +95,7 @@ type : 'Semantic'
<img src="/images/icons/theming.png" class="ui icon image">
Unbelievable Theming
</h1>
<p>Semantic provides real design freedom. High level variables and an intuitive inheritance system lets you change the look and feel of your components with just a handful of lines.</p>
<p>Semantic offers complete design freedom. High level variables and an intuitive inheritance system lets you change the look and feel of your components with just a handful of lines. Intui</p>
<div class="ui large source button" style="display:none;">
<i class="docs code icon"></i> View Source
</div>
@ -167,7 +178,7 @@ type : 'Semantic'
3000+ CSS Variables
</h2>
<p>The only dogma from this framework: <em>everything arbitrary is mutable</em>.</p>
<a class="ui large button" href="http://learnsemantic.com/developing/customizing.html">Customization Guide</a>
<a class="ui large button" href="http://learnsemantic.com/developing/customizing.html">Integration Guide</a>
</div>
<div class="column">
<h2 class="ui icon header">
@ -907,14 +918,14 @@ type : 'Semantic'
<img class="ui icon image" src="/images/icons/mobile.png">
Responsively Designed
</h2>
<p>Semantic lets you choose from built in responsive patterns that let you tailor-fit your designs for tablet and mobile.</p>
<p>Semantic is <b>designed complely with em</b> making reponsive sizing a breeze. Design <em>variations</em> built into elements allow you to choose how content adjusts for tablet and mobile.</p>
</div>
<div class="column">
<h2 class="ui icon header">
<img class="ui icon image" src="/images/icons/heart.png">
Partners with Libraries You Love
</h2>
<p>Semantic works alongside <b>Angular, Meteor, Ember</b> and other frameworks to help organize your UI layer alongside your application logic.</p>
<p>Semantic has integrations with <b>Angular, Meteor, Ember</b> and many other frameworks to help organize your UI layer alongside your application logic.</p>
</div>
</div>
</div>

22
server/documents/modules/sticky.html.eco

@ -276,11 +276,21 @@ type : 'UI Module'
<div class="example">
<h4 class="ui header">Initializing</h4>
<p>Sticky is initialized on the content that should be stuck to viewport. Most instances require specifying a secondary <code>context</code> which will define the top and bottom bounds of the sticky element.</p>
<p>Sticky is initialized on content that should be stuck to viewport. Most instances require specifying a secondary <code>context</code> which will define the top and bottom bounds of the sticky element. Sticky content must be included inside a containing element. This container can be a <a href="/elements/rail.html">ui rail</a> or your own arbitrary container, but should exist parallel to your context.</p>
<div class="code" data-type="html">
<div class="ui rail">
<div class="ui sticky">
<!-- Any arbitrary content !-->
</div>
</div>
<div id="context">
<!-- Long flowing text content !-->
</div>
</div>
<div class="code" data-type="javascript">
$('.ui.sticky')
.sticky({
context: '#element-to-follow'
context: '#context'
})
;
</div>
@ -303,6 +313,7 @@ type : 'UI Module'
;
</div>
</div>
<div class="example">
<h4 class="ui header">Sticky Conditions</h4>
<p>Sticky content is required to be inside its own <code>position: relative</code> container that is either the sticky context, or <b>shares vertical positioning with the context element</b>.</p>
@ -342,11 +353,13 @@ type : 'UI Module'
</div>
<div class="example">
<h4 class="ui header">Adjusting Offset and Padding</h4>
<p>If you have</p>
<p>If you have content fixed to the viewport it might make sense to include a top or bottom offset. An <code>offset</code> will adjust all values so that content does not overlap any content between the top of the browser and the specified value. A <code>bottomOffset</code> will do the same thing for content fixed to the bottom of the viewport.</p>
<div class="code" data-type="javascript">
$('.ui.sticky')
.sticky({
context: '#element-to-follow'
offset : 50,
bottomOffset : 50,
context : '#element-to-follow'
})
;
</div>
@ -402,7 +415,6 @@ type : 'UI Module'
<thead>
<tr>
<th class="four wide"></th>
<th class="four wide">Parameters</th>
<th>Context</th>
<th>Description</th>
</tr>

5
server/files/stylesheets/docs.css

@ -637,9 +637,6 @@ body#example.hide {
padding: 3em 0em 0em;
-webkit-tap-highlight-color: transparent;
}
#example .example:last-child {
margin-bottom: 5em;
}
/* Header */
#example .example > h4:first-child {
@ -1482,7 +1479,7 @@ body.progress.animated .ui.progress .bar {
border-left: 1px solid #DDDDDD;
border-right: 1px solid #DDDDDD;
border-bottom: 1px solid #DDDDDD;
padding: 2em 2em;
padding: 2em 2em 7em;
z-index: 1;
}
#example .wide.main.container {

Loading…
Cancel
Save