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

Fix gradient syntax #80

Merged
merged 1 commit into from
Nov 18, 2016
Merged

Fix gradient syntax #80

merged 1 commit into from
Nov 18, 2016

Conversation

K-S-A
Copy link
Contributor

@K-S-A K-S-A commented Nov 17, 2016

This PR fixes deprecation warning (rails 5 / autoprefixer-rails v6.5):

autoprefixer: ... Gradient has outdated direction syntax. New syntax is like to left instead of right.

background-image: linear-gradient(top, #0088cc, #0044cc);
background-image: -webkit-linear-gradient(to bottom, #0088cc, #0044cc);
background-image: -o-linear-gradient(to bottom, #0088cc, #0044cc);
background-image: linear-gradient(to bottom, #0088cc, #0044cc);

Choose a reason for hiding this comment

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

Color literals like #0088cc should only be used in variable declarations; they should be referred to via variable everywhere else.
Color literals like #0044cc should only be used in variable declarations; they should be referred to via variable everywhere else.

background-image: -o-linear-gradient(top, #0088cc, #0044cc);
background-image: linear-gradient(top, #0088cc, #0044cc);
background-image: -webkit-linear-gradient(to bottom, #0088cc, #0044cc);
background-image: -o-linear-gradient(to bottom, #0088cc, #0044cc);

Choose a reason for hiding this comment

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

Avoid vendor prefixes.
Color literals like #0088cc should only be used in variable declarations; they should be referred to via variable everywhere else.
Color literals like #0044cc should only be used in variable declarations; they should be referred to via variable everywhere else.

background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
background-image: -o-linear-gradient(top, #0088cc, #0044cc);
background-image: linear-gradient(top, #0088cc, #0044cc);
background-image: -webkit-linear-gradient(to bottom, #0088cc, #0044cc);

Choose a reason for hiding this comment

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

Avoid vendor prefixes.
Color literals like #0088cc should only be used in variable declarations; they should be referred to via variable everywhere else.
Color literals like #0044cc should only be used in variable declarations; they should be referred to via variable everywhere else.

background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
background-image: -moz-linear-gradient(to bottom, #0088cc, #0044cc);
background-image: -ms-linear-gradient(to bottom, #0088cc, #0044cc);

Choose a reason for hiding this comment

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

Avoid vendor prefixes.
Color literals like #0088cc should only be used in variable declarations; they should be referred to via variable everywhere else.
Color literals like #0044cc should only be used in variable declarations; they should be referred to via variable everywhere else.

@@ -546,12 +546,12 @@ a.editable-click.editable-disabled:hover {
.datepicker table tr td span.active.disabled,
.datepicker table tr td span.active.disabled:hover {
background-color: #006dcc;
background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
background-image: -moz-linear-gradient(to bottom, #0088cc, #0044cc);

Choose a reason for hiding this comment

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

Avoid vendor prefixes.
Color literals like #0088cc should only be used in variable declarations; they should be referred to via variable everywhere else.
Color literals like #0044cc should only be used in variable declarations; they should be referred to via variable everywhere else.

background-image: linear-gradient(top, #0088cc, #0044cc);
background-image: -webkit-linear-gradient(to bottom, #0088cc, #0044cc);
background-image: -o-linear-gradient(to bottom, #0088cc, #0044cc);
background-image: linear-gradient(to bottom, #0088cc, #0044cc);

Choose a reason for hiding this comment

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

Color literals like #0088cc should only be used in variable declarations; they should be referred to via variable everywhere else.
Color literals like #0044cc should only be used in variable declarations; they should be referred to via variable everywhere else.

background-image: -o-linear-gradient(top, #0088cc, #0044cc);
background-image: linear-gradient(top, #0088cc, #0044cc);
background-image: -webkit-linear-gradient(to bottom, #0088cc, #0044cc);
background-image: -o-linear-gradient(to bottom, #0088cc, #0044cc);

Choose a reason for hiding this comment

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

Avoid vendor prefixes.
Color literals like #0088cc should only be used in variable declarations; they should be referred to via variable everywhere else.
Color literals like #0044cc should only be used in variable declarations; they should be referred to via variable everywhere else.

background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
background-image: -o-linear-gradient(top, #0088cc, #0044cc);
background-image: linear-gradient(top, #0088cc, #0044cc);
background-image: -webkit-linear-gradient(to bottom, #0088cc, #0044cc);

Choose a reason for hiding this comment

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

Avoid vendor prefixes.
Color literals like #0088cc should only be used in variable declarations; they should be referred to via variable everywhere else.
Color literals like #0044cc should only be used in variable declarations; they should be referred to via variable everywhere else.

background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
background-image: -moz-linear-gradient(to bottom, #0088cc, #0044cc);
background-image: -ms-linear-gradient(to bottom, #0088cc, #0044cc);

Choose a reason for hiding this comment

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

Avoid vendor prefixes.
Color literals like #0088cc should only be used in variable declarations; they should be referred to via variable everywhere else.
Color literals like #0044cc should only be used in variable declarations; they should be referred to via variable everywhere else.

@@ -474,12 +474,12 @@ a.editable-click.editable-disabled:hover {
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover {
background-color: #006dcc;
background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
background-image: -moz-linear-gradient(to bottom, #0088cc, #0044cc);

Choose a reason for hiding this comment

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

Avoid vendor prefixes.
Color literals like #0088cc should only be used in variable declarations; they should be referred to via variable everywhere else.
Color literals like #0044cc should only be used in variable declarations; they should be referred to via variable everywhere else.

background-image: linear-gradient(top, #b3b3b3, #808080);
background-image: -webkit-linear-gradient(to bottom, #b3b3b3, #808080);
background-image: -o-linear-gradient(to bottom, #b3b3b3, #808080);
background-image: linear-gradient(to bottom, #b3b3b3, #808080);

Choose a reason for hiding this comment

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

Color literals like #b3b3b3 should only be used in variable declarations; they should be referred to via variable everywhere else.
Color literals like #808080 should only be used in variable declarations; they should be referred to via variable everywhere else.

background-image: -o-linear-gradient(top, #b3b3b3, #808080);
background-image: linear-gradient(top, #b3b3b3, #808080);
background-image: -webkit-linear-gradient(to bottom, #b3b3b3, #808080);
background-image: -o-linear-gradient(to bottom, #b3b3b3, #808080);

Choose a reason for hiding this comment

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

Avoid vendor prefixes.
Color literals like #b3b3b3 should only be used in variable declarations; they should be referred to via variable everywhere else.
Color literals like #808080 should only be used in variable declarations; they should be referred to via variable everywhere else.

background-image: -webkit-linear-gradient(top, #b3b3b3, #808080);
background-image: -o-linear-gradient(top, #b3b3b3, #808080);
background-image: linear-gradient(top, #b3b3b3, #808080);
background-image: -webkit-linear-gradient(to bottom, #b3b3b3, #808080);

Choose a reason for hiding this comment

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

Avoid vendor prefixes.
Color literals like #b3b3b3 should only be used in variable declarations; they should be referred to via variable everywhere else.
Color literals like #808080 should only be used in variable declarations; they should be referred to via variable everywhere else.

background-image: -moz-linear-gradient(top, #b3b3b3, #808080);
background-image: -ms-linear-gradient(top, #b3b3b3, #808080);
background-image: -moz-linear-gradient(to bottom, #b3b3b3, #808080);
background-image: -ms-linear-gradient(to bottom, #b3b3b3, #808080);

Choose a reason for hiding this comment

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

Avoid vendor prefixes.
Color literals like #b3b3b3 should only be used in variable declarations; they should be referred to via variable everywhere else.
Color literals like #808080 should only be used in variable declarations; they should be referred to via variable everywhere else.

@@ -423,12 +423,12 @@ a.editable-click.editable-disabled:hover {
.datepicker table tr td.selected.disabled,
.datepicker table tr td.selected.disabled:hover {
background-color: #9e9e9e;
background-image: -moz-linear-gradient(top, #b3b3b3, #808080);
background-image: -ms-linear-gradient(top, #b3b3b3, #808080);
background-image: -moz-linear-gradient(to bottom, #b3b3b3, #808080);

Choose a reason for hiding this comment

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

Avoid vendor prefixes.
Color literals like #b3b3b3 should only be used in variable declarations; they should be referred to via variable everywhere else.
Color literals like #808080 should only be used in variable declarations; they should be referred to via variable everywhere else.

background-image: linear-gradient(top, #f3c17a, #f3e97a);
background-image: -webkit-linear-gradient(to bottom, #f3c17a, #f3e97a);
background-image: -o-linear-gradient(to bottom, #f3c17a, #f3e97a);
background-image: linear-gradient(to bottom, #f3c17a, #f3e97a);

Choose a reason for hiding this comment

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

Color literals like #f3c17a should only be used in variable declarations; they should be referred to via variable everywhere else.
Color literals like #f3e97a should only be used in variable declarations; they should be referred to via variable everywhere else.

@jirikolarik
Copy link
Member

Can you provide more descriptions?

@K-S-A K-S-A closed this Nov 18, 2016
@K-S-A K-S-A reopened this Nov 18, 2016
@jirikolarik
Copy link
Member

Thanks for more info. Other then that it's working fine on Rails 5?

@jirikolarik jirikolarik merged commit e810bf0 into werein:master Nov 18, 2016
@K-S-A
Copy link
Contributor Author

K-S-A commented Nov 19, 2016

For our project, everything else works great.

@jirikolarik jirikolarik mentioned this pull request Nov 21, 2016
@jirikolarik
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants