|
|
|
@import (reference) "../../customize/src/less2/include/browser.less";
|
|
|
|
@import (reference) "../../customize/src/less2/include/framework.less";
|
|
|
|
@import (reference) "../../customize/src/less2/include/tools.less";
|
|
|
|
|
|
|
|
// body
|
|
|
|
&.cp-app-kanban {
|
|
|
|
.framework_main(
|
|
|
|
@bg-color: @colortheme_kanban-bg,
|
|
|
|
@warn-color: @colortheme_kanban-warn,
|
|
|
|
@color: @colortheme_kanban-color
|
|
|
|
);
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
|
|
|
max-height: 100%;
|
|
|
|
min-height: auto;
|
|
|
|
|
|
|
|
@palette0: #888; // Default bg color for header
|
|
|
|
@palette1: #FFD4D4;
|
|
|
|
@palette2: #FFDECA;
|
|
|
|
@palette3: #FFE69C;
|
|
|
|
@palette4: #DBFFB7;
|
|
|
|
@palette5: #AFFDC2;
|
|
|
|
@palette6: #C9FFFE;
|
|
|
|
@palette7: #C8D6FF;
|
|
|
|
@palette8: #E4CAFF;
|
|
|
|
|
|
|
|
.kanban-board-header {
|
|
|
|
background-color: #c9c9c9;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cp-kanban-palette-nocolor {
|
|
|
|
background-color: @palette0;
|
|
|
|
}
|
|
|
|
.cp-kanban-palette-color1 {
|
|
|
|
background-color: @palette1;
|
|
|
|
}
|
|
|
|
.cp-kanban-palette-color2 {
|
|
|
|
background-color: @palette2;
|
|
|
|
}
|
|
|
|
.cp-kanban-palette-color3 {
|
|
|
|
background-color: @palette3;
|
|
|
|
}
|
|
|
|
.cp-kanban-palette-color4 {
|
|
|
|
background-color: @palette4;
|
|
|
|
}
|
|
|
|
.cp-kanban-palette-color5 {
|
|
|
|
background-color: @palette5;
|
|
|
|
}
|
|
|
|
.cp-kanban-palette-color6 {
|
|
|
|
background-color: @palette6;
|
|
|
|
}
|
|
|
|
.cp-kanban-palette-color7 {
|
|
|
|
background-color: @palette7;
|
|
|
|
}
|
|
|
|
.cp-kanban-palette-color8 {
|
|
|
|
background-color: @palette8;
|
|
|
|
}
|
|
|
|
|
|
|
|
#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-palette-nocolor {
|
|
|
|
border: 1px solid @cryptpad_text_col;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#cp-kanban-edit-tags {
|
|
|
|
.tokenfield {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
margin-bottom: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#cp-app-kanban-container {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
#cp-app-kanban-editor {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row;
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
#cp-app-kanban-content {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
|
|
|
max-height: 100%;
|
|
|
|
overflow-x: auto;
|
|
|
|
.kanban-container-outer {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
min-height: 0;
|
|
|
|
.kanban-container {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-around;
|
|
|
|
max-height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#kanban-trash {
|
|
|
|
height: 100px;
|
|
|
|
font-size: 40px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
i {
|
|
|
|
position: fixed;
|
|
|
|
}
|
|
|
|
&.kanban-trash-active {
|
|
|
|
color: red;
|
|
|
|
border: 1px solid red;
|
|
|
|
background-color: rgba(255,0,0,0.5);
|
|
|
|
}
|
|
|
|
.kanban-item, .kanban-board {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.kanban-item {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: 10px 5px 10px 10px;
|
|
|
|
&.new-item {
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
.kanban-item-text {
|
|
|
|
cursor: text;
|
|
|
|
overflow-wrap: anywhere;
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.kanban-board {
|
|
|
|
background-color: #eaeaea;
|
|
|
|
color: @cryptpad_text_col;
|
|
|
|
main {
|
|
|
|
min-height: 0;
|
|
|
|
padding: 0 10px;
|
|
|
|
margin: 10px 0;
|
|
|
|
flex: 1;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
header {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 13px 10px;
|
|
|
|
.kanban-title-board {
|
|
|
|
flex: 1;
|
|
|
|
margin-right: 10px;
|
|
|
|
min-width: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
//white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
#kanban-edit {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
cursor: move;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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;
|
|
|
|
display: inline-flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
line-height: 1;
|
|
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
|
|
background-color: rgba(0,0,0,0.1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#kanban-edit {
|
|
|
|
width: 100%;
|
|
|
|
background: transparent;
|
|
|
|
border: 1px solid rgba(0,0,0,0.3);
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
@button-size: 50px;
|
|
|
|
#kanban-addboard {
|
|
|
|
order: 2;
|
|
|
|
margin: 30px;
|
|
|
|
border: 1px solid;
|
|
|
|
width: @button-size;
|
|
|
|
height: @button-size;
|
|
|
|
line-height: @button-size;
|
|
|
|
text-align: center;
|
|
|
|
background: @colortheme_kanban-bg;
|
|
|
|
align-self: flex-start;
|
|
|
|
font-size: 30px;
|
|
|
|
cursor: pointer;
|
|
|
|
.tools_unselectable();
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
.kanban-remove-item {
|
|
|
|
padding: 0 0.5em;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
.kanban-item:hover {
|
|
|
|
.kanban-remove-item {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
.kanban-additem {
|
|
|
|
float: right;
|
|
|
|
background: #EEE;
|
|
|
|
padding: 5px .5rem 4px;
|
|
|
|
line-height: 1;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
margin-right: 5px;
|
|
|
|
&:hover {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.kanban-header-yellow {
|
|
|
|
background: #FC3 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.kanban-header-orange {
|
|
|
|
background: #F91 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.kanban-header-blue {
|
|
|
|
background: #0AC !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.kanban-header-red {
|
|
|
|
background: #E43 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.kanban-header-green {
|
|
|
|
background: #8C4 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|