Skip to content

Commit

Permalink
Merge pull request #271 from LibCrowds/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
alexandermendes authored Nov 5, 2017
2 parents af8b69b + 6f607a7 commit d1da9e9
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 20 deletions.
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ Additional navigation links (for example, for the rest of your website) can be p

To customise the appearance of the viewer, the following Sass variables can be overridden before importing the libcrowds-viewer.scss file.

{% codesnippet "./src/scss/settings.scss language="scss" %}{% endcodesnippet %}
{% codesnippet "../src/scss/settings.scss", language="scss" %}{% endcodesnippet %}
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "libcrowds-viewer",
"description": "A Vue component for crowdsourcing Web Annotations.",
"version": "3.4.4",
"version": "3.4.5",
"main": "dist/main.js",
"author": "Alex Mendes <[email protected]>",
"license": "MIT",
Expand Down
5 changes: 4 additions & 1 deletion src/components/sidebars/items/Transcribe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ export default {
this.form = this.copyForm()
this.addEventListeners()
if (typeof document !== 'undefined') {
document.querySelector('.form-control').focus()
let field = document.querySelector('.form-control')
if (field) {
field.focus()
}
}
}
},
Expand Down
33 changes: 17 additions & 16 deletions src/scss/settings.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* Core colours */
$lv-gray: #666666 !default;
$lv-gray-dark: darken($lv-gray, 35%);
$lv-gray-light: lighten($lv-gray, 40%);
$lv-gray-dark: darken($lv-gray, 35%) !default;
$lv-gray-light: lighten($lv-gray, 40%) !default;
$lv-white: #FFFFFF !default;
$lv-blue: #3498DB !default;
$lv-yellow: #F5D76E !default;
Expand All @@ -11,25 +11,26 @@ $lv-main-bg: #000000 !default;
$lv-hud-bg: rgba(0, 0, 0, 0.75) !default;

/* Selection colours */
$lv-selection-bg: rgba($lv-blue, 0.2);
$lv-selection-border: $lv-blue;
$lv-selection-confirmed-bg: rgba($lv-green, 0.2);
$lv-selection-confirmed-border: $lv-green;
$lv-selection-related-bg: rgba($lv-yellow, 0.2);
$lv-selection-related-border: $lv-yellow;
$lv-selection-danger-bg: rgba($lv-red, 0.2);
$lv-selection-danger-border: $lv-red;
$lv-selection-active-bg: rgba($lv-green, 0.35);
$lv-selection-active-border: $lv-green;
$lv-selection-bg: rgba($lv-blue, 0.2) !default;
$lv-selection-border: $lv-blue !default;
$lv-selection-confirmed-bg: rgba($lv-green, 0.2) !default;
$lv-selection-confirmed-border: $lv-green !default;
$lv-selection-related-bg: rgba($lv-yellow, 0.2) !default;
$lv-selection-related-border: $lv-yellow !default;
$lv-selection-danger-bg: rgba($lv-red, 0.2) !default;
$lv-selection-danger-border: $lv-red !default;
$lv-selection-active-bg: rgba($lv-green, 0.35) !default;
$lv-selection-active-border: $lv-green !default;

/* Button colors */
$btn-colors: (
$btn-colors: () !default;
$btn-colors: map-merge((
"white": $lv-white,
"blue": $lv-blue,
"yellow": $lv-yellow,
"green": $lv-green,
"red": $lv-red
);
), $btn-colors);

/* Fonts */
$lv-font-size-sm: 0.85rem !default;
Expand All @@ -38,8 +39,8 @@ $lv-font-family-base: apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
$lv-font-family-headings: inherit !default;

/* Task Sidebar */
$lv-sidebar-padding-x: 1.25rem;
$lv-sidebar-padding-x: 1.25rem !default;
$lv-sidebar-padding-y: 0.75rem;

/* Toolbars */
$lv-toolbar-xs-height: 30px;
$lv-toolbar-xs-height: 30px !default;

0 comments on commit d1da9e9

Please sign in to comment.