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

Commit

Permalink
updated gray theme links color
Browse files Browse the repository at this point in the history
  • Loading branch information
steren committed Oct 24, 2012
1 parent 7fdd085 commit 641c2c3
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 16 deletions.
2 changes: 1 addition & 1 deletion app/css/desktop.gray.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/css/phone.blue.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/css/phone.earth.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/css/phone.gray.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/css/phone.spicy.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/css/phone.vegetal.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/css/tablet.gray.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/css/tv.gray.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/less/global.less
Expand Up @@ -68,7 +68,7 @@ img {
.detail { .detail {
.article { .article {
a{ a{
color: saturate(lighten(@background-color, 10%), 10%); color: @link-color;
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
Expand Down
4 changes: 3 additions & 1 deletion app/less/params.less
@@ -1,4 +1,6 @@
// @background-color: @blue; // <- now passed by script // compile script will prepend to this file the following variables:
// @background-color:
// @link-color: // that defaults to @background-color


@text-color: #fff; @text-color: #fff;


Expand Down
5 changes: 3 additions & 2 deletions app/less/phone.less
Expand Up @@ -925,11 +925,12 @@ header {
font-size: 1.4em; font-size: 1.4em;
position: relative; position: relative;


strong, em, a { a {
color: saturate(lighten(@background-color, 10%), 10%); color: @link-color;
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }

} }
} }


Expand Down
2 changes: 1 addition & 1 deletion app/less/tv.less
Expand Up @@ -48,7 +48,7 @@ h1, h2, h3, h4, h5, h6 {
.detail { .detail {
.nav-focused { .nav-focused {
a{ a{
color: saturate(lighten(@background-color, 10%), 10%); color: @link-color;
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
Expand Down
9 changes: 8 additions & 1 deletion tasks/compile_less.js
Expand Up @@ -22,6 +22,11 @@ var colors = {
, vegetal: '#454f0f' , vegetal: '#454f0f'
}; };


/* custom link colors, will be computed from background color if nothing is set */
var linkColors = {
gray: '#7397AC'
};

var colorNames = []; var colorNames = [];


for(var c in colors) { for(var c in colors) {
Expand All @@ -38,7 +43,9 @@ var destPath = function(file, colorName) {


var compileColor = function(str, file, colorName, cb) { var compileColor = function(str, file, colorName, cb) {
var color = colors[colorName]; var color = colors[colorName];
parser.parse('@background-color: ' + color + ';\n' + str, function (e, tree) { var linkColor = linkColors[colorName] || 'saturate(lighten(@background-color, 10%), 10%)';
// prepend to the file the generated colors
parser.parse('@background-color: ' + color + ';\n@link-color: ' + linkColor + ';\n' + str, function (e, tree) {
try { try {
var css = tree.toCSS({compress: compress}); var css = tree.toCSS({compress: compress});
var dest = destPath(file, colorName); var dest = destPath(file, colorName);
Expand Down

0 comments on commit 641c2c3

Please sign in to comment.