markdown-ui 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog +10 -0
- data/Gemfile +1 -0
- data/TODO.md +3 -4
- data/components/elements/markdown-ui-content/lib/content/divider_block.rb +19 -0
- data/components/elements/markdown-ui-content/lib/content/field_block.rb +19 -0
- data/components/elements/markdown-ui-content/lib/content/form_block.rb +19 -0
- data/components/elements/markdown-ui-content/lib/content/input_block.rb +19 -0
- data/components/elements/markdown-ui-input/Gemfile +2 -0
- data/components/elements/markdown-ui-input/lib/input/custom.rb +22 -0
- data/components/elements/markdown-ui-input/lib/input/element.rb +30 -0
- data/components/elements/markdown-ui-input/lib/input/version.rb +5 -0
- data/components/elements/markdown-ui-input/lib/markdown-ui-input.rb +3 -0
- data/components/elements/markdown-ui-input/markdown-ui-input.gemspec +37 -0
- data/lib/markdown-ui.rb +10 -0
- data/lib/markdown-ui/tag/input_tag.rb +34 -0
- data/lib/markdown-ui/tag/label_tag.rb +27 -0
- data/lib/markdown-ui/tag/tag.rb +5 -14
- data/lib/markdown-ui/version.rb +1 -1
- data/website/docs/divider.html +223 -0
- data/website/docs/divider.md +157 -0
- data/website/docs/toc.html +11 -0
- data/website/docs/toc.md +9 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71893d6f07f5a843a80c23eee2539cea2de1c747
|
4
|
+
data.tar.gz: 69383edc337b7ec44bdf28b572eeb3dc32de4b54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 718c574f418e2d77920897de26a9fd26c03da470bd89e2ef6b2dac2fbaf34f7b1e6db68077fde0f072caf8a48395334c5fce8fca34ef9e13aecd4810e4eb0c0f
|
7
|
+
data.tar.gz: 4b23b1ac59c886dbd812a9e58e69f0c526570ee2e83fb789d2db447c826060f05bcd17bf30701f66177f5474d738bef648f2c7b501f4647c0e9319600187e948
|
data/Changelog
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
0.1.13 - 08-27-15
|
2
|
+
* Added Divider block content
|
3
|
+
* Added Field block content
|
4
|
+
* Added Form block content
|
5
|
+
* Added Input block content
|
6
|
+
* Added Markdown-UI-Input
|
7
|
+
* Added Input Tag
|
8
|
+
* Added Label Tag
|
9
|
+
* Added Divider Tests and Documentations
|
10
|
+
|
1
11
|
0.1.12 - 08-25-15
|
2
12
|
* Removed Nokogiri post-processing using CLI markdown-ui
|
3
13
|
* Fixed Container Examples to occupy and display full container in view
|
data/Gemfile
CHANGED
@@ -8,6 +8,7 @@ group :elements do
|
|
8
8
|
gem 'markdown-ui-header', :path => 'components/elements/markdown-ui-header/'
|
9
9
|
gem 'markdown-ui-label', :path => 'components/elements/markdown-ui-label/'
|
10
10
|
gem 'markdown-ui-segment', :path => 'components/elements/markdown-ui-segment/'
|
11
|
+
gem 'markdown-ui-input', :path => 'components/elements/markdown-ui-input/'
|
11
12
|
end
|
12
13
|
|
13
14
|
group :collections do
|
data/TODO.md
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
# coding: UTF-8
|
2
|
+
|
3
|
+
module MarkdownUI
|
4
|
+
module Content
|
5
|
+
class DividerBlock
|
6
|
+
def initialize(element, content)
|
7
|
+
@element = element
|
8
|
+
@content = content
|
9
|
+
end
|
10
|
+
|
11
|
+
def render
|
12
|
+
klass = "ui #{@element} divider"
|
13
|
+
content = @content.strip
|
14
|
+
|
15
|
+
MarkdownUI::StandardTag.new(content, klass).render
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# coding: UTF-8
|
2
|
+
|
3
|
+
module MarkdownUI
|
4
|
+
module Content
|
5
|
+
class FieldBlock
|
6
|
+
def initialize(element, content)
|
7
|
+
@element = element
|
8
|
+
@content = content
|
9
|
+
end
|
10
|
+
|
11
|
+
def render
|
12
|
+
klass = "ui #{@element} field"
|
13
|
+
content = @content.strip
|
14
|
+
|
15
|
+
MarkdownUI::StandardTag.new(content, klass).render
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# coding: UTF-8
|
2
|
+
|
3
|
+
module MarkdownUI
|
4
|
+
module Content
|
5
|
+
class FormBlock
|
6
|
+
def initialize(element, content)
|
7
|
+
@element = element
|
8
|
+
@content = content
|
9
|
+
end
|
10
|
+
|
11
|
+
def render
|
12
|
+
klass = "ui #{@element} form"
|
13
|
+
content = @content.strip
|
14
|
+
|
15
|
+
MarkdownUI::StandardTag.new(content, klass).render
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# coding: UTF-8
|
2
|
+
|
3
|
+
module MarkdownUI
|
4
|
+
module Content
|
5
|
+
class InputBlock
|
6
|
+
def initialize(element, content)
|
7
|
+
@element = element
|
8
|
+
@content = content
|
9
|
+
end
|
10
|
+
|
11
|
+
def render
|
12
|
+
klass = "ui #{@element} input"
|
13
|
+
content = @content.strip
|
14
|
+
|
15
|
+
MarkdownUI::StandardTag.new(content, klass).render
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: UTF-8
|
2
|
+
|
3
|
+
module MarkdownUI::Input
|
4
|
+
class Custom
|
5
|
+
def initialize(element, content, klass = nil, _id = nil)
|
6
|
+
@element = element
|
7
|
+
@klass = klass
|
8
|
+
@content = content
|
9
|
+
@id = _id
|
10
|
+
end
|
11
|
+
|
12
|
+
def render
|
13
|
+
element = @element.join(' ').strip
|
14
|
+
# content = MarkdownUI::Content::Parser.new(@content).parse
|
15
|
+
klass = "ui #{element} #{@klass} input"
|
16
|
+
_id = @id
|
17
|
+
|
18
|
+
MarkdownUI::InputTag.new(@content, klass, _id).render
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module MarkdownUI::Input
|
2
|
+
class Element
|
3
|
+
def initialize(element, content, klass = nil, _id = nil)
|
4
|
+
@element = element
|
5
|
+
@content = content
|
6
|
+
@klass = klass
|
7
|
+
@id = _id
|
8
|
+
end
|
9
|
+
|
10
|
+
def render
|
11
|
+
element = if @element.is_a? Array
|
12
|
+
@element
|
13
|
+
else
|
14
|
+
@element.split(' ')
|
15
|
+
end
|
16
|
+
|
17
|
+
content = @content
|
18
|
+
|
19
|
+
klass = if @klass.nil?
|
20
|
+
element.join(' ').strip
|
21
|
+
else
|
22
|
+
@klass
|
23
|
+
end
|
24
|
+
|
25
|
+
_id = @id
|
26
|
+
|
27
|
+
MarkdownUI::Input::Custom.new(element, content, klass, _id).render
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'input/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "markdown-ui-input"
|
8
|
+
spec.version = MarkdownUI::Input::VERSION
|
9
|
+
spec.authors = ["Joel Bryan Juliano"]
|
10
|
+
spec.email = ["joelbryan.juliano@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Responsive User Interfaces in Markdown}
|
13
|
+
spec.description = %q{Create responsive UI/UX for mobile and web using Markdown Syntax}
|
14
|
+
spec.homepage = "https://github.com/jjuliano/markdown-ui"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_dependency 'bundler', '~> 1.10', '~> 1.9'
|
31
|
+
spec.add_dependency "redcarpet", "~> 3.2"
|
32
|
+
spec.add_dependency "nokogiri", "~> 1.6"
|
33
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
34
|
+
spec.add_development_dependency "test-unit", "~> 3.0"
|
35
|
+
spec.add_development_dependency "simplecov", "~> 0.10"
|
36
|
+
spec.add_development_dependency "codeclimate-test-reporter", "~> 0.4"
|
37
|
+
end
|
data/lib/markdown-ui.rb
CHANGED
@@ -54,6 +54,8 @@ module MarkdownUI
|
|
54
54
|
case element.join(' ')
|
55
55
|
when /button/i
|
56
56
|
MarkdownUI::Button::Element.new(element, content, klass, _id).render
|
57
|
+
when /input/i
|
58
|
+
MarkdownUI::Input::Element.new(element, content, klass, _id).render
|
57
59
|
when /menu/i
|
58
60
|
MarkdownUI::Menu::Element.new(element, content, klass).render
|
59
61
|
when /message/i
|
@@ -91,6 +93,14 @@ module MarkdownUI
|
|
91
93
|
MarkdownUI::Label::Element.new(element, content).render
|
92
94
|
when /item/i
|
93
95
|
MarkdownUI::Content::ItemBlock.new(element, content).render
|
96
|
+
when /form/i
|
97
|
+
MarkdownUI::Content::FormBlock.new(element, content).render
|
98
|
+
when /field/i
|
99
|
+
MarkdownUI::Content::FieldBlock.new(element, content).render
|
100
|
+
when /input/i
|
101
|
+
MarkdownUI::Content::InputBlock.new(element, content).render
|
102
|
+
when /divider/i
|
103
|
+
MarkdownUI::Content::DividerBlock.new(element, content).render
|
94
104
|
end
|
95
105
|
end
|
96
106
|
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module MarkdownUI
|
2
|
+
class InputTag
|
3
|
+
def initialize(content, klass = nil, _id = nil, data = nil)
|
4
|
+
@klass = klass
|
5
|
+
@content = content
|
6
|
+
@data = data
|
7
|
+
@id = _id
|
8
|
+
end
|
9
|
+
|
10
|
+
def render
|
11
|
+
content = if @content
|
12
|
+
" type=\"#{@content.strip.downcase}\""
|
13
|
+
else
|
14
|
+
nil
|
15
|
+
end
|
16
|
+
|
17
|
+
klass = MarkdownUI::KlassUtil.new(@klass).klass unless @klass.nil?
|
18
|
+
|
19
|
+
_id = if @id
|
20
|
+
" placeholder=\"#{@id.capitalize}\""
|
21
|
+
end
|
22
|
+
|
23
|
+
data = if @data
|
24
|
+
_data, attribute, value = @data.split(':')
|
25
|
+
" data-#{attribute}=\"#{value}\""
|
26
|
+
else
|
27
|
+
nil
|
28
|
+
end
|
29
|
+
|
30
|
+
|
31
|
+
"<input#{content}#{_id}#{klass}#{data} />"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module MarkdownUI
|
2
|
+
class LabelTag
|
3
|
+
def initialize(content, klass = nil, _id = nil, data = nil)
|
4
|
+
@klass = klass
|
5
|
+
@content = content
|
6
|
+
@data = data
|
7
|
+
@id = _id
|
8
|
+
end
|
9
|
+
|
10
|
+
def render
|
11
|
+
content = @content.strip unless @content.nil?
|
12
|
+
klass = MarkdownUI::KlassUtil.new(@klass).klass unless @klass.nil?
|
13
|
+
_id = if @id
|
14
|
+
" id=\"#{@id.split.join('-')}\""
|
15
|
+
end
|
16
|
+
|
17
|
+
data = if @data
|
18
|
+
_data, attribute, value = @data.split(':')
|
19
|
+
" data-#{attribute}=\"#{value}\""
|
20
|
+
else
|
21
|
+
nil
|
22
|
+
end
|
23
|
+
|
24
|
+
"<label#{_id}#{klass}#{data}>#{content}</label>"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/markdown-ui/tag/tag.rb
CHANGED
@@ -3,6 +3,7 @@ module MarkdownUI
|
|
3
3
|
def initialize(tag, content, klass = nil, data = nil)
|
4
4
|
@mode = OpenStruct.new(
|
5
5
|
:div? => !(tag =~ /div/i).nil?,
|
6
|
+
:label? => !(tag =~ /label/i).nil?,
|
6
7
|
:span? => !(tag =~ /span/i).nil?,
|
7
8
|
:article? => !(tag =~ /article/i).nil?,
|
8
9
|
:section? => !(tag =~ /section/i).nil?,
|
@@ -16,21 +17,11 @@ module MarkdownUI
|
|
16
17
|
end
|
17
18
|
|
18
19
|
def render
|
19
|
-
|
20
|
+
if @mode.div?
|
20
21
|
MarkdownUI::StandardTag.new(@content, @klass, nil, @data).render
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
# MarkdownUI::ArticleTag.new(@content, @klass).render
|
25
|
-
# elsif @mode.section
|
26
|
-
# MarkdownUI::SectionTag.new(@content, @klass).render
|
27
|
-
# elsif @mode.header
|
28
|
-
# MarkdownUI::HeaderTag.new(@content, @klass).render
|
29
|
-
# elsif @mode.footer
|
30
|
-
# MarkdownUI::FooterTag.new(@content, @klass).render
|
31
|
-
# else
|
32
|
-
# MarkdownUI::CustomTag.new(@tag, @content, @klass).render
|
33
|
-
# end
|
22
|
+
elsif @mode.label?
|
23
|
+
MarkdownUI::LabelTag.new(@content, @klass, nil, @data).render
|
24
|
+
end
|
34
25
|
end
|
35
26
|
|
36
27
|
end
|
data/lib/markdown-ui/version.rb
CHANGED
@@ -0,0 +1,223 @@
|
|
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.8/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.8/semantic.min.js"></script>
|
12
|
+
|
13
|
+
<!--[if lt IE 9]>
|
14
|
+
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
15
|
+
<![endif]-->
|
16
|
+
</head>
|
17
|
+
|
18
|
+
<body>
|
19
|
+
<div class="ui container">
|
20
|
+
<div class="ui inverted segment">
|
21
|
+
<div class="ui inverted menu">
|
22
|
+
<a class="ui basic item" href="http://jjuliano.github.io/markdown-ui">Markdown UI</a>
|
23
|
+
<div class="ui inverted right menu">
|
24
|
+
<a class="ui item" href="toc.html">Table of Contents</a>
|
25
|
+
<a class="ui item" href="../about.html">About</a>
|
26
|
+
<a class="ui item" href="https://github.com/jjuliano/markdown-ui">Github</a>
|
27
|
+
<a class="ui item" href="../index.html#install">Install</a>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
<!-- -->
|
32
|
+
<div class="ui basic segment">
|
33
|
+
<h1 id="button" class="ui center aligned header">Divider</h1>
|
34
|
+
</div>
|
35
|
+
<!-- -->
|
36
|
+
<div class="ui basic segment">
|
37
|
+
<h2 id="types" class="ui dividing left aligned header">Types</h2>
|
38
|
+
</div>
|
39
|
+
<!-- -->
|
40
|
+
<div class="ui basic segment">
|
41
|
+
<h4 id="standard-divider" class="ui header">Standard Divider</h4>
|
42
|
+
<p>Standard Divider</p>
|
43
|
+
</div>
|
44
|
+
<!-- -->
|
45
|
+
<div class="ui divided segment grid">
|
46
|
+
<div class="ui attached segment">
|
47
|
+
<div class="ui top attached label">Standard Divider</div>
|
48
|
+
</div>
|
49
|
+
<!-- -->
|
50
|
+
<div class="ui center aligned six wide column">
|
51
|
+
<h5 class="ui center aligned header">Preview</h5>
|
52
|
+
<div class="ui divider"></div>
|
53
|
+
</div>
|
54
|
+
<!-- -->
|
55
|
+
<div class="ui ten wide column">
|
56
|
+
<h5 class="ui header">Markdown Syntax</h5>
|
57
|
+
<div class="ui inverted very padded segment">
|
58
|
+
<code>____</code>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
</div>
|
62
|
+
<!-- -->
|
63
|
+
<div class="ui basic segment">
|
64
|
+
<h4 id="vertical-divider" class="ui header">Vertical Divider</h4>
|
65
|
+
<p>A divider can segment content vertically</p>
|
66
|
+
</div>
|
67
|
+
<!-- -->
|
68
|
+
<div class="ui divided segment grid">
|
69
|
+
<div class="ui attached segment">
|
70
|
+
<div class="ui top attached label">Vertical Divider</div>
|
71
|
+
</div>
|
72
|
+
<!-- -->
|
73
|
+
<div class="ui left aligned ten wide column">
|
74
|
+
<h5 class="ui center aligned header">Preview</h5>
|
75
|
+
<div class="ui two column middle aligned very relaxed stackable grid">
|
76
|
+
<div class="ui column">
|
77
|
+
<div class="ui form">
|
78
|
+
<div class="ui field">
|
79
|
+
<label>Username</label>
|
80
|
+
<div class="ui left icon input">
|
81
|
+
<input type="text" placeholder="Username" class="ui input" />
|
82
|
+
<i class="user icon"></i>
|
83
|
+
</div>
|
84
|
+
</div>
|
85
|
+
<!-- -->
|
86
|
+
<div class="ui field">
|
87
|
+
<label>Password</label>
|
88
|
+
<div class="ui left icon input">
|
89
|
+
<input type="password" placeholder="Password" class="ui input" />
|
90
|
+
<i class="lock icon"></i>
|
91
|
+
</div>
|
92
|
+
</div>
|
93
|
+
<!-- -->
|
94
|
+
<button class="ui blue submit button">Login</button>
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
<!-- -->
|
98
|
+
<div class="ui vertical divider">Or</div>
|
99
|
+
<!-- -->
|
100
|
+
<div class="ui center aligned column">
|
101
|
+
<button class="ui big green labeled icon button"><i class="signup icon"></i>Sign Up</button>
|
102
|
+
</div>
|
103
|
+
</div>
|
104
|
+
</div>
|
105
|
+
<!-- -->
|
106
|
+
<div class="ui sixteen wide column">
|
107
|
+
<h5 class="ui header">Markdown Syntax</h5>
|
108
|
+
<div class="ui inverted very padded segment">
|
109
|
+
<code>> Two Column Middle Aligned Very Relaxed Stackable Grid:</code>
|
110
|
+
<br />
|
111
|
+
<code>> > Column:</code>
|
112
|
+
<br />
|
113
|
+
<code>> > > Form:</code>
|
114
|
+
<br />
|
115
|
+
<code>> > > > Field:</code>
|
116
|
+
<br />
|
117
|
+
<code>> > > > __Label Tag|Username__</code>
|
118
|
+
<br />
|
119
|
+
<code>> > > > > Left Icon Input:</code>
|
120
|
+
<br />
|
121
|
+
<code>> > > > > __Input|Text|Username__</code>
|
122
|
+
<br />
|
123
|
+
<code>> > > > > _User Icon_</code>
|
124
|
+
<br />
|
125
|
+
<code>> > ></code>
|
126
|
+
<br />
|
127
|
+
<code>> > > <!-- --></code>
|
128
|
+
<br />
|
129
|
+
<code>> > > > Field:</code>
|
130
|
+
<br />
|
131
|
+
<code>> > > > __Label Tag|Password__</code>
|
132
|
+
<br />
|
133
|
+
<code>> > > > > Left Icon Input:</code>
|
134
|
+
<br />
|
135
|
+
<code>> > > > > __Input|Password|Password__</code>
|
136
|
+
<br />
|
137
|
+
<code>> > > > > _Lock Icon_</code>
|
138
|
+
<br />
|
139
|
+
<code>> > ></code>
|
140
|
+
<br />
|
141
|
+
<code>> > > <!-- --></code>
|
142
|
+
<br />
|
143
|
+
<code>> > > __Blue Submit Button|Login__</code>
|
144
|
+
<br />
|
145
|
+
<code>></code>
|
146
|
+
<br />
|
147
|
+
<code>> <!-- --></code>
|
148
|
+
<br />
|
149
|
+
<code>> > Vertical Divider:</code>
|
150
|
+
<br />
|
151
|
+
<code>> > Or</code>
|
152
|
+
<br />
|
153
|
+
<code>></code>
|
154
|
+
<br />
|
155
|
+
<code>> <!-- --></code>
|
156
|
+
<br />
|
157
|
+
<code>> > Center Aligned Column:</code>
|
158
|
+
<br />
|
159
|
+
<code>> > __Big Green Labeled Icon Button|Icon:Signup, Sign Up__</code>
|
160
|
+
<br />
|
161
|
+
</div>
|
162
|
+
</div>
|
163
|
+
</div>
|
164
|
+
<!-- -->
|
165
|
+
<div class="ui basic segment">
|
166
|
+
<h4 id="horizontal-divider" class="ui header">Horizontal Divider</h4>
|
167
|
+
<p>A divider can segment content horizontally</p>
|
168
|
+
</div>
|
169
|
+
<!-- -->
|
170
|
+
<div class="ui divided segment grid">
|
171
|
+
<div class="ui attached segment">
|
172
|
+
<div class="ui top attached label">Horizontal Divider</div>
|
173
|
+
</div>
|
174
|
+
<!-- -->
|
175
|
+
<div class="ui center aligned six wide column">
|
176
|
+
<h5 class="ui center aligned header">Preview</h5>
|
177
|
+
<div class="ui center aligned basic segment">
|
178
|
+
<div class="ui left icon action input">
|
179
|
+
<i class="search icon"></i>
|
180
|
+
<input type="text" placeholder="Order #" class="ui input" />
|
181
|
+
<button class="ui blue submit button">Search</button>
|
182
|
+
</div>
|
183
|
+
<!-- -->
|
184
|
+
<div class="ui horizontal divider">Or</div>
|
185
|
+
<!-- -->
|
186
|
+
<button class="ui teal labeled icon button">Create New Order<i class="add icon"></i></button>
|
187
|
+
</div>
|
188
|
+
</div>
|
189
|
+
<!-- -->
|
190
|
+
<div class="ui ten wide column">
|
191
|
+
<h5 class="ui header">Markdown Syntax</h5>
|
192
|
+
<div class="ui inverted very padded segment">
|
193
|
+
<code>> Center Aligned Basic Segment:</code>
|
194
|
+
<br />
|
195
|
+
<code>> > Left Icon Action Input:</code>
|
196
|
+
<br />
|
197
|
+
<code>> > _Search Icon_</code>
|
198
|
+
<br />
|
199
|
+
<code>> > __Input|Text|Order #__</code>
|
200
|
+
<br />
|
201
|
+
<code>> > __Blue Submit Button|Search__</code>
|
202
|
+
<br />
|
203
|
+
<code>></code>
|
204
|
+
<br />
|
205
|
+
<code>> <!-- --></code>
|
206
|
+
<br />
|
207
|
+
<code>> > Horizontal Divider:</code>
|
208
|
+
<br />
|
209
|
+
<code>> > Or</code>
|
210
|
+
<br />
|
211
|
+
<code>></code>
|
212
|
+
<br />
|
213
|
+
<code>> <!-- --></code>
|
214
|
+
<br />
|
215
|
+
<code>> __Teal Labeled Icon Button|Create New Order, Icon: Add Icon__</code>
|
216
|
+
<br />
|
217
|
+
</div>
|
218
|
+
</div>
|
219
|
+
</div>
|
220
|
+
</div>
|
221
|
+
|
222
|
+
</body>
|
223
|
+
</html>
|
@@ -0,0 +1,157 @@
|
|
1
|
+
> Container:
|
2
|
+
> > Inverted Segment:
|
3
|
+
> > > Inverted Menu:
|
4
|
+
> > > [Markdown UI](http://jjuliano.github.io/markdown-ui "basic")
|
5
|
+
> > > > Inverted Right Menu:
|
6
|
+
> > > > [Table of Contents](toc.html)
|
7
|
+
> > > > [About](../about.html)
|
8
|
+
> > > > [Github](https://github.com/jjuliano/markdown-ui)
|
9
|
+
> > > > [Install](../index.html#install)
|
10
|
+
>
|
11
|
+
> <!-- -->
|
12
|
+
> > Basic Segment:
|
13
|
+
> > # Divider:Center Aligned:button
|
14
|
+
>
|
15
|
+
> <!-- -->
|
16
|
+
> > Basic Segment:
|
17
|
+
> > ## Types:Dividing Left Aligned:types
|
18
|
+
>
|
19
|
+
> <!-- -->
|
20
|
+
> > Basic Segment:
|
21
|
+
> > #### Standard Divider::standard-divider
|
22
|
+
> > "Standard Divider"
|
23
|
+
>
|
24
|
+
> <!-- -->
|
25
|
+
> > Divided Segment Grid:
|
26
|
+
> > > Attached Segment:
|
27
|
+
> > > > Top Attached Label:
|
28
|
+
> > > > Standard Divider
|
29
|
+
> >
|
30
|
+
> > <!-- -->
|
31
|
+
> > > Center Aligned Six Wide Column:
|
32
|
+
> > > ##### Preview:Center Aligned
|
33
|
+
> > > ____
|
34
|
+
> >
|
35
|
+
> > <!-- -->
|
36
|
+
> > > Ten Wide Column:
|
37
|
+
> > > ##### Markdown Syntax
|
38
|
+
> > > > Inverted Very Padded Segment:
|
39
|
+
> > > > ``` ____ ```
|
40
|
+
>
|
41
|
+
> <!-- -->
|
42
|
+
> > Basic Segment:
|
43
|
+
> > #### Vertical Divider::vertical-divider
|
44
|
+
> > "A divider can segment content vertically"
|
45
|
+
>
|
46
|
+
> <!-- -->
|
47
|
+
> > Divided Segment Grid:
|
48
|
+
> > > Attached Segment:
|
49
|
+
> > > > Top Attached Label:
|
50
|
+
> > > > Vertical Divider
|
51
|
+
> >
|
52
|
+
> > <!-- -->
|
53
|
+
> > > Left Aligned Ten Wide Column:
|
54
|
+
> > > ##### Preview:Center Aligned
|
55
|
+
> > > > Two Column Middle Aligned Very Relaxed Stackable Grid:
|
56
|
+
> > > > > Column:
|
57
|
+
> > > > > > Form:
|
58
|
+
> > > > > > > Field:
|
59
|
+
> > > > > > > __Label Tag|Username__
|
60
|
+
> > > > > > > > Left Icon Input:
|
61
|
+
> > > > > > > > __Input|Text|Username__
|
62
|
+
> > > > > > > > _User Icon_
|
63
|
+
> > > > > >
|
64
|
+
> > > > > > <!-- -->
|
65
|
+
> > > > > > > Field:
|
66
|
+
> > > > > > > __Label Tag|Password__
|
67
|
+
> > > > > > > > Left Icon Input:
|
68
|
+
> > > > > > > > __Input|Password|Password__
|
69
|
+
> > > > > > > > _Lock Icon_
|
70
|
+
> > > > > >
|
71
|
+
> > > > > > <!-- -->
|
72
|
+
> > > > > > __Blue Submit Button|Login__
|
73
|
+
> > > >
|
74
|
+
> > > > <!-- -->
|
75
|
+
> > > > > Vertical Divider:
|
76
|
+
> > > > > Or
|
77
|
+
> > > >
|
78
|
+
> > > > <!-- -->
|
79
|
+
> > > > > Center Aligned Column:
|
80
|
+
> > > > > __Big Green Labeled Icon Button|Icon:Signup, Sign Up__
|
81
|
+
> >
|
82
|
+
> > <!-- -->
|
83
|
+
> > > Sixteen Wide Column:
|
84
|
+
> > > ##### Markdown Syntax
|
85
|
+
> > > > Inverted Very Padded Segment:
|
86
|
+
> > > > ```> Two Column Middle Aligned Very Relaxed Stackable Grid: ``` <br />
|
87
|
+
> > > > ```> > Column: ``` <br />
|
88
|
+
> > > > ```> > > Form: ``` <br />
|
89
|
+
> > > > ```> > > > Field: ``` <br />
|
90
|
+
> > > > ```> > > > __Label Tag|Username__ ``` <br />
|
91
|
+
> > > > ```> > > > > Left Icon Input: ``` <br />
|
92
|
+
> > > > ```> > > > > __Input|Text|Username__ ``` <br />
|
93
|
+
> > > > ```> > > > > _User Icon_ ``` <br />
|
94
|
+
> > > > ```> > > ``` <br />
|
95
|
+
> > > > ```> > > <!-- --> ``` <br />
|
96
|
+
> > > > ```> > > > Field: ``` <br />
|
97
|
+
> > > > ```> > > > __Label Tag|Password__ ``` <br />
|
98
|
+
> > > > ```> > > > > Left Icon Input: ``` <br />
|
99
|
+
> > > > ```> > > > > __Input|Password|Password__ ``` <br />
|
100
|
+
> > > > ```> > > > > _Lock Icon_ ``` <br />
|
101
|
+
> > > > ```> > > ``` <br />
|
102
|
+
> > > > ```> > > <!-- --> ``` <br />
|
103
|
+
> > > > ```> > > __Blue Submit Button|Login__ ``` <br />
|
104
|
+
> > > > ```> ``` <br />
|
105
|
+
> > > > ```> <!-- --> ``` <br />
|
106
|
+
> > > > ```> > Vertical Divider: ``` <br />
|
107
|
+
> > > > ```> > Or ``` <br />
|
108
|
+
> > > > ```> ``` <br />
|
109
|
+
> > > > ```> <!-- --> ``` <br />
|
110
|
+
> > > > ```> > Center Aligned Column: ``` <br />
|
111
|
+
> > > > ```> > __Big Green Labeled Icon Button|Icon:Signup, Sign Up__ ``` <br />
|
112
|
+
>
|
113
|
+
> <!-- -->
|
114
|
+
> > Basic Segment:
|
115
|
+
> > #### Horizontal Divider::horizontal-divider
|
116
|
+
> > "A divider can segment content horizontally"
|
117
|
+
>
|
118
|
+
> <!-- -->
|
119
|
+
> > Divided Segment Grid:
|
120
|
+
> > > Attached Segment:
|
121
|
+
> > > > Top Attached Label:
|
122
|
+
> > > > Horizontal Divider
|
123
|
+
> >
|
124
|
+
> > <!-- -->
|
125
|
+
> > > Center Aligned Six Wide Column:
|
126
|
+
> > > ##### Preview:Center Aligned
|
127
|
+
|
128
|
+
> > > > Center Aligned Basic Segment:
|
129
|
+
> > > > > Left Icon Action Input:
|
130
|
+
> > > > > _Search Icon_
|
131
|
+
> > > > > __Input|Text|Order #__
|
132
|
+
> > > > > __Blue Submit Button|Search__
|
133
|
+
> > > >
|
134
|
+
> > > > <!-- -->
|
135
|
+
> > > > > Horizontal Divider:
|
136
|
+
> > > > > Or
|
137
|
+
> > > >
|
138
|
+
> > > > <!-- -->
|
139
|
+
> > > > __Teal Labeled Icon Button|Create New Order, Icon: Add Icon__
|
140
|
+
|
141
|
+
> >
|
142
|
+
> > <!-- -->
|
143
|
+
> > > Ten Wide Column:
|
144
|
+
> > > ##### Markdown Syntax
|
145
|
+
> > > > Inverted Very Padded Segment:
|
146
|
+
> > > > ``` > Center Aligned Basic Segment: ``` <br />
|
147
|
+
> > > > ``` > > Left Icon Action Input: ``` <br />
|
148
|
+
> > > > ``` > > _Search Icon_ ``` <br />
|
149
|
+
> > > > ``` > > __Input|Text|Order #__ ``` <br />
|
150
|
+
> > > > ``` > > __Blue Submit Button|Search__ ``` <br />
|
151
|
+
> > > > ``` > ``` <br />
|
152
|
+
> > > > ``` > <!-- --> ``` <br />
|
153
|
+
> > > > ``` > > Horizontal Divider: ``` <br />
|
154
|
+
> > > > ``` > > Or ``` <br />
|
155
|
+
> > > > ``` > ``` <br />
|
156
|
+
> > > > ``` > <!-- --> ``` <br />
|
157
|
+
> > > > ``` > __Teal Labeled Icon Button|Create New Order, Icon: Add Icon__ ``` <br />
|
data/website/docs/toc.html
CHANGED
@@ -123,6 +123,17 @@
|
|
123
123
|
,
|
124
124
|
<a class="ui item" href="container.html#container-segment">Container Segment</a></div>
|
125
125
|
</div>
|
126
|
+
<!-- -->
|
127
|
+
<h2 class="ui header">
|
128
|
+
<a class="ui item" href="divider.html#divider">Divider</a>
|
129
|
+
</h2>
|
130
|
+
<div class="ui two column doubling grid container">
|
131
|
+
<div class="ui column"><h3 class="ui header"><a class="ui item" href="divider.html#types">Types</a></h3><a class="ui item" href="divider.html#standard-divider">Standard Divider</a>
|
132
|
+
,
|
133
|
+
<a class="ui item" href="divider.html#vertical-divider">Vertical Divider</a>
|
134
|
+
|
135
|
+
<a class="ui item" href="divider.html#horizontal-divider">Horizontal Divider</a></div>
|
136
|
+
</div>
|
126
137
|
</div>
|
127
138
|
</div>
|
128
139
|
|
data/website/docs/toc.md
CHANGED
@@ -89,3 +89,12 @@
|
|
89
89
|
> > > > [Centered Menu](container.html#centered-menu),
|
90
90
|
> > > > [Container Segment](container.html#container-segment)
|
91
91
|
|
92
|
+
> >
|
93
|
+
> > <!-- -->
|
94
|
+
> > ## [Divider](divider.html#divider)
|
95
|
+
> > > Two Column Doubling Grid Container:
|
96
|
+
> > > > Column:
|
97
|
+
> > > > ### [Types](divider.html#types)
|
98
|
+
> > > > [Standard Divider](divider.html#standard-divider),
|
99
|
+
> > > > [Vertical Divider](divider.html#vertical-divider)
|
100
|
+
> > > > [Horizontal Divider](divider.html#horizontal-divider)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markdown-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Bryan Juliano
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -197,8 +197,12 @@ files:
|
|
197
197
|
- components/elements/markdown-ui-container/markdown-ui-container.gemspec
|
198
198
|
- components/elements/markdown-ui-content/Gemfile
|
199
199
|
- components/elements/markdown-ui-content/lib/content/custom.rb
|
200
|
+
- components/elements/markdown-ui-content/lib/content/divider_block.rb
|
201
|
+
- components/elements/markdown-ui-content/lib/content/field_block.rb
|
202
|
+
- components/elements/markdown-ui-content/lib/content/form_block.rb
|
200
203
|
- components/elements/markdown-ui-content/lib/content/header.rb
|
201
204
|
- components/elements/markdown-ui-content/lib/content/icon.rb
|
205
|
+
- components/elements/markdown-ui-content/lib/content/input_block.rb
|
202
206
|
- components/elements/markdown-ui-content/lib/content/item.rb
|
203
207
|
- components/elements/markdown-ui-content/lib/content/item_block.rb
|
204
208
|
- components/elements/markdown-ui-content/lib/content/list.rb
|
@@ -212,6 +216,12 @@ files:
|
|
212
216
|
- components/elements/markdown-ui-header/lib/header/version.rb
|
213
217
|
- components/elements/markdown-ui-header/lib/markdown-ui-header.rb
|
214
218
|
- components/elements/markdown-ui-header/markdown-ui-header.gemspec
|
219
|
+
- components/elements/markdown-ui-input/Gemfile
|
220
|
+
- components/elements/markdown-ui-input/lib/input/custom.rb
|
221
|
+
- components/elements/markdown-ui-input/lib/input/element.rb
|
222
|
+
- components/elements/markdown-ui-input/lib/input/version.rb
|
223
|
+
- components/elements/markdown-ui-input/lib/markdown-ui-input.rb
|
224
|
+
- components/elements/markdown-ui-input/markdown-ui-input.gemspec
|
215
225
|
- components/elements/markdown-ui-label/Gemfile
|
216
226
|
- components/elements/markdown-ui-label/lib/label/custom.rb
|
217
227
|
- components/elements/markdown-ui-label/lib/label/element.rb
|
@@ -237,7 +247,9 @@ files:
|
|
237
247
|
- lib/markdown-ui/tag/button_tag.rb
|
238
248
|
- lib/markdown-ui/tag/custom_tag.rb
|
239
249
|
- lib/markdown-ui/tag/focusable_button_tag.rb
|
250
|
+
- lib/markdown-ui/tag/input_tag.rb
|
240
251
|
- lib/markdown-ui/tag/item_tag.rb
|
252
|
+
- lib/markdown-ui/tag/label_tag.rb
|
241
253
|
- lib/markdown-ui/tag/list_tag.rb
|
242
254
|
- lib/markdown-ui/tag/span_tag.rb
|
243
255
|
- lib/markdown-ui/tag/standard_tag.rb
|
@@ -252,6 +264,8 @@ files:
|
|
252
264
|
- website/docs/button.md
|
253
265
|
- website/docs/container.html
|
254
266
|
- website/docs/container.md
|
267
|
+
- website/docs/divider.html
|
268
|
+
- website/docs/divider.md
|
255
269
|
- website/docs/toc.html
|
256
270
|
- website/docs/toc.md
|
257
271
|
- website/index.html
|