Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated stylesheets.js adding local() property with Paul Irish smiley… #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions src/stylesheets.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ const { has } = require('./helpers.js');

function css(stylesheet, name, filename, weight, style, woff2, woff, ttf, svg, embedSvg) {
const resultLines = [
'@font-face {',
` font-family: "${name}";`,
` src: url("${filename}.eot");`,
` src: url("${filename}.eot?#iefix") format("embedded-opentype"),`,
` url(${woff2}) format("woff2"),`,
` url(${woff}) format("woff"),`,
` url(${ttf}) format("ttf"),`,
'@font-face {',
` font-family: "${name}";`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 spaces but found 6 indent

` src: url("${filename}.eot");`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 spaces but found 6 indent

` src: local("☺︎"),`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 spaces but found 6 indent
Strings must use singlequote quotes

` url("${filename}.eot?#iefix") format("embedded-opentype"),`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 spaces but found 6 indent

` url(${woff2}) format("woff2"),`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 spaces but found 6 indent

` url(${woff}) format("woff"),`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 spaces but found 6 indent

` url(${ttf}) format("ttf"),`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 spaces but found 6 indent

];

if (embedSvg) {
Expand All @@ -36,13 +37,14 @@ function css(stylesheet, name, filename, weight, style, woff2, woff, ttf, svg, e

function less(stylesheet, name, filename, weight, style, woff2, woff, ttf, svg, embedSvg) {
const resultLines = [
'@font-face {',
` font-family: "${name}";`,
` src: url("${filename}.eot");`,
` src: url("${filename}.eot?#iefix") format("embedded-opentype"),`,
` url(${woff2}) format("woff2"),`,
` url(${woff}) format("woff"),`,
` url(${ttf}) format("ttf"),`,
'@font-face {',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 spaces but found 6 indent

` font-family: "${name}";`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 spaces but found 6 indent

` src: url("${filename}.eot");`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 spaces but found 6 indent

` src: local("☺︎"),`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 spaces but found 6 indent
Strings must use singlequote quotes

` url("${filename}.eot?#iefix") format("embedded-opentype"),`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 spaces but found 6 indent

` url(${woff2}) format("woff2"),`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 spaces but found 6 indent

` url(${woff}) format("woff"),`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 spaces but found 6 indent

` url(${ttf}) format("ttf"),`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 spaces but found 6 indent

];

if (embedSvg) {
Expand Down Expand Up @@ -70,7 +72,8 @@ function scss(stylesheet, name, filename, weight, style, woff2, woff, ttf, svg,
'@font-face {',
` font-family: "${name}";`,
` src: url("${filename}.eot");`,
` src: url("${filename}.eot?#iefix") format("embedded-opentype"),`,
` src: local("☺︎"),`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strings must use singlequote quotes

` url("${filename}.eot?#iefix") format("embedded-opentype"),`,
` url(${woff2}) format("woff2"),`,
` url(${woff}) format("woff"),`,
` url(${ttf}) format("ttf"),`,
Expand Down