editor_base 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.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +29 -0
- data/Rakefile +2 -0
- data/config.rb +77 -0
- data/editor_base.gemspec +30 -0
- data/lib/editor_base.rb +5 -0
- data/lib/editor_base/version.rb +3 -0
- data/source/images/background.png +0 -0
- data/source/images/middleman.png +0 -0
- data/source/index.html.erb +10 -0
- data/source/javascripts/all.js +1 -0
- data/source/layouts/layout.erb +19 -0
- data/source/stylesheets/all.css +55 -0
- data/source/stylesheets/normalize.css +431 -0
- metadata +147 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Daniel X. Moore
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# EditorBase
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'EditorBase'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install EditorBase
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
data/config.rb
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
###
|
2
|
+
# Compass
|
3
|
+
###
|
4
|
+
|
5
|
+
# Susy grids in Compass
|
6
|
+
# First: gem install compass-susy-plugin
|
7
|
+
# require 'susy'
|
8
|
+
|
9
|
+
# Change Compass configuration
|
10
|
+
# compass_config do |config|
|
11
|
+
# config.output_style = :compact
|
12
|
+
# end
|
13
|
+
|
14
|
+
###
|
15
|
+
# Page options, layouts, aliases and proxies
|
16
|
+
###
|
17
|
+
|
18
|
+
# Per-page layout changes:
|
19
|
+
#
|
20
|
+
# With no layout
|
21
|
+
# page "/path/to/file.html", :layout => false
|
22
|
+
#
|
23
|
+
# With alternative layout
|
24
|
+
# page "/path/to/file.html", :layout => :otherlayout
|
25
|
+
#
|
26
|
+
# A path which all have the same layout
|
27
|
+
# with_layout :admin do
|
28
|
+
# page "/admin/*"
|
29
|
+
# end
|
30
|
+
|
31
|
+
# Proxy (fake) files
|
32
|
+
# page "/this-page-has-no-template.html", :proxy => "/template-file.html" do
|
33
|
+
# @which_fake_page = "Rendering a fake page with a variable"
|
34
|
+
# end
|
35
|
+
|
36
|
+
###
|
37
|
+
# Helpers
|
38
|
+
###
|
39
|
+
|
40
|
+
# Automatic image dimensions on image_tag helper
|
41
|
+
# activate :automatic_image_sizes
|
42
|
+
|
43
|
+
# Methods defined in the helpers block are available in templates
|
44
|
+
# helpers do
|
45
|
+
# def some_helper
|
46
|
+
# "Helping"
|
47
|
+
# end
|
48
|
+
# end
|
49
|
+
|
50
|
+
set :css_dir, 'stylesheets'
|
51
|
+
|
52
|
+
set :js_dir, 'javascripts'
|
53
|
+
|
54
|
+
set :images_dir, 'images'
|
55
|
+
|
56
|
+
# Build-specific configuration
|
57
|
+
configure :build do
|
58
|
+
# For example, change the Compass output style for deployment
|
59
|
+
# activate :minify_css
|
60
|
+
|
61
|
+
# Minify Javascript on build
|
62
|
+
# activate :minify_javascript
|
63
|
+
|
64
|
+
# Enable cache buster
|
65
|
+
# activate :cache_buster
|
66
|
+
|
67
|
+
# Use relative URLs
|
68
|
+
# activate :relative_assets
|
69
|
+
|
70
|
+
# Compress PNGs after build
|
71
|
+
# First: gem install middleman-smusher
|
72
|
+
# require "middleman-smusher"
|
73
|
+
# activate :smusher
|
74
|
+
|
75
|
+
# Or use a different image path
|
76
|
+
# set :http_path, "/Content/images/"
|
77
|
+
end
|
data/editor_base.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/editor_base/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Daniel X. Moore"]
|
6
|
+
gem.email = ["yahivin@gmail.com"]
|
7
|
+
gem.description = %q{Base components for Pixie Editors}
|
8
|
+
gem.summary = %q{Base components for Pixie Editors}
|
9
|
+
gem.homepage = ""
|
10
|
+
|
11
|
+
gem.files = `git ls-files`.split($\)
|
12
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
|
+
gem.name = "editor_base"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = EditorBase::VERSION
|
17
|
+
|
18
|
+
gem.add_development_dependency "middleman", "3.0.1"
|
19
|
+
|
20
|
+
%w[
|
21
|
+
backbone-source
|
22
|
+
coffee-filter
|
23
|
+
cornerstone-source
|
24
|
+
haml_coffee_assets
|
25
|
+
jquery-source
|
26
|
+
underscore-source
|
27
|
+
].each do |name|
|
28
|
+
gem.add_dependency name
|
29
|
+
end
|
30
|
+
end
|
data/lib/editor_base.rb
ADDED
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
//= require_tree .
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
|
6
|
+
<!-- Always force latest IE rendering engine or request Chrome Frame -->
|
7
|
+
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
|
8
|
+
|
9
|
+
<!-- Use title if it's in the page YAML frontmatter -->
|
10
|
+
<title><%= data.page.title || "The Middleman" %></title>
|
11
|
+
|
12
|
+
<%= stylesheet_link_tag "normalize", "all" %>
|
13
|
+
<%= javascript_include_tag "all" %>
|
14
|
+
</head>
|
15
|
+
|
16
|
+
<body class="<%= page_classes %>">
|
17
|
+
<%= yield %>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,55 @@
|
|
1
|
+
@charset "utf-8";
|
2
|
+
|
3
|
+
body {
|
4
|
+
background: #d4d4d4 url("../images/background.png");
|
5
|
+
text-align: center;
|
6
|
+
font-family: sans-serif; }
|
7
|
+
|
8
|
+
h1 {
|
9
|
+
color: rgba(0, 0, 0, .3);
|
10
|
+
font-weight: bold;
|
11
|
+
font-size: 32px;
|
12
|
+
letter-spacing: -1px;
|
13
|
+
text-transform: uppercase;
|
14
|
+
text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
|
15
|
+
background: url("../images/middleman.png") no-repeat center 100px;
|
16
|
+
padding: 350px 0 10px;
|
17
|
+
margin: 0; }
|
18
|
+
|
19
|
+
.doc {
|
20
|
+
font-size: 14px;
|
21
|
+
margin: 0; }
|
22
|
+
.doc:before,
|
23
|
+
.doc:after {
|
24
|
+
opacity: .2;
|
25
|
+
padding: 6px;
|
26
|
+
font-style: normal;
|
27
|
+
position: relative;
|
28
|
+
content: "•"; }
|
29
|
+
.doc a {
|
30
|
+
color: rgba(0, 0, 0, 0.3); }
|
31
|
+
.doc a:hover {
|
32
|
+
color: #666; }
|
33
|
+
|
34
|
+
.welcome {
|
35
|
+
-webkit-animation-name: welcome;
|
36
|
+
-webkit-animation-duration: .9s; }
|
37
|
+
|
38
|
+
@-webkit-keyframes welcome {
|
39
|
+
from {
|
40
|
+
-webkit-transform: scale(0);
|
41
|
+
opacity: 0;
|
42
|
+
}
|
43
|
+
50% {
|
44
|
+
-webkit-transform: scale(0);
|
45
|
+
opacity: 0;
|
46
|
+
}
|
47
|
+
82.5% {
|
48
|
+
-webkit-transform: scale(1.03);
|
49
|
+
-webkit-animation-timing-function: ease-out;
|
50
|
+
opacity: 1;
|
51
|
+
}
|
52
|
+
to {
|
53
|
+
-webkit-transform: scale(1);
|
54
|
+
}
|
55
|
+
}
|
@@ -0,0 +1,431 @@
|
|
1
|
+
/*! normalize.css 2011-11-04T15:38 UTC - http://github.com/necolas/normalize.css */
|
2
|
+
|
3
|
+
/* =============================================================================
|
4
|
+
HTML5 display definitions
|
5
|
+
========================================================================== */
|
6
|
+
|
7
|
+
/*
|
8
|
+
* Corrects block display not defined in IE6/7/8/9 & FF3
|
9
|
+
*/
|
10
|
+
|
11
|
+
article,
|
12
|
+
aside,
|
13
|
+
details,
|
14
|
+
figcaption,
|
15
|
+
figure,
|
16
|
+
footer,
|
17
|
+
header,
|
18
|
+
hgroup,
|
19
|
+
nav,
|
20
|
+
section {
|
21
|
+
display: block;
|
22
|
+
}
|
23
|
+
|
24
|
+
/*
|
25
|
+
* Corrects inline-block display not defined in IE6/7/8/9 & FF3
|
26
|
+
*/
|
27
|
+
|
28
|
+
audio,
|
29
|
+
canvas,
|
30
|
+
video {
|
31
|
+
display: inline-block;
|
32
|
+
*display: inline;
|
33
|
+
*zoom: 1;
|
34
|
+
}
|
35
|
+
|
36
|
+
/*
|
37
|
+
* Prevents modern browsers from displaying 'audio' without controls
|
38
|
+
*/
|
39
|
+
|
40
|
+
audio:not([controls]) {
|
41
|
+
display: none;
|
42
|
+
}
|
43
|
+
|
44
|
+
/*
|
45
|
+
* Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
|
46
|
+
* Known issue: no IE6 support
|
47
|
+
*/
|
48
|
+
|
49
|
+
[hidden] {
|
50
|
+
display: none;
|
51
|
+
}
|
52
|
+
|
53
|
+
|
54
|
+
/* =============================================================================
|
55
|
+
Base
|
56
|
+
========================================================================== */
|
57
|
+
|
58
|
+
/*
|
59
|
+
* 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
|
60
|
+
* http://clagnut.com/blog/348/#c790
|
61
|
+
* 2. Keeps page centred in all browsers regardless of content height
|
62
|
+
* 3. Prevents iOS text size adjust after orientation change, without disabling user zoom
|
63
|
+
* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
|
64
|
+
*/
|
65
|
+
|
66
|
+
html {
|
67
|
+
font-size: 100%; /* 1 */
|
68
|
+
overflow-y: scroll; /* 2 */
|
69
|
+
-webkit-text-size-adjust: 100%; /* 3 */
|
70
|
+
-ms-text-size-adjust: 100%; /* 3 */
|
71
|
+
}
|
72
|
+
|
73
|
+
/*
|
74
|
+
* Addresses margins handled incorrectly in IE6/7
|
75
|
+
*/
|
76
|
+
|
77
|
+
body {
|
78
|
+
margin: 0;
|
79
|
+
}
|
80
|
+
|
81
|
+
/*
|
82
|
+
* Addresses font-family inconsistency between 'textarea' and other form elements.
|
83
|
+
*/
|
84
|
+
|
85
|
+
body,
|
86
|
+
button,
|
87
|
+
input,
|
88
|
+
select,
|
89
|
+
textarea {
|
90
|
+
font-family: sans-serif;
|
91
|
+
}
|
92
|
+
|
93
|
+
|
94
|
+
/* =============================================================================
|
95
|
+
Links
|
96
|
+
========================================================================== */
|
97
|
+
|
98
|
+
/*
|
99
|
+
* Addresses outline displayed oddly in Chrome
|
100
|
+
*/
|
101
|
+
|
102
|
+
a:focus {
|
103
|
+
outline: thin dotted;
|
104
|
+
}
|
105
|
+
|
106
|
+
/*
|
107
|
+
* Improves readability when focused and also mouse hovered in all browsers
|
108
|
+
* people.opera.com/patrickl/experiments/keyboard/test
|
109
|
+
*/
|
110
|
+
|
111
|
+
a:hover,
|
112
|
+
a:active {
|
113
|
+
outline: 0;
|
114
|
+
}
|
115
|
+
|
116
|
+
|
117
|
+
/* =============================================================================
|
118
|
+
Typography
|
119
|
+
========================================================================== */
|
120
|
+
|
121
|
+
/*
|
122
|
+
* Neutralise smaller font-size in 'section' and 'article' in FF4+, Chrome, S5
|
123
|
+
*/
|
124
|
+
|
125
|
+
h1 {
|
126
|
+
font-size: 2em;
|
127
|
+
}
|
128
|
+
|
129
|
+
/*
|
130
|
+
* Addresses styling not present in IE7/8/9, S5, Chrome
|
131
|
+
*/
|
132
|
+
|
133
|
+
abbr[title] {
|
134
|
+
border-bottom: 1px dotted;
|
135
|
+
}
|
136
|
+
|
137
|
+
/*
|
138
|
+
* Addresses style set to 'bolder' in FF3+, S4/5, Chrome
|
139
|
+
*/
|
140
|
+
|
141
|
+
b,
|
142
|
+
strong {
|
143
|
+
font-weight: bold;
|
144
|
+
}
|
145
|
+
|
146
|
+
blockquote {
|
147
|
+
margin: 1em 40px;
|
148
|
+
}
|
149
|
+
|
150
|
+
/*
|
151
|
+
* Addresses styling not present in S5, Chrome
|
152
|
+
*/
|
153
|
+
|
154
|
+
dfn {
|
155
|
+
font-style: italic;
|
156
|
+
}
|
157
|
+
|
158
|
+
/*
|
159
|
+
* Addresses styling not present in IE6/7/8/9
|
160
|
+
*/
|
161
|
+
|
162
|
+
mark {
|
163
|
+
background: #ff0;
|
164
|
+
color: #000;
|
165
|
+
}
|
166
|
+
|
167
|
+
/*
|
168
|
+
* Corrects font family set oddly in IE6, S4/5, Chrome
|
169
|
+
* en.wikipedia.org/wiki/User:Davidgothberg/Test59
|
170
|
+
*/
|
171
|
+
|
172
|
+
pre,
|
173
|
+
code,
|
174
|
+
kbd,
|
175
|
+
samp {
|
176
|
+
font-family: monospace, serif;
|
177
|
+
_font-family: 'courier new', monospace;
|
178
|
+
font-size: 1em;
|
179
|
+
}
|
180
|
+
|
181
|
+
/*
|
182
|
+
* Improves readability of pre-formatted text in all browsers
|
183
|
+
*/
|
184
|
+
|
185
|
+
pre {
|
186
|
+
white-space: pre;
|
187
|
+
white-space: pre-wrap;
|
188
|
+
word-wrap: break-word;
|
189
|
+
}
|
190
|
+
|
191
|
+
/*
|
192
|
+
* 1. Addresses CSS quotes not supported in IE6/7
|
193
|
+
* 2. Addresses quote property not supported in S4
|
194
|
+
*/
|
195
|
+
|
196
|
+
/* 1 */
|
197
|
+
|
198
|
+
q {
|
199
|
+
quotes: none;
|
200
|
+
}
|
201
|
+
|
202
|
+
/* 2 */
|
203
|
+
|
204
|
+
q:before,
|
205
|
+
q:after {
|
206
|
+
content: '';
|
207
|
+
content: none;
|
208
|
+
}
|
209
|
+
|
210
|
+
small {
|
211
|
+
font-size: 75%;
|
212
|
+
}
|
213
|
+
|
214
|
+
/*
|
215
|
+
* Prevents sub and sup affecting line-height in all browsers
|
216
|
+
* gist.github.com/413930
|
217
|
+
*/
|
218
|
+
|
219
|
+
sub,
|
220
|
+
sup {
|
221
|
+
font-size: 75%;
|
222
|
+
line-height: 0;
|
223
|
+
position: relative;
|
224
|
+
vertical-align: baseline;
|
225
|
+
}
|
226
|
+
|
227
|
+
sup {
|
228
|
+
top: -0.5em;
|
229
|
+
}
|
230
|
+
|
231
|
+
sub {
|
232
|
+
bottom: -0.25em;
|
233
|
+
}
|
234
|
+
|
235
|
+
|
236
|
+
/* =============================================================================
|
237
|
+
Lists
|
238
|
+
========================================================================== */
|
239
|
+
|
240
|
+
ul,
|
241
|
+
ol {
|
242
|
+
margin-left: 0;
|
243
|
+
padding: 0 0 0 40px;
|
244
|
+
}
|
245
|
+
|
246
|
+
dd {
|
247
|
+
margin: 0 0 0 40px;
|
248
|
+
}
|
249
|
+
|
250
|
+
nav ul,
|
251
|
+
nav ol {
|
252
|
+
list-style: none;
|
253
|
+
list-style-image: none;
|
254
|
+
}
|
255
|
+
|
256
|
+
|
257
|
+
/* =============================================================================
|
258
|
+
Embedded content
|
259
|
+
========================================================================== */
|
260
|
+
|
261
|
+
/*
|
262
|
+
* 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
|
263
|
+
* 2. Improves image quality when scaled in IE7
|
264
|
+
* code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
|
265
|
+
*/
|
266
|
+
|
267
|
+
img {
|
268
|
+
border: 0; /* 1 */
|
269
|
+
-ms-interpolation-mode: bicubic; /* 2 */
|
270
|
+
}
|
271
|
+
|
272
|
+
/*
|
273
|
+
* Corrects overflow displayed oddly in IE9
|
274
|
+
*/
|
275
|
+
|
276
|
+
svg:not(:root) {
|
277
|
+
overflow: hidden;
|
278
|
+
}
|
279
|
+
|
280
|
+
|
281
|
+
/* =============================================================================
|
282
|
+
Figures
|
283
|
+
========================================================================== */
|
284
|
+
|
285
|
+
/*
|
286
|
+
* Addresses margin not present in IE6/7/8/9, S5, O11
|
287
|
+
*/
|
288
|
+
|
289
|
+
figure {
|
290
|
+
margin: 0;
|
291
|
+
}
|
292
|
+
|
293
|
+
|
294
|
+
/* =============================================================================
|
295
|
+
Forms
|
296
|
+
========================================================================== */
|
297
|
+
|
298
|
+
/*
|
299
|
+
* Corrects margin displayed oddly in IE6/7
|
300
|
+
*/
|
301
|
+
|
302
|
+
form {
|
303
|
+
margin: 0;
|
304
|
+
}
|
305
|
+
|
306
|
+
/*
|
307
|
+
* Define consistent border, margin, and padding
|
308
|
+
*/
|
309
|
+
|
310
|
+
fieldset {
|
311
|
+
border: 1px solid #c0c0c0;
|
312
|
+
margin: 0 2px;
|
313
|
+
padding: 0.35em 0.625em 0.75em;
|
314
|
+
}
|
315
|
+
|
316
|
+
/*
|
317
|
+
* 1. Corrects color not being inherited in IE6/7/8/9
|
318
|
+
* 2. Corrects alignment displayed oddly in IE6/7
|
319
|
+
*/
|
320
|
+
|
321
|
+
legend {
|
322
|
+
border: 0; /* 1 */
|
323
|
+
*margin-left: -7px; /* 2 */
|
324
|
+
}
|
325
|
+
|
326
|
+
/*
|
327
|
+
* 1. Corrects font size not being inherited in all browsers
|
328
|
+
* 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
|
329
|
+
* 3. Improves appearance and consistency in all browsers
|
330
|
+
*/
|
331
|
+
|
332
|
+
button,
|
333
|
+
input,
|
334
|
+
select,
|
335
|
+
textarea {
|
336
|
+
font-size: 100%; /* 1 */
|
337
|
+
margin: 0; /* 2 */
|
338
|
+
vertical-align: baseline; /* 3 */
|
339
|
+
*vertical-align: middle; /* 3 */
|
340
|
+
}
|
341
|
+
|
342
|
+
/*
|
343
|
+
* Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
|
344
|
+
*/
|
345
|
+
|
346
|
+
button,
|
347
|
+
input {
|
348
|
+
line-height: normal; /* 1 */
|
349
|
+
}
|
350
|
+
|
351
|
+
/*
|
352
|
+
* 1. Improves usability and consistency of cursor style between image-type 'input' and others
|
353
|
+
* 2. Corrects inability to style clickable 'input' types in iOS
|
354
|
+
* 3. Removes inner spacing in IE7 without affecting normal text inputs
|
355
|
+
* Known issue: inner spacing remains in IE6
|
356
|
+
*/
|
357
|
+
|
358
|
+
button,
|
359
|
+
input[type="button"],
|
360
|
+
input[type="reset"],
|
361
|
+
input[type="submit"] {
|
362
|
+
cursor: pointer; /* 1 */
|
363
|
+
-webkit-appearance: button; /* 2 */
|
364
|
+
*overflow: visible; /* 3 */
|
365
|
+
}
|
366
|
+
|
367
|
+
/*
|
368
|
+
* 1. Addresses box sizing set to content-box in IE8/9
|
369
|
+
* 2. Removes excess padding in IE8/9
|
370
|
+
*/
|
371
|
+
|
372
|
+
input[type="checkbox"],
|
373
|
+
input[type="radio"] {
|
374
|
+
box-sizing: border-box; /* 1 */
|
375
|
+
padding: 0; /* 2 */
|
376
|
+
}
|
377
|
+
|
378
|
+
/*
|
379
|
+
* 1. Addresses appearance set to searchfield in S5, Chrome
|
380
|
+
* 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
|
381
|
+
*/
|
382
|
+
|
383
|
+
input[type="search"] {
|
384
|
+
-webkit-appearance: textfield; /* 1 */
|
385
|
+
-moz-box-sizing: content-box;
|
386
|
+
-webkit-box-sizing: content-box; /* 2 */
|
387
|
+
box-sizing: content-box;
|
388
|
+
}
|
389
|
+
|
390
|
+
/*
|
391
|
+
* Removes inner padding that is displayed in S5, Chrome on OS X
|
392
|
+
*/
|
393
|
+
|
394
|
+
input[type="search"]::-webkit-search-decoration {
|
395
|
+
-webkit-appearance: none;
|
396
|
+
}
|
397
|
+
|
398
|
+
/*
|
399
|
+
* Removes inner padding and border in FF3+
|
400
|
+
* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
|
401
|
+
*/
|
402
|
+
|
403
|
+
button::-moz-focus-inner,
|
404
|
+
input::-moz-focus-inner {
|
405
|
+
border: 0;
|
406
|
+
padding: 0;
|
407
|
+
}
|
408
|
+
|
409
|
+
/*
|
410
|
+
* 1. Removes default vertical scrollbar in IE6/7/8/9
|
411
|
+
* 2. Improves readability and alignment in all browsers
|
412
|
+
*/
|
413
|
+
|
414
|
+
textarea {
|
415
|
+
overflow: auto; /* 1 */
|
416
|
+
vertical-align: top; /* 2 */
|
417
|
+
}
|
418
|
+
|
419
|
+
|
420
|
+
/* =============================================================================
|
421
|
+
Tables
|
422
|
+
========================================================================== */
|
423
|
+
|
424
|
+
/*
|
425
|
+
* Remove most spacing between table cells
|
426
|
+
*/
|
427
|
+
|
428
|
+
table {
|
429
|
+
border-collapse: collapse;
|
430
|
+
border-spacing: 0;
|
431
|
+
}
|
metadata
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: editor_base
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.1
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Daniel X. Moore
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2012-09-05 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: middleman
|
17
|
+
prerelease: false
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - "="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 3.0.1
|
24
|
+
type: :development
|
25
|
+
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: backbone-source
|
28
|
+
prerelease: false
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: "0"
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: coffee-filter
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: "0"
|
46
|
+
type: :runtime
|
47
|
+
version_requirements: *id003
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: cornerstone-source
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: "0"
|
57
|
+
type: :runtime
|
58
|
+
version_requirements: *id004
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: haml_coffee_assets
|
61
|
+
prerelease: false
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: "0"
|
68
|
+
type: :runtime
|
69
|
+
version_requirements: *id005
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: jquery-source
|
72
|
+
prerelease: false
|
73
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: "0"
|
79
|
+
type: :runtime
|
80
|
+
version_requirements: *id006
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: underscore-source
|
83
|
+
prerelease: false
|
84
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: "0"
|
90
|
+
type: :runtime
|
91
|
+
version_requirements: *id007
|
92
|
+
description: Base components for Pixie Editors
|
93
|
+
email:
|
94
|
+
- yahivin@gmail.com
|
95
|
+
executables: []
|
96
|
+
|
97
|
+
extensions: []
|
98
|
+
|
99
|
+
extra_rdoc_files: []
|
100
|
+
|
101
|
+
files:
|
102
|
+
- .gitignore
|
103
|
+
- Gemfile
|
104
|
+
- Gemfile.lock
|
105
|
+
- LICENSE
|
106
|
+
- README.md
|
107
|
+
- Rakefile
|
108
|
+
- config.rb
|
109
|
+
- editor_base.gemspec
|
110
|
+
- lib/editor_base.rb
|
111
|
+
- lib/editor_base/version.rb
|
112
|
+
- source/images/background.png
|
113
|
+
- source/images/middleman.png
|
114
|
+
- source/index.html.erb
|
115
|
+
- source/javascripts/all.js
|
116
|
+
- source/layouts/layout.erb
|
117
|
+
- source/stylesheets/all.css
|
118
|
+
- source/stylesheets/normalize.css
|
119
|
+
homepage: ""
|
120
|
+
licenses: []
|
121
|
+
|
122
|
+
post_install_message:
|
123
|
+
rdoc_options: []
|
124
|
+
|
125
|
+
require_paths:
|
126
|
+
- lib
|
127
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: "0"
|
133
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
|
+
none: false
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: "0"
|
139
|
+
requirements: []
|
140
|
+
|
141
|
+
rubyforge_project:
|
142
|
+
rubygems_version: 1.8.17
|
143
|
+
signing_key:
|
144
|
+
specification_version: 3
|
145
|
+
summary: Base components for Pixie Editors
|
146
|
+
test_files: []
|
147
|
+
|