cryptpad/www/kanban/app-kanban.less

512 lines
13 KiB
Text
Raw Normal View History

@import (reference) "../../customize/src/less2/include/browser.less";
@import (reference) "../../customize/src/less2/include/framework.less";
@import (reference) "../../customize/src/less2/include/tools.less";
2020-03-04 16:48:20 +00:00
@import (reference) "../../customize/src/less2/include/markdown.less";
2020-03-09 17:49:57 +00:00
@import (reference) "../../customize/src/less2/include/avatar.less";
2018-04-01 16:52:21 +00:00
// body
&.cp-app-kanban {
2018-07-14 13:15:23 +00:00
.framework_main(
@bg-color: @colortheme_kanban-bg,
@warn-color: @colortheme_kanban-warn,
@color: @colortheme_kanban-color
);
2018-04-01 16:52:21 +00:00
display: flex;
flex-flow: column;
2018-04-01 16:52:21 +00:00
max-height: 100%;
min-height: auto;
2020-03-04 14:34:36 +00:00
color: @cryptpad_text_col;
2020-03-04 16:48:20 +00:00
@board-bg: #eaeaea;
2020-03-10 15:32:18 +00:00
@palette0: #C9C9C9; // Default bg color for header
2020-03-03 15:20:45 +00:00
@palette1: #FFD4D4;
@palette2: #FFDECA;
@palette3: #FFE69C;
@palette4: #DBFFB7;
@palette5: #AFFDC2;
@palette6: #C9FFFE;
@palette7: #C8D6FF;
@palette8: #E4CAFF;
2020-03-04 11:56:47 +00:00
.kanban-board-header {
2020-03-10 15:32:18 +00:00
background-color: @palette0;
2020-03-04 11:56:47 +00:00
}
2020-03-04 16:59:13 +00:00
.kanban-board {
2020-03-05 10:47:49 +00:00
.kanban-board-inner {
background-color: @board-bg;
max-height: 100%;
display: flex;
flex-flow: column;
}
2020-03-04 16:59:13 +00:00
color: @cryptpad_text_col;
}
2020-03-03 15:20:45 +00:00
2020-03-04 11:56:47 +00:00
.cp-kanban-palette-nocolor {
background-color: @palette0;
}
2020-03-03 15:20:45 +00:00
.cp-kanban-palette-color1 {
background-color: @palette1;
2020-03-05 10:47:49 +00:00
&.kanban-board-inner {
2020-03-04 16:59:13 +00:00
background-color: lighten(@palette1, 5%);
}
2020-03-03 15:20:45 +00:00
}
.cp-kanban-palette-color2 {
background-color: @palette2;
2020-03-05 10:47:49 +00:00
&.kanban-board-inner {
2020-03-04 16:59:13 +00:00
background-color: lighten(@palette2, 5%);
}
2020-03-03 15:20:45 +00:00
}
.cp-kanban-palette-color3 {
background-color: @palette3;
2020-03-05 10:47:49 +00:00
&.kanban-board-inner {
2020-03-04 16:59:13 +00:00
background-color: lighten(@palette3, 10%);
}
2020-03-03 15:20:45 +00:00
}
.cp-kanban-palette-color4 {
background-color: @palette4;
2020-03-05 10:47:49 +00:00
&.kanban-board-inner {
2020-03-04 16:59:13 +00:00
background-color: lighten(@palette4, 10%);
}
2020-03-03 15:20:45 +00:00
}
.cp-kanban-palette-color5 {
background-color: @palette5;
2020-03-05 10:47:49 +00:00
&.kanban-board-inner {
2020-03-04 16:59:13 +00:00
background-color: lighten(@palette5, 10%);
}
2020-03-03 15:20:45 +00:00
}
.cp-kanban-palette-color6 {
background-color: @palette6;
2020-03-05 10:47:49 +00:00
&.kanban-board-inner {
2020-03-04 16:59:13 +00:00
background-color: lighten(@palette6, 5%);
}
2020-03-03 15:20:45 +00:00
}
.cp-kanban-palette-color7 {
background-color: @palette7;
2020-03-05 10:47:49 +00:00
&.kanban-board-inner {
2020-03-04 16:59:13 +00:00
background-color: lighten(@palette7, 5%);
}
2020-03-03 15:20:45 +00:00
}
.cp-kanban-palette-color8 {
background-color: @palette8;
2020-03-05 10:47:49 +00:00
&.kanban-board-inner {
2020-03-04 16:59:13 +00:00
background-color: lighten(@palette8, 5%);
}
2020-03-03 15:20:45 +00:00
}
2020-03-09 13:58:49 +00:00
.cp-kanban-edit-modal {
display: flex;
flex-flow: column;
overflow: hidden;
}
2020-03-09 17:49:57 +00:00
#cp-kanban-edit-conflicts {
padding: 5px;
background: #eee;
color: @cryptpad_text_col;
font-size: 14px;
.cp-kanban-cursors {
margin-top: 5px;
}
margin-bottom: 5px;
}
2020-03-03 15:20:45 +00:00
#cp-kanban-edit-body {
border: 1px solid @colortheme_modal-input;
.CodeMirror {
height: 105px;
}
.CodeMirror-scroll {
box-sizing: content-box;
}
.cp-markdown-toolbar {
background-color: #eee;
color: @cryptpad_text_col;
}
margin-bottom: 15px;
}
#cp-kanban-edit-colors {
display: flex;
justify-content: space-between;
.cp-kanban-palette {
display: inline-block;
border-radius: 50%;
height: 30px;
width: 30px;
text-align: center;
line-height: 30px;
color: @cryptpad_text_col;
}
}
#cp-kanban-edit-tags {
.tokenfield {
margin: 0;
}
margin-bottom: 15px;
}
#cp-app-kanban-container {
2018-05-16 17:28:30 +00:00
flex: 1;
display: flex;
flex-flow: column;
2020-03-04 14:25:03 +00:00
overflow-x: hidden;
}
#cp-app-kanban-editor {
flex: 1;
display: flex;
flex-flow: row;
height: 100%;
overflow: hidden;
2018-04-01 16:52:21 +00:00
}
2020-03-04 16:48:20 +00:00
.kanban-edit-item {
padding: 5px;
}
2020-03-09 17:49:57 +00:00
.cp-kanban-cursors {
&:empty { display: none; }
order: 2;
width: 100%;
&> span {
display: inline-block;
width: 20px;
height: 20px;
text-align: center;
line-height: 20px;
margin-right: 5px;
.tools_unselectable();
cursor: default;
}
}
2020-03-04 16:48:20 +00:00
.kanban-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 5px;
flex-wrap: wrap;
2020-03-09 17:49:57 +00:00
.cp-kanban-cursors {
margin-top: 10px;
}
2020-03-04 16:48:20 +00:00
.kanban-item-body, .kanban-item-tags {
.tools_unselectable();
width: 100%;
}
.kanban-item-body {
margin: 10px 0;
font-size: 0.8em;
:last-child {
margin-bottom: 0px;
}
.markdown_main();
.markdown_cryptpad();
.markdown_preformatted-code;
.markdown_gfm-table(black);
ul {
padding-left: 30px;
}
}
.kanban-item-tags {
display: flex;
align-items: center;
flex-wrap: wrap;
span {
padding: 0 5px;
margin-right: 5px;
margin-top: 5px;
background-color: rgba(0,0,0,0.1);
display: inline-block;
font-size: 12px;
}
}
&.new-item {
padding: 10px;
}
.kanban-item-text {
.tools_unselectable();
cursor: text;
overflow-wrap: anywhere;
flex: 1;
}
2020-03-04 17:50:17 +00:00
&.kanban-item-hidden {
display: none;
}
2020-03-04 16:48:20 +00:00
}
2020-03-09 13:27:33 +00:00
.kanban-board {
main {
padding: 0 10px;
margin: 10px 0;
2018-05-16 17:28:30 +00:00
flex: 1;
2020-03-09 13:27:33 +00:00
overflow-y: auto;
justify-content: space-around;
min-height: 50px;
}
header {
2018-05-16 17:28:30 +00:00
display: flex;
2020-03-09 17:49:57 +00:00
flex-wrap: wrap;
2020-03-09 13:27:33 +00:00
align-items: center;
padding: 5px 10px;
.kanban-title-board {
2018-05-16 17:28:30 +00:00
flex: 1;
2020-03-09 13:27:33 +00:00
margin-right: 10px;
min-width: 0;
overflow: hidden;
//white-space: nowrap;
text-overflow: ellipsis;
}
#kanban-edit {
font-weight: bold;
}
&:hover {
cursor: move;
2018-05-16 17:28:30 +00:00
}
}
2020-03-09 13:27:33 +00:00
footer {
margin: 10px;
margin-top: 0px;
span {
.tools_unselectable();
outline: none;
width: 100%;
border: 1px solid @cryptpad_text_col;
border-radius: 0px;
font-size: 40px;
2020-03-04 17:50:17 +00:00
display: inline-flex;
2020-03-09 13:27:33 +00:00
justify-content: center;
align-items: center;
line-height: 1;
cursor: pointer;
&:hover {
background-color: rgba(0,0,0,0.1);
2020-03-05 11:06:35 +00:00
}
2020-03-09 13:27:33 +00:00
}
}
}
2020-03-05 13:06:34 +00:00
2020-03-09 13:27:33 +00:00
#cp-kanban-controls {
padding: 10px;
display: flex;
position: relative;
width: 100%;
justify-content: space-between;
position: relative;
min-height: 50px;
.cp-kanban-filterTags {
display: inline-flex;
align-items: baseline;
flex: 1;
max-width: 80%;
min-width: 150px;
2020-03-04 17:50:17 +00:00
2020-03-09 13:27:33 +00:00
&> i {
cursor: pointer;
margin-left: 10px;
2020-03-04 17:50:17 +00:00
}
2020-03-09 13:27:33 +00:00
.cp-kanban-filterTags-name {
flex-shrink: 0;
}
.cp-kanban-filterTags-list {
margin-left: 10px;
display: flex;
flex-wrap: wrap;
em {
font-size: 14px;
color: lighten(@cryptpad_text_col, 10%);
}
2020-03-04 16:48:20 +00:00
span {
2020-03-09 13:27:33 +00:00
.tools_unselectable();
padding: 0 5px;
margin-right: 5px;
margin-top: 5px;
background-color: rgba(0,0,0,0.1);
2020-03-04 16:48:20 +00:00
display: inline-block;
2020-03-09 13:27:33 +00:00
font-size: 14px;
2020-03-04 16:48:20 +00:00
cursor: pointer;
2020-03-09 13:27:33 +00:00
&.active {
background-color: @cryptpad_text_col;
color: #fff;
2020-03-04 16:48:20 +00:00
}
}
}
}
2020-03-09 13:27:33 +00:00
.cp-kanban-changeView {
right: 10px;
height: 30px;
width: 60px;
span {
height: 30px;
width: 30px;
line-height: 30px;
text-align: center;
display: inline-block;
background-color: @board-bg;
cursor: pointer;
&:hover {
background-color: darken(@board-bg, 10%);
}
}
}
}
#cp-app-kanban-container {
2020-03-04 16:48:20 +00:00
&:not(.cp-kanban-quick) {
#cp-kanban-controls {
.cp-kanban-changeView {
span.cp-kanban-view {
background-color: @cryptpad_text_col !important;
color: white;
}
span.cp-kanban-view-small {
}
}
}
}
&.cp-kanban-quick {
#cp-kanban-controls {
.cp-kanban-changeView {
span.cp-kanban-view {
}
span.cp-kanban-view-small {
background-color: @cryptpad_text_col !important;
color: white;
}
}
}
.kanban-item {
.kanban-item-body, .kanban-item-tags {
display: none;
}
}
}
2020-03-09 13:27:33 +00:00
}
#cp-app-kanban-content {
flex: 1;
display: flex;
flex-flow: column;
max-height: 100%;
overflow-x: auto;
2020-03-10 16:00:54 +00:00
outline: none;
2020-03-09 13:27:33 +00:00
.kanban-container-outer {
flex: 1;
display: flex;
min-height: 0;
.kanban-container {
flex: 1;
display: flex;
max-height: 100%;
}
}
2020-03-02 11:05:09 +00:00
#kanban-trash {
2020-03-04 16:48:20 +00:00
height: 60px;
2020-03-02 11:05:09 +00:00
font-size: 40px;
display: flex;
align-items: center;
justify-content: center;
2020-03-04 14:25:03 +00:00
position: relative;
width: 100%;
2020-03-09 13:27:33 +00:00
//pointer-events: none;
2020-03-04 14:25:03 +00:00
i {
position: fixed;
}
2020-03-09 13:27:33 +00:00
div {
width: 100%;
height: 60px;
position: fixed;
right: 0;
}
2020-03-02 11:05:09 +00:00
&.kanban-trash-active {
color: red;
2020-03-09 13:27:33 +00:00
div {
background: rgba(255,0,0,0.5);
}
2020-03-02 11:05:09 +00:00
}
.kanban-item, .kanban-board {
display: none;
}
}
2018-05-16 17:28:30 +00:00
#kanban-edit {
width: 100%;
background: transparent;
border: 1px solid rgba(0,0,0,0.3);
2018-09-18 12:56:06 +00:00
color: inherit;
}
2018-05-16 17:28:30 +00:00
#kanban-addboard {
order: 2;
2020-03-04 14:34:36 +00:00
width: 300px;
margin: 10px 5px;
border: 1px solid @cryptpad_text_col;
height: 40px;
display: inline-flex;
justify-content: center;
align-items: center;
align-self: flex-start;
2020-03-04 14:34:36 +00:00
font-size: 40px;
cursor: pointer;
.tools_unselectable();
&:hover {
2020-03-04 14:34:36 +00:00
background-color: rgba(0,0,0,0.1);
}
2018-05-22 16:22:25 +00:00
}
.kanban-header-yellow {
background: #FC3 !important;
}
2018-05-16 17:28:30 +00:00
.kanban-header-orange {
background: #F91 !important;
}
2018-05-16 17:28:30 +00:00
.kanban-header-blue {
background: #0AC !important;
}
2018-05-16 17:28:30 +00:00
.kanban-header-red {
background: #E43 !important;
}
2018-05-16 17:28:30 +00:00
.kanban-header-green {
background: #8C4 !important;
}
2018-04-01 16:52:21 +00:00
.kanban-header-purple {
background: #c851ff !important;
}
.kanban-header-cyan {
background: #00ffff !important;
}
.kanban-header-lightgreen {
background: #c3ff5b !important;
}
.kanban-header-lightblue {
background: #adeeff !important;
}
@media (max-width: @browser_media-medium-screen) {
#cp-app-kanban-container {
flex: 1;
max-width: 100%;
resize: none;
}
}
&.cp-app-readonly {
.kanban-item, .kanban-title-board {
cursor: default !important;
.tools_unselectable();
}
.kanban-title-button, #kanban-addboard, .kanban-remove-item, .kanban-additem {
display: none !important;
}
2020-03-05 13:06:34 +00:00
#kanban-trash {
display: none;
}
2018-04-01 16:52:21 +00:00
}
}
2018-04-01 16:52:21 +00:00
}