Skip to content

Commit

Permalink
Change arrow to triangle
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Brumm committed Nov 19, 2014
1 parent 0dd8bcd commit 574abf6
Show file tree
Hide file tree
Showing 12 changed files with 121 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.log
node_modules
.sass-cache
bower_components
21 changes: 16 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
{
"name": "juice",
"description": "Mixins for Life",
"description": "SASS Mixins for Life",
"version": "0.0.1",
"homepage": "http://juicynex.us/juice",
"main": "dist/juice.scss",
"authors": "Kyle Brumm <kjbrum@msn.com>",
"dependencies": {},
"devDependencies": {},
"keywords": [
"CSS",
"SASS",
"SCSS",
"mixins",
"styling",
"helper"
],
"main": [
"dist/juice.scss"
],
"authors": [
"Kyle Brumm <https://twitter.com/kyle_brumm>"
],
"license": "MIT",
"ignore": [
"*.*",
"bower_components",
"build",
"img",
"js",
Expand Down
Empty file added build/css/colors.css
Empty file.
1 change: 1 addition & 0 deletions build/css/fonts.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions build/css/style.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/juice.scss
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,10 @@ $breakpoints: (
}
}

// Create an arrow using borders (add in the option to make a border)
// Create an triangle using borders (add in the option to make a border)
// http://cssarrowplease.com/
// ------------------------------------------------------------------
@mixin arrow($direction: "right", $size: "0.5rem", $color: "black", $center: false, $element: "after") {
@mixin triangle($direction: "right", $size: "0.5rem", $color: "black", $center: false, $element: "after") {
&:#{$element} {
position: if($center,'',absolute);
content: '';
Expand Down
19 changes: 16 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ var paths = {
scripts: 'js/**/*.js',
styles: 'sass/**/*.scss',
fonts: 'sass/fonts/*',
images: 'img/**/*.{png,jpg,jpeg,gif}'
images: 'img/**/*.{png,jpg,jpeg,gif}',
bowerDir: './bower_components'
};

var destPaths = {
Expand All @@ -46,7 +47,14 @@ var handleErrors = function() {
gulp.task('styles', function() {
return gulp.src(paths.styles)
.pipe(plumber())
.pipe(sass({sourcemap: true, sourcemapPath: paths.styles}))
.pipe(sass({
sourcemap: true,
sourcemapPath: paths.styles,
loadPath: [
paths.bowerDir + '/bootstrap-sass-official/assets/stylesheets',
paths.bowerDir + '/fontawesome/scss',
]
}))
.pipe(autoprefixer())
.pipe(gulp.dest(destPaths.styles))
.pipe(notify('Styles task complete!'));
Expand All @@ -56,7 +64,12 @@ gulp.task('styles', function() {
gulp.task('build-styles', function() {
return gulp.src(paths.styles)
.pipe(plumber())
.pipe(sass())
.pipe(sass({
loadPath: [
paths.bowerDir + '/bootstrap-sass-official/assets/stylesheets',
paths.bowerDir + '/fontawesome/scss',
]
}))
.pipe(autoprefixer({
cascade: false
}))
Expand Down
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@

</head>
<body>
<h1>Juice.scss: Mixins for Life</h1>
<div class="container">
<div class="hero row">
<h1>Juice.scss<h1>
<h3>Mixins for Life</h3>
</div>
</div>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="build/js/main.min.js"></script>
Expand Down
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
"name": "Gulp-Project-Starter-Setup",
"version": "1.0.0",
"description": "Starter setup for using Gulp in a project.",
"name": "juice",
"description": "SASS Mixins for Life",
"version": "0.0.1",
"homepage": "http://juicynex.us/juice",
"license": "MIT",
"author": {
"name": "Kyle Brumm",
"email": "kjbrum@msn.com",
"url": "http://kylebrumm.com"
},
"repository": {
"type": "git",
"url": "git@github.com:kjbrum/Gulp-Project-Starter-Setup.git"
"url": "git@github.com:kjbrum/juice.git"
},
"bugs": {
"url": "https://github.com/kjbrum/juice/issues"
},
"devDependencies": {
"browser-sync": "^1.3.3",
Expand Down
8 changes: 8 additions & 0 deletions sass/colors.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Custom Colors
// --------------------------------------------------
$white: #ffffff !default;
$black: #000000 !default;
$dark-blue: #222232 !default;
$light-blue: lighten($dark-blue, 5%) !default;
$purple: #B96CFF !default;
$teal: #56D7C6 !default;
5 changes: 5 additions & 0 deletions sass/fonts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import url(http://fonts.googleapis.com/css?family=Droid+Sans:400,700|Raleway:300,700|Open+Sans+Condensed:300,700);

$ds: "Droid Sans", Helvetica, Arial, sans-serif !default;
$raleway: "Raleway", Helvetica, Arial, sans-serif !default;
$open-sans: "Open Sans Condensed", Helvetica, Arial, sans-serif !default;
55 changes: 54 additions & 1 deletion sass/style.scss
Original file line number Diff line number Diff line change
@@ -1 +1,54 @@
@import "dist/juice"
// Juice
@import "dist/juice";

// Twitter Bootstrap
@import "bootstrap";

// Font Awesome
@import "font-awesome";

// Partials
@import "colors";
@import "fonts";

// Globals
*,
*:before,
*:after {
transition: 0.3s ease-out;
}

b, strong,
i, em,
span {
transition: 0 !important;
&:before,
&:after {
transition: 0 !important;
}
}

html,
html a {
-webkit-font-smoothing: antialiased;
text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
}

html {
background: $dark-blue;
min-width: 20rem;
}

body {
background: transparent;
}

a {
@include hoverer(color, $purple, $teal);
}

.hero {
text-align: center;
color: $teal;
@extend %centerer;
}

0 comments on commit 574abf6

Please sign in to comment.