Browse Source

Adds more sidebar examples, adds css technique for fixed position

relative to content
pull/13/head
jlukic 11 years ago
parent
commit
4d0ef99e0d
11 changed files with 356 additions and 257 deletions
  1. 15
      build/uncompressed/collections/table.css
  2. 12
      build/uncompressed/modules/sidebar.css
  3. 51
      node/src/documents/collections/table.html
  4. 17
      node/src/documents/elements/input.html
  5. 405
      node/src/documents/guide/cssguide.html
  6. 49
      node/src/documents/modules/sidebar.html
  7. 15
      node/src/files/components/semantic/collections/table.css
  8. 12
      node/src/files/components/semantic/modules/sidebar.css
  9. 4
      node/src/layouts/default.html.eco
  10. 19
      src/collections/table.less
  11. 14
      src/modules/sidebar.less

15
build/uncompressed/collections/table.css

@ -1,5 +1,5 @@
/*
* # Semantic Table - Flat
* # Semantic Table
* http://github.com/quirkyinc/semantic
*
*
@ -175,7 +175,7 @@
color: #7D6C00;
}
/*--------------
Active
Active
---------------*/
.ui.table tr.active td,
.ui.table tr td.active {
@ -185,7 +185,7 @@
}
/*--------------
Disabled
Disabled
---------------*/
.ui.table tr.disabled td,
.ui.table tr td.disabled,
@ -374,6 +374,15 @@
.ui.inverted.table tbody tr:nth-child(2n) {
background-color: rgba(255, 255, 255, 0.06);
}
/*--------------
Definition
---------------*/
.ui.definition.table tr {
border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.ui.definition.table td:first-child {
font-weight: bold;
}
/*--------------
Collapsing
---------------*/

12
build/uncompressed/modules/sidebar.css

@ -96,14 +96,14 @@ body {
Variations
*******************************/
.ui.floating.sidebar {
-webkit-box-shadow: 5px 0px 5px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 5px 0px 5px rgba(0, 0, 0, 0.2);
box-shadow: 5px 0px 5px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
}
.ui.right.floating.sidebar {
-webkit-box-shadow: -5px 0px 5px rgba(0, 0, 0, 0.2);
-moz-box-shadow: -5px 0px 5px rgba(0, 0, 0, 0.2);
box-shadow: -5px 0px 5px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
}
.ui.top.floating.sidebar {
-webkit-box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);

51
node/src/documents/collections/table.html

@ -15,7 +15,7 @@ type : 'UI Collection'
</div>
</div>
<div class="main container">
<div class="peek">
<div class="ui vertical pointing secondary menu">
<a class="active item">Types</a>
@ -23,7 +23,7 @@ type : 'UI Collection'
<a class="item">Variations</a>
</div>
</div>
<h2 class="ui dividing header">Types</h2>
<div class="example">
<h4 class="ui header">Table</h4>
@ -61,9 +61,9 @@ type : 'UI Collection'
</tfoot>
</table>
</div>
<h2 class="ui dividing header">States</h2>
<div class="example">
<h4 class="ui header">Positive / Negative</h4>
<p>A cell may let a user know whether a value is good or bad:</p>
@ -97,7 +97,7 @@ type : 'UI Collection'
</tbody>
</table>
</div>
<h3 class="ui header">Cells</h3>
<div class="example">
<h4 class="ui header">Error</h4>
@ -132,7 +132,7 @@ type : 'UI Collection'
</tbody>
</table>
</div>
<div class="example">
<h4 class="ui header">Warning</h4>
<p>A cell or row may warn a user:</p>
@ -166,7 +166,7 @@ type : 'UI Collection'
</tbody>
</table>
</div>
<div class="example">
<h4 class="ui header">Active</h4>
<p>A cell or row can be active:</p>
@ -232,11 +232,11 @@ type : 'UI Collection'
</tr>
</tbody>
</table>
</div>
<h2 class="ui dividing header">Variations</h2>
<div class="example">
<h4 class="ui header">Basic</h4>
<p>A table can reduce its complexity to increase readability.</p>
@ -441,7 +441,30 @@ type : 'UI Collection'
</tfoot>
</table>
</div>
<div class="example">
<h4 class="ui header">Definition</h4>
<p>A table may be formatted specifically to provide definitions</p>
<table class="ui definition table segment">
<thead>
<th>Behavior</th>
<th>Arguments</th>
<th>Description</th>
</thead>
<tbody>
<tr>
<td>reset rating</td>
<td>None</td>
<td>Resets rating to default value</td>
</tr>
<tr>
<td>set rating</td>
<td>rating (integer)</td>
<td>Sets the current star rating to specified value</td>
</tr>
</table>
</div>
<div class="example">
<h4 class="ui header">Celled</h4>
<p>A table may be divided each row into separate cells</p>
@ -475,13 +498,13 @@ type : 'UI Collection'
</tfoot>
</table>
</div>
<div class="example">
<h4 class="ui header">Sortable</h4>
<p>A table may allow a user to sort contents by clicking on a table header.</p>
<p>Adding a classname of ascending or descending, will show the user the direction of sort. This example uses a modified version of the kylefox's <a href="https://github.com/kylefox/jquery-tablesort">tablesort plugin</a> to provide the proper class names.</p>
<table class="ui sortable table segment">
<thead>
<th>Name</th>
@ -588,7 +611,7 @@ type : 'UI Collection'
</tbody>
</table>
</div>
<div class="example">
<h4 class="ui header">Size</h4>
<p>A table can also be small or large</p>

17
node/src/documents/elements/input.html

@ -7,7 +7,6 @@ type : 'UI Element'
<div class="segment">
<div class="container">
<div class="ui small download menu">
<div class="header item">Links</div>
<div class="simple ui dropdown item">
<i class="icon setting"></i> Download <i class="icon dropdown"></i>
<div class="menu">
@ -18,10 +17,10 @@ type : 'UI Element'
</div>
<a class="item"><i class="icon edit"></i> Authoring Guide</a>
</div>
<h1 class="ui header">
<h1 class="ui dividing header">
Input
<div class="sub header">Inputs allow a user to enter information</div>
</h1>
<p>Inputs allow a user to enter information</p>
</div>
</div>
<div class="main container">
@ -52,7 +51,7 @@ type : 'UI Element'
<input type="text">
</div>
</div>
<div class="example">
<h4 class="ui header">Error</h4>
<p>An input field can show the data contains errors</p>
@ -60,9 +59,9 @@ type : 'UI Element'
<input type="text">
</div>
</div>
<h2 class="ui dividing header">Variations</h2>
<div class="example">
<h4 class="ui header">Icon</h4>
<p>An input can be formatted with an icon</p>
@ -77,7 +76,7 @@ type : 'UI Element'
<i class="icon users"></i>
</div>
</div>
<div class="example">
<h4 class="ui header">Labeled</h4>
<p>An input can be formatted with a label</p>
@ -94,9 +93,9 @@ type : 'UI Element'
<div class="text">New</div>
</div>
</div>
</div>
<div class="example">
<h4 class="ui header">Action</h4>
<p>An input can be formatted to alert the user to an action they may perform</p>

405
node/src/documents/guide/cssguide.html

@ -14,13 +14,223 @@ type : 'UI Guide'
<div class="peek">
<div class="ui vertical pointing secondary menu">
<a class="item">Techniques</a>
<a class="active item">Style Guide</a>
<a class="item">Units</a>
<a class="item">Techniques</a>
</div>
</div>
<h2 class="ui dividing header">Techniques</h2>
<h4 class="ui header">Conditional Content Formatting</h4>
<p>Sometimes content should be formatted differently depending on whether other content exists alongside it. A useful way to do that is use the next adjacent sibling selector '+'. The content that should have the conditional formatting should always appear second because there is no previous sibling selector in css.</p>
<div class="code" data-type="css">
.ui.widget .image {
float: left;
width: 2em;
}
.ui.widget .content {
color: #000000;
}
// content is only floated if image exists
.ui.widget .image + .content {
margin-left: 3em;
}
</div>
<h4 class="ui header">Fixing Whitespace with Inline Block</h4>
<p>In HTML usually whitespace doesn't change a page's layouts. However, when using inline block any whitespace will create unwanted space between consecutive inline-block elements. The simple and effective fix is to make sure font-size on the parent element is 0, making all whitespace 0 pixels. Then you can reset font-size on the child element to body font size or 1 relative em.</p>
<div class="code" data-type="css">
/* remove whitespace */
.ui.group {
font-size: 0em;
}
.ui.group .item {
display: inline-block;
font-size: 1rem;
}
</div>
<h4 class="ui header">CSS :not is Awesome</h4>
<p>Inheritance can be hell sometimes. Consider changing the opacity of an element. There is no way to "cancel out" of that opacity change on content inside.</p>
<p>Sometimes the only way to avoid creating inheritance problems is to specify what elements should not receive a set of rules. Consider blurring content while a dimmer is present. Blurring should only apply to elements that are not inside the dimmer, but there is no way to know what the content is beforehand.</p>
<div class="code" data-type="css">
/* blur everything but the dimmer */
body.dimmed :not(.dimmer){
-webkit-filter: blur(15px) grayscale(0.7);
-moz-filter: blur(15px) grayscale(0.7);
}
body.dimmed .dimmer * {
-webkit-filter: none;
-moz-filter: none;
}
</div>
<h4 class="ui header">Prevent Accidental Highlighting</h4>
<p>Sometimes text can be accidentally highlighted when a user double clicks an element. No need to pull out javascript to solve this.</p>
<div class="code" data-type="css">
.ui.thingy {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
</div>
<h4 class="ui header">Joining borders</h4>
<p>Sometimes bordered content must sit next to other bordered content. If each element uses border the borders will double. Consider using either outline or a box shadow to accomplish the same effect but without overlapping borders.</p>
<div class="code" data-type="css">
/* this might not go so well */
.ui.thingy {
border: 1px solid #DDDDDD;
}
/* rgba is great, but keep in mind the overlapping borders will be added together to create a darker shade */
.ui.thingy {
outline: 1px solid rgba(0, 0, 0, 0.1);
}
/* classic but works */
.ui.thingy {
outline: 1px solid #DDDDDD;
}
/* this works too */
.ui.thingy {
-moz-box-shadow: 0px 0px 0px 1px #DDDDDD;
-webkit-box-shadow: 0px 0px 0px 1px #DDDDDD;
box-shadow: 0px 0px 0px 1px #DDDDDD;
}
</div>
<h4 class="ui header">Using transparency</h4>
<p>RGBA colors in css allow you to specify colors with a transparency channel. This is very useful.</p>
<p>Consider for example, defining the text states of an element. If the elements color changes, the text might appear more complementary as a shade of black with a portion of the original color. This can be done easily with rgba</p>
<div class="code" data-type="css">
.ui.thingy {
background-color: #FAFAFA;
color: rgba(0, 0, 0, 0.7);
}
.red.ui.thingy {
background-color: #FF0000;
}
</div>
<h4 class="ui header">Nothing is always Fixed</h4>
<p>CSS fixed allows you to have content stick to an offset position in a page regardless of the scroll position of the page. Fixed menus will use the page as the offset parent, in all circumstances except when css transform is used on a parent element. <b>This will change the offset context to the transformed element instead of the page</b>.
<p>This behavior may seem unexpected, but using this quirk can allow you to have fixed position content relative to any element in a page.</p>
<div class="code" data-type="css">
.ui.content {
transform: rotateZ(0deg);
overflow: scroll;
}
// fixed will stay in its current offset relative to the parent container
.ui.content .fixed.thingy {
position: fixed;
top: 0px;
width: 100%;
}
</div>
<h4 class="ui header">Centering Content with Transform</h4>
<p>Using percentages in CSS will give you a ratio based on the size of the parent element. For exaple setting content to be left 50% will set content to start at exactly halfway across its parent.</p>Sometimes you want content to positioned relative to its own size. Inside calls to transform, percentages are based on the current element size so this can be done.</p>
<div class="code" data-type="css">
/* doesnt work */
.ui.modal {
width: 800px;
height: 500px;
left: 50%;
top: 50%;
margin: -50% 0px 0px -50%x;
}
/* works with measurements */
.ui.modal {
width: 800px;
height: 500px;
left: 50%;
top: 50%;
margin: -250px 0px 0px -400px;
}
/* with transform no measurements needed */
.ui.modal {
position: absolute;
width: 800px;
top: 50%;
left: 50%;
transform: transformX(-50%) transformY(-50%);
}
</div>
<h4 class="ui header">Consider alternatives to floats</h4>
<p>CSS floats can create issues with the containing element not receiving the size of its children. Using overflow:hidden to clear floats means that no peice of an element can be shown outside the bounding box of the element, which limits the possibilities in an element. Clearfixes can use up one of two available pseudo class which can often be useful for styling elements.</p>
<p>Consider using another means of putting content side by side like inline-block or table-cell. These provide more freedom than floated block elements, and can add additional benefits.</p>
<p>To avoid issues with inline-block causing spacing between elements, specify no font size on the group and 1rem on the floated content</p>
<div class="code" data-type="css">
/* not the best */
.ui.thingy {
display: block;
overflow: hidden;
}
.ui.thingy .part {
display: block;
float: left;
}
/* these do the same thing */
.ui.thingy {
display: block;
font-size: 0rem;
}
.ui.thingy .part {
display: inline-block;
font-size: 1rem;
}
</div>
<h4 class="ui header">Onion Skinning</h4>
<p>One technique that is useful for allowing for multiple color variations of an element, without having to completely reskin each variation and shade is to use background-image gradients to define shading and state, and background-color to define the color of an element. If done well you can add a variety of colors with very little code.</p>
<div class="code" data-type="css">
.ui.thingy {
background-color: #FAFAFA;
}
.ui.red.thingy {
background-color: #FF0000;
}
.ui.green.thingy {
background-color: #00FF00;
}
.ui.blue.thingy {
background-color: #0000FF;
}
.ui.thingy:hover {
background-image:
-webkit-gradient(linear, 0 0, 0 100%, from(rgba(0, 0, 0, 0.1)), to(rgba(0, 0, 0, 0.05)))
;
background-image: -webkit-linear-gradient(
rgba(0, 0, 0, 0.1) 0%,
rgba(0, 0, 0, 0.05) 100%)
;
background-image: -moz-linear-gradient(
rgba(0, 0, 0, 0.1) 0%,
rgba(0, 0, 0, 0.05) 100%)
;
background-image: -o-linear-gradient(
rgba(0, 0, 0, 0.1) 0%,
rgba(0, 0, 0, 0.05) 100%)
;
background-image: linear-gradient(
rgba(0, 0, 0, 0.1) 0%,
rgba(0, 0, 0, 0.05) 100%)
;
}
</div>
<h2 class="ui dividing header">Style Guide</h2>
<h4 class="ui header">Don't Hyphenate</h4>
@ -262,197 +472,4 @@ type : 'UI Guide'
font-size: 0.8em;
}
</div>
<h2 class="ui dividing header">Techniques</h2>
<h4 class="ui header">Conditional Content Formatting</h4>
<p>Sometimes content should be formatted differently depending on whether other content exists alongside it. A useful way to do that is use the next adjacent sibling selector '+'. The content that should have the conditional formatting should always appear second because there is no previous sibling selector in css.</p>
<div class="code" data-type="css">
.ui.widget .image {
float: left;
width: 2em;
}
.ui.widget .content {
color: #000000;
}
// content is only floated if image exists
.ui.widget .image + .content {
margin-left: 3em;
}
</div>
<h4 class="ui header">Fixing Whitespace with Inline Block</h4>
<p>In HTML usually whitespace doesn't change a page's layouts. However, when using inline block any whitespace will create unwanted space between consecutive inline-block elements. The simple and effective fix is to make sure font-size on the parent element is 0, making all whitespace 0 pixels. Then you can reset font-size on the child element to body font size or 1 relative em.</p>
<div class="code" data-type="css">
/* remove whitespace */
.ui.group {
font-size: 0em;
}
.ui.group .item {
display: inline-block;
font-size: 1rem;
}
</div>
<h4 class="ui header">CSS :not is Awesome</h4>
<p>Inheritance can be hell sometimes. Consider changing the opacity of an element. There is no way to "cancel out" of that opacity change on content inside.</p>
<p>Sometimes the only way to avoid creating inheritance problems is to specify what elements should not receive a set of rules. Consider blurring content while a dimmer is present. Blurring should only apply to elements that are not inside the dimmer, but there is no way to know what the content is beforehand.</p>
<div class="code" data-type="css">
/* blur everything but the dimmer */
body.dimmed :not(.dimmer){
-webkit-filter: blur(15px) grayscale(0.7);
-moz-filter: blur(15px) grayscale(0.7);
}
body.dimmed .dimmer * {
-webkit-filter: none;
-moz-filter: none;
}
</div>
<h4 class="ui header">Prevent Accidental Highlighting</h4>
<p>Sometimes text can be accidentally highlighted when a user double clicks an element. No need to pull out javascript to solve this.</p>
<div class="code" data-type="css">
.ui.thingy {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
</div>
<h4 class="ui header">Joining borders</h4>
<p>Sometimes bordered content must sit next to other bordered content. If each element uses border the borders will double. Consider using either outline or a box shadow to accomplish the same effect but without overlapping borders.</p>
<div class="code" data-type="css">
/* this might not go so well */
.ui.thingy {
border: 1px solid #DDDDDD;
}
/* rgba is great, but keep in mind the overlapping borders will be added together to create a darker shade */
.ui.thingy {
outline: 1px solid rgba(0, 0, 0, 0.1);
}
/* classic but works */
.ui.thingy {
outline: 1px solid #DDDDDD;
}
/* this works too */
.ui.thingy {
-moz-box-shadow: 0px 0px 0px 1px #DDDDDD;
-webkit-box-shadow: 0px 0px 0px 1px #DDDDDD;
box-shadow: 0px 0px 0px 1px #DDDDDD;
}
</div>
<h4 class="ui header">Using transparency</h4>
<p>RGBA colors in css allow you to specify colors with a transparency channel. This is very useful.</p>
<p>Consider for example, defining the text states of an element. If the elements color changes, the text might appear more complementary as a shade of black with a portion of the original color. This can be done easily with rgba</p>
<div class="code" data-type="css">
.ui.thingy {
background-color: #FAFAFA;
color: rgba(0, 0, 0, 0.7);
}
.red.ui.thingy {
background-color: #FF0000;
}
</div>
<h4 class="ui header">Centering Content with Transform</h4>
<p>Using percentages in CSS will give you a ratio based on the size of the parent element. For exaple setting content to be left 50% will set content to start at exactly halfway across its parent.</p>Sometimes you want content to positioned relative to its own size. Inside calls to transform, percentages are based on the current element size so this can be done.</p>
<div class="code" data-type="css">
/* doesnt work */
.ui.modal {
width: 800px;
height: 500px;
left: 50%;
top: 50%;
margin: -50% 0px 0px -50%x;
}
/* works with measurements */
.ui.modal {
width: 800px;
height: 500px;
left: 50%;
top: 50%;
margin: -250px 0px 0px -400px;
}
/* with transform no measurements needed */
.ui.modal {
position: absolute;
width: 800px;
top: 50%;
left: 50%;
transform: transformX(-50%) transformY(-50%);
}
</div>
<h4 class="ui header">Consider alternatives to floats</h4>
<p>CSS floats can create issues with the containing element not receiving the size of its children. Using overflow:hidden to clear floats means that no peice of an element can be shown outside the bounding box of the element, which limits the possibilities in an element. Clearfixes can use up one of two available pseudo class which can often be useful for styling elements.</p>
<p>Consider using another means of putting content side by side like inline-block or table-cell. These provide more freedom than floated block elements, and can add additional benefits.</p>
<p>To avoid issues with inline-block causing spacing between elements, specify no font size on the group and 1rem on the floated content</p>
<div class="code" data-type="css">
/* not the best */
.ui.thingy {
display: block;
overflow: hidden;
}
.ui.thingy .part {
display: block;
float: left;
}
/* these do the same thing */
.ui.thingy {
display: block;
font-size: 0rem;
}
.ui.thingy .part {
display: inline-block;
font-size: 1rem;
}
</div>
<h4 class="ui header">Onion Skinning</h4>
<p>One technique that is useful for allowing for multiple color variations of an element, without having to completely reskin each variation and shade is to use background-image gradients to define shading and state, and background-color to define the color of an element. If done well you can add a variety of colors with very little code.</p>
<div class="code" data-type="css">
.ui.thingy {
background-color: #FAFAFA;
}
.ui.red.thingy {
background-color: #FF0000;
}
.ui.green.thingy {
background-color: #00FF00;
}
.ui.blue.thingy {
background-color: #0000FF;
}
.ui.thingy:hover {
background-image:
-webkit-gradient(linear, 0 0, 0 100%, from(rgba(0, 0, 0, 0.1)), to(rgba(0, 0, 0, 0.05)))
;
background-image: -webkit-linear-gradient(
rgba(0, 0, 0, 0.1) 0%,
rgba(0, 0, 0, 0.05) 100%)
;
background-image: -moz-linear-gradient(
rgba(0, 0, 0, 0.1) 0%,
rgba(0, 0, 0, 0.05) 100%)
;
background-image: -o-linear-gradient(
rgba(0, 0, 0, 0.1) 0%,
rgba(0, 0, 0, 0.05) 100%)
;
background-image: linear-gradient(
rgba(0, 0, 0, 0.1) 0%,
rgba(0, 0, 0, 0.05) 100%)
;
}
</div>
</div>

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

@ -30,7 +30,7 @@ type : 'UI Module'
<div class="segment">
<div class="container">
<h1 class="ui dividing header">Sidebar <div class="ui red label">Incomplete</div></h1>
<h1 class="ui dividing header">Sidebar</h1>
<p>A sidebar is a menu hidden beside page content</p>
</div>
</div>
@ -40,12 +40,12 @@ type : 'UI Module'
<div class="ui vertical pointing secondary menu">
<a class="active item">Initializing</a>
<a class="item">Usage</a>
<a class="item">Types</a>
<a class="item">Variations</a>
<a class="item">Behavior</a>
<a class="item">Settings</a>
</div>
</div>
<h2 class="ui header">Initializing</h2>
<h2 class="ui dividing header">Initializing</h2>
<p>Any content can be used as a sidebar by adding the class <code>ui sidebar</code> and initializing the menu in javascript.</p>
<div class="ignored warning message">
<div class="header">Fixed Position Snafoos</div>
@ -66,7 +66,7 @@ type : 'UI Module'
;
</div>
<h2 class="ui header">Usage</h2>
<h2 class="ui dividing header">Usage</h2>
<div class="no example">
<h4 class="ui header">Showing a sidebar</h4>
@ -105,24 +105,55 @@ type : 'UI Module'
<p>For convenience calling attach events will allow you to bind events. By default this will toggle the sidebar in and out of view on click</p>
<div class="code" data-demo="true">
$('.ui.demo.sidebar')
.sidebar('attach events', '.trigger.button')
.sidebar('attach events', '.toggle.button')
;
$('.trigger.button')
$('.toggle.button')
.removeClass('disabled')
;
</div>
<div class="ui disabled teal trigger button">
<div class="ui disabled teal toggle button">
<i class="left arrow icon"></i>
Trigger Sidebar
</div>
</div>
<div class="no example">
<div class="no example">
<h4 class="ui header">Triggering custom action with other content</h4>
<p>You can also however specify what action should occur when the element is clicked</p>
<div class="code" data-demo="true">
$('.ui.demo.sidebar')
.sidebar('attach events', '.trigger.button', 'show')
.sidebar('attach events', '.open.button')
;
$('.open.button')
.removeClass('disabled')
;
</div>
<div class="ui disabled teal open button">
<i class="left arrow icon"></i>
Trigger Sidebar
</div>
</div>
<h2 class="ui dividing header">Variations</h2>
<div class="no example">
<h4 class="ui header">Floating</h4>
<p>A sidebar can appear floating above content</p>
<div class="code" data-demo="true">
$('.ui.demo.sidebar')
.addClass('floating')
.sidebar('toggle')
;
</div>
</div>
<div class="no example">
<h4 class="ui header">Overlay</h4>
<p>A sidebar can overlay page content instead of pushing it to the side</p>
<div class="code" data-demo="true">
$('.ui.demo.sidebar')
.sidebar('setting', 'overlay', true)
.sidebar('toggle')
;
</div>
</div>

15
node/src/files/components/semantic/collections/table.css

@ -1,5 +1,5 @@
/*
* # Semantic Table - Flat
* # Semantic Table
* http://github.com/quirkyinc/semantic
*
*
@ -175,7 +175,7 @@
color: #7D6C00;
}
/*--------------
Active
Active
---------------*/
.ui.table tr.active td,
.ui.table tr td.active {
@ -185,7 +185,7 @@
}
/*--------------
Disabled
Disabled
---------------*/
.ui.table tr.disabled td,
.ui.table tr td.disabled,
@ -374,6 +374,15 @@
.ui.inverted.table tbody tr:nth-child(2n) {
background-color: rgba(255, 255, 255, 0.06);
}
/*--------------
Definition
---------------*/
.ui.definition.table tr {
border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.ui.definition.table td:first-child {
font-weight: bold;
}
/*--------------
Collapsing
---------------*/

12
node/src/files/components/semantic/modules/sidebar.css

@ -96,14 +96,14 @@ body {
Variations
*******************************/
.ui.floating.sidebar {
-webkit-box-shadow: 5px 0px 5px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 5px 0px 5px rgba(0, 0, 0, 0.2);
box-shadow: 5px 0px 5px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
}
.ui.right.floating.sidebar {
-webkit-box-shadow: -5px 0px 5px rgba(0, 0, 0, 0.2);
-moz-box-shadow: -5px 0px 5px rgba(0, 0, 0, 0.2);
box-shadow: -5px 0px 5px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
}
.ui.top.floating.sidebar {
-webkit-box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);

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

@ -24,8 +24,8 @@
<meta name="description" content="<%= @getPreparedDescription() %>" />
<meta name="keywords" content="<%= @getPreparedKeywords() %>" />
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,700,300italic' rel='stylesheet' type='text/css'>
<!-- <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,700,300italic' rel='stylesheet' type='text/css'>
-->
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/button.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/divider.css">

19
src/collections/table.less

@ -1,5 +1,5 @@
/*
* # Semantic Table - Flat
* # Semantic Table
* http://github.com/quirkyinc/semantic
*
*
@ -203,7 +203,7 @@
/*--------------
Active
Active
---------------*/
.ui.table tr.active td,
@ -214,7 +214,7 @@
}
/*--------------
Disabled
Disabled
---------------*/
.ui.table tr.disabled td,
@ -421,6 +421,19 @@
}
/*--------------
Definition
---------------*/
.ui.definition.table tr {
border-top: 1px solid rgba(0, 0, 0 ,0.1);
}
.ui.definition.table td:first-child {
font-weight: bold;
}
/*--------------
Collapsing
---------------*/

14
src/modules/sidebar.less

@ -113,22 +113,20 @@ body {
}
/*******************************
Variations
*******************************/
.ui.floating.sidebar {
-webkit-box-shadow: 5px 0px 5px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 5px 0px 5px rgba(0, 0, 0, 0.2);
box-shadow: 5px 0px 5px rgba(0, 0, 0, 0.2);
-webkit-box-shadow:0px 0px 3px rgba(0, 0, 0, 0.2);
-moz-box-shadow:0px 0px 3px rgba(0, 0, 0, 0.2);
box-shadow:0px 0px 3px rgba(0, 0, 0, 0.2);
}
.ui.right.floating.sidebar {
-webkit-box-shadow: -5px 0px 5px rgba(0, 0, 0, 0.2);
-moz-box-shadow: -5px 0px 5px rgba(0, 0, 0, 0.2);
box-shadow: -5px 0px 5px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
}
.ui.top.floating.sidebar {

Loading…
Cancel
Save