diff --git a/.gitignore b/.gitignore index bb93d68..78dbd62 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules -bower_components \ No newline at end of file +bower_components +.idea \ No newline at end of file diff --git a/dist/hubinfo.css b/dist/hubinfo.css index ca11123..5f37441 100644 --- a/dist/hubinfo.css +++ b/dist/hubinfo.css @@ -1,9 +1,9 @@ .github-repo { position: relative; font-size: 14px; - font-family: Helvetica, Arial, sans-serif; letter-spacing: 1px; padding-bottom: 20px; + border-top: 1px solid #f1f1f1; border-bottom: 1px solid #f1f1f1; } .github-repo a { @@ -20,17 +20,31 @@ } .github-repo .repo-header .repo-stats span, .github-repo .repo-header .repo-stats a { - padding-right: 5px; padding: 0 5px 0 25px; color: #000; } -.github-repo .repo-header .repo-stats .repo-watchers { - background: url(images/repostat.png) no-repeat; - background-position: 5px -5px; -} +.github-repo .repo-header .repo-stats .repo-watchers, .github-repo .repo-header .repo-stats .repo-forks { - background: url(images/repostat.png) no-repeat; - background-position: 5px -55px; + position: relative; +} +.github-repo .repo-header .repo-stats .repo-watchers:before, +.github-repo .repo-header .repo-stats .repo-forks:before { + background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAANCAYAAADfavzVAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZ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3Y0Rr1jLseAbzJo8gS3789OS0jSpai1DstMiKuhFALXM3My4WR2Q1Yq9K6icyy70KW+5RIEZdBjCmS/by6kyEoOHQXvibRHQ+xVtWWmHdeBU020H/Cj7xh3xm13rNfQtirwnWrlH3o+oB74kGMqz8UK5tvi1cnsYS+o9tdbCMJtOJg7TmBJPDVeKcHfAkwAFlgtWxNzZ7GAAAAAElFTkSuQmCC") no-repeat; + position: absolute; + content: " "; + left: 5px; + top: 1px; +} +.github-repo .repo-header .repo-stats .repo-watchers:before { + background-position: -31px -2px; + width: 12px; + height: 13px; +} +.github-repo .repo-header .repo-stats .repo-forks:before { + background-position: -14px 0; + width: 12px; + height: 13px; + top: 0; } .github-repo .repo-header .repo-stats .repo-twitter { float: right; @@ -41,19 +55,14 @@ line-height: 32px; letter-spacing: -1px; display: block; - color: #4183c4; height: 32px; white-space: nowrap; font-weight: bold; } -.github-repo .repo-commit .repo-commit-message { - color: #333333; -} .github-repo .repo-commit .repo-commit-date { display: block; margin-top: 10px; letter-spacing: 0; font-style: italic; font-size: 12px; - color: #999999; } diff --git a/dist/images/repostat.png b/dist/images/repostat.png index 7578666..410d86b 100644 Binary files a/dist/images/repostat.png and b/dist/images/repostat.png differ diff --git a/lib/images/repostat.png b/lib/images/repostat.png index 7578666..410d86b 100644 Binary files a/lib/images/repostat.png and b/lib/images/repostat.png differ diff --git a/lib/styles/hubinfo.less b/lib/styles/hubinfo.less index df846f6..dd13411 100644 --- a/lib/styles/hubinfo.less +++ b/lib/styles/hubinfo.less @@ -6,9 +6,9 @@ .github-repo { position: relative; font-size: 14px; - font-family: Helvetica, Arial, sans-serif; letter-spacing: 1px; padding-bottom: 20px; + border-top: 1px solid @borderColor; border-bottom: 1px solid @borderColor; a { @@ -27,19 +27,35 @@ line-height: 20px; span, a { - padding-right: 5px; padding: 0 5px 0 25px; color: #000; } - .repo-watchers { - background: url(images/repostat.png) no-repeat; - background-position: 5px -5px; + .repo-watchers, + .repo-forks { + position: relative; } - .repo-forks { - background: url(images/repostat.png) no-repeat; - background-position: 5px -55px; + .repo-watchers:before , + .repo-forks:before { + background: data-uri('../images/repostat.png') no-repeat; + position: absolute; + content: " "; + left: 5px; + top: 1px; + } + + .repo-watchers:before { + background-position: -31px -2px; + width: 12px; + height: 13px; + } + + .repo-forks:before { + background-position: -14px 0; + width: 12px; + height: 13px; + top: 0; } .repo-twitter { @@ -53,7 +69,6 @@ line-height: 32px; letter-spacing: -1px; display: block; - color: @linkColor; height: 32px; white-space: nowrap; font-weight: bold; @@ -61,17 +76,12 @@ } .repo-commit { - .repo-commit-message { - color: @textColor; - } - .repo-commit-date { display: block; margin-top: 10px; letter-spacing: 0; font-style: italic; font-size: 12px; - color: @updatedColor; } } } \ No newline at end of file diff --git a/package.json b/package.json index f9d8f5e..1f96216 100644 --- a/package.json +++ b/package.json @@ -3,23 +3,23 @@ "version": "0.0.0", "private": true, "devDependencies": { - "grunt": "0.4.2", + "grunt": "^0.4.5", "grunt-bytesize": "~0.1.0", "grunt-concat-bower": "~0.3.0", "grunt-contrib-clean": "~0.5.0", - "grunt-contrib-concat": "~0.4.0", - "grunt-contrib-connect": "~0.7.1", + "grunt-contrib-concat": "^0.5.0", + "grunt-contrib-connect": "^0.8.0", + "grunt-contrib-copy": "^0.5.0", "grunt-contrib-jshint": "~0.10.0", - "grunt-contrib-uglify": "~0.4.0", + "grunt-contrib-less": "~0.11.0", + "grunt-contrib-uglify": "^0.5.0", "grunt-contrib-watch": "~0.6.1", + "grunt-jscs": "^0.6.1", "grunt-mocha": "~0.4.1", - "grunt-notify": "~0.2.13", - "grunt-shell": "~0.6.4", - "load-grunt-config": "~0.7.1", - "jshint-stylish": "~0.1.5", - "grunt-jscs-checker": "~0.4.1", - "grunt-contrib-less": "~0.11.0", - "grunt-contrib-copy": "^0.5.0" + "grunt-notify": "^0.3.0", + "grunt-shell": "^0.7.0", + "jshint-stylish": "^0.4.0", + "load-grunt-config": "~0.7.1" }, "meta": { "ftInit": {