You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

390 lines
12 KiB

<!DOCTYPE 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" />
<!-- Site Properities -->
<meta http-equiv="X-Powered-By" content="DocPad v6.31.6"/>
<title>Button | Semantic UI</title>
<meta name="description" content="Semantic empowers designers and developers by creating a shared vocabulary for UI." />
<meta name="keywords" content="html5, ui, library, framework, javascript" />
<link rel="stylesheet" type="text/css" href="/stylesheets/reset.css">
<link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/icons.css">
<link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/button.css">
<link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/checkbox.css">
<link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/header.css">
<link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/label.css">
<link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/divider.css">
<link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/block.css">
<link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/segment.css">
<link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/collections/grid.css">
<link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/collections/table.css">
<link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/collections/form.css">
<link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/collections/menu.css">
<link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/modules/shape.css">
<link rel="stylesheet" type="text/css" href="/stylesheets/semantic.css">
<link rel="stylesheet" type="text/css" href="/stylesheets/library/sidr.css">
<script src="/javascript/library/jquery.js"></script>
<script src="/javascript/library/ace/ace.js"></script>
<script src="/javascript/library/sidr.js"></script>
<script src="/javascript/library/waypoints.js"></script>
<script src="/modules/behavior/state.js"></script>
<script src="/modules/ui/shape.js"></script>
<script src="/javascript/semantic.js"></script>
</head>
<body id="example">
<div class="ui large vertical menu" id="menu">
<div class="item"><a href="/index.html"><b>Introduction</b></a></div>
<div class="item"><a href="/download.html"><b>Download</b></a></div>
<div class="item">
<a href="element.html"><b>UI Elements</b></a>
<div class="menu">
<div class="active item"><a href="/elements/button.html">Button</a></div>
<div class="item"><a href="/elements/label.html">Label</a></div>
</div>
</div>
<div class="item">
<a href="/collection.html"><b>UI Collections</b></a>
<div class="menu">
<div class="item"><a href="/collections/form.html">Form</a></div>
<div class="item"><a href="/elements/header.html">Header</a></div>
<div class="item"><a href="/collections/menu.html">Menu</a></div>
<div class="item"><a href="/collections/table.html">Table</a></div>
<div class="item"><a href="/collections/block.html">Text Block</a></div>
</div>
</div>
<div class="item">
<a href="/module.html"><b>UI Modules</b></a>
<div class="menu">
<div class="item"><a href="/modules/shape.html">Shape</a></div>
</div>
</div>
</div>
<div class="ui fixed transparent contrasting main menu">
<div class="container">
<div class="title item">
<b>Semantic:</b> UI Element
</div>
<div class="icon previous link disabled item">
<i class="icon left-open"></i>
</div>
<div class="section dropdown item">
1 of 2
<div class="menu">
<div class="active item">
<a href="/elements/button.html">1. Button</a>
</div>
<div class="item">
<a href="/elements/label.html">2. Label</a>
</div>
</div>
</div>
<div class="icon next link item">
<a href="/elements/label.html"><i class="icon right-open"></i></a>
</div>
<div class="right menu">
<a class="item" href="https://github.com/quirkyinc/semantic">
<i class="icon github"></i>
</a>
<div class="dropdown item">
<i class="icon tint"></i> Theme
<div class="theme menu">
<div class="active item" data-theme="flat">Flat</div>
<div class="item" data-theme="shaded">Shaded</div>
<div class="item" data-theme="classic">Classic</div>
</div>
</div>
</div>
</div>
</div>
<div class="ui huge left attached vertical side buttons">
<div class="ui large blue sidebar button"><i class="icon th-list"></i></div>
</div>
<div class="segment">
<div class="container">
<h1>Button</h1>
<p>Buttons indicate a possible action a user may take.</p>
<p>Button variations are used to explain relationships between user actions and other elements, or to show emphasis.</p>
</div>
</div>
<div class="main container">
<div class="peek">
<div class="ui vertical pointing link menu">
<div class="active item">Standard</div>
<div class="item">States</div>
<div class="item">Variations</div>
<div class="item">Groups</div>
</div>
</div>
<h2>Standard</h2>
<div class="example">
<h4>Button:</h4>
<p>A standard button</p>
<div class="ui button">Button</div>
</div>
<h2>States</h2>
<div class="example">
<h4>Hover</h4>
<p>Changes when a user moves their cursor over it</p>
<div class="ui hover button">Hovered Button</div>
</div>
<div class="example">
<h4>Down</h4>
<p>Changes when pressed using touch or mouse events</p>
<div class="ui down button">Pressed Button</div>
</div>
<div class="example">
<h4>Active</h4>
<p>Changes to show it is currently the selected user action</p>
<div class="ui active button">Active Button</div>
</div>
<div class="example">
<h4>Disabled</h4>
<p>Changes to show it is currently unable to be interacted with</p>
<div class="ui disabled button">Disabled Button</div>
</div>
<div class="example">
<h4>Loading</h4>
<p>Can show a loading indicator:</p>
<div class="ui loading button">Loading Button</div>
</div>
<div class="example">
<h4>Success</h4>
<p>Can alert to a succesful action:</p>
<div class="ui success button">Successful Button</div>
</div>
<div class="example">
<h4>Error</h4>
<p>Can alert user of an error:</p>
<div class="ui error button">Error</div>
</div>
<div class="example">
<h4>All together:</h4>
<div class="ui button">Normal</div>
<div class="ui button hover">Hover</div>
<div class="ui button down">Down</div>
<div class="ui button loading">Loading</div>
<br><br>
<div class="ui button disabled">Disabled</div>
<div class="ui button active">Active</div>
<div class="ui button active toggle">Toggled</div>
<div class="ui button error">Error</div>
<div class="ui button success">Success</div>
</div>
<h2>Variations</h2>
<div class="example">
<h4>Sizes</h4>
<p>Can have different sizes:</p>
<div class="mini ui button">
Mini
</div>
<div class="tiny ui button">
Tiny
</div>
<div class="small ui button">
Small
</div>
<div class="medium ui button">
Medium
</div>
<div class="large ui button">
Large
</div>
<div class="big ui button">
Big
</div>
<div class="huge ui button">
Huge
</div>
<div class="massive ui button">
Massive
</div>
<div class="gigantic ui button">
Gigantic
</div>
</div>
<div class="example">
<h4>Colors</h4>
<p>Can have different colors:</p>
<div class="blue ui button">Blue Button</div>
<div class="purple ui button">Purple Button</div>
</div>
<h4>Feedback</h4>
<div class="example">
<p>Can be positive or negative:</p>
<div class="positive ui button">Positive Button</div>
<div class="negative ui button">Negative Button</div>
</div>
<div class="example">
<h4>Fluid</h4>
<p>Can fit parent container:</p>
<div class="fluid ui button">Fits container</div>
</div>
<div class="example">
<h4>Bubbly</h4>
<p>Can be bubbly:</p>
<div class="bubbly ui button">More bubbly</div>
</div>
<div class="example">
<h4>Icon</h4>
<p>Can be formatted as an icon toolbar:</p>
<div class="massive icon ui button">
<i class="icon cloud"></i>
</div>
</div>
<div class="example">
<h4>Vertically Attached</h4>
<p>Can be attached to the top or bottom of other content</p>
<div class="ui top attached button">Top</div>
<div style="border-left: 1px solid #DDDDDD;border-right: 1px solid #DDDDDD;background-color:#FFFFFF;height:200px;"></div>
<div class="ui bottom attached button">Bottom</div>
</div>
<div class="example">
<h4>Horizontally Attached</h4>
<p>Can be attached to the left or right of other content</p>
<div class="ui left attached button">Left</div>
<div style="width: 200px; display: inline-block; background-color: rgb(255, 255, 255); vertical-align: middle; height: 34px; margin: 0px -4px; border-bottom: 2px solid rgb(221, 221, 221); border-top: 2px solid rgb(221, 221, 221);"></div>
<div class="ui right attached button">Right</div>
</div>
<div class="example">
<h4>Form Attached</h4>
<p>Can be attached to an input field</p>
<div class="ui form">
<input type="text" class="attached">
<div class="ui attached button">Search</div>
</div>
</div>
<h2>Group</h2>
<div class="example">
<h4>Buttons</h4>
<p>Can exist together as groups</p>
<div class="ui buttons">
<div class="ui button">One</div>
<div class="ui button">Two</div>
<div class="ui button">Three</div>
</div>
</div>
<div class="example">
<h4>Conditionals</h4>
<p>Groups can be separated by conditionals</p>
<div class="ui buttons">
<div class="ui button">Cancel</div>
<div class="or"></div>
<div class="ui positive button">Save</div>
</div>
</div>
<h3>Plural Variations</h3>
<p>Singular variations can be applied to groups to infer all elements share the same quality</p>
<div class="example">
<h4>Icon</h4>
<p>Groups can be formatted as icon toolbars</p>
<div class="ui icon buttons">
<div class="ui button"><i class="icon pause"></i></div>
<div class="ui button"><i class="icon play"></i></div>
<div class="ui button"><i class="icon fast-fw"></i></div>
</div>
</div>
<div class="example">
<h4>Fluid</h4>
<p>Groups can be divided evenly to fit parent</p>
<div class="ui five fluid buttons">
<div class="ui button">One</div>
<div class="ui button">Two</div>
<div class="ui button">Three</div>
<div class="ui button">Four</div>
<div class="ui button">Five</div>
</div>
</div>
<div class="example">
<h4>Colors</h4>
<p>Groups can have a shared color</p>
<div class="blue ui buttons">
<div class="ui button">One</div>
<div class="ui button">Two</div>
<div class="ui button">Three</div>
</div>
<div class="blue large icon ui buttons">
</div>
<div class="example"></div>
<h4>Sizes</h4>
<p>Groups can have a shared size</p>
<div class="huge ui buttons">
<div class="ui button">One</div>
<div class="ui button">Two</div>
<div class="ui button">Three</div>
</div>
</div>
</div>
</body>
</html>
</body>
</html>