Browse Source

Updates from bootstrap example

pull/2034/head
jlukic 9 years ago
parent
commit
0255bbfe8f
5 changed files with 421 additions and 14 deletions
  1. 406
      examples/basic.html
  2. 14
      src/definitions/elements/container.less
  3. 1
      src/definitions/elements/header.less
  4. 4
      src/definitions/elements/segment.less
  5. 10
      src/themes/default/globals/site.variables

406
examples/basic.html

@ -0,0 +1,406 @@
<!DOCTYPE html>
<html>
<head>
<!-- Standard Meta -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<!-- Site Properities -->
<title>Basic - Semantic</title>
<link rel="stylesheet" type="text/css" href="../dist/semantic.css">
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js"></script>
<script src="../dist/semantic.js"></script>
</head>
<body>
<div class="ui grid container">
<div class="row">
<div class="column">
<h1 class="ui header">Bootstrap Migration</h1>
</div>
</div>
<div class="row">
<div class="column">
<div class="ui message">
<h1 class="ui header">Hello, world!</h1>
<p>This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
<a class="ui blue button">Learn more &raquo;</a>
</div>
</div>
</div>
<div class="row">
<div class="column">
<h1 class="ui header">Buttons</h1>
<a class="ui button">Default</a>
<a class="ui primary button">Primary</a>
<a class="ui basic button">Basic</a>
<a class="ui positive button">Success</a>
<a class="ui negative button">Error</a>
</div>
</div>
<div class="row">
<div class="column">
<h1 class="ui header">Thumbnails</h1>
<div class="ui divider"></div>
<img class="ui small image" src="images/wireframe/image.png">
</div>
</div>
<div class="row">
<div class="column">
<h1 class="ui header">Dropdown</h1>
<div class="ui divider"></div>
<div class="ui selection dropdown">Dropdown
<i class="dropdown icon"></i>
<div class="menu">
<div class="item active">Action</div>
<div class="item">Another action</div>
<div class="item">Something else here</div>
<div class="item">One more link</div>
</div>
</div>
<div class="ui vertical menu">
<a class="active item">
Friends
</a>
<a class="item">
Messages
</a>
<div class="ui dropdown item">
<i class="dropdown icon"></i>
More
<div class="menu">
<a class="item">Edit Profile</a>
<a class="item">Choose Language</a>
<a class="item">Account Settings</a>
</div>
</div>
</div>
<div class="ui dropdown">
<div class="visible menu">
<div class="header">Categories</div>
<div class="item">
<i class="dropdown icon"></i>
<span class="text">Clothing</span>
<div class="menu">
<div class="header">Mens</div>
<div class="item">Shirts</div>
<div class="item">Pants</div>
<div class="item">Jeans</div>
<div class="item">Shoes</div>
<div class="divider"></div>
<div class="header">Womens</div>
<div class="item">Dresses</div>
<div class="item">Shoes</div>
<div class="item">Bags</div>
</div>
</div>
<div class="item">Home Goods</div>
<div class="item">Bedroom</div>
<div class="divider"></div>
<div class="header">Order</div>
<div class="item">Status</div>
<div class="item">Cancellations</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="column">
<h1 class="ui header">Badges</h1>
<div class="ui divider"></div>
<div class="ui vertical menu">
<div class="item">
One <span class="ui label">2</span>
</div>
<div class="item">
Two <span class="ui label">2</span>
</div>
<div class="item">
Three <span class="ui label">2</span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="column">
<h1 class="ui header">Tables</h1>
<div class="ui two column grid">
<div class="column">
<table class="ui table">
<thead>
<tr>
<th>Name</th>
<th>Premium Plan</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>No</td>
</tr>
<tr>
<td>Jamie</td>
<td>Yes</td>
</tr>
<tr>
<td>Jill</td>
<td>Yes</td>
</tr>
</tbody>
</table>
</div>
<div class="column">
<table class="ui basic table">
<thead>
<tr>
<th>Name</th>
<th>Premium Plan</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>No</td>
</tr>
<tr>
<td>Jamie</td>
<td>Yes</td>
</tr>
<tr>
<td>Jill</td>
<td>Yes</td>
</tr>
</tbody>
</table>
</div>
<div class="column">
<table class="ui very basic table">
<thead>
<tr>
<th>Name</th>
<th>Premium Plan</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>No</td>
</tr>
<tr>
<td>Jamie</td>
<td>Yes</td>
</tr>
<tr>
<td>Jill</td>
<td>Yes</td>
</tr>
</tbody>
</table>
</div>
<div class="sixteen wide column">
<table class="ui celled structured table">
<thead>
<tr>
<th rowspan="2">Name</th>
<th rowspan="2">Type</th>
<th rowspan="2">Files</th>
<th colspan="3">Languages</th>
</tr>
<tr>
<th>Ruby</th>
<th>JavaScript</th>
<th>Python</th>
</tr>
</thead>
<tbody>
<tr>
<td>Alpha Team</td>
<td>Project 1</td>
<td>2</td>
<td>
<i class="large green checkmark icon"></i>
</td>
<td></td>
<td></td>
</tr>
<tr>
<td rowspan="3">Beta Team</td>
<td>Project 1</td>
<td>52</td>
<td>
<i class="large green checkmark icon"></i>
</td>
<td></td>
<td></td>
</tr>
<tr>
<td>Project 2</td>
<td>12</td>
<td></td>
<td>
<i class="large green checkmark icon"></i>
</td>
<td></td>
</tr>
<tr>
<td>Project 3</td>
<td>21</td>
<td>
<i class="large green checkmark icon"></i>
</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div class="column">
<h1 class="ui header">Alerts</h1>
<div class="ui divider"></div>
<div class="ui positive message">Well done! You successfully read this important alert message.</div>
<div class="ui info message">Heads up! This alert needs your attention, but it's not super important.</div>
<div class="ui warning message">Warning! Best check yo self, you're not looking too good.</div>
<div class="ui error message">Oh snap! Change a few things up and try submitting again.</div>
</div>
</div>
<div class="row">
<div class="column">
<h1 class="ui header">List groups</h1>
<div class="ui divider"></div>
<div class="ui three column grid">
<div class="column">
<div class="ui segments">
<div class="ui segment">
<p>Cras justo odio</p>
</div>
<div class="ui segment">
<p>Dapibus ac facilisis in</p>
</div>
<div class="ui segment">
<p>Morbi leo risus</p>
</div>
<div class="ui segment">
<p>Porta ac consectetur ac</p>
</div>
<div class="ui segment">
<p>Vestibulum at eros</p>
</div>
</div>
</div>
<div class="column">
<div class="ui fluid vertical menu">
<a class="item">
<p>Cras justo odio</p>
</a>
<a class="item">
<p>Vestibulum at eros</p>
</a>
</div>
</div>
<div class="column">
<div class="ui fluid vertical menu">
<a class="item">
<h1 class="ui medium header">List group item heading</h1>
<p>Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
</a>
<a class="item">
<h1 class="ui medium header">List group item heading</h1>
<p>Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
</a>
<a class="item">
<h1 class="ui medium header">List group item heading</h1>
<p>Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="column">
<h1 class="ui header">Panels</h1>
<div class="ui divider"></div>
<div class="ui three column grid">
<div class="column">
<div class="ui segments">
<div class="ui top attached error message">Error</div>
<div class="ui segment">Panel content</div>
</div>
</div>
<div class="column">
<div class="ui segments">
<div class="ui top attached info message">Info</div>
<div class="ui segment">Panel content</div>
</div>
</div>
<div class="column">
<div class="ui segments">
<div class="ui top attached success message">Success</div>
<div class="ui segment">Panel content</div>
</div>
</div>
<div class="column">
<h4 class="ui top attached inverted header">Header</h4>
<div class="ui buttom attached segment">Panel content</div>
</div>
<div class="column">
<div class="ui segments">
<h4 class="ui top attached block header">Header</h4>
<div class="ui buttom attached segment">Panel content</div>
</div>
</div>
<div class="column">
<div class="ui segments">
<h4 class="ui top attached header">Header</h4>
<div class="ui buttom attached segment">Panel content</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="column">
<h1 class="ui header">Wells</h1>
<div class="ui divider"></div>
<div class="ui segment">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Aenean lacinia bibendum nulla sed consectetur.</p>
</div>
<div class="ui secondary segment">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Aenean lacinia bibendum nulla sed consectetur.</p>
</div>
<div class="ui tertiary segment">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Aenean lacinia bibendum nulla sed consectetur.</p>
</div>
<div class="ui inverted segment">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Aenean lacinia bibendum nulla sed consectetur.</p>
</div>
<div class="ui secondary inverted segment">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Aenean lacinia bibendum nulla sed consectetur.</p>
</div>
<div class="ui tertiary inverted segment">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Aenean lacinia bibendum nulla sed consectetur.</p>
</div>
</div>
</div>
</div>
<script>
$(document)
.ready(function() {
$('.ui.dropdown').dropdown();
})
;
</script>
</body>
</html>

14
src/definitions/elements/container.less

@ -44,18 +44,18 @@
margin-right: @tabletGutter !important;
}
}
@media only screen and (min-width: @smallComputerBreakpoint) and (max-width: @largeMonitorBreakpoint) {
@media only screen and (min-width: @smallMonitorBreakpoint) and (max-width: @largeMonitorBreakpoint) {
.ui.container {
width: @smallComputerWidth;
margin-left: @smallComputerGutter !important;
margin-right: @smallComputerGutter !important;
width: @smallMonitorWidth;
margin-left: @smallMonitorGutter !important;
margin-right: @smallMonitorGutter !important;
}
}
@media only screen and (min-width: @largeMonitorBreakpoint) {
.ui.container {
width: @largeMWidth;
margin-left: @largeMGutter !important;
margin-right: @largeMGutter !important;
width: @largeMonitorWidth;
margin-left: @largeMonitorGutter !important;
margin-right: @largeMonitorGutter !important;
}
}

1
src/definitions/elements/header.less

@ -399,6 +399,7 @@ a.ui.yellow.header:hover {
.ui.inverted.attached.header {
background: @invertedAttachedBackground;
box-shadow: none;
border-color: transparent;
}
.ui.inverted.block.header {
background: @invertedBlockBackground;

4
src/definitions/elements/segment.less

@ -615,8 +615,8 @@
border: @attachedBorder;
}
.ui.segments > .segment:not(:first-child) {
border-top: none;
.ui.segments > .segment:not(:last-child) {
border-bottom: none;
}
/* Top */

10
src/themes/default/globals/site.variables

@ -106,10 +106,10 @@
Page
--------------------*/
@pageBackground : #F7F7F7;
@pageBackground : #FFFFFF;
@pageOverflowX : hidden;
@lineHeight : 1.4285;
@lineHeight : 1.4285em;
@textColor : rgba(0, 0, 0, 0.8);
/*-------------------
@ -117,7 +117,7 @@
--------------------*/
@paragraphMargin : 0em 0em 1em;
@paragraphLineHeight : '';
@paragraphLineHeight : @lineHeight;
/*-------------------
Links
@ -358,12 +358,12 @@
@circularRadius : 500rem;
@borderColor : rgba(34, 36, 38, 0.15);
@borderColor : rgba(34, 36, 38, 0.2);
@selectedBorderColor : rgba(34, 36, 38, 0.3);
@disabledBorderColor : rgba(34, 36, 38, 0.5);
@solidBorderColor : #D4D4D5;
@solidSelectedBorderColor : #BEBEBF;
@solidSelectedBorderColor : #BCBDBD;
@whiteBorderColor : rgba(255, 255, 255, 0.1);
@selectedWhiteBorderColor : rgba(255, 255, 255, 0.8);

Loading…
Cancel
Save