Skip to content

Commit

Permalink
Changes css files to scss files and adds the npm rename module.
Browse files Browse the repository at this point in the history
  • Loading branch information
elimc committed Nov 3, 2015
1 parent df35cf5 commit 49d3e3a
Show file tree
Hide file tree
Showing 23 changed files with 1,394 additions and 30 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

A lightweight, non-opinionated, WordPress theme with a modern build system.

Most Recent: **Version 2.0.2 (Oct 21, 2015)** – See [Changelog](./github_docs/CHANGELOG.md)
Most Recent: **Version 2.1.0 (Nov 1, 2015)** – See [Changelog](./github_docs/CHANGELOG.md)

##### Why jumpstart?
There are some excellent WordPress themes out there. Unfortunately, after years of building WordPress websites, you realize that none of them appear to be moving fast enough. There should be a theme that provides everything a WordPress developer needs to rapidly start a website and deliver it to completion in the least amount of time possible.
Expand Down
2 changes: 1 addition & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<footer>
<nav>
<?php wp_nav_menu( array( 'theme_location' => 'footer_menu' ) ); ?>
<?php //wp_nav_menu( array( 'theme_location' => 'footer_menu' ) ); ?>
</nav><!-- nav -->

This is the footer content.
Expand Down
6 changes: 3 additions & 3 deletions front-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
get_header(); ?>

<main id="front-page" role="main">

<?php

while ( have_posts() ) { the_post();
get_template_part( './parts/content', 'page' );
// get_template_part( './parts/content', 'page' );
} // end of the loop.

?>

</main><!-- #main -->

<?php
get_sidebar();
//get_sidebar();
get_footer();
6 changes: 6 additions & 0 deletions github_docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
**Changelog**
=============
### Version 2.1.0 (Nov 1, 2015)
* Includes rename NPM module for SCSS useage.
* CSS files now SCSS, for better IDE compatibility.
* Adds Lost Grid example.
* Fixes some Lost Grid issues that occured via the Gulp pipeline.

### 2.0.2 (Oct 21, 2015)
* Updates csswring to eliminate deprecation errors.
* Updates gulp image to show speed increase of jumpstart 2.0.
Expand Down
12 changes: 7 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ var gulp = require('gulp'),
lost = require('lost');
csswring = require('csswring');
mqpacker = require('css-mqpacker');
rename = require('gulp-rename');
browserSync = require('browser-sync').create(),
reload = browserSync.reload;

// Define paths.
var paths = {
sassWatch : ['./lib/css/**/*.css', './lib/style.css'],
sassSource : './lib/style.css',
sassWatch : ['./lib/scss/**/*.scss', './lib/style.scss'],
sassSource : './lib/style.scss',
sassDestination : './',
vendorWatch : ['./lib/js/vendor/*.js', './lib/js/vendor/**/*.js'],
jsWatch : ['./lib/js/dependencies/*.js', './lib/js/custom/*.js'],
Expand Down Expand Up @@ -68,19 +69,20 @@ function styles() {

// Set our PostCSS vars.
var processors = [
precss,
precss({ 'import': { extension: 'scss' }}),
lost,
autoprefixer({
browsers: ['last 2 versions', 'ie 9', 'android 2.3', 'android 4'],
cascade: false
}),
mqpacker,
csswring
mqpacker
// csswring
];

return gulp.src(paths.sassSource)
.pipe(sourcemaps.init())
.pipe(postcss(processors))
.pipe(rename('./style.css'))
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest(paths.sassDestination))
.pipe(browserSync.stream());
Expand Down
116 changes: 109 additions & 7 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<![endif]-->
<nav class="pushy pushy-left">
<?php wp_nav_menu( array( 'theme_location' => 'header_menu' ) ); ?>
</nav><!-- nav -->
</nav>

<!-- Site Overlay -->
<div class="site-overlay"></div>
Expand All @@ -24,9 +24,111 @@
<!-- Menu Button -->
<div class="menu-btn">&#9776; Menu</div>

<header>
<div>
<h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h2><?php bloginfo( 'description' ); ?></h2>
</div>
</header><!-- header -->
<header>
<div>
<h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h2><?php bloginfo( 'description' ); ?></h2>
</div>
</header>

<!-- Responsive Blocks -->
Responsive Blocks
<section>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
</section>

<!-- Offset -->
Offset
<section>
<div>1</div>
<div>2</div>
</section>

<!-- Nesting -->
Nesting
<section>
<div>a</div>
<div>a</div>
<div>
<div>b</div>
<div>b</div>
</div>
</section>

<!-- Alignment -->
Alignment
<section>
<div>1</div>
</section>

<!-- Cycle -->
Cycle
<section>
<div>
1 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorem rem nam dolore repellendus provident, voluptas necessitatibus vel cupiditate delectus, doloremque incidunt accusantium quia! Nisi molestiae totam natus, in assumenda accusantium.
</div>
<div>
2 - Lorem ipsum dolor sit amet.
</div>
<div>
3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. At sunt harum ut rerum id quae voluptas velit iusto quasi distinctio.
</div>
<div>
4 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Similique, sequi?
</div>
<div>
5 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Maxime nisi deserunt, dolorem accusamus sint ipsam dolor quae ab animi assumenda architecto placeat possimus fugit doloribus vel, corporis amet aliquam maiores!
</div>
<div>
6 - Lorem ipsum dolor sit amet, consectetur adipisicing elit.
</div>
</section>

<!-- Vertical Grid -->
Vertical Grid
<section>
<div>1</div>
<div>2</div>
<div>3</div>
</section>

<!-- Waffle Grid -->
Waffle Grid
<section>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
<div>10</div>
<div>11</div>
<div>12</div>
<div>13</div>
<div>14</div>
<div>15</div>
</section>

<!-- Varying Sizes -->
Varying Sizes
<section>
<div>1</div>
<div>2</div>
</section>

<!-- Source Ordering -->
Source Ordering
<section>
<div>1</div>
<div>2</div>
</section>


File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
176 changes: 176 additions & 0 deletions lib/scss/vendors/_lost.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
$block: 30px;

html {
font-weight: bold;
color: white;
padding: $block;
height: auto;
}

body {
font-family: sans-serif;
}

header {
text-align: center;
margin: $block 0 calc($block * 2);
}


section {
lost-center: 1140px;
margin-top: $block;
margin-bottom: $block;
color: white;

div {
height: 100px;
line-height: 100px;
text-align: center;
margin-top: calc($block / 2);
margin-bottom: calc($block / 2);

div {
margin-top: 0;
margin-bottom: 0;
}
}

&:last-of-type {
margin-bottom: 0;
}

/*Responsive Blocks*/
&:nth-of-type(1) {
background: #42CAFD;

div {
lost-column: 1/1;
background: color(#42CAFD shade(10%));

@media (min-width: 500px) {
lost-column: 1/2;
}
@media (min-width: 800px) {
lost-column: 1/3;
}
@media (min-width: 1100px) {
lost-column: 1/4;
}
}
}

/*Offset*/
&:nth-of-type(2) {
background: #66B3BA;
div {
lost-column: 1/3;
background: color(#66B3BA shade(10%));
&:first-child {
lost-offset: 1/3;
}
}
}

/*Nesting*/
&:nth-of-type(3) {
background: #8EB19D;
div {
lost-column: 1/3;
background: color(#8EB19D shade(10%));
div {
lost-column: 1/2;
background: color(#8EB19D shade(20%));
}
}
}

/*Alignment*/
&:nth-of-type(4) {
lost-align: center;
background: #F0D2D1;
height: 300px;
div {
lost-column: 1/3;
background: color(#F0D2D1 shade(10%));
margin-top: 0;
margin-bottom: 0;
}
}

/*Cycle*/
&:nth-of-type(5) {
background: #F19A3E;
div {
lost-column: 1/1;
height: auto;
line-height: 25px;
font-weight: normal;
padding: ($block / 2);
background: color(#F19A3E shade(10%));
@media (min-width: 500px) {
lost-column: 2/4 2;
}
@media (min-width: 800px) {
lost-column: 2/6 3;
}
@media (min-width: 1100px) {
lost-column: 2/8 4;
}
}
}

/*Vertical Grid*/
&:nth-of-type(6) {
background: dodgerblue;
div {
lost-row: 1/3;
margin-top: 0;
background: color(dodgerblue shade(10%));
padding: $block;
}
}

/*Waffle Grid*/
&:nth-of-type(7) {
background: tomato;
div {
lost-waffle: 1/3;
margin-top: 0;
background: color(tomato shade(10%));
line-height: inherit;
padding: $block;
}
}

/*Varying Sizes*/
&:nth-of-type(8) {
background: springgreen;
div {
background: color(springgreen shade(10%));
&:first-child {
lost-column: 1/3;
}
&:last-child {
lost-column: 2/3;
}
}
}

/*Source Ordering*/
&:nth-of-type(9) {
background: cadetblue;
div {
background: color(cadetblue shade(10%));
lost-column: 1/2;
@media (min-width: 800px) {
&:first-child {
lost-move: 1/2;
}
&:last-child {
lost-move: -1/2;
}
}
}
}
}
Loading

0 comments on commit 49d3e3a

Please sign in to comment.