wmd-rails 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,175 @@
1
+
2
+ .wmd-panel
3
+ {
4
+ margin-left: 25%;
5
+ margin-right: 25%;
6
+ width: 50%;
7
+ min-width: 500px;
8
+ }
9
+
10
+ #wmd-editor
11
+ {
12
+ background-color: Aquamarine;
13
+ }
14
+
15
+ .wmd-button-bar
16
+ {
17
+ width: 100%;
18
+ /*
19
+ background-color: Silver;
20
+ */
21
+ }
22
+
23
+ .wmd-input
24
+ {
25
+ height: 500px;
26
+ width: 100%;
27
+ background-color: Gainsboro;
28
+ border: 1px solid DarkGray;
29
+ }
30
+
31
+ .wmd-preview
32
+ {
33
+ background-color: LightGray;
34
+ }
35
+
36
+ .wmd-output
37
+ {
38
+ background-color: Pink;
39
+ }
40
+
41
+ .wmd-button-row
42
+ {
43
+ position: relative;
44
+ margin:0px;
45
+ padding: 5px;
46
+ height: 20px;
47
+ }
48
+
49
+ .wmd-spacer
50
+ {
51
+ width: 1px;
52
+ height: 20px;
53
+ margin-left: 7px;
54
+ margin-right:7px;
55
+
56
+ position: relative;
57
+ background-color: Silver;
58
+ display: inline-block; zoom:1; *display:inline;
59
+ list-style: none;
60
+ }
61
+
62
+ .wmd-button
63
+ {
64
+ width: 20px;
65
+ height: 20px;
66
+ margin-left: 5px;
67
+ margin-right: 5px;
68
+
69
+ position: relative;
70
+ background-image: url(<%= asset_path 'wmd-buttons.png' %>);
71
+ background-repeat: no-repeat;
72
+ background-position: 0px 0px;
73
+ display: inline-block; zoom:1; *display:inline;
74
+ list-style: none;
75
+ }
76
+
77
+ .wmd-button > a
78
+ {
79
+ width: 20px;
80
+ height: 20px;
81
+ margin-left: 5px;
82
+ margin-right: 5px;
83
+
84
+ position: absolute;
85
+ display: inline-block;
86
+ }
87
+
88
+
89
+ /* sprite button slicing style information */
90
+ .wmd-bold-button {background-position: 0px 0px;}
91
+ .wmd-bold-button:hover {background-position: 0px -40px;}
92
+ .wmd-bold-button.disabled {background-position: 0px -20px;}
93
+
94
+ .wmd-italic-button {background-position: -20px 0px;}
95
+ .wmd-italic-button:hover {background-position: -20px -40px;}
96
+ .wmd-italic-button.disabled {background-position: -20px -20px;}
97
+
98
+ .wmd-link-button {background-position: -40px 0px;}
99
+ .wmd-link-button:hover {background-position: -40px -40px;}
100
+ .wmd-link-button.disabled {background-position: -40px -20px;}
101
+
102
+ .wmd-quote-button {background-position: -60px 0px;}
103
+ .wmd-quote-button:hover {background-position: -60px -40px;}
104
+ .wmd-quote-button.disabled {background-position: -60px -20px;}
105
+
106
+ .wmd-code-button {background-position: -80px 0px;}
107
+ .wmd-code-button:hover {background-position: -80px -40px;}
108
+ .wmd-code-button.disabled {background-position: -80px -20px;}
109
+
110
+ .wmd-image-button {background-position: -100px 0px;}
111
+ .wmd-image-button:hover {background-position: -100px -40px;}
112
+ .wmd-image-button.disabled {background-position: -100px -20px;}
113
+
114
+ .wmd-olist-button {background-position: -120px 0px;}
115
+ .wmd-olist-button:hover {background-position: -120px -40px;}
116
+ .wmd-olist-button.disabled {background-position: -120px -20px;}
117
+
118
+ .wmd-ulist-button {background-position: -140px 0px;}
119
+ .wmd-ulist-button:hover {background-position: -140px -40px;}
120
+ .wmd-ulist-button.disabled {background-position: -140px -20px;}
121
+
122
+ .wmd-heading-button {background-position: -160px 0px;}
123
+ .wmd-heading-button:hover {background-position: -160px -40px;}
124
+ .wmd-heading-button.disabled {background-position: -160px -20px;}
125
+
126
+ .wmd-hr-button {background-position: -180px 0px;}
127
+ .wmd-hr-button:hover {background-position: -180px -40px;}
128
+ .wmd-hr-button.disabled {background-position: -180px -20px;}
129
+
130
+ .wmd-undo-button {background-position: -200px 0px;}
131
+ .wmd-undo-button:hover {background-position: -200px -40px;}
132
+ .wmd-undo-button.disabled {background-position: -200px -20px;}
133
+
134
+ .wmd-redo-button {background-position: -220px 0px;}
135
+ .wmd-redo-button:hover {background-position: -220px -40px;}
136
+ .wmd-redo-button.disabled {background-position: -220px -20px;}
137
+
138
+ .wmd-help-button {background-position: -240px 0px;}
139
+ .wmd-help-button:hover {background-position: -240px -40px;}
140
+ .wmd-help-button.disabled {background-position: -240px -20px;}
141
+
142
+ .wmd-help-button {position:absolute;top:5px;right: 0px; background-position: -240px 0;}
143
+
144
+
145
+ .wmd-prompt-background
146
+ {
147
+ background-color: Black;
148
+ }
149
+
150
+ .wmd-prompt-dialog
151
+ {
152
+ border: 1px solid #999999;
153
+ background-color: #F5F5F5;
154
+ font-size: 0.8em;
155
+ font-family: arial, helvetica, sans-serif;
156
+ }
157
+
158
+ .wmd-prompt-dialog > form > label {
159
+ font-size: 0.6em;
160
+ font-weight:bold;
161
+ margin:4px 0;
162
+ }
163
+
164
+
165
+ .wmd-prompt-dialog > form > input[type="text"] {
166
+ border: 1px solid #999999;
167
+ color: black;
168
+ }
169
+
170
+ .wmd-prompt-dialog > form > input[type="button"]{
171
+ border: 1px solid #888888;
172
+ font-family: trebuchet MS, helvetica, sans-serif;
173
+ font-size: 0.8em;
174
+ font-weight: bold;
175
+ }
metadata ADDED
@@ -0,0 +1,65 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wmd-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Rei
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-09-23 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &74330880 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.1.1.rc1
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *74330880
25
+ description: WMDEditor for rails 3.1
26
+ email:
27
+ - chloerei@gmail.com
28
+ executables: []
29
+ extensions: []
30
+ extra_rdoc_files: []
31
+ files:
32
+ - lib/wmd-rails.rb
33
+ - lib/wmd/rails/engine.rb
34
+ - lib/wmd/rails/version.rb
35
+ - vendor/assets/images/wmd-buttons.png
36
+ - vendor/assets/stylesheets/wmd.css.erb
37
+ - vendor/assets/javascripts/wmd.js
38
+ - vendor/assets/javascripts/showdown.js
39
+ - README.md
40
+ - LICENSE.txt
41
+ homepage: https://github.com/chloerei/wmd-rails
42
+ licenses: []
43
+ post_install_message:
44
+ rdoc_options: []
45
+ require_paths:
46
+ - lib
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ none: false
49
+ requirements:
50
+ - - ! '>='
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ! '>='
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ requirements: []
60
+ rubyforge_project:
61
+ rubygems_version: 1.7.2
62
+ signing_key:
63
+ specification_version: 3
64
+ summary: WMDEditor for rails 3.1
65
+ test_files: []