Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from Brightspace/dbatiste/update-sassy
Browse files Browse the repository at this point in the history
Sassifying. Adding scss mixins for offscreen.  Moving all the gulpine…
  • Loading branch information
dbatiste committed May 29, 2015
2 parents 249cc9c + 5da9573 commit aa34ec6
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 46 deletions.
4 changes: 1 addition & 3 deletions .csslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
{
"important": false
}
--ignore=important
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
offscreen.css
node_modules/
offscreen.css
offscreen-less.css
19 changes: 11 additions & 8 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
.csslintrc
.editorconfig
.gitignore
.npmignore
.travis.yml
node_modules
gulpfile.js
offscreen.css.less
.editorconfig
.gitattributes
.gitignore
.npmignore
.travis.yml
.csslintrc
node_modules
karma.conf.js
offscreen.css.less
offscreen.css.scss
offscreen-less.css
26 changes: 0 additions & 26 deletions gulpfile.js

This file was deleted.

5 changes: 5 additions & 0 deletions offscreen.css.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import 'offscreen';

.vui-offscreen {
@include vui-offscreen;
}
17 changes: 17 additions & 0 deletions offscreen.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

@mixin vui-offscreen() {

$offset: -10000px;

position: absolute !important;
left: $offset;
overflow: hidden;
width: 1px;
height: 1px;

[dir="rtl"] & {
left: auto;
right: $offset;
}

}
20 changes: 13 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
{
"name": "vui-offscreen",
"version": "0.0.2",
"description": "LESS mixin and CSS for positioning elements offscreen",
"version": "0.1.0",
"description": "Mixins and CSS for positioning elements offscreen",
"scripts": {
"test": "gulp"
"clean": "rimraf offscreen.css && rimraf offscreen-less.css",
"lint:css": "csslint offscreen.css",
"prebuild": "npm run clean",
"build:less": "lessc offscreen.css.less > offscreen-less.css",
"build:sass": "node-sass --output-style expanded offscreen.css.scss offscreen.css",
"build": "npm run build:sass && npm run build:less",
"postbuild": "npm run lint:css"
},
"repository": {
"type": "git",
Expand All @@ -21,9 +27,9 @@
},
"homepage": "https://github.com/Brightspace/valence-ui-offscreen",
"devDependencies": {
"del": "^0.1.3",
"gulp": "^3.8.8",
"gulp-jshint": "^1.8.5",
"vui-helpers": "^0.3.0"
"csslint": "^0.10.0",
"less": "^2.5.1",
"node-sass": "^3.1.1",
"rimraf": "^2.3.4"
}
}

0 comments on commit aa34ec6

Please sign in to comment.