maglove 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +6 -0
  3. data/Gemfile +3 -0
  4. data/Gemfile.lock +137 -0
  5. data/README.md +26 -0
  6. data/bin/maglove +21 -0
  7. data/data/maglove/scaffold/base/base.coffee +1 -0
  8. data/data/maglove/scaffold/base/base.less +26 -0
  9. data/data/maglove/scaffold/base/images/base/loading-bars.svg +17 -0
  10. data/data/maglove/scaffold/base/less/base/animations.less +301 -0
  11. data/data/maglove/scaffold/base/less/base/blockquotes.less +23 -0
  12. data/data/maglove/scaffold/base/less/base/buttons.less +76 -0
  13. data/data/maglove/scaffold/base/less/base/code.less +19 -0
  14. data/data/maglove/scaffold/base/less/base/forms.less +115 -0
  15. data/data/maglove/scaffold/base/less/base/global.less +142 -0
  16. data/data/maglove/scaffold/base/less/base/grid-minimal.less +146 -0
  17. data/data/maglove/scaffold/base/less/base/grid-non-responsive.less +63 -0
  18. data/data/maglove/scaffold/base/less/base/grid.less +267 -0
  19. data/data/maglove/scaffold/base/less/base/helpers.less +146 -0
  20. data/data/maglove/scaffold/base/less/base/images.less +8 -0
  21. data/data/maglove/scaffold/base/less/base/lists.less +23 -0
  22. data/data/maglove/scaffold/base/less/base/mixins.less +107 -0
  23. data/data/maglove/scaffold/base/less/base/print.less +35 -0
  24. data/data/maglove/scaffold/base/less/base/resets.less +27 -0
  25. data/data/maglove/scaffold/base/less/base/tables.less +29 -0
  26. data/data/maglove/scaffold/base/less/core/alignments.less +17 -0
  27. data/data/maglove/scaffold/base/less/core/cleanup.less +8 -0
  28. data/data/maglove/scaffold/base/less/core/editor.less +23 -0
  29. data/data/maglove/scaffold/base/less/core/typography.less +74 -0
  30. data/data/maglove/scaffold/base/less/vendor/flex-video.less +22 -0
  31. data/data/maglove/scaffold/base/less/vendor/font-awesome/animated.less +34 -0
  32. data/data/maglove/scaffold/base/less/vendor/font-awesome/bordered-pulled.less +16 -0
  33. data/data/maglove/scaffold/base/less/vendor/font-awesome/core.less +13 -0
  34. data/data/maglove/scaffold/base/less/vendor/font-awesome/fixed-width.less +6 -0
  35. data/data/maglove/scaffold/base/less/vendor/font-awesome/font-awesome.less +17 -0
  36. data/data/maglove/scaffold/base/less/vendor/font-awesome/icons.less +596 -0
  37. data/data/maglove/scaffold/base/less/vendor/font-awesome/larger.less +13 -0
  38. data/data/maglove/scaffold/base/less/vendor/font-awesome/list.less +19 -0
  39. data/data/maglove/scaffold/base/less/vendor/font-awesome/mixins.less +27 -0
  40. data/data/maglove/scaffold/base/less/vendor/font-awesome/rotated-flipped.less +20 -0
  41. data/data/maglove/scaffold/base/less/vendor/font-awesome/stacked.less +20 -0
  42. data/data/maglove/scaffold/base/less/vendor/font-awesome/variables.less +606 -0
  43. data/data/maglove/scaffold/base/less/vendor/font-awesome.less +16 -0
  44. data/data/maglove/scaffold/base/less/vendor/image-loader.less +15 -0
  45. data/data/maglove/scaffold/base/less/vendor/magnific-popup.less +363 -0
  46. data/data/maglove/scaffold/base/less/widgets/banner.less +3 -0
  47. data/data/maglove/scaffold/base/less/widgets/button.less +26 -0
  48. data/data/maglove/scaffold/base/less/widgets/callout.less +3 -0
  49. data/data/maglove/scaffold/base/less/widgets/columns.less +25 -0
  50. data/data/maglove/scaffold/base/less/widgets/container.less +114 -0
  51. data/data/maglove/scaffold/base/less/widgets/feedback.less +11 -0
  52. data/data/maglove/scaffold/base/less/widgets/heading.less +8 -0
  53. data/data/maglove/scaffold/base/less/widgets/horizontal_rule.less +113 -0
  54. data/data/maglove/scaffold/base/less/widgets/image.less +85 -0
  55. data/data/maglove/scaffold/base/less/widgets/paragraph.less +3 -0
  56. data/data/maglove/scaffold/base/variables.less +75 -0
  57. data/data/maglove/scaffold/base/vendor/jquery.js +4 -0
  58. data/data/maglove/scaffold/theme/images/logo.png +0 -0
  59. data/data/maglove/scaffold/theme/images/pattern/symphony.png +0 -0
  60. data/data/maglove/scaffold/theme/less/base/variables.less +25 -0
  61. data/data/maglove/scaffold/theme/templates/article-01.haml +41 -0
  62. data/data/maglove/scaffold/theme/templates/cover.haml +27 -0
  63. data/data/maglove/scaffold/theme/templates/toc.haml +34 -0
  64. data/data/maglove/scaffold/theme/templates/toc.yml +12 -0
  65. data/data/maglove/scaffold/theme/theme.coffee +1 -0
  66. data/data/maglove/scaffold/theme/theme.less +4 -0
  67. data/data/maglove/sdk.coffee +22 -0
  68. data/data/maglove/sdk.haml +18 -0
  69. data/data/maglove/sdk.less +60 -0
  70. data/data/maglove/thumbnail.haml +11 -0
  71. data/data/maglove/thumbnail.js +160 -0
  72. data/data/maglove/vendor.js +4 -0
  73. data/lib/ext/commander/command.rb +32 -0
  74. data/lib/ext/commander/methods.rb +8 -0
  75. data/lib/maglove/application.rb +46 -0
  76. data/lib/maglove/asset/base_theme.rb +17 -0
  77. data/lib/maglove/asset/theme.rb +83 -0
  78. data/lib/maglove/command/compile.rb +40 -0
  79. data/lib/maglove/command/compress.rb +36 -0
  80. data/lib/maglove/command/copy.rb +35 -0
  81. data/lib/maglove/command/core.rb +23 -0
  82. data/lib/maglove/command/font.rb +80 -0
  83. data/lib/maglove/command/server.rb +16 -0
  84. data/lib/maglove/command/sync.rb +17 -0
  85. data/lib/maglove/command/theme.rb +132 -0
  86. data/lib/maglove/command/util.rb +45 -0
  87. data/lib/maglove/helper/asset_helper.rb +24 -0
  88. data/lib/maglove/helper/command_helper.rb +67 -0
  89. data/lib/maglove/helper/log_helper.rb +42 -0
  90. data/lib/maglove/helper/theme_helper.rb +101 -0
  91. data/lib/maglove/phantom_script.rb +45 -0
  92. data/lib/maglove/server.rb +80 -0
  93. data/lib/maglove/template/tumblr.rb +81 -0
  94. data/lib/maglove/tilt/coffee_template.rb +47 -0
  95. data/lib/maglove/tilt/haml_template.rb +20 -0
  96. data/lib/maglove/tilt/js_template.rb +38 -0
  97. data/lib/maglove/tilt/less_template.rb +18 -0
  98. data/lib/maglove/tilt/twig_template.rb +49 -0
  99. data/lib/maglove/tilt/yaml_template.rb +19 -0
  100. data/lib/maglove/version.rb +3 -0
  101. data/lib/maglove.rb +46 -0
  102. data/maglove.gemspec +39 -0
  103. metadata +427 -0
@@ -0,0 +1,74 @@
1
+ body {
2
+ background-color: @background-color-base;
3
+ font-family: @font-family-base;
4
+ font-size: @font-size-base;
5
+ font-weight: @font-weight-base;
6
+ color: @font-color-base;
7
+ }
8
+
9
+ h1, h2, h3, h4, h5 {
10
+ word-break: break-word;
11
+ }
12
+
13
+ // Tablet Landscape (xl)
14
+ @media (min-width : 1280px) {
15
+ h1 { font-size: floor(@font-size-base * @font-size-h1-ratio * @font-size-xl-ratio); line-height: floor(@font-size-base * @font-size-h1-ratio * @font-size-xl-ratio); }
16
+ h2 { font-size: floor(@font-size-base * @font-size-h2-ratio * @font-size-xl-ratio); line-height: floor(@font-size-base * @font-size-h2-ratio * @font-size-xl-ratio); }
17
+ h3 { font-size: floor(@font-size-base * @font-size-h3-ratio * @font-size-xl-ratio); line-height: floor(@font-size-base * @font-size-h3-ratio * @font-size-xl-ratio); }
18
+ h4 { font-size: floor(@font-size-base * @font-size-h4-ratio * @font-size-xl-ratio); line-height: floor(@font-size-base * @font-size-h4-ratio * @font-size-xl-ratio); }
19
+ h5 { font-size: floor(@font-size-base * @font-size-h5-ratio * @font-size-xl-ratio); line-height: floor(@font-size-base * @font-size-h5-ratio * @font-size-xl-ratio); }
20
+ }
21
+
22
+ // Tablet Landscape (lg)
23
+ @media (min-width: 1000px) and (max-width: 1279px) {
24
+ h1 { font-size: floor(@font-size-base * @font-size-h1-ratio * @font-size-lg-ratio); line-height: floor(@font-size-base * @font-size-h1-ratio * @font-size-lg-ratio); }
25
+ h2 { font-size: floor(@font-size-base * @font-size-h2-ratio * @font-size-lg-ratio); line-height: floor(@font-size-base * @font-size-h2-ratio * @font-size-lg-ratio); }
26
+ h3 { font-size: floor(@font-size-base * @font-size-h3-ratio * @font-size-lg-ratio); line-height: floor(@font-size-base * @font-size-h3-ratio * @font-size-lg-ratio); }
27
+ h4 { font-size: floor(@font-size-base * @font-size-h4-ratio * @font-size-lg-ratio); line-height: floor(@font-size-base * @font-size-h4-ratio * @font-size-lg-ratio); }
28
+ h5 { font-size: floor(@font-size-base * @font-size-h5-ratio * @font-size-lg-ratio); line-height: floor(@font-size-base * @font-size-h5-ratio * @font-size-lg-ratio); }
29
+ }
30
+
31
+ // Tablet Portrait (md)
32
+ @media (min-width: 768px) and (max-width: 999px) {
33
+ h1 { font-size: floor(@font-size-base * @font-size-h1-ratio * @font-size-md-ratio); line-height: floor(@font-size-base * @font-size-h1-ratio * @font-size-md-ratio); }
34
+ h2 { font-size: floor(@font-size-base * @font-size-h2-ratio * @font-size-md-ratio); line-height: floor(@font-size-base * @font-size-h2-ratio * @font-size-md-ratio); }
35
+ h3 { font-size: floor(@font-size-base * @font-size-h3-ratio * @font-size-md-ratio); line-height: floor(@font-size-base * @font-size-h3-ratio * @font-size-md-ratio); }
36
+ h4 { font-size: floor(@font-size-base * @font-size-h4-ratio * @font-size-md-ratio); line-height: floor(@font-size-base * @font-size-h4-ratio * @font-size-md-ratio); }
37
+ h5 { font-size: floor(@font-size-base * @font-size-h5-ratio * @font-size-md-ratio); line-height: floor(@font-size-base * @font-size-h5-ratio * @font-size-md-ratio); }
38
+ }
39
+
40
+ // Phone Landscape (sm)
41
+ @media (min-width: 480px) and (max-width: 767px) {
42
+ h1 { font-size: floor(@font-size-base * @font-size-h1-ratio * @font-size-sm-ratio); line-height: floor(@font-size-base * @font-size-h1-ratio * @font-size-sm-ratio); }
43
+ h2 { font-size: floor(@font-size-base * @font-size-h2-ratio * @font-size-sm-ratio); line-height: floor(@font-size-base * @font-size-h2-ratio * @font-size-sm-ratio); }
44
+ h3 { font-size: floor(@font-size-base * @font-size-h3-ratio * @font-size-sm-ratio); line-height: floor(@font-size-base * @font-size-h3-ratio * @font-size-sm-ratio); }
45
+ h4 { font-size: floor(@font-size-base * @font-size-h4-ratio * @font-size-sm-ratio); line-height: floor(@font-size-base * @font-size-h4-ratio * @font-size-sm-ratio); }
46
+ h5 { font-size: floor(@font-size-base * @font-size-h5-ratio * @font-size-sm-ratio); line-height: floor(@font-size-base * @font-size-h5-ratio * @font-size-sm-ratio); }
47
+ }
48
+
49
+ // Phone Portrait (xs)
50
+ @media (max-width: 479px) {
51
+ h1 { font-size: floor(@font-size-base * @font-size-h1-ratio * @font-size-xs-ratio); line-height: floor(@font-size-base * @font-size-h1-ratio * @font-size-xs-ratio); }
52
+ h2 { font-size: floor(@font-size-base * @font-size-h2-ratio * @font-size-xs-ratio); line-height: floor(@font-size-base * @font-size-h2-ratio * @font-size-xs-ratio); }
53
+ h3 { font-size: floor(@font-size-base * @font-size-h3-ratio * @font-size-xs-ratio); line-height: floor(@font-size-base * @font-size-h3-ratio * @font-size-xs-ratio); }
54
+ h4 { font-size: floor(@font-size-base * @font-size-h4-ratio * @font-size-xs-ratio); line-height: floor(@font-size-base * @font-size-h4-ratio * @font-size-xs-ratio); }
55
+ h5 { font-size: floor(@font-size-base * @font-size-h5-ratio * @font-size-xs-ratio); line-height: floor(@font-size-base * @font-size-h5-ratio * @font-size-xs-ratio); }
56
+ }
57
+
58
+ // Legacy font sizes
59
+
60
+ .size-sm {
61
+ font-size: @font-size-base * 80 / 100;
62
+ }
63
+
64
+ .size-md {
65
+ font-size: @font-size-base;
66
+ }
67
+
68
+ .size-lg {
69
+ font-size: @font-size-base * 125 / 100;
70
+ }
71
+
72
+ .size-xl {
73
+ font-size: @font-size-base * 150 / 100;
74
+ }
@@ -0,0 +1,22 @@
1
+ .flex-video {
2
+ position: relative;
3
+ padding-top: 0px;
4
+ padding-bottom: 56.25%;
5
+ height: 0;
6
+ margin-bottom: 16px;
7
+ overflow: hidden;
8
+
9
+ iframe, object, embed {
10
+ position: absolute;
11
+ top: 0;
12
+ left: 0;
13
+ width: 100%;
14
+ min-height: 100%;
15
+ }
16
+ }
17
+
18
+ @media (max-device-width: 800px), (device-width: 1024px) and (device-height: 600px), (width: 1280px) and (orientation: landscape), (device-width: 800px), (max-width: 767px) {
19
+ .flex-video {
20
+ padding-top: 0;
21
+ }
22
+ }
@@ -0,0 +1,34 @@
1
+ // Animated Icons
2
+ // --------------------------
3
+
4
+ .@{fa-css-prefix}-spin {
5
+ -webkit-animation: fa-spin 2s infinite linear;
6
+ animation: fa-spin 2s infinite linear;
7
+ }
8
+
9
+ .@{fa-css-prefix}-pulse {
10
+ -webkit-animation: fa-spin 1s infinite steps(8);
11
+ animation: fa-spin 1s infinite steps(8);
12
+ }
13
+
14
+ @-webkit-keyframes fa-spin {
15
+ 0% {
16
+ -webkit-transform: rotate(0deg);
17
+ transform: rotate(0deg);
18
+ }
19
+ 100% {
20
+ -webkit-transform: rotate(359deg);
21
+ transform: rotate(359deg);
22
+ }
23
+ }
24
+
25
+ @keyframes fa-spin {
26
+ 0% {
27
+ -webkit-transform: rotate(0deg);
28
+ transform: rotate(0deg);
29
+ }
30
+ 100% {
31
+ -webkit-transform: rotate(359deg);
32
+ transform: rotate(359deg);
33
+ }
34
+ }
@@ -0,0 +1,16 @@
1
+ // Bordered & Pulled
2
+ // -------------------------
3
+
4
+ .@{fa-css-prefix}-border {
5
+ padding: .2em .25em .15em;
6
+ border: solid .08em @fa-border-color;
7
+ border-radius: .1em;
8
+ }
9
+
10
+ .pull-right { float: right; }
11
+ .pull-left { float: left; }
12
+
13
+ .@{fa-css-prefix} {
14
+ &.pull-left { margin-right: .3em; }
15
+ &.pull-right { margin-left: .3em; }
16
+ }
@@ -0,0 +1,13 @@
1
+ // Base Class Definition
2
+ // -------------------------
3
+
4
+ .@{fa-css-prefix} {
5
+ display: inline-block;
6
+ font: normal normal normal @fa-font-size-base/1 FontAwesome; // shortening font declaration
7
+ font-size: inherit; // can't have font-size inherit on line above, so need to override
8
+ text-rendering: auto; // optimizelegibility throws things off #1094
9
+ -webkit-font-smoothing: antialiased;
10
+ -moz-osx-font-smoothing: grayscale;
11
+ transform: translate(0, 0); // ensures no half-pixel rendering in firefox
12
+
13
+ }
@@ -0,0 +1,6 @@
1
+ // Fixed Width Icons
2
+ // -------------------------
3
+ .@{fa-css-prefix}-fw {
4
+ width: (18em / 14);
5
+ text-align: center;
6
+ }
@@ -0,0 +1,17 @@
1
+ /*!
2
+ * Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome
3
+ * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
4
+ */
5
+
6
+ @import "variables.less";
7
+ @import "mixins.less";
8
+ @import "path.less";
9
+ @import "core.less";
10
+ @import "larger.less";
11
+ @import "fixed-width.less";
12
+ @import "list.less";
13
+ @import "bordered-pulled.less";
14
+ @import "animated.less";
15
+ @import "rotated-flipped.less";
16
+ @import "stacked.less";
17
+ @import "icons.less";