-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#7] Harvest job pages UX are complete
- Loading branch information
1 parent
7209723
commit bdc8206
Showing
13 changed files
with
374 additions
and
96 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -10,3 +10,4 @@ dist | |
development.ini | ||
*.swp | ||
*~ | ||
node_modules |
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 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,83 @@ | ||
header.with-filter { | ||
clear: both; | ||
overflow: hidden; | ||
} | ||
header.with-filter h1 { | ||
margin-top: 0; | ||
} | ||
.harvest-jobs { | ||
border: 1px solid #dddddd; | ||
-webkit-border-radius: 3px; | ||
-moz-border-radius: 3px; | ||
border-radius: 3px; | ||
} | ||
.harvest-jobs a { | ||
display: block; | ||
padding: 8px 15px; | ||
color: #666; | ||
border-bottom: 1px dotted #dddddd; | ||
} | ||
.harvest-jobs a h4 { | ||
font-size: 16px; | ||
line-height: 1.3; | ||
color: #000; | ||
} | ||
.harvest-jobs a .errors { | ||
float: right; | ||
font-size: 16px; | ||
line-height: 1.3; | ||
margin-top: 5px; | ||
-webkit-border-radius: 100px; | ||
-moz-border-radius: 100px; | ||
border-radius: 100px; | ||
} | ||
.harvest-jobs a p { | ||
clear: both; | ||
overflow: hidden; | ||
} | ||
.harvest-jobs a:hover { | ||
background-color: #f6f6f6; | ||
text-decoration: none; | ||
} | ||
.harvest-jobs a:hover h4 { | ||
text-decoration: underline; | ||
} | ||
.harvest-jobs a:hover .harvest-diff .diff-added { | ||
background-color: #79db69; | ||
} | ||
.harvest-jobs a:hover .harvest-diff .diff-updated { | ||
background-color: #a277ff; | ||
} | ||
.harvest-jobs a:hover .harvest-diff .diff-deleted { | ||
background-color: #dc7c7f; | ||
} | ||
.harvest-jobs a:last-child { | ||
border-bottom-width: 0; | ||
} | ||
.harvest-diff span { | ||
color: #000; | ||
padding: 5px 10px; | ||
margin-right: 5px; | ||
font-size: 12px; | ||
-webkit-border-radius: 5px; | ||
-moz-border-radius: 5px; | ||
border-radius: 5px; | ||
} | ||
.harvest-diff .diff-added { | ||
background-color: #9ee592; | ||
} | ||
.harvest-diff .diff-updated { | ||
background-color: #c5aaff; | ||
} | ||
.harvest-diff .diff-deleted { | ||
background-color: #e7a4a6; | ||
} | ||
.harvest-error-summary .count { | ||
text-align: right; | ||
} | ||
.harvest-error-list h5 { | ||
margin-top: 0; | ||
} | ||
.harvest-error-list .error { | ||
padding-left: 20px; | ||
} |
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,92 @@ | ||
@import 'mixins.less'; | ||
@import 'variables.less'; | ||
|
||
header.with-filter { | ||
clear: both; | ||
overflow: hidden; | ||
h1 { | ||
margin-top: 0; | ||
} | ||
} | ||
|
||
.harvest-jobs { | ||
border: 1px solid @borderColor; | ||
.border-radius(3px); | ||
a { | ||
display: block; | ||
padding: 8px 15px; | ||
color: #666; | ||
border-bottom: 1px dotted @borderColor; | ||
h4 { | ||
font-size: 16px; | ||
line-height: 1.3; | ||
color: #000; | ||
} | ||
.errors { | ||
float: right; | ||
font-size: 16px; | ||
line-height: 1.3; | ||
margin-top: 5px; | ||
.border-radius(100px); | ||
} | ||
p { | ||
clear: both; | ||
overflow: hidden; | ||
} | ||
&:hover { | ||
background-color: @hoverColor; | ||
text-decoration: none; | ||
h4 { | ||
text-decoration: underline; | ||
} | ||
.harvest-diff { | ||
.diff-added { | ||
background-color: darken(@diffAdded, 10%); | ||
} | ||
.diff-updated { | ||
background-color: darken(@diffUpdated, 10%); | ||
} | ||
.diff-deleted { | ||
background-color: darken(@diffDeleted, 10%); | ||
} | ||
} | ||
} | ||
&:last-child { | ||
border-bottom-width: 0; | ||
} | ||
} | ||
} | ||
|
||
.harvest-diff { | ||
span { | ||
color: #000; | ||
padding: 5px 10px; | ||
margin-right: 5px; | ||
font-size: 12px; | ||
.border-radius(5px); | ||
} | ||
.diff-added { | ||
background-color: @diffAdded; | ||
} | ||
.diff-updated { | ||
background-color: @diffUpdated; | ||
} | ||
.diff-deleted { | ||
background-color: @diffDeleted; | ||
} | ||
} | ||
|
||
.harvest-error-summary { | ||
.count { | ||
text-align: right; | ||
} | ||
} | ||
|
||
.harvest-error-list { | ||
h5 { | ||
margin-top: 0; | ||
} | ||
.error { | ||
padding-left: 20px; | ||
} | ||
} |
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,34 @@ | ||
#!/usr/bin/env node | ||
|
||
// This file is only used to generate the harvest.css | ||
|
||
var path = require('path'), | ||
nodeWatch = require('nodewatch'), | ||
exec = require('child_process').exec, | ||
watch = path.join(__dirname), | ||
lastArg = process.argv.slice().pop(); | ||
|
||
function now() { | ||
return new Date().toISOString().replace('T', ' ').substr(0, 19); | ||
} | ||
|
||
function compile(event, filename) { | ||
var start = Date.now(); | ||
|
||
exec('`npm bin`/lessc ' + __dirname + '/harvest.less > ' + __dirname + '/harvest.css', function (err, stdout, stderr) { | ||
var duration = Date.now() - start; | ||
|
||
if (err) { | ||
console.log('An error occurred running the less command:'); | ||
console.log(err.message); | ||
} | ||
else if (stderr || stdout) { | ||
console.log(stdout, stderr); | ||
} else { | ||
console.log('[%s] recompiled in %sms', now(), duration); | ||
} | ||
}); | ||
} | ||
|
||
nodeWatch.add(watch).onChange(compile); | ||
compile(); |
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,16 @@ | ||
.clearfix() { | ||
|
||
} | ||
|
||
.border-radius(@radius) { | ||
-webkit-border-radius: @radius; | ||
-moz-border-radius: @radius; | ||
border-radius: @radius; | ||
} | ||
|
||
.box-shadow(@shadowA, @shadowB:X, ...){ | ||
@props: ~`"@{arguments}".replace(/[\[\]]|\,\sX/g, '')`; | ||
-webkit-box-shadow: @props; | ||
-moz-box-shadow: @props; | ||
box-shadow: @props; | ||
} |
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,6 @@ | ||
@borderColor: #DDD; | ||
@hoverColor: #F6F6F6; | ||
|
||
@diffAdded: #9EE592; | ||
@diffUpdated: #C5AAFF; | ||
@diffDeleted: #E7A4A6; |
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 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,6 @@ | ||
{% ckan_extends %} | ||
|
||
{% block styles %} | ||
{{ super() }} | ||
{% resource 'ckanext-harvest/styles/harvest.css' %} | ||
{% endblock %} |
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 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
Oops, something went wrong.