thesis 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +103 -68
- data/app/assets/javascripts/thesis.js +1 -0
- data/app/assets/javascripts/thesis/thesis.coffee +250 -0
- data/app/assets/javascripts/thesis/utilities.coffee +13 -0
- data/app/assets/stylesheets/thesis.sass +4 -0
- data/app/assets/stylesheets/thesis/_mixins/_barber-pole.sass +5 -0
- data/app/assets/stylesheets/thesis/_mixins/editor.sass +15 -0
- data/app/assets/stylesheets/thesis/_thesis.sass +207 -0
- data/app/assets/stylesheets/thesis/base/_base.sass +5 -0
- data/app/assets/stylesheets/thesis/base/_colors.sass +6 -0
- data/app/assets/stylesheets/thesis/base/_fonts.sass +6 -0
- data/app/assets/stylesheets/thesis/base/_forms.scss +165 -0
- data/app/assets/stylesheets/thesis/base/_keyframes.sass +205 -0
- data/app/assets/stylesheets/thesis/base/bourbon/_bourbon-deprecated-upcoming.scss +8 -0
- data/app/assets/stylesheets/thesis/base/bourbon/_bourbon.scss +79 -0
- data/app/assets/stylesheets/thesis/base/bourbon/addons/_button.scss +374 -0
- data/app/assets/stylesheets/thesis/base/bourbon/addons/_clearfix.scss +23 -0
- data/app/assets/stylesheets/thesis/base/bourbon/addons/_directional-values.scss +111 -0
- data/app/assets/stylesheets/thesis/base/bourbon/addons/_ellipsis.scss +7 -0
- data/app/assets/stylesheets/thesis/base/bourbon/addons/_font-family.scss +5 -0
- data/app/assets/stylesheets/thesis/base/bourbon/addons/_hide-text.scss +10 -0
- data/app/assets/stylesheets/thesis/base/bourbon/addons/_html5-input-types.scss +86 -0
- data/app/assets/stylesheets/thesis/base/bourbon/addons/_position.scss +32 -0
- data/app/assets/stylesheets/thesis/base/bourbon/addons/_prefixer.scss +45 -0
- data/app/assets/stylesheets/thesis/base/bourbon/addons/_retina-image.scss +31 -0
- data/app/assets/stylesheets/thesis/base/bourbon/addons/_size.scss +16 -0
- data/app/assets/stylesheets/thesis/base/bourbon/addons/_timing-functions.scss +32 -0
- data/app/assets/stylesheets/thesis/base/bourbon/addons/_triangle.scss +83 -0
- data/app/assets/stylesheets/thesis/base/bourbon/addons/_word-wrap.scss +8 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_animation.scss +52 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_appearance.scss +3 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_backface-visibility.scss +6 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_background-image.scss +42 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_background.scss +55 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_border-image.scss +59 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_border-radius.scss +22 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_box-sizing.scss +4 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_calc.scss +4 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_columns.scss +47 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_filter.scss +5 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_flex-box.scss +321 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_font-face.scss +23 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_font-feature-settings.scss +10 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_hidpi-media-query.scss +10 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_hyphens.scss +4 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_image-rendering.scss +14 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_keyframes.scss +35 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_linear-gradient.scss +38 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_perspective.scss +8 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_placeholder.scss +8 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_radial-gradient.scss +39 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_transform.scss +15 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_transition.scss +77 -0
- data/app/assets/stylesheets/thesis/base/bourbon/css3/_user-select.scss +3 -0
- data/app/assets/stylesheets/thesis/base/bourbon/functions/_assign.scss +11 -0
- data/app/assets/stylesheets/thesis/base/bourbon/functions/_color-lightness.scss +13 -0
- data/app/assets/stylesheets/thesis/base/bourbon/functions/_flex-grid.scss +39 -0
- data/app/assets/stylesheets/thesis/base/bourbon/functions/_golden-ratio.scss +3 -0
- data/app/assets/stylesheets/thesis/base/bourbon/functions/_grid-width.scss +13 -0
- data/app/assets/stylesheets/thesis/base/bourbon/functions/_modular-scale.scss +66 -0
- data/app/assets/stylesheets/thesis/base/bourbon/functions/_px-to-em.scss +13 -0
- data/app/assets/stylesheets/thesis/base/bourbon/functions/_px-to-rem.scss +15 -0
- data/app/assets/stylesheets/thesis/base/bourbon/functions/_strip-units.scss +5 -0
- data/app/assets/stylesheets/thesis/base/bourbon/functions/_tint-shade.scss +9 -0
- data/app/assets/stylesheets/thesis/base/bourbon/functions/_transition-property-name.scss +22 -0
- data/app/assets/stylesheets/thesis/base/bourbon/functions/_unpack.scss +17 -0
- data/app/assets/stylesheets/thesis/base/bourbon/helpers/_convert-units.scss +15 -0
- data/app/assets/stylesheets/thesis/base/bourbon/helpers/_gradient-positions-parser.scss +13 -0
- data/app/assets/stylesheets/thesis/base/bourbon/helpers/_is-num.scss +8 -0
- data/app/assets/stylesheets/thesis/base/bourbon/helpers/_linear-angle-parser.scss +25 -0
- data/app/assets/stylesheets/thesis/base/bourbon/helpers/_linear-gradient-parser.scss +41 -0
- data/app/assets/stylesheets/thesis/base/bourbon/helpers/_linear-positions-parser.scss +61 -0
- data/app/assets/stylesheets/thesis/base/bourbon/helpers/_linear-side-corner-parser.scss +31 -0
- data/app/assets/stylesheets/thesis/base/bourbon/helpers/_radial-arg-parser.scss +69 -0
- data/app/assets/stylesheets/thesis/base/bourbon/helpers/_radial-gradient-parser.scss +50 -0
- data/app/assets/stylesheets/thesis/base/bourbon/helpers/_radial-positions-parser.scss +18 -0
- data/app/assets/stylesheets/thesis/base/bourbon/helpers/_render-gradients.scss +26 -0
- data/app/assets/stylesheets/thesis/base/bourbon/helpers/_shape-size-stripper.scss +10 -0
- data/app/assets/stylesheets/thesis/base/bourbon/helpers/_str-to-num.scss +50 -0
- data/app/assets/stylesheets/thesis/base/bourbon/settings/_asset-pipeline.scss +1 -0
- data/app/assets/stylesheets/thesis/base/bourbon/settings/_prefixer.scss +6 -0
- data/app/assets/stylesheets/thesis/base/bourbon/settings/_px-to-em.scss +1 -0
- data/lib/generators/thesis/install/install_generator.rb +21 -13
- data/lib/thesis/controllers/controller_helpers.rb +11 -5
- data/lib/thesis/controllers/thesis_controller.rb +16 -13
- data/lib/thesis/models/page.rb +29 -22
- data/lib/thesis/models/page_content.rb +44 -29
- data/lib/thesis/routing/route_constraint.rb +8 -2
- data/lib/thesis/routing/routes.rb +2 -3
- data/lib/thesis/version.rb +1 -1
- data/spec/factories/pages.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- data/spec/{lib/thesis → thesis}/controllers/thesis_controller_spec.rb +15 -13
- data/spec/{lib/thesis → thesis}/models/page_content_spec.rb +4 -4
- data/spec/{lib/thesis → thesis}/models/page_spec.rb +0 -0
- data/spec/thesis/routing/thesis_routing_spec.rb +23 -0
- metadata +137 -56
- data/app/assets/javascripts/thesis/thesis.js.coffee +0 -157
- data/app/assets/stylesheets/thesis.css +0 -4
- data/app/assets/stylesheets/thesis/font-awesome/font-awesome.scss +0 -534
- data/app/assets/stylesheets/thesis/font/FontAwesome.otf +0 -0
- data/app/assets/stylesheets/thesis/font/fontawesome-webfont.eot +0 -0
- data/app/assets/stylesheets/thesis/font/fontawesome-webfont.svg +0 -284
- data/app/assets/stylesheets/thesis/font/fontawesome-webfont.ttf +0 -0
- data/app/assets/stylesheets/thesis/font/fontawesome-webfont.woff +0 -0
- data/app/assets/stylesheets/thesis/jquery-ui/images/animated-overlay.gif +0 -0
- data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_flat_30_cccccc_40x100.png +0 -0
- data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
- data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_glass_20_555555_1x400.png +0 -0
- data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_glass_40_0078a3_1x400.png +0 -0
- data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_glass_40_ffc73d_1x400.png +0 -0
- data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_gloss-wave_25_333333_500x100.png +0 -0
- data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
- data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_inset-soft_25_000000_1x100.png +0 -0
- data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_inset-soft_30_f58400_1x100.png +0 -0
- data/app/assets/stylesheets/thesis/jquery-ui/images/ui-icons_222222_256x240.png +0 -0
- data/app/assets/stylesheets/thesis/jquery-ui/images/ui-icons_4b8e0b_256x240.png +0 -0
- data/app/assets/stylesheets/thesis/jquery-ui/images/ui-icons_a83300_256x240.png +0 -0
- data/app/assets/stylesheets/thesis/jquery-ui/images/ui-icons_cccccc_256x240.png +0 -0
- data/app/assets/stylesheets/thesis/jquery-ui/images/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/stylesheets/thesis/jquery-ui/jquery-ui-1.10.2.custom.css +0 -1175
- data/app/assets/stylesheets/thesis/thesis.css.scss +0 -65
@@ -1,65 +0,0 @@
|
|
1
|
-
#thesis-editor {
|
2
|
-
display: block;
|
3
|
-
position:absolute;
|
4
|
-
right: 10px;
|
5
|
-
top: 10px;
|
6
|
-
width:54px;
|
7
|
-
z-index: 1040;
|
8
|
-
|
9
|
-
& #thesis-edit-page {
|
10
|
-
background-color:rgba(0, 0, 0, 0.6);
|
11
|
-
color:#ECECEC;
|
12
|
-
display:block;
|
13
|
-
font-size: 20px;
|
14
|
-
padding:10px;
|
15
|
-
line-height: 20px;
|
16
|
-
border-radius: 8px;
|
17
|
-
box-shadow: 0 0 10px #444;
|
18
|
-
-webkit-transition: 0.5s;
|
19
|
-
text-decoration: none;
|
20
|
-
width: 34px;
|
21
|
-
|
22
|
-
&:hover {
|
23
|
-
box-shadow: 0 0 20px #000;
|
24
|
-
-webkit-transition: 0.5s;
|
25
|
-
}
|
26
|
-
& i {
|
27
|
-
display: none;
|
28
|
-
}
|
29
|
-
& i:first-child {
|
30
|
-
display: block;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
}
|
35
|
-
|
36
|
-
body.thesis-editing {
|
37
|
-
& .thesis-content {
|
38
|
-
z-index: 1039;
|
39
|
-
box-shadow: 0 0 1px 1px rgba(150, 168, 236, 0.8);
|
40
|
-
}
|
41
|
-
& #thesis-editor {
|
42
|
-
& #thesis-edit-page {
|
43
|
-
& i {
|
44
|
-
display: block;
|
45
|
-
}
|
46
|
-
& i:first-child {
|
47
|
-
display: none;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
}
|
51
|
-
}
|
52
|
-
|
53
|
-
.fader {
|
54
|
-
top: 0px;
|
55
|
-
left: 0px;
|
56
|
-
width: 100%;
|
57
|
-
height: 100%;
|
58
|
-
position: fixed;
|
59
|
-
background-color: rgb(29, 49, 58);
|
60
|
-
opacity: 0.1;
|
61
|
-
cursor: crosshair;
|
62
|
-
z-index: 1038;
|
63
|
-
display: block;
|
64
|
-
pointer-events: none;
|
65
|
-
}
|