Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit 5ceaf9a

Browse files
authoredJan 23, 2019
Merge pull request #10 from HobbitCodes/master
Amends to the gulpfile & Removing duplicate files
2 parents 4f7a978 + ef0bc1a commit 5ceaf9a

File tree

11 files changed

+143
-11
lines changed

11 files changed

+143
-11
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/vendor/
2+
node_modules/*

‎assets/scss/components/_footer.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.site-footer {
2+
3+
}

‎assets/scss/components/_header.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.site-header {
2+
3+
}

‎assets/scss/elements/_elements.scss

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
h1, h2, h3, h4, a {
2+
margin: 0;
3+
}
4+
5+
a h1, h1 {
6+
font-size: 2.5rem;
7+
line-height: 2.91rem;
8+
text-decoration: none;
9+
}
10+
11+
a h2, h2 {
12+
font-size: 1.875rem;
13+
line-height: 2.29rem;
14+
margin-bottom: .4rem;
15+
text-decoration: none;
16+
}
17+
18+
a h3, h3 {
19+
font-size: 1.166rem;
20+
line-height: 1.458rem;
21+
text-decoration: none;
22+
}
23+
24+
a h4, h4 {
25+
font-size: 1rem;
26+
line-height: 1.25rem;
27+
text-decoration: none;
28+
}
29+
30+
a p, p {
31+
font-size: 1rem;
32+
line-height: 1.458rem;
33+
margin: 0;
34+
margin-bottom: 2.083rem;
35+
text-decoration: none;
36+
37+
&:last-of-type {
38+
margin-bottom: 0;
39+
}
40+
}
41+
42+
strong {
43+
font-size: 1rem;
44+
line-height: 1.458rem;
45+
text-decoration: none;
46+
}
47+
48+
a {
49+
transition: color .5s;
50+
51+
&:hover {
52+
53+
}
54+
}
55+
56+
img {
57+
height: auto;
58+
max-width: 100%;
59+
}
60+
61+
.content-section {
62+
ol,
63+
ul {
64+
padding-left: 1rem;
65+
66+
li {
67+
margin-bottom: 1.25rem;
68+
padding-left: $gutter-width;
69+
}
70+
}
71+
}

‎assets/scss/main.scss

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
$font-path: './assets/fonts' !default;
2+
$image-path: './images' !default;
3+
4+
@import 'settings/variables',
5+
'settings/typography';
6+
7+
@import 'tools/grid',
8+
'tools/mixins',
9+
'tools/utilities';
10+
11+
// Media queries go here
12+
@import 'tools/mediaqueries/grid-mediaqueries',
13+
'tools/mediaqueries/utilities-mediaqueries';

‎assets/scss/objects/_wrappers.scss

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.site-content-contain {
2+
margin-top: $header-height;
3+
position: relative;
4+
width: calc(100% - #{$header-height});
5+
}
6+
7+
.content-section {
8+
padding-left: 6.66rem;
9+
padding-right: 6.66rem;
10+
transition: padding .3s;
11+
}
12+
13+
section.content-section {
14+
padding-bottom: $section-margin;
15+
padding-top: $section-margin;
16+
17+
&--reduced-padding {
18+
padding-bottom: 3.33rem;
19+
padding-top: 3.33rem;
20+
}
21+
22+
&--border-bottom {
23+
border-bottom: 2px solid $stratos;
24+
}
25+
26+
&--no-padding {
27+
padding-top: 0;
28+
}
29+
}

‎classes/ACF/Blocks/Testimonials.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ public static function renderBlock($block): void
4444

4545
$vars['fields']['avatar'] = new \Timber\Image($vars['fields']['avatar']);
4646

47-
Timber::render( get_stylesheet_directory() . '/classes/ACF/Blocks/views/content-testimonials.twig', $vars );
47+
Timber::render( get_stylesheet_directory() . '/classes/ACF/Blocks/views/testimonials.twig', $vars );
4848
}
4949
}

‎classes/ACF/Blocks/views/content-testimonials.twig ‎classes/ACF/Blocks/views/testimonials.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
<p class="testimonial__content">{{ fields.testimonial }}</p>
1212
<span class="testimonial__author">{{ fields.author }}</span>
1313
</div>
14-
</section>
14+
</section>
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
/**
4+
* Class PageController
5+
*
6+
* Handles requests that go through the page.php file
7+
*/
8+
class PageController
9+
{
10+
11+
}

‎gulpfile.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ var gulp = require('gulp'),
1616
imagemin = require('gulp-imagemin'),
1717
paths = {
1818
input_scss: [
19-
'./wp-content/themes/erebus/assets/scss/style.scss',
20-
'./wp-content/themes/erebus/assets/scss/editor-style.scss'
19+
'./assets/scss/style.scss',
20+
'./assets/scss/editor-style.scss'
2121
]
2222
};
2323

@@ -34,7 +34,7 @@ gulp.task('scss', function () {
3434
}))
3535
.pipe(cleanCSS())
3636
.pipe(rename({
37-
dirname: './wp-content/themes/erebus/'
37+
dirname: './'
3838
}))
3939
.pipe(sourcemaps.write('./'))
4040
.pipe(gulp.dest('./'))
@@ -43,16 +43,16 @@ gulp.task('scss', function () {
4343
});
4444

4545
gulp.task('images', function () {
46-
gulp.src('./wp-content/themes/erebus/assets/images/*')
46+
gulp.src('./assets/images/*')
4747
.pipe(imagemin())
48-
.pipe(gulp.dest('./wp-content/themes/erebus/images/')
48+
.pipe(gulp.dest('./assets/images/')
4949
);
5050
});
5151

5252
gulp.task('js', function () {
5353
// set up the browserify instance on a task basis
5454
var b = browserify({
55-
entries: './wp-content/themes/erebus/assets/js/main.js',
55+
entries: './assets/js/main.js',
5656
debug: true
5757
});
5858

@@ -63,7 +63,7 @@ gulp.task('js', function () {
6363
// Add transformation tasks to the pipeline here.
6464
.pipe(uglify())
6565
.pipe(rename({
66-
dirname: './wp-content/themes/erebus/'
66+
dirname: './'
6767
}))
6868
.pipe(sourcemaps.write('./'))
6969
.pipe(gulp.dest('./'));
@@ -72,6 +72,6 @@ gulp.task('js', function () {
7272
//Watch task
7373
gulp.task('default', ['scss', 'js'], function () {
7474
livereload.listen();
75-
gulp.watch('./wp-content/themes/erebus/assets/scss/**/*.scss', ['scss']);
76-
gulp.watch('./wp-content/themes/erebus/assets/js/**/*.js', ['js']);
75+
gulp.watch('./assets/scss/**/*.scss', ['scss']);
76+
gulp.watch('./assets/js/**/*.js', ['js']);
7777
});

‎style.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
This repository has been archived.