markdown-ui 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b89b4b1ab06b68788e0cffe003b7f3abd617bb93
4
- data.tar.gz: 36b1423c6791a4abca13f23804444bfbbce08a14
3
+ metadata.gz: 8d531589746787c5cad7b69c7a2f976aaf2f147c
4
+ data.tar.gz: a244562c9ce78161dd386ad5deee124f5add2e0a
5
5
  SHA512:
6
- metadata.gz: 83c17f2ac5650213b6eebe208003976741d7240e4b37f29ac9f269a5890b0cbe6334bdde2a4254e583e790226c7f5c0a676c22df0fd7f8d6c2459826986e6286
7
- data.tar.gz: a7b8999ae60324c9c45a464b86681fec5a86cce87930443bfb7a860705866cc3f58c5e14819c6e35ead6947ef791a2d12ad594befca9545cf7e1354e8c7966a4
6
+ metadata.gz: 046355cdb7a12e0e25a43368eb7fc2beeac2ae88238b4f3df24d664cca70109b362be6fefcae7813b1ecbab798ff370807dd7f8940523325d95513b780d8a1c5
7
+ data.tar.gz: 560e20814eccaaad14ce9df1c2ad707a0172823f440ed79e7b67503a6ca2707b40c3938ae43f4ce68fc1fcac3a43cb6dd37661d0f7430756654884207871b885
data/Changelog CHANGED
@@ -1,3 +1,23 @@
1
+ 0.1.9 - 08-12-15
2
+ * Generate HTML5 doctype document (previously XHTML)
3
+ * Added the following button tests and documentation
4
+ - Variations
5
+ - Social
6
+ - Size
7
+ - Colored
8
+ - Compact
9
+ - Positive
10
+ - Negative
11
+ - Fluid
12
+ - Circular
13
+ - Vertically Attached
14
+ - Horizontally Attached
15
+ - Group Variations
16
+ - Vertical Buttons
17
+ - Icon Buttons
18
+ - Labeled Icon Buttons
19
+ - Mixed Group
20
+
1
21
  0.1.8 - 08-12-15
2
22
  * <button> tag added
3
23
  * Explicitly use button tag in all button elements except
data/TODO.md CHANGED
@@ -21,23 +21,23 @@
21
21
  √ Loading
22
22
 
23
23
  * Variations
24
- Social
25
- Size
26
- Colored
27
- Compact
28
- Toggle
29
- Positive
30
- Negative
31
- Fluid
32
- Circular
33
- Vertically Attached
34
- Horizontally Attached
24
+ Social
25
+ Size
26
+ Colored
27
+ Compact
28
+ Toggle (Unsupported - feature requires custom Javascript)
29
+ Positive
30
+ Negative
31
+ Fluid
32
+ Circular
33
+ Vertically Attached
34
+ Horizontally Attached
35
35
 
36
36
  * Group Variations
37
- Vertical Buttons
38
- Icon Buttons
39
- Labeled Icon Buttons
40
- Mixed Group
37
+ Vertical Buttons
38
+ Icon Buttons
39
+ Labeled Icon Buttons
40
+ Mixed Group
41
41
  Equal Width
42
42
  Colored Buttons
43
43
  Basic Buttons
@@ -5,10 +5,11 @@ require "markdown-ui"
5
5
  require "nokogiri"
6
6
 
7
7
  parser = Redcarpet::Markdown.new(MarkdownUI::Renderer, quote: true, tables: true)
8
-
9
8
  f = File.open(ARGV.first, 'r')
9
+ @content = parser.render f.read
10
+ f.close
10
11
 
11
- content = <<-EOS
12
+ puts <<-EOS
12
13
  <!doctype html>
13
14
 
14
15
  <html lang="en">
@@ -30,10 +31,7 @@ content = <<-EOS
30
31
  </head>
31
32
 
32
33
  <body>
33
- #{parser.render f.read}
34
+ #{Nokogiri::XML(@content, &:noblanks).to_xhtml(indent: 2)}
34
35
  </body>
35
36
  </html>
36
- EOS
37
- f.close
38
-
39
- puts Nokogiri::HTML(content, &:noblanks).to_xhtml(indent: 2)
37
+ EOS
@@ -1,3 +1,3 @@
1
1
  module MarkdownUI
2
- VERSION = '0.1.8'
2
+ VERSION = '0.1.9'
3
3
  end
@@ -1,23 +1,24 @@
1
- <!DOCTYPE html>
2
- <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5
- <meta charset="utf-8" />
6
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
8
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.0.7/semantic.min.css" />
9
- <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
10
- <script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.0.7/semantic.min.js"></script>
11
- <!--[if lt IE 9]>
1
+ <!doctype html>
2
+
3
+ <html lang="en">
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
8
+
9
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.0.7/semantic.min.css">
10
+ <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
11
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.0.7/semantic.min.js"></script>
12
+
13
+ <!--[if lt IE 9]>
12
14
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
15
  <![endif]-->
14
- <style>
15
- <![CDATA[
16
+ <style>
16
17
  code { white-space:pre }
17
- ]]>
18
- </style>
19
- </head>
20
- <body>
18
+ </style>
19
+ </head>
20
+
21
+ <body>
21
22
  <div class="ui container">
22
23
  <div class="ui inverted segment">
23
24
  <div class="ui inverted menu">
@@ -32,7 +33,11 @@
32
33
  </div>
33
34
  <!-- -->
34
35
  <div class="ui text container">
35
- <div class="ui segment"><h2 class="ui header">About</h2><i>It [Markdown-UI] helps the developer to focus on the big picture on paper or text-editors, and with few details it lessen the cognitive load which means having meaningful productivity which equates to happiness! - Joel Bryan Juliano (author of Markdown-UI)</i><br /><h4 class="ui header">Markdown-UI is for…</h4><i class="check icon"></i> creating responsive UI’s for mobile and web <br /><i class="check icon"></i> easily communicating your UI <br /><i class="check icon"></i> rapid prototyping <br /><i class="check icon"></i> being more productive by having less cognitive load <br /><i class="check icon"></i> UI/UX brain-storming sessions via email, whiteboard, text editor, paper, etc. <br /></div>
36
+ <div class="ui segment"><h2 class="ui header">About</h2><i>It [Markdown-UI] helps the developer to focus on the big picture on paper or text-editors, and with few details it lessen the cognitive load which means having meaningful productivity which equates to happiness! - Joel Bryan Juliano (author of Markdown-UI)</i><br /><h4 class="ui header">Markdown-UI is for</h4><i class="check icon"></i> creating responsive UIs for mobile and web <br />
37
+ <i class="check icon"></i> easily communicating your UI <br />
38
+ <i class="check icon"></i> rapid prototyping <br />
39
+ <i class="check icon"></i> being more productive by having less cognitive load <br />
40
+ <i class="check icon"></i> UI/UX brain-storming sessions via email, whiteboard, text editor, paper, etc. <br /></div>
36
41
  </div>
37
42
  <!-- -->
38
43
  </div>
@@ -5,7 +5,7 @@ for i in *.md; do
5
5
  name="$(basename $i .md)"
6
6
  ../exe/markdown-ui $name.md > $name.html
7
7
 
8
- sed -ie 's/:/:/g' $name.html 2> /dev/null
8
+ sed -ie 's/&#xFF1A;/:/g' $name.html 2> /dev/null
9
9
  rm -rf $name.htmle
10
10
  done
11
11
 
@@ -14,6 +14,6 @@ for i in docs/*.md; do
14
14
  name="$(basename $i .md)"
15
15
  ../exe/markdown-ui $i > docs/$name.html
16
16
 
17
- sed -ie 's/:/:/g' docs/$name.html 2> /dev/null
17
+ sed -ie 's/&#xFF1A;/:/g' docs/$name.html 2> /dev/null
18
18
  rm -rf docs/$name.htmle
19
19
  done
@@ -1,23 +1,24 @@
1
- <!DOCTYPE html>
2
- <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5
- <meta charset="utf-8" />
6
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
8
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.0.7/semantic.min.css" />
9
- <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
10
- <script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.0.7/semantic.min.js"></script>
11
- <!--[if lt IE 9]>
1
+ <!doctype html>
2
+
3
+ <html lang="en">
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
8
+
9
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.0.7/semantic.min.css">
10
+ <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
11
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.0.7/semantic.min.js"></script>
12
+
13
+ <!--[if lt IE 9]>
12
14
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
15
  <![endif]-->
14
- <style>
15
- <![CDATA[
16
+ <style>
16
17
  code { white-space:pre }
17
- ]]>
18
- </style>
19
- </head>
20
- <body>
18
+ </style>
19
+ </head>
20
+
21
+ <body>
21
22
  <div class="ui container">
22
23
  <div class="ui inverted segment">
23
24
  <div class="ui inverted menu">
@@ -126,7 +127,8 @@ __Button|Follow__
126
127
  <h5 class="ui header">Markdown Syntax</h5>
127
128
  <div class="ui inverted very padded segment">
128
129
  <code>__Primary Button|Save__ __Button|Discard__</code>
129
- <br /><code>__Secondary Button|Save__ __Button|Discard__</code>
130
+ <br />
131
+ <code>__Secondary Button|Save__ __Button|Discard__</code>
130
132
  </div>
131
133
  </div>
132
134
  <!-- -->
@@ -227,8 +229,7 @@ __Button|Follow__
227
229
  <div class="ui left aligned ten wide column">
228
230
  <h5 class="ui header">Markdown Syntax</h5>
229
231
  <div class="ui inverted very padded segment">
230
- <code>
231
- __Icon Button|Icon</code>
232
+ <code>__Icon Button|Icon:Cloud__</code>
232
233
  </div>
233
234
  </div>
234
235
  <!-- -->
@@ -305,15 +306,24 @@ __Icon Button|Icon</code>
305
306
  <h5 class="ui header">Markdown Syntax</h5>
306
307
  <div class="ui inverted very padded segment">
307
308
  <code>__Basic Standard Button|Standard__</code>
308
- <br /><code>__Basic Black Button|Black__</code>
309
- <br /><code>__Basic Yellow Button|Yellow__</code>
310
- <br /><code>__Basic Green Button|Green__</code>
311
- <br /><code>__Basic Blue Button|Blue__</code>
312
- <br /><code>__Basic Orange Button|Orange__</code>
313
- <br /><code>__Basic Purple Button|Purple__</code>
314
- <br /><code>__Basic Pink Button|Pink__</code>
315
- <br /><code>__Basic Red Button|Red__</code>
316
- <br /><code>__Basic Teal Button|Teal__</code>
309
+ <br />
310
+ <code>__Basic Black Button|Black__</code>
311
+ <br />
312
+ <code>__Basic Yellow Button|Yellow__</code>
313
+ <br />
314
+ <code>__Basic Green Button|Green__</code>
315
+ <br />
316
+ <code>__Basic Blue Button|Blue__</code>
317
+ <br />
318
+ <code>__Basic Orange Button|Orange__</code>
319
+ <br />
320
+ <code>__Basic Purple Button|Purple__</code>
321
+ <br />
322
+ <code>__Basic Pink Button|Pink__</code>
323
+ <br />
324
+ <code>__Basic Red Button|Red__</code>
325
+ <br />
326
+ <code>__Basic Teal Button|Teal__</code>
317
327
  </div>
318
328
  </div>
319
329
  <!-- -->
@@ -349,16 +359,26 @@ __Icon Button|Icon</code>
349
359
  <h5 class="ui header">Markdown Syntax</h5>
350
360
  <div class="ui inverted very padded segment">
351
361
  <code>&gt; Inverted Segment:</code>
352
- <br /><code>&gt; __Inverted Standard Button|Standard__</code>
353
- <br /><code>&gt; __Inverted Black Button|Black__</code>
354
- <br /><code>&gt; __Inverted Yellow Button|Yellow__</code>
355
- <br /><code>&gt; __Inverted Green Button|Green__</code>
356
- <br /><code>&gt; __Inverted Blue Button|Blue__</code>
357
- <br /><code>&gt; __Inverted Orange Button|Orange__</code>
358
- <br /><code>&gt; __Inverted Purple Button|Purple__</code>
359
- <br /><code>&gt; __Inverted Pink Button|Pink__</code>
360
- <br /><code>&gt; __Inverted Red Button|Red__</code>
361
- <br /><code>&gt; __Inverted Teal Button|Teal__</code>
362
+ <br />
363
+ <code>&gt; __Inverted Standard Button|Standard__</code>
364
+ <br />
365
+ <code>&gt; __Inverted Black Button|Black__</code>
366
+ <br />
367
+ <code>&gt; __Inverted Yellow Button|Yellow__</code>
368
+ <br />
369
+ <code>&gt; __Inverted Green Button|Green__</code>
370
+ <br />
371
+ <code>&gt; __Inverted Blue Button|Blue__</code>
372
+ <br />
373
+ <code>&gt; __Inverted Orange Button|Orange__</code>
374
+ <br />
375
+ <code>&gt; __Inverted Purple Button|Purple__</code>
376
+ <br />
377
+ <code>&gt; __Inverted Pink Button|Pink__</code>
378
+ <br />
379
+ <code>&gt; __Inverted Red Button|Red__</code>
380
+ <br />
381
+ <code>&gt; __Inverted Teal Button|Teal__</code>
362
382
  </div>
363
383
  </div>
364
384
  <!-- -->
@@ -391,9 +411,12 @@ __Icon Button|Icon</code>
391
411
  <h5 class="ui header">Markdown Syntax</h5>
392
412
  <div class="ui inverted very padded segment">
393
413
  <code>&gt; Buttons:</code>
394
- <br /><code>&gt; __Standard Button|One__</code>
395
- <br /><code>&gt; __Standard Button|Two__</code>
396
- <br /><code>&gt; __Standard Button|Three__</code>
414
+ <br />
415
+ <code>&gt; __Standard Button|One__</code>
416
+ <br />
417
+ <code>&gt; __Standard Button|Two__</code>
418
+ <br />
419
+ <code>&gt; __Standard Button|Three__</code>
397
420
  </div>
398
421
  </div>
399
422
  <!-- -->
@@ -443,15 +466,26 @@ __Icon Button|Icon</code>
443
466
  <h5 class="ui header">Markdown Syntax</h5>
444
467
  <div class="ui inverted very padded segment">
445
468
  <code>&gt; Icon Buttons:</code>
446
- <br /><code>&gt; __Button|Icon:Align Left__</code>
447
- <br /><code>&gt; __Button|Icon:Align Center__</code>
448
- <br /><code>&gt; __Button|Icon:Align Right__</code>
449
- <br /><code>&gt; __Button|Icon:Align Justify__</code>
450
- <br /><br /><code>&lt;!-- A separator is required in between two spaces --&gt;</code>
451
- <br /><br /><code>&gt; Icon Buttons:</code>
452
- <br /><code>&gt; __Button|Icon:Bold__</code>
453
- <br /><code>&gt; __Button|Icon:Underline__</code>
454
- <br /><code>&gt; __Button|Icon:Text Width__</code>
469
+ <br />
470
+ <code>&gt; __Button|Icon:Align Left__</code>
471
+ <br />
472
+ <code>&gt; __Button|Icon:Align Center__</code>
473
+ <br />
474
+ <code>&gt; __Button|Icon:Align Right__</code>
475
+ <br />
476
+ <code>&gt; __Button|Icon:Align Justify__</code>
477
+ <br />
478
+ <br />
479
+ <code>&lt;!-- A separator is required in between two spaces --&gt;</code>
480
+ <br />
481
+ <br />
482
+ <code>&gt; Icon Buttons:</code>
483
+ <br />
484
+ <code>&gt; __Button|Icon:Bold__</code>
485
+ <br />
486
+ <code>&gt; __Button|Icon:Underline__</code>
487
+ <br />
488
+ <code>&gt; __Button|Icon:Text Width__</code>
455
489
  </div>
456
490
  </div>
457
491
  <!-- -->
@@ -484,9 +518,12 @@ __Icon Button|Icon</code>
484
518
  <h5 class="ui header">Markdown Syntax</h5>
485
519
  <div class="ui inverted very padded segment">
486
520
  <code>&gt; Buttons:</code>
487
- <br /><code>&gt; __Button|Cancel__</code>
488
- <br /><code>&gt; __Div Tag||Or__</code>
489
- <br /><code>&gt; __Positive Button|Save__</code>
521
+ <br />
522
+ <code>&gt; __Button|Cancel__</code>
523
+ <br />
524
+ <code>&gt; __Div Tag||Or__</code>
525
+ <br />
526
+ <code>&gt; __Positive Button|Save__</code>
490
527
  </div>
491
528
  </div>
492
529
  <!-- -->
@@ -503,9 +540,12 @@ __Icon Button|Icon</code>
503
540
  <h5 class="ui header">Markdown Syntax</h5>
504
541
  <div class="ui inverted very padded segment">
505
542
  <code>&gt; Buttons:</code>
506
- <br /><code>&gt; __Button|un__</code>
507
- <br /><code>&gt; __Div Tag||Or|Data:Text:ou__</code>
508
- <br /><code>&gt; __Positive Button|deux|&lt;Optional-ID&gt;__</code>
543
+ <br />
544
+ <code>&gt; __Button|un__</code>
545
+ <br />
546
+ <code>&gt; __Div Tag||Or|Data:Text:ou__</code>
547
+ <br />
548
+ <code>&gt; __Positive Button|deux|&lt;Optional-ID&gt;__</code>
509
549
  </div>
510
550
  </div>
511
551
  <!-- -->
@@ -583,9 +623,548 @@ __Icon Button|Icon</code>
583
623
  <h5 class="ui header">Markdown Syntax</h5>
584
624
  <div class="ui inverted very padded segment">
585
625
  <code>__Loading Button|Loading__</code>
586
- <br /><code>__Basic Loading Button|Loading__</code>
587
- <br /><code>__Primary Loading Button|Loading__</code>
588
- <br /><code>__Secondary Loading Button|Loading__</code>
626
+ <br />
627
+ <code>__Basic Loading Button|Loading__</code>
628
+ <br />
629
+ <code>__Primary Loading Button|Loading__</code>
630
+ <br />
631
+ <code>__Secondary Loading Button|Loading__</code>
632
+ </div>
633
+ </div>
634
+ </div>
635
+ <!-- -->
636
+ <div class="ui basic segment">
637
+ <h2 id="variations" class="ui dividing left aligned header">Variations</h2>
638
+ </div>
639
+ <!-- -->
640
+ <div class="ui basic segment">
641
+ <h4 id="social" class="ui header">Social</h4>
642
+ <p>A button can be formatted to link to a social website</p>
643
+ </div>
644
+ <!-- -->
645
+ <div class="ui divided segment grid">
646
+ <div class="ui attached segment">
647
+ <div class="ui top attached label">Social</div>
648
+ </div>
649
+ <!-- -->
650
+ <div class="ui center aligned six wide column">
651
+ <h5 class="ui header">Preview</h5>
652
+ <button class="ui facebook button"><i class="facebook icon"></i>Facebook</button>
653
+ <button class="ui twitter button"><i class="twitter icon"></i>Twitter</button>
654
+ <button class="ui google plus button"><i class="google plus icon"></i>Google Plus</button>
655
+ <button class="ui vk button"><i class="vk icon"></i>VK</button>
656
+ <button class="ui linkedin button"><i class="linkedin icon"></i>LinkedIn</button>
657
+ <button class="ui instagram button"><i class="instagram icon"></i>Instagram</button>
658
+ <button class="ui youtube button"><i class="youtube icon"></i>YouTube</button>
659
+ </div>
660
+ <!-- -->
661
+ <div class="ui left aligned ten wide column">
662
+ <h5 class="ui header">Markdown Syntax</h5>
663
+ <div class="ui inverted very padded segment">
664
+ <code>__Facebook Button|Icon:Facebook, Facebook__</code>
665
+ <br />
666
+ <code>__Twitter Button|Icon:Twitter, Twitter__</code>
667
+ <br />
668
+ <code>__Google Plus Button|Icon:Google Plus, Google Plus__</code>
669
+ <br />
670
+ <code>__VK Button|Icon:VK, VK__</code>
671
+ <br />
672
+ <code>__LinkedIn Button|Icon:LinkedIn, LinkedIn__</code>
673
+ <br />
674
+ <code>__Instagram Button|Icon:Instagram, Instagram__</code>
675
+ <br />
676
+ <code>__YouTube Button|Icon:YouTube, YouTube__</code>
677
+ <br />
678
+ </div>
679
+ </div>
680
+ </div>
681
+ <!-- -->
682
+ <div class="ui basic segment">
683
+ <h4 id="size" class="ui header">Size</h4>
684
+ <p>A button can have different sizes</p>
685
+ </div>
686
+ <!-- -->
687
+ <div class="ui divided segment grid">
688
+ <div class="ui attached segment">
689
+ <div class="ui top attached label">Size</div>
690
+ </div>
691
+ <!-- -->
692
+ <div class="ui center aligned six wide column">
693
+ <h5 class="ui header">Preview</h5>
694
+ <button class="ui mini button">Mini</button>
695
+ <button class="ui tiny button">Tiny</button>
696
+ <button class="ui small button">Small</button>
697
+ <button class="ui medium button">Medium</button>
698
+ <button class="ui large button">Large</button>
699
+ <button class="ui big button">Big</button>
700
+ <button class="ui huge button">Huge</button>
701
+ <button class="ui massive button">Massive</button>
702
+ </div>
703
+ <!-- -->
704
+ <div class="ui left aligned ten wide column">
705
+ <h5 class="ui header">Markdown Syntax</h5>
706
+ <div class="ui inverted very padded segment">
707
+ <code>__Mini Button|Mini__</code>
708
+ <br />
709
+ <code>__Tiny Button|Tiny__</code>
710
+ <br />
711
+ <code>__Small Button|Small__</code>
712
+ <br />
713
+ <code>__Medium Button|Medium__</code>
714
+ <br />
715
+ <code>__Large Button|Large__</code>
716
+ <br />
717
+ <code>__Big Button|Big__</code>
718
+ <br />
719
+ <code>__Huge Button|Huge__</code>
720
+ <br />
721
+ <code>__Massive Button|Massive__</code>
722
+ </div>
723
+ </div>
724
+ </div>
725
+ <!-- -->
726
+ <div class="ui basic segment">
727
+ <h4 id="colored" class="ui header">Colored</h4>
728
+ <p>A button can have different colors</p>
729
+ </div>
730
+ <!-- -->
731
+ <div class="ui divided segment grid">
732
+ <div class="ui attached segment">
733
+ <div class="ui top attached label">Colored</div>
734
+ </div>
735
+ <!-- -->
736
+ <div class="ui center aligned six wide column">
737
+ <h5 class="ui header">Preview</h5>
738
+ <button class="ui red button">Red</button>
739
+ <button class="ui orange button">Orange</button>
740
+ <button class="ui yellow button">Yellow</button>
741
+ <button class="ui olive button">Olive</button>
742
+ <button class="ui green button">Green</button>
743
+ <button class="ui teal button">Teal</button>
744
+ <button class="ui blue button">Blue</button>
745
+ <button class="ui violet button">Violet</button>
746
+ <button class="ui purple button">Purple</button>
747
+ <button class="ui pink button">Pink</button>
748
+ <button class="ui brown button">Brown</button>
749
+ <button class="ui grey button">Grey</button>
750
+ <button class="ui black button">Black</button>
751
+ </div>
752
+ <!-- -->
753
+ <div class="ui left aligned ten wide column">
754
+ <h5 class="ui header">Markdown Syntax</h5>
755
+ <div class="ui inverted very padded segment">
756
+ <code>__Red Button|Red__</code>
757
+ <br />
758
+ <code>__Orange Button|Orange__</code>
759
+ <br />
760
+ <code>__Yellow Button|Yellow__</code>
761
+ <br />
762
+ <code>__Olive Button|Olive__</code>
763
+ <br />
764
+ <code>__Green Button|Green__</code>
765
+ <br />
766
+ <code>__Teal Button|Teal__</code>
767
+ <br />
768
+ <code>__Blue Button|Blue__</code>
769
+ <br />
770
+ <code>__Violet Button|Violet__</code>
771
+ <br />
772
+ <code>__Purple Button|Purple__</code>
773
+ <br />
774
+ <code>__Pink Button|Pink__</code>
775
+ <br />
776
+ <code>__Brown Button|Brown__</code>
777
+ <br />
778
+ <code>__Grey Button|Grey__</code>
779
+ <br />
780
+ <code>__Black Button|Black__</code>
781
+ </div>
782
+ </div>
783
+ </div>
784
+ <!-- -->
785
+ <div class="ui basic segment">
786
+ <h4 id="compact" class="ui header">Compact</h4>
787
+ <p>A button can reduce its padding to fit into tighter spaces</p>
788
+ </div>
789
+ <!-- -->
790
+ <div class="ui divided segment grid">
791
+ <div class="ui attached segment">
792
+ <div class="ui top attached label">Compact</div>
793
+ </div>
794
+ <!-- -->
795
+ <div class="ui center aligned six wide column">
796
+ <h5 class="ui header">Preview</h5>
797
+ <button class="ui compact button">Hold</button>
798
+ <button class="ui compact icon button">
799
+ <i class="pause icon"></i>
800
+ </button>
801
+ <button class="ui compact labeled icon button"><i class="pause icon"></i>Pause</button>
802
+ </div>
803
+ <!-- -->
804
+ <div class="ui left aligned ten wide column">
805
+ <h5 class="ui header">Markdown Syntax</h5>
806
+ <div class="ui inverted very padded segment">
807
+ <code>__Compact Button|Hold__</code>
808
+ <br />
809
+ <code>__Compact Icon Button|Icon:Pause__</code>
810
+ <br />
811
+ <code>__Compact Labeled Icon Button|Icon:Pause, Pause__</code>
812
+ </div>
813
+ </div>
814
+ </div>
815
+ <!-- -->
816
+ <div class="ui basic segment">
817
+ <h4 id="positive" class="ui header">Positive</h4>
818
+ <p>A button can hint towards a positive consequence</p>
819
+ </div>
820
+ <!-- -->
821
+ <div class="ui divided segment grid">
822
+ <div class="ui attached segment">
823
+ <div class="ui top attached label">Positive</div>
824
+ </div>
825
+ <!-- -->
826
+ <div class="ui center aligned six wide column">
827
+ <h5 class="ui header">Preview</h5>
828
+ <button class="ui positive button">Positive Button</button>
829
+ <button class="ui negative button">Negative Button</button>
830
+ </div>
831
+ <!-- -->
832
+ <div class="ui left aligned ten wide column">
833
+ <h5 class="ui header">Markdown Syntax</h5>
834
+ <div class="ui inverted very padded segment">
835
+ <code>__Positive Button|Positive Button__</code>
836
+ <br />
837
+ <code>__Negative Button|Negative Button__</code>
838
+ <br />
839
+ </div>
840
+ </div>
841
+ </div>
842
+ <!-- -->
843
+ <div class="ui basic segment">
844
+ <h4 id="negative" class="ui header">Negative</h4>
845
+ <p>A button can hint towards a negative consequence</p>
846
+ </div>
847
+ <!-- -->
848
+ <div class="ui divided segment grid">
849
+ <div class="ui attached segment">
850
+ <div class="ui top attached label">Negative</div>
851
+ </div>
852
+ <!-- -->
853
+ <div class="ui center aligned six wide column">
854
+ <h5 class="ui header">Preview</h5>
855
+ <button class="ui negative button">Negative Button</button>
856
+ </div>
857
+ <!-- -->
858
+ <div class="ui left aligned ten wide column">
859
+ <h5 class="ui header">Markdown Syntax</h5>
860
+ <div class="ui inverted very padded segment">
861
+ <code>__Negative Button|Negative Button__</code>
862
+ <br />
863
+ </div>
864
+ </div>
865
+ </div>
866
+ <!-- -->
867
+ <div class="ui basic segment">
868
+ <h4 id="fluid" class="ui header">Fluid</h4>
869
+ <p>A button can take the width of its container</p>
870
+ </div>
871
+ <!-- -->
872
+ <div class="ui divided segment grid">
873
+ <div class="ui attached segment">
874
+ <div class="ui top attached label">Fluid</div>
875
+ </div>
876
+ <!-- -->
877
+ <div class="ui center aligned six wide column">
878
+ <h5 class="ui header">Preview</h5>
879
+ <button class="ui fluid button">Fluid Button</button>
880
+ </div>
881
+ <!-- -->
882
+ <div class="ui left aligned ten wide column">
883
+ <h5 class="ui header">Markdown Syntax</h5>
884
+ <div class="ui inverted very padded segment">
885
+ <code>__Fluid Button|Fluid Button__</code>
886
+ <br />
887
+ </div>
888
+ </div>
889
+ </div>
890
+ <!-- -->
891
+ <div class="ui basic segment">
892
+ <h4 id="circular" class="ui header">Circular</h4>
893
+ <p>A button can be circular</p>
894
+ </div>
895
+ <!-- -->
896
+ <div class="ui divided segment grid">
897
+ <div class="ui attached segment">
898
+ <div class="ui top attached label">Circular</div>
899
+ </div>
900
+ <!-- -->
901
+ <div class="ui center aligned six wide column">
902
+ <h5 class="ui header">Preview</h5>
903
+ <button class="ui circular icon button">
904
+ <i class="settings icon"></i>
905
+ </button>
906
+ </div>
907
+ <!-- -->
908
+ <div class="ui left aligned ten wide column">
909
+ <h5 class="ui header">Markdown Syntax</h5>
910
+ <div class="ui inverted very padded segment">
911
+ <code>__Circular Icon Button|Icon:Settings__</code>
912
+ <br />
913
+ </div>
914
+ </div>
915
+ </div>
916
+ <!-- -->
917
+ <div class="ui basic segment">
918
+ <h4 id="vertically-attached" class="ui header">Vertically Attached</h4>
919
+ <p>A button can be attached to the top or bottom of other content</p>
920
+ </div>
921
+ <!-- -->
922
+ <div class="ui divided segment grid">
923
+ <div class="ui attached segment">
924
+ <div class="ui top attached label">Vertically Attached</div>
925
+ </div>
926
+ <!-- -->
927
+ <div class="ui center aligned six wide column">
928
+ <h5 class="ui header">Preview</h5>
929
+ <div class="ui top attached focusable button" tabindex="0">Top</div>
930
+ <div class="ui attached segment">
931
+ <p></p>
932
+ </div>
933
+ <div class="ui bottom attached focusable button" tabindex="0">Bottom</div>
934
+ </div>
935
+ <!-- -->
936
+ <div class="ui left aligned ten wide column">
937
+ <h5 class="ui header">Markdown Syntax</h5>
938
+ <div class="ui inverted very padded segment">
939
+ <code>__Top Attached Focusable Button|Top__</code>
940
+ <br />
941
+ <code></code>
942
+ <br />
943
+ <code>&gt; Attached Segment:</code>
944
+ <br />
945
+ <code>&gt; " "</code>
946
+ <br />
947
+ <code></code>
948
+ <br />
949
+ <code>__Bottom Attached Focusable Button|Bottom__</code>
950
+ <br />
951
+ </div>
952
+ </div>
953
+ <!-- -->
954
+ <div class="ui center aligned six wide column">
955
+ <h5 class="ui header">Preview</h5>
956
+ <div class="ui two top attached buttons">
957
+ <button class="ui button">One</button>
958
+ <button class="ui button">Two</button>
959
+ </div>
960
+ <!-- -->
961
+ <div class="ui attached segment">
962
+ <p></p>
963
+ </div>
964
+ <!-- -->
965
+ <div class="ui two bottom attached buttons">
966
+ <button class="ui button">One</button>
967
+ <button class="ui button">Two</button>
968
+ </div>
969
+ </div>
970
+ <!-- -->
971
+ <div class="ui left aligned ten wide column">
972
+ <h5 class="ui header">Markdown Syntax</h5>
973
+ <div class="ui inverted very padded segment">
974
+ <code>&gt; Two Top Attached Buttons:</code>
975
+ <br />
976
+ <code>&gt; __Button|One__</code>
977
+ <br />
978
+ <code>&gt; __Button|Two__</code>
979
+ <br />
980
+ <code></code>
981
+ <br />
982
+ <code>&lt;!-- --&gt;</code>
983
+ <br />
984
+ <code></code>
985
+ <br />
986
+ <code>&gt; Two Bottom Attached Buttons:</code>
987
+ <br />
988
+ <code>&gt; __Button|One__</code>
989
+ <br />
990
+ <code>&gt; __Button|Two__</code>
991
+ <br />
992
+ </div>
993
+ </div>
994
+ <!-- -->
995
+ </div>
996
+ <!-- -->
997
+ <div class="ui basic segment">
998
+ <h4 id="horizontally-attached" class="ui header">Horizontally Attached</h4>
999
+ <p>A button can be attached to the left or right of other content</p>
1000
+ </div>
1001
+ <!-- -->
1002
+ <div class="ui divided segment grid">
1003
+ <div class="ui attached segment">
1004
+ <div class="ui top attached label">Horizontally Attached</div>
1005
+ </div>
1006
+ <!-- -->
1007
+ <div class="ui center aligned six wide column">
1008
+ <h5 class="ui header">Preview</h5>
1009
+ <div class="ui buttons">
1010
+ <button class="ui left attached button">Left</button>
1011
+ <button class="ui right attached button">Right</button>
1012
+ </div>
1013
+ </div>
1014
+ <!-- -->
1015
+ <div class="ui left aligned ten wide column">
1016
+ <h5 class="ui header">Markdown Syntax</h5>
1017
+ <div class="ui inverted very padded segment">
1018
+ <code>&gt; Buttons:</code>
1019
+ <br />
1020
+ <code>&gt; __Left Attached Button|Left__</code>
1021
+ <br />
1022
+ <code>&gt; __Right Attached Button|Right__</code>
1023
+ </div>
1024
+ </div>
1025
+ </div>
1026
+ <!-- -->
1027
+ <div class="ui basic segment">
1028
+ <h2 id="group-variations" class="ui dividing left aligned header">Group Variations</h2>
1029
+ </div>
1030
+ <!-- -->
1031
+ <div class="ui basic segment">
1032
+ <h4 id="vertical-buttons" class="ui header">Vertical Buttons</h4>
1033
+ <p>Groups can be formatted to appear vertically</p>
1034
+ </div>
1035
+ <!-- -->
1036
+ <div class="ui divided segment grid">
1037
+ <div class="ui attached segment">
1038
+ <div class="ui top attached label">Vertical Buttons</div>
1039
+ </div>
1040
+ <!-- -->
1041
+ <div class="ui center aligned six wide column">
1042
+ <h5 class="ui header">Preview</h5>
1043
+ <div class="ui vertical buttons">
1044
+ <button class="ui button">Feed</button>
1045
+ <button class="ui button">Messages</button>
1046
+ <button class="ui button">Events</button>
1047
+ <button class="ui button">Photos</button>
1048
+ </div>
1049
+ </div>
1050
+ <!-- -->
1051
+ <div class="ui left aligned ten wide column">
1052
+ <h5 class="ui header">Markdown Syntax</h5>
1053
+ <div class="ui inverted very padded segment">
1054
+ <code>&gt; Vertical Buttons:</code>
1055
+ <br />
1056
+ <code>&gt; __Button|Feed__</code>
1057
+ <br />
1058
+ <code>&gt; __Button|Messages__</code>
1059
+ <br />
1060
+ <code>&gt; __Button|Events__</code>
1061
+ <br />
1062
+ <code>&gt; __Button|Photos__</code>
1063
+ </div>
1064
+ </div>
1065
+ </div>
1066
+ <!-- -->
1067
+ <div class="ui basic segment">
1068
+ <h4 id="icon-buttons" class="ui header">Icon Buttons</h4>
1069
+ <p>Groups can be formatted as icons</p>
1070
+ </div>
1071
+ <!-- -->
1072
+ <div class="ui divided segment grid">
1073
+ <div class="ui attached segment">
1074
+ <div class="ui top attached label">Icon Buttons</div>
1075
+ </div>
1076
+ <!-- -->
1077
+ <div class="ui center aligned six wide column">
1078
+ <h5 class="ui header">Preview</h5>
1079
+ <div class="ui icon buttons">
1080
+ <button class="ui button">
1081
+ <i class="play icon"></i>
1082
+ </button>
1083
+ <button class="ui button">
1084
+ <i class="pause icon"></i>
1085
+ </button>
1086
+ <button class="ui button">
1087
+ <i class="shuffle icon"></i>
1088
+ </button>
1089
+ </div>
1090
+ </div>
1091
+ <!-- -->
1092
+ <div class="ui left aligned ten wide column">
1093
+ <h5 class="ui header">Markdown Syntax</h5>
1094
+ <div class="ui inverted very padded segment">
1095
+ <code>&gt; Icon Buttons:</code>
1096
+ <br />
1097
+ <code>&gt; __Button|Icon:Play__</code>
1098
+ <br />
1099
+ <code>&gt; __Button|Icon:Pause__</code>
1100
+ <br />
1101
+ <code>&gt; __Button|Icon:Shuffle__</code>
1102
+ </div>
1103
+ </div>
1104
+ </div>
1105
+ <!-- -->
1106
+ <div class="ui basic segment">
1107
+ <h4 id="labeled-icon-buttons" class="ui header">Labeled Icon Buttons</h4>
1108
+ <p>Groups can be formatted as labeled icons</p>
1109
+ </div>
1110
+ <!-- -->
1111
+ <div class="ui divided segment grid">
1112
+ <div class="ui attached segment">
1113
+ <div class="ui top attached label">Labeled Icon Buttons</div>
1114
+ </div>
1115
+ <!-- -->
1116
+ <div class="ui center aligned six wide column">
1117
+ <h5 class="ui header">Preview</h5>
1118
+ <div class="ui vertical labeled icon buttons">
1119
+ <button class="ui button"><i class="play icon"></i>Play</button>
1120
+ <button class="ui button"><i class="pause icon"></i>Pause</button>
1121
+ <button class="ui button"><i class="shuffle icon"></i>Shuffle</button>
1122
+ </div>
1123
+ </div>
1124
+ <!-- -->
1125
+ <div class="ui left aligned ten wide column">
1126
+ <h5 class="ui header">Markdown Syntax</h5>
1127
+ <div class="ui inverted very padded segment">
1128
+ <code>&gt; Vertical Labeled Icon Buttons:</code>
1129
+ <br />
1130
+ <code>&gt; __Button|Icon:Play, Play__</code>
1131
+ <br />
1132
+ <code>&gt; __Button|Icon:Pause, Pause__</code>
1133
+ <br />
1134
+ <code>&gt; __Button|Icon:Shuffle, Shuffle__</code>
1135
+ </div>
1136
+ </div>
1137
+ </div>
1138
+ <!-- -->
1139
+ <div class="ui basic segment">
1140
+ <h4 id="mixed-group" class="ui header">Mixed Group</h4>
1141
+ <p>Groups can be formatted to use multiple button types together</p>
1142
+ </div>
1143
+ <!-- -->
1144
+ <div class="ui divided segment grid">
1145
+ <div class="ui attached segment">
1146
+ <div class="ui top attached label">Mixed Group</div>
1147
+ </div>
1148
+ <!-- -->
1149
+ <div class="ui center aligned six wide column">
1150
+ <h5 class="ui header">Preview</h5>
1151
+ <div class="ui buttons">
1152
+ <button class="ui labeled icon button"><i class="left chevron icon"></i>Back</button>
1153
+ <button class="ui button"><i class="stop icon"></i>Stop</button>
1154
+ <button class="ui right labeled icon button"><i class="right chevron icon"></i>Forward</button>
1155
+ </div>
1156
+ </div>
1157
+ <!-- -->
1158
+ <div class="ui left aligned ten wide column">
1159
+ <h5 class="ui header">Markdown Syntax</h5>
1160
+ <div class="ui inverted very padded segment">
1161
+ <code>&gt; Buttons:</code>
1162
+ <br />
1163
+ <code>&gt; __Labeled Icon Button|Icon:Left Chevron, Back__</code>
1164
+ <br />
1165
+ <code>&gt; __Button|Icon:Stop, Stop__</code>
1166
+ <br />
1167
+ <code>&gt; __Right Labeled Icon Button|Icon:Right Chevron, Forward__</code>
589
1168
  </div>
590
1169
  </div>
591
1170
  </div>