Skip to content
This repository was archived by the owner on Mar 13, 2019. It is now read-only.

Commit 315c5cc

Browse files
author
Luke Harrison
committed
Merge branch 'develop' of https://github.com/WebDevLuke/OrionCSS
* 'develop' of https://github.com/WebDevLuke/OrionCSS: cleanup Fixed minor bug fix where colors were being incorrectly compressed Readme tweaks Removed stylelint Tweaked comment styling in gulpfile
2 parents 85378c5 + ac6f39e commit 315c5cc

7 files changed

Lines changed: 23 additions & 46317 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
/node_modules
1+
/node_modules
2+
/test/test.main.css

.stylelintrc

Lines changed: 0 additions & 25 deletions
This file was deleted.

01 - settings/_settings.colors.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ example "u-background-mycolor'.
99

1010
// Set colors
1111
$colors: (
12-
black: #000000,
13-
white: #ffffff,
14-
red: #f05d4a
12+
"black": #000000,
13+
"white": #ffffff
1514
);

02 - tools/_tools.color.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A function to return a specific color from the map in settings.colors
1212

1313
/*
1414
.myElement {
15-
border-color: color(red);
15+
border-color: color("red");
1616
}
1717
*/
1818

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<h1>
2-
<img height="84" width="429" src="https://cdn.rawgit.com/WebDevLuke/OrionCSS/master/misc/orion-logo.svg">
2+
<img height="67" width="429" src="https://cdn.rawgit.com/WebDevLuke/OrionCSS/master/misc/orion-logo.svg">
33
</h1>
44

55
OrionCSS is a SASS framework which is simple, easy to use and scalable. It provides you with a solid OOCSS foundation on which to build your project.
66

77
- **ITCSS Powered** - OrionCSS uses the popular OOCSS methodology [ITCSS](https://www.xfive.co/blog/itcss-scalable-maintainable-css-architecture) to organise its SASS and includes many useful object and utility classes out of the box.
88
- **Powerful Grid System** - OrionCSS includes a flexible and easy to use grid system which can be adapted for any size or scenario.
99
- **Easily Manage Breakpoints** - Manage your media query breakpoints in one file which then automatically filters into the rest of the framework.
10-
- **Usuable with Orion Framework** - Use as a dependency of the [Orion Framework](https://github.com/WebDevLuke/Orion-Framework) to access specifically built Gulp tasks to compile and optimise your SASS. [(More Info)](#using-with-orion-framework)
10+
- **Complimented by OrionBP** - Use with [OrionBP](https://github.com/WebDevLuke/Orion-Framework), a simple front-end boilerplate for projects using OrionCSS. It includes a suite of powerful Gulp tasks allowing you to compile, compress and concatenate your SASS, JS and image assets. [(More Info)](#using-with-orion-framework)
1111

1212
## Table of contents
1313

@@ -25,7 +25,7 @@ OrionCSS is a SASS framework which is simple, easy to use and scalable. It provi
2525

2626
## Getting Started
2727

28-
The best way to use OrionCSS is as part of the larger [Orion Framework](https://github.com/WebDevLuke/Orion-Framework). [(More Info)](#using-with-orion-framework)
28+
The best way to use OrionCSS is via [OrionBP](https://github.com/WebDevLuke/Orion-Framework), a simple front-end boilerplate designed to compliment this framework. [(More Info)](#using-with-orionbp)
2929

3030
You can also use OrionCSS on it's own as a part of your own framework. To install it as a depedency using NPM, run the following command:
3131

@@ -76,9 +76,9 @@ To give you a useful starting point for building your own components, a sample c
7676

7777
OrionCSS uses appropriate namespaces to link classes with their parent ITCSS layer. These are:
7878

79-
- `.o-`: Objects
80-
- `.c-`: Components
81-
- `.u-`: Utilities
79+
- `.o-` - Objects
80+
- `.c-` - Components
81+
- `.u-` - Utilities
8282

8383
It would be a good idea to follow this convention in your own code. Not only for consistency, but [because it's a good idea](https://csswizardry.com/2015/03/more-transparent-ui-code-with-namespaces/).
8484

@@ -159,7 +159,7 @@ Here we introduce breakpoint classes which have been automatically created by SA
159159
Here is an advanced example of how we can combine breakpoint classes to significantly alter our columns as we increase our browser resolution. We also introduce offset classes which can push a column across a container and a basic hide utility class.
160160

161161
## Breakpoint Mixins
162-
When writing SASS, you also have access to breakpoint mixins which allow you to generate media queries using the data entered in `/01 - settings/_settings.breakpoints.scss`.
162+
When writing SASS, you also have access to breakpoint mixins which allow you to easily generate media queries using the data entered in `/01 - settings/_settings.breakpoints.scss`.
163163

164164
Create a min-width mobile-first breakpoint:-
165165

@@ -284,22 +284,22 @@ And include responsive variants similar to:-
284284
/* And so on */
285285
```
286286

287-
To prevent bloat, I recommend using [UNCSS](https://github.com/giakki/uncss). This scans your HTML and filters out unused classes, meaning only the classes referenced in your HTML are included in your compiled CSS. UNCSS is included in the larger [Orion Framework](https://github.com/WebDevLuke/Orion-Framework), where OrionCSS is a dependency.
287+
To prevent bloat, I recommend using [UNCSS](https://github.com/giakki/uncss). This scans your HTML and filters out unused classes, meaning only the classes referenced in your HTML are included in your compiled CSS. UNCSS is included in [OrionBP](https://github.com/WebDevLuke/Orion-Framework).
288288

289289
## Further Documentation
290290
OrionCSS features heavy documentation within its codebase so that's the first place to look if you have any questions about a specific feature or included partial.
291291

292292

293-
## Using with Orion Framework
294-
When you use OrionCSS as part of the larger [Orion Framework](https://github.com/WebDevLuke/Orion-Framework), you gain access to specifically built Gulp tasks to compile and optimise your SASS. These include:
293+
## Using with OrionBP
294+
When you use OrionCSS via the front-end boilerplate [OrionBP](https://github.com/WebDevLuke/Orion-Framework), you gain access to specifically built Gulp tasks to compile and optimise your SASS. These SASS tasks include:
295295

296-
- A setup task which creates all the directories and files you need to get you up and running as quickly as possible.
296+
- A setup task which automates the setup process by creating all the directories and files you need to get you up and running as quickly as possible.
297297
- `Build` and `Watch` tasks to easily compile your SASS.
298298
- [gulp-sass-glob](https://github.com/mikevercoelen/gulp-sass-glob) is used to automatically import any new partials, so you won't need to edit `main.scss` at all.
299299
- [UNCSS](https://github.com/giakki/uncss) is used to remove any unused CSS classes from your stylesheet, so you don't have to worry about bloated CSS.
300300
- [Autoprefixer](https://github.com/postcss/autoprefixer) is automatically applied where applicable.
301301

302-
Please refer to [Orion Framework](https://github.com/WebDevLuke/Orion-Framework)'s github repository for more information.
302+
Please refer to [OrionBP](https://github.com/WebDevLuke/Orion-Framework)'s github repository for more information.
303303

304304
## About the Developer
305305
I'm Luke Harrison, a Sheffield-based Web Designer &amp; Developer from the UK, currently working at [Evolution Funding](https://github.com/EvolutionFunding). Read more about me at [lukeharrison.net](http://www.lukeharrison.net) and/or follow me on twitter at [@WebDevLuke](https://twitter.com/WebDevLuke).

gulpfile.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
/*
2-
|--------------------------------------------------------------------
3-
| SET DEPENDENCIES
4-
|--------------------------------------------------------------------
5-
*/
1+
//--------------------------------------------------------------------------------------------------------------------------------------
2+
// SET DEPENDENCIES
3+
//--------------------------------------------------------------------------------------------------------------------------------------
64

75
// Required for all tasks
86
const gulp = require('gulp');
@@ -12,11 +10,9 @@ const sass = require('gulp-sass');
1210
const sassGlob = require('gulp-sass-glob');
1311

1412

15-
/*
16-
|--------------------------------------------------------------------
17-
| SASS
18-
|--------------------------------------------------------------------
19-
*/
13+
//--------------------------------------------------------------------------------------------------------------------------------------
14+
// PRODUCTION FUNCTIONS
15+
//--------------------------------------------------------------------------------------------------------------------------------------
2016

2117
// Build function to compile SASS
2218
gulp.task('build', function () {

0 commit comments

Comments
 (0)