wordpress-starter 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. data/CHANGELOG.md +1 -0
  2. data/LICENSE +20 -0
  3. data/README.md +34 -0
  4. data/lib/wordpress-starter.rb +29 -0
  5. data/stylesheets/_wordpress.scss +9 -0
  6. data/stylesheets/wordpress/_base.scss +74 -0
  7. data/stylesheets/wordpress/_defaults.scss +28 -0
  8. data/stylesheets/wordpress/_layout.scss +56 -0
  9. data/stylesheets/wordpress/_mixins.scss +57 -0
  10. data/stylesheets/wordpress/_page.scss +364 -0
  11. data/stylesheets/wordpress/_responsive.scss +231 -0
  12. data/stylesheets/wordpress/_theme.scss +83 -0
  13. data/stylesheets/wordpress/_typography.scss +135 -0
  14. data/stylesheets/wordpress/_utils.scss +64 -0
  15. data/templates/project/ie.scss +1 -0
  16. data/templates/project/manifest.rb +21 -0
  17. data/templates/project/print.css +4 -0
  18. data/templates/project/print.scss +104 -0
  19. data/templates/project/readme.txt +1 -0
  20. data/templates/project/screen.scss +1 -0
  21. data/templates/project/style.css +13 -0
  22. data/templates/starter/404.php +24 -0
  23. data/templates/starter/admin/README.txt +25 -0
  24. data/templates/starter/admin/assets/css/admin-style.css +838 -0
  25. data/templates/starter/admin/assets/css/colorpicker.css +177 -0
  26. data/templates/starter/admin/assets/images/1col.png +0 -0
  27. data/templates/starter/admin/assets/images/2-col-portfolio.png +0 -0
  28. data/templates/starter/admin/assets/images/2cl.png +0 -0
  29. data/templates/starter/admin/assets/images/2cr.png +0 -0
  30. data/templates/starter/admin/assets/images/3-col-portfolio.png +0 -0
  31. data/templates/starter/admin/assets/images/3cm.png +0 -0
  32. data/templates/starter/admin/assets/images/3cr.png +0 -0
  33. data/templates/starter/admin/assets/images/4-col-portfolio.png +0 -0
  34. data/templates/starter/admin/assets/images/accept.png +0 -0
  35. data/templates/starter/admin/assets/images/button_check.png +0 -0
  36. data/templates/starter/admin/assets/images/colorpicker/blank.gif +0 -0
  37. data/templates/starter/admin/assets/images/colorpicker/colorpicker_background.png +0 -0
  38. data/templates/starter/admin/assets/images/colorpicker/colorpicker_hex.png +0 -0
  39. data/templates/starter/admin/assets/images/colorpicker/colorpicker_hsb_b.png +0 -0
  40. data/templates/starter/admin/assets/images/colorpicker/colorpicker_hsb_h.png +0 -0
  41. data/templates/starter/admin/assets/images/colorpicker/colorpicker_hsb_s.png +0 -0
  42. data/templates/starter/admin/assets/images/colorpicker/colorpicker_indic.gif +0 -0
  43. data/templates/starter/admin/assets/images/colorpicker/colorpicker_overlay.png +0 -0
  44. data/templates/starter/admin/assets/images/colorpicker/colorpicker_rgb_b.png +0 -0
  45. data/templates/starter/admin/assets/images/colorpicker/colorpicker_rgb_g.png +0 -0
  46. data/templates/starter/admin/assets/images/colorpicker/colorpicker_rgb_r.png +0 -0
  47. data/templates/starter/admin/assets/images/colorpicker/colorpicker_select.gif +0 -0
  48. data/templates/starter/admin/assets/images/colorpicker/colorpicker_submit.png +0 -0
  49. data/templates/starter/admin/assets/images/colorpicker/select.png +0 -0
  50. data/templates/starter/admin/assets/images/dropdown-arrow.png +0 -0
  51. data/templates/starter/admin/assets/images/favicon.ico +0 -0
  52. data/templates/starter/admin/assets/images/icon-add.png +0 -0
  53. data/templates/starter/admin/assets/images/icon-backup.png +0 -0
  54. data/templates/starter/admin/assets/images/icon-delete.png +0 -0
  55. data/templates/starter/admin/assets/images/icon-docs.png +0 -0
  56. data/templates/starter/admin/assets/images/icon-edit.png +0 -0
  57. data/templates/starter/admin/assets/images/icon-home.png +0 -0
  58. data/templates/starter/admin/assets/images/icon-info.png +0 -0
  59. data/templates/starter/admin/assets/images/icon-notice.png +0 -0
  60. data/templates/starter/admin/assets/images/icon-paint.png +0 -0
  61. data/templates/starter/admin/assets/images/icon-settings.png +0 -0
  62. data/templates/starter/admin/assets/images/icon-slider.png +0 -0
  63. data/templates/starter/admin/assets/images/icon-warn.png +0 -0
  64. data/templates/starter/admin/assets/images/icon_option.png +0 -0
  65. data/templates/starter/admin/assets/images/loading-bottom.gif +0 -0
  66. data/templates/starter/admin/assets/images/select.png +0 -0
  67. data/templates/starter/admin/assets/images/sign_warning.png +0 -0
  68. data/templates/starter/admin/assets/images/stop.png +0 -0
  69. data/templates/starter/admin/assets/images/toggle_tabs.png +0 -0
  70. data/templates/starter/admin/assets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  71. data/templates/starter/admin/assets/images/warning.png +0 -0
  72. data/templates/starter/admin/assets/images/wrench.png +0 -0
  73. data/templates/starter/admin/assets/images/wrench16.png +0 -0
  74. data/templates/starter/admin/assets/js/ajaxupload.js +606 -0
  75. data/templates/starter/admin/assets/js/colorpicker.js +455 -0
  76. data/templates/starter/admin/assets/js/cookie.js +1 -0
  77. data/templates/starter/admin/assets/js/jquery.maskedinput-1.2.2.js +252 -0
  78. data/templates/starter/admin/assets/js/jquery.tipsy.js +241 -0
  79. data/templates/starter/admin/assets/js/of-medialibrary-uploader.js +168 -0
  80. data/templates/starter/admin/assets/js/smof.js +623 -0
  81. data/templates/starter/admin/classes/class.options-machine.php +627 -0
  82. data/templates/starter/admin/front-end/options.php +77 -0
  83. data/templates/starter/admin/functions/functions.admin.php +76 -0
  84. data/templates/starter/admin/functions/functions.interface.php +232 -0
  85. data/templates/starter/admin/functions/functions.load.php +14 -0
  86. data/templates/starter/admin/functions/functions.mediauploader.php +194 -0
  87. data/templates/starter/admin/functions/functions.options.php +507 -0
  88. data/templates/starter/admin/functions/functions.php +0 -0
  89. data/templates/starter/admin/index.php +86 -0
  90. data/templates/starter/admin/layouts/default.css +0 -0
  91. data/templates/starter/admin/layouts/placebo.css +0 -0
  92. data/templates/starter/app.js +97 -0
  93. data/templates/starter/archive.php +57 -0
  94. data/templates/starter/category.php +40 -0
  95. data/templates/starter/comments.php +65 -0
  96. data/templates/starter/content-aside.php +26 -0
  97. data/templates/starter/content-image.php +29 -0
  98. data/templates/starter/content-link.php +27 -0
  99. data/templates/starter/content-none.php +21 -0
  100. data/templates/starter/content-page.php +24 -0
  101. data/templates/starter/content-quote.php +26 -0
  102. data/templates/starter/content-status.php +33 -0
  103. data/templates/starter/content.php +67 -0
  104. data/templates/starter/editor-style.scss +359 -0
  105. data/templates/starter/footer.php +29 -0
  106. data/templates/starter/functions.php +1211 -0
  107. data/templates/starter/header.php +63 -0
  108. data/templates/starter/ie.scss +1 -0
  109. data/templates/starter/images/bg/bg0.png +0 -0
  110. data/templates/starter/images/bg/bg1.png +0 -0
  111. data/templates/starter/images/bg/bg10.png +0 -0
  112. data/templates/starter/images/bg/bg11.png +0 -0
  113. data/templates/starter/images/bg/bg2.png +0 -0
  114. data/templates/starter/images/bg/bg3.png +0 -0
  115. data/templates/starter/images/bg/bg4.png +0 -0
  116. data/templates/starter/images/bg/bg5.png +0 -0
  117. data/templates/starter/images/bg/bg6.jpg +0 -0
  118. data/templates/starter/images/bg/bg7.jpg +0 -0
  119. data/templates/starter/images/bg/bg8.png +0 -0
  120. data/templates/starter/images/bg/bg9.png +0 -0
  121. data/templates/starter/index.php +19 -0
  122. data/templates/starter/loop.php +30 -0
  123. data/templates/starter/manifest.rb +149 -0
  124. data/templates/starter/moderninzr.min.js +4 -0
  125. data/templates/starter/options.php +407 -0
  126. data/templates/starter/page.php +29 -0
  127. data/templates/starter/print.scss +104 -0
  128. data/templates/starter/readme.txt +1 -0
  129. data/templates/starter/screen.scss +1 -0
  130. data/templates/starter/search.php +31 -0
  131. data/templates/starter/search.png +0 -0
  132. data/templates/starter/searchform.php +14 -0
  133. data/templates/starter/sidebar.php +15 -0
  134. data/templates/starter/single.php +31 -0
  135. data/templates/starter/style.css +13 -0
  136. data/templates/starter/tag.php +41 -0
  137. metadata +230 -0
@@ -0,0 +1,231 @@
1
+ @media (max-width: 960px) {
2
+ .nav-menu {
3
+ position: fixed;
4
+ float: none;
5
+ margin: 0;
6
+ padding: 0;
7
+ top: 0;
8
+ left: 0;
9
+ width: 100%;
10
+ a.mobile_handle {
11
+ display: block;
12
+ padding: 10px;
13
+ font-size: $fs-h5;
14
+ background: rgba($brand-color-dark, .6);
15
+ text-align: center;
16
+ letter-spacing: .03em;
17
+ text-transform: uppercase;
18
+ font-weight: 600;
19
+ color: $function-color-light;
20
+ }
21
+ ul {
22
+ display: none;
23
+ margin-bottom: 0;
24
+ li {
25
+ display: block;
26
+ position: relative;
27
+ float: none;
28
+ padding: 0;
29
+ background: $function-color;
30
+ border-top: 1px solid $function-color-darker;
31
+ }
32
+ a {
33
+ display: block;
34
+ position: relative;
35
+ float: none;
36
+ padding: 15px 10px;
37
+ clear: both;
38
+ }
39
+ ul {
40
+ display: none;
41
+ position: relative;
42
+ width: 100%;
43
+ top: 0;
44
+ left: 0;
45
+ margin: 0;
46
+ padding: 0;
47
+ background: none;
48
+ border-bottom: 2px solid $function-color-darker;
49
+ a {
50
+ color: $alert-color;
51
+ padding: 15px 10px 15px 25px;
52
+ }
53
+ ul {
54
+ top: 0;
55
+ left: 0;
56
+ a {
57
+ padding: 15px 10px 15px 45px;
58
+ }
59
+ }
60
+ }
61
+ }
62
+ .sub_nav {
63
+ position: absolute;
64
+ right: 0;
65
+ top: 0;
66
+ width: 10%;
67
+ padding: 15px 20px;
68
+ margin: 0;
69
+ cursor: pointer;
70
+ }
71
+ .arrow_up {
72
+ float: right;
73
+ width: 0;
74
+ height: 0;
75
+ padding: 0;
76
+ border-left: 10px solid transparent;
77
+ border-right: 10px solid transparent;
78
+ border-bottom: 10px solid $alert-color-darker;
79
+ }
80
+ .arrow_down {
81
+ float: right;
82
+ width: 0;
83
+ height: 0;
84
+ padding: 0;
85
+ border-left: 10px solid transparent;
86
+ border-right: 10px solid transparent;
87
+ border-top: 10px solid $alert-color-darker;
88
+ }
89
+ }
90
+ }
91
+
92
+ @include at-breakpoint($break) {
93
+ .nav-menu {
94
+ a.mobile_handle {
95
+ display: none;
96
+ }
97
+ a {
98
+ color: $alert-color-darker;
99
+ &:hover {
100
+ color: $alert-color;
101
+ text-decoration: underline;
102
+ }
103
+ }
104
+ ul {
105
+ display: block;
106
+ ul {
107
+ margin-left: $grid-padding;
108
+ ul {
109
+ margin-left: $grid-padding;
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
115
+
116
+ /**
117
+ * Responsive WordPress Core Theme Styles
118
+ * http://jeffsebring.com/responsive-wordpress-images/
119
+ --------------------------------------------------- */
120
+
121
+ img {
122
+ max-width: 100%;
123
+ height: auto;
124
+ &[class*="align"], &[class*="wp-image-"] {
125
+ max-width: 100%;
126
+ height: auto;
127
+ }
128
+ &.wp-smiley {
129
+ border: none;
130
+ margin-bottom: 0;
131
+ margin-top: 0;
132
+ padding: 0;
133
+ }
134
+ &.alignright {
135
+ margin-left: 1em 0 1em 1em;
136
+ }
137
+ &.alignleft {
138
+ margin: 1em 1em 1em 0;
139
+ }
140
+ &.aligncenter {
141
+ display: block;
142
+ margin: 1em auto;
143
+ }
144
+ &#wpstats {
145
+ display: block;
146
+ margin: 0 auto;
147
+ }
148
+ &[class*="align"], &[class*="wp-image-"] {
149
+ border: none;
150
+ }
151
+ }
152
+
153
+ .gallery .gallery-icon img {
154
+ border: none;
155
+ }
156
+
157
+ .wp-caption {
158
+ margin-bottom: 1em;
159
+ margin-left: 0;
160
+ max-width: 96%;
161
+ text-align: center;
162
+ img {
163
+ display: block;
164
+ margin: 0 auto;
165
+ }
166
+ }
167
+
168
+ .wp-caption-text {
169
+ position: relative;
170
+ font-size: .8em;
171
+ }
172
+
173
+ .gallery {
174
+ margin: 0 auto;
175
+ .gallery-item {
176
+ margin: 0;
177
+ float: left;
178
+ text-align: center;
179
+ width: 33%;
180
+ }
181
+ a img {
182
+ border: none;
183
+ }
184
+ }
185
+
186
+ .gallery-columns-4 .gallery-item {
187
+ width: 25%;
188
+ img {
189
+ width: 100%;
190
+ height: auto;
191
+ }
192
+ }
193
+
194
+ // 16/9 embed
195
+ .entry-content-asset {
196
+ @include responsive-embed(16/9);
197
+ }
198
+
199
+ @media only screen and (max-width: 800px) {
200
+ embed, object {
201
+ max-width: 100%;
202
+ }
203
+ }
204
+
205
+ @media only screen and (max-width: 650px) {
206
+ // 4/3 embed
207
+ .entry-content-asset {
208
+ @include responsive-embed(4/3);
209
+ }
210
+ .gallery-columns-3 .gallery-item {
211
+ width: 33.33%;
212
+ img {
213
+ width: 100%;
214
+ height: auto;
215
+ }
216
+ }
217
+ }
218
+
219
+ @media only screen and (max-width: 480px) {
220
+ // default 1 ratio for a square embed
221
+ .entry-content-asset {
222
+ @include responsive-embed;
223
+ }
224
+ .gallery-columns-2 .gallery-item {
225
+ width: 50%;
226
+ img {
227
+ width: 100%;
228
+ height: auto;
229
+ }
230
+ }
231
+ }
@@ -0,0 +1,83 @@
1
+ html, body {
2
+ background-color: rgba( tint($brand-color-lighter, 90%), .5);
3
+ color: $function-color-darker;
4
+ }
5
+
6
+ a {
7
+ color: $alert-color-darker;
8
+ text-decoration: none;
9
+ &:hover {
10
+ color: $alert-color-light;
11
+ text-decoration: underline;
12
+ }
13
+ }
14
+
15
+ :-moz-placeholder {
16
+ color: $function-color;
17
+ font-weight: 200;
18
+ }
19
+
20
+ ::-webkit-input-placeholder {
21
+ color: $function-color;
22
+ font-weight: 200;
23
+ line-height: 14px;
24
+ }
25
+
26
+ ::-webkit-search-decoration, ::-webkit-search-cancel-button {
27
+ -webkit-appearance: none;
28
+ }
29
+
30
+ .header h1 {
31
+ text-align: center;
32
+ a {
33
+ @extend .heading-font;
34
+ @include adjust-font-size-to(70px);
35
+ @include rhythm(2, 4, 2, 4);
36
+ font-weight: 900;
37
+ @include text-shadow(1px, 1px, 1px, $white);
38
+ color: $brand-color;
39
+ &:hover {
40
+ color: $brand-color-lighter;
41
+ text-decoration: none;
42
+ }
43
+ }
44
+ }
45
+
46
+ .header h2 {
47
+ color: $brand-color-dark;
48
+ @include adjust-font-size-to(32px);
49
+ @include rhythm(1, 0, 1, 0);
50
+ @include text-shadow(1px, 1px, 1px, $white);
51
+ }
52
+
53
+ .content {
54
+ @extend .clearfix;
55
+ background: $white;
56
+ border: 1px solid rgba(tint($function-color-darker, 1%), .2);
57
+ @extend .round-corners;
58
+ @include box-shadow(darken($brand-color-darker, 30%), 0, 2px, 15px);
59
+ .nav-menu {
60
+ li {
61
+ a {
62
+ color: $alert-color;
63
+ .active {
64
+ color: $alert-color-dark;
65
+ }
66
+ }
67
+ }
68
+ }
69
+ @include background-clip(padding-box);
70
+ }
71
+
72
+ .footer {
73
+ @include adjust-font-size-to(12px);
74
+ color: $brand-color-darker;
75
+ a {
76
+ color: desaturate(darken($brand-color-darker, 60), 28);
77
+ text-decoration: underline;
78
+ &:hover {
79
+ color: desaturate(darken($brand-color-darker, 10), 28);
80
+ text-decoration: none;
81
+ }
82
+ }
83
+ }
@@ -0,0 +1,135 @@
1
+ .sans-font {
2
+ font-family: $sans-serif;
3
+ }
4
+
5
+ .serif-font {
6
+ font-family: $serif;
7
+ }
8
+
9
+ .fixed-font {
10
+ font-family: $monospace;
11
+ }
12
+
13
+ .heading-font {
14
+ @extend .sans-font;
15
+ font-style: normal;
16
+ font-weight: 400;
17
+ }
18
+
19
+ strong {
20
+ font-weight: 600;
21
+ }
22
+
23
+ em {
24
+ font-style: italic;
25
+ }
26
+
27
+ // Establish Vertical rhythm.
28
+ @include establish-baseline;
29
+
30
+ html {
31
+ // Override the default line height to allow for smaller baseline increments.
32
+ @include adjust-leading-to(2);
33
+ }
34
+
35
+ body {
36
+ @extend .sans-font;
37
+ }
38
+
39
+ p {
40
+ @include adjust-font-size-to(18px);
41
+ &:first-child {
42
+ @include leader;
43
+ }
44
+ @include trailer;
45
+ }
46
+
47
+ #{headings(1, 6)} {
48
+ @extend .heading-font;
49
+ @include rhythm(0, 0, 1, 0);
50
+ }
51
+
52
+ h6 {
53
+ @include adjust-font-size-to($fs-h6);
54
+ letter-spacing: .03em;
55
+ text-transform: uppercase;
56
+ }
57
+
58
+ h5 {
59
+ @include adjust-font-size-to($fs-h5);
60
+ }
61
+
62
+ h4, .author-description h2, h2.comments-title, .entry-header h2, h3#reply-title {
63
+ @include adjust-font-size-to($fs-h4);
64
+ }
65
+
66
+ h3 {
67
+ @include adjust-font-size-to($fs-h3);
68
+ }
69
+
70
+ h2 {
71
+ @include adjust-font-size-to($fs-h2);
72
+ }
73
+
74
+ .entry-title {
75
+ @include adjust-font-size-to($fs-h1);
76
+ }
77
+
78
+ h1.archive-title {
79
+ @include adjust-font-size-to($fs-h1);
80
+ font-weight: 400;
81
+ }
82
+
83
+ dl, ul, ol {
84
+ @include trailer;
85
+ }
86
+
87
+ blockquote {
88
+ @include apply-side-rhythm-border(left, 2px, 1);
89
+ quotes: "\201C""\201D""\2018""\2019";
90
+ &:before {
91
+ color: $function-color-dark;
92
+ content: open-quote;
93
+ @include adjust-font-size-to($fs-h1);
94
+ }
95
+ p {
96
+ display: inline;
97
+ cite {
98
+ @include adjust-font-size-to(13px);
99
+ }
100
+ }
101
+ }
102
+
103
+ .nav-menu {
104
+ li {
105
+ a {
106
+ @include adjust-font-size-to(18px);
107
+ }
108
+ }
109
+ }
110
+
111
+ .secondary {
112
+ .widget-container {
113
+ h3 {
114
+ @include adjust-font-size-to(24px);
115
+ @include leader;
116
+ }
117
+ h4 {
118
+ @include adjust-font-size-to(22px);
119
+ }
120
+ a {
121
+ @include adjust-font-size-to(16px);
122
+ }
123
+ @include trailer(2);
124
+ }
125
+ }
126
+
127
+ .main {
128
+ ul {
129
+ list-style: inside disc;
130
+ }
131
+ }
132
+
133
+ ol {
134
+ list-style: inside decimal;
135
+ }