From fe27c97879bc72e10cf9238551867109ce29b767 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 23 May 2018 14:24:18 +0200 Subject: [PATCH] Help + tooltips + fix colors in kanban --- .../src/less2/include/colortheme.less | 2 +- customize.dist/src/less2/include/help.less | 2 +- customize.dist/translations/messages.fr.js | 4 +-- customize.dist/translations/messages.js | 7 ++-- www/kanban/inner.js | 34 +++++++++---------- 5 files changed, 25 insertions(+), 24 deletions(-) diff --git a/customize.dist/src/less2/include/colortheme.less b/customize.dist/src/less2/include/colortheme.less index fe7c97d5a..b6862c3f4 100644 --- a/customize.dist/src/less2/include/colortheme.less +++ b/customize.dist/src/less2/include/colortheme.less @@ -116,7 +116,7 @@ @colortheme_todo-warn: #cd2532; @colortheme_kanban-bg: #8C4; -@colortheme_kanban-color: #fff; +@colortheme_kanban-color: #000; @colortheme_kanban-warn: #e6385d; // Sidebar layout (profile / settings) diff --git a/customize.dist/src/less2/include/help.less b/customize.dist/src/less2/include/help.less index 90f23119b..0e6e90d87 100644 --- a/customize.dist/src/less2/include/help.less +++ b/customize.dist/src/less2/include/help.less @@ -14,7 +14,7 @@ right: 5px; } .cp-help-text { - color: @color; + color: contrast(lighten(@bg-color, 15%), #fff, #000); //@color; margin: 0; padding: 15px; a { diff --git a/customize.dist/translations/messages.fr.js b/customize.dist/translations/messages.fr.js index 74ae36a73..1e1f8e269 100644 --- a/customize.dist/translations/messages.fr.js +++ b/customize.dist/translations/messages.fr.js @@ -2,7 +2,6 @@ define(function () { var out = {}; out.main_title = "CryptPad : Éditeur collaboratif en temps réel, zero knowledge"; - out.main_slogan = "L'unité est la force, la collaboration est la clé"; out.type = {}; out.type.pad = 'Texte'; @@ -255,7 +254,8 @@ define(function () { out.kanban_done = "Terminé"; out.kanban_working = "En cours"; out.kanban_deleteBoard = "Êtes-vous sûr de vouloir supprimer ce tableau ?"; - out.kanban_deleteItem = "Êtes-vous sûr de vouloir supprimer cet élément?"; + out.kanban_addBoard = "Ajouter un tableau"; + out.kanban_removeItem = "Supprimer cet élément"; // Polls diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index 9155a94ef..1376d8a79 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -2,7 +2,6 @@ define(function () { var out = {}; out.main_title = "CryptPad: Zero Knowledge, Collaborative Real Time Editing"; - out.main_slogan = "Unity is Strength - Collaboration is Key"; // TODO remove? out.type = {}; out.type.pad = 'Rich text'; @@ -257,7 +256,8 @@ define(function () { out.kanban_done = "Done"; out.kanban_working = "Working"; out.kanban_deleteBoard = "Are you sure you want to delete this board?"; - out.kanban_deleteItem = "Are you sure you want to delete this item?"; + out.kanban_addBoard = "Add a board"; + out.kanban_removeItem = "Remove this item"; // Polls @@ -1044,6 +1044,9 @@ define(function () { embed: 'Embed images from your disk or your CryptDrive and export them as PNG to your disk or your CryptDrive ' }; + out.help.kanban = { + //add: '' + }; out.initialState = [ '

', diff --git a/www/kanban/inner.js b/www/kanban/inner.js index 751a9a326..96f1be64a 100644 --- a/www/kanban/inner.js +++ b/www/kanban/inner.js @@ -36,7 +36,10 @@ define([ var board = kanban.options.boards.find(function (b) { return b.id === $(el.parentNode.parentNode).attr('data-id'); }); - $('