This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from Brightspace/web-component
converting to a web component, renaming to "d2l-offscreen"
- Loading branch information
Showing
7 changed files
with
109 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": "eslint:recommended", | ||
"env": { | ||
"browser": true | ||
}, | ||
"plugins": ["html"], | ||
"globals": { | ||
"Polymer": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<link rel="import" href="../polymer/polymer.html"> | ||
<dom-module id="d2l-offscreen"> | ||
<template> | ||
<style> | ||
:host { | ||
display: inline-block; | ||
position: absolute !important; | ||
left: -10000px; | ||
overflow: hidden; | ||
width: 1px; | ||
height: 1px; | ||
white-space: nowrap; | ||
} | ||
:host-context([dir="rtl"]) { | ||
left: auto; | ||
right: -10000px; | ||
} | ||
</style> | ||
<content></content> | ||
</template> | ||
<script> | ||
Polymer({ | ||
is: 'd2l-offscreen' | ||
}); | ||
</script> | ||
</dom-module> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
|
||
@mixin vui-offscreen() { | ||
@mixin d2l-offscreen() { | ||
|
||
$offset: -10000px; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,38 @@ | ||
{ | ||
"name": "vui-offscreen", | ||
"version": "1.0.1", | ||
"description": "Mixins and CSS for positioning elements offscreen", | ||
"name": "d2l-offscreen", | ||
"version": "2.0.0", | ||
"description": "Polymer web component and Sass mixin for positioning elements offscreen", | ||
"private": true, | ||
"scripts": { | ||
"clean": "rimraf *.css", | ||
"prebuild": "npm run clean", | ||
"build": "node-sass --output-style expanded offscreen.css.scss offscreen.css", | ||
"pretest": "npm run build", | ||
"test": "csslint offscreen.css" | ||
"postinstall": "bower install", | ||
"test": "npm run test:lint:js && npm run test:lint:wc", | ||
"test:lint:js": "eslint *.html", | ||
"test:lint:wc": "polylint" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Brightspace/valence-ui-offscreen.git" | ||
"url": "https://github.com/Brightspace/d2l-offscreen-ui.git" | ||
}, | ||
"keywords": [ | ||
"vui", | ||
"valence-ui", | ||
"d2l" | ||
"d2l", | ||
"ui", | ||
"offscreen", | ||
"scss", | ||
"sass", | ||
"mixins", | ||
"polymer", | ||
"web component" | ||
], | ||
"author": "D2L Corporation", | ||
"license": "Apache 2.0", | ||
"bugs": { | ||
"url": "https://github.com/Brightspace/valence-ui-offscreen/issues" | ||
"url": "https://github.com/Brightspace/d2l-offscreen-ui/issues" | ||
}, | ||
"homepage": "https://github.com/Brightspace/valence-ui-offscreen", | ||
"homepage": "https://github.com/Brightspace/d2l-offscreen-ui", | ||
"devDependencies": { | ||
"csslint": "^0.10.0", | ||
"node-sass": "^3.4.2", | ||
"rimraf": "^2.5.1" | ||
"bower": "^1.7.9", | ||
"eslint": "^2.5.3", | ||
"eslint-plugin-html": "^1.4.0", | ||
"polylint": "^2.10.1" | ||
} | ||
} |