-
Notifications
You must be signed in to change notification settings - Fork 10
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 #46 from Brightspace/wc
Wc
- Loading branch information
Showing
28 changed files
with
449 additions
and
402 deletions.
There are no files selected for viewing
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,4 +1,3 @@ | ||
bower_components/ | ||
node_modules/ | ||
test/test.css | ||
typography.css | ||
test/perceptual/typography.html.ignore |
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,19 +1,12 @@ | ||
language: node_js | ||
node_js: | ||
- 5.6 | ||
node_js: stable | ||
before_script: | ||
- gem install percy-cli | ||
script: | ||
- polylint | ||
after_success: | ||
- '[ "$TRAVIS_SECURE_ENV_VARS" = "true" ] && npm run perceptual-diff' | ||
sudo: false | ||
deploy: | ||
provider: npm | ||
email: [email protected] | ||
api_key: | ||
secure: lh51pn6JgbDjHlcvWWGJWxO/JwAMurTk/TFFYO6447lvP1QsMogcs5nUNNp7045YpEFcc7v94tlz42UMrFCXRoRVKy0g3AWKtATVl1FQ4oY7X18C3KuQMOVBZt89uQVX5X2+LOkDnlGEzYNerFWcDAV8FoBOUIKwPeUvCNZJO5s= | ||
on: | ||
tags: true | ||
all_branches: true | ||
env: | ||
global: | ||
secure: Z291fOPTg/3XEw/pBgA/9s4y0cyc/CkFdn0YRIbLyk66y9FWVIwacytGsl2hs2+hQZXXizrx6GK+NEUCuOB+CpFzFi9sE0+b+HIQ/hAnPC8L9AdGWKiIS6skekjJC+ZhQRJq+/DnSe8/N8Mr3YA6rO3PiqHlVJ5787y5vId4w2E= |
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 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,18 +1,19 @@ | ||
{ | ||
"name": "vui-typography", | ||
"main": "typography.scss", | ||
"main": "typography.html", | ||
"license": "Apache-2.0", | ||
"ignore": [ | ||
"test", | ||
".csslintrc", | ||
".editorconfig", | ||
".gitattributes", | ||
".gitignore", | ||
".npmignore", | ||
".travis.yml", | ||
"package.json" | ||
], | ||
"dependencies": { | ||
"vui-colors": "^0.2.0" | ||
"polymer": "^1.4.0", | ||
"vui-colors": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
} | ||
} |
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,81 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Typography Snapshot</title> | ||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes"> | ||
<script src="https://s.brightspace.com/lib/webcomponentsjs/0.7.21/webcomponents-lite.min.js"></script> | ||
<link rel="import" href="../typography.html"> | ||
<link rel="import" href="../help-text.html"> | ||
<style is="custom-style" include="vui-typography"> | ||
|
||
html { | ||
font-size: 20px; | ||
} | ||
table { | ||
max-width: 1000px; | ||
} | ||
td, th { | ||
padding: 0.5rem; | ||
white-space: nowrap; | ||
} | ||
td { | ||
text-align: center; | ||
} | ||
.small-text { | ||
@apply(--vui-small-text); | ||
} | ||
.small-strong-text { | ||
@apply(--vui-small-strong-text); | ||
} | ||
|
||
</style> | ||
</head> | ||
<body class="vui-typography" unresolved> | ||
<h1>Typography</h1> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Element</th> | ||
<th>Style</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<th>Headings</th> | ||
<td> | ||
<h1 class="vui-heading-1">Heading 1</h1> | ||
<h2 class="vui-heading-2">Heading 2</h2> | ||
<h3 class="vui-heading-3">Heading 3</h3> | ||
<h4 class="vui-heading-4">Heading 4</h4> | ||
</td> | ||
</tr> | ||
<tr> | ||
<th>Small Text</th> | ||
<td> | ||
<p class="small-text">Small Text</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<th>Small Strong Text</th> | ||
<td> | ||
<p class="small-strong-text">Small Strong Text</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<th>Help Text</th> | ||
<td> | ||
<vui-help-text class="vui-help">Help Text</vui-help-text> | ||
</td> | ||
</tr> | ||
<tr> | ||
<th>Paragraph</th> | ||
<td> | ||
<p style="width: 430px; text-align: left; white-space: normal;"> | ||
Grumpy wizards make toxic brew for the evil Queen and Jack. Grumpy wizards make toxic brew for the evil Queen and Jack. | ||
</p> | ||
</td> | ||
</tbody> | ||
</table> | ||
</body> | ||
</html> |
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,53 @@ | ||
<link rel="import" href="../polymer/polymer.html"> | ||
<link rel="import" href="../vui-colors/colors.html"> | ||
|
||
<dom-module id="vui-fonts"> | ||
<template> | ||
<style include="vui-colors"> | ||
|
||
:root { | ||
|
||
--vui-font: { | ||
color: var(--vui-color-ferrite); | ||
display: block; | ||
font-family: 'Lato', 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; | ||
font-size: 1rem; | ||
font-weight: 300; | ||
line-height: 1.5; | ||
letter-spacing: 0.015rem; | ||
} | ||
|
||
--vui-font-dyslexic: { | ||
font-weight: 400; | ||
font-family: 'Open Dyslexic', sans-serif; | ||
} | ||
|
||
--vui-font-ar: { | ||
font-family: 'Arabic Transparent', 'Arabic Typesetting', 'Geeza Pro', sans-serif; | ||
} | ||
|
||
--vui-font-zh-cn: { | ||
font-family: 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif; | ||
} | ||
|
||
--vui-font-zh-tw: { | ||
font-family: 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif; | ||
} | ||
|
||
--vui-font-ko: { | ||
font-family: 'Apple SD Gothic Neo', Dotum, sans-serif; | ||
} | ||
|
||
--vui-font-ja: { | ||
font-family: 'Hiragino Kaku Gothic Pro', 'Meiyro', sans-serif; | ||
} | ||
|
||
--vui-font-paragraph: { | ||
margin: 1.5rem 0; | ||
} | ||
|
||
} | ||
|
||
</style> | ||
</template> | ||
</dom-module> |
Oops, something went wrong.