ts-mind
Version:
A web-mind lib write in typescript.Sound apis and friendly plug-in mechanism in this lib.
394 lines (374 loc) • 7.61 kB
text/less
/*
* Released under BSD License
* Copyright (c) 2014-2015 hizzgdev@163.com
*
* Project Home:
* https://github.com/hizzgdev/jsmind/
*/
/* important section */
.jsmind-inner {
position: relative;
overflow: auto;
width: 100%;
height: 100%;
} /*box-shadow:0 0 2px #000;*/
.jsmind-inner {
moz-user-select: -moz-none;
-moz-user-select: none;
-o-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* z-index:1 */
canvas {
position: absolute;
z-index: 1;
}
/* z-index:2 */
tsmnodes {
position: absolute;
z-index: 2;
background-color: rgba(0, 0, 0, 0);
} /*background color is necessary*/
tsmnode {
position: absolute;
cursor: default;
max-width: 400px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
tsmfold {
position: absolute;
width: 11px;
height: 11px;
display: block;
overflow: hidden;
line-height: 12px;
font-size: 12px;
text-align: center;
border-radius: 6px;
border-width: 1px;
border-style: solid;
cursor: pointer;
}
/* default theme */
tsmnode {
padding: 10px;
background-color: #fff;
color: #333;
border-radius: 5px;
box-shadow: 1px 1px 1px #666;
font: 16px/1.125 Verdana, Arial, Helvetica, sans-serif;
}
tsmnode:hover {
box-shadow: 2px 2px 8px #000;
background-color: #ebebeb;
color: #333;
}
tsmnode.selected {
background-color: #11f;
color: #fff;
box-shadow: 2px 2px 8px #000;
}
tsmnode.root {
font-size: 24px;
}
tsmfold {
border-color: gray;
}
tsmfold:hover {
border-color: #000;
}
@media screen and (max-device-width: 1024px) {
tsmnode {
padding: 5px;
border-radius: 3px;
font-size: 14px;
}
tsmnode.root {
font-size: 21px;
}
}
/* primary theme */
tsmnodes.theme-primary tsmnode {
background-color: #428bca;
color: #fff;
border-color: #357ebd;
}
tsmnodes.theme-primary tsmnode:hover {
background-color: #3276b1;
border-color: #285e8e;
}
tsmnodes.theme-primary tsmnode.selected {
background-color: #f1c40f;
color: #fff;
}
tsmnodes.theme-primary tsmnode.root {
}
tsmnodes.theme-primary tsmfold {
}
tsmnodes.theme-primary tsmfold:hover {
}
/* warning theme */
tsmnodes.theme-warning tsmnode {
background-color: #f0ad4e;
border-color: #eea236;
color: #fff;
}
tsmnodes.theme-warning tsmnode:hover {
background-color: #ed9c28;
border-color: #d58512;
}
tsmnodes.theme-warning tsmnode.selected {
background-color: #11f;
color: #fff;
}
tsmnodes.theme-warning tsmnode.root {
}
tsmnodes.theme-warning tsmfold {
}
tsmnodes.theme-warning tsmfold:hover {
}
/* danger theme */
tsmnodes.theme-danger tsmnode {
background-color: #d9534f;
border-color: #d43f3a;
color: #fff;
}
tsmnodes.theme-danger tsmnode:hover {
background-color: #d2322d;
border-color: #ac2925;
}
tsmnodes.theme-danger tsmnode.selected {
background-color: #11f;
color: #fff;
}
tsmnodes.theme-danger tsmnode.root {
}
tsmnodes.theme-danger tsmfold {
}
tsmnodes.theme-danger tsmfold:hover {
}
/* success theme */
tsmnodes.theme-success tsmnode {
background-color: #5cb85c;
border-color: #4cae4c;
color: #fff;
}
tsmnodes.theme-success tsmnode:hover {
background-color: #47a447;
border-color: #398439;
}
tsmnodes.theme-success tsmnode.selected {
background-color: #11f;
color: #fff;
}
tsmnodes.theme-success tsmnode.root {
}
tsmnodes.theme-success tsmfold {
}
tsmnodes.theme-success tsmfold:hover {
}
/* info theme */
tsmnodes.theme-info tsmnode {
background-color: #5dc0de;
border-color: #46b8da;
color: #fff;
}
tsmnodes.theme-info tsmnode:hover {
background-color: #39b3d7;
border-color: #269abc;
}
tsmnodes.theme-info tsmnode.selected {
background-color: #11f;
color: #fff;
}
tsmnodes.theme-info tsmnode.root {
}
tsmnodes.theme-info tsmfold {
}
tsmnodes.theme-info tsmfold:hover {
}
/* greensea theme */
tsmnodes.theme-greensea tsmnode {
background-color: #1abc9c;
color: #fff;
}
tsmnodes.theme-greensea tsmnode:hover {
background-color: #16a085;
}
tsmnodes.theme-greensea tsmnode.selected {
background-color: #11f;
color: #fff;
}
tsmnodes.theme-greensea tsmnode.root {
}
tsmnodes.theme-greensea tsmfold {
}
tsmnodes.theme-greensea tsmfold:hover {
}
/* nephrite theme */
tsmnodes.theme-nephrite tsmnode {
background-color: #2ecc71;
color: #fff;
}
tsmnodes.theme-nephrite tsmnode:hover {
background-color: #27ae60;
}
tsmnodes.theme-nephrite tsmnode.selected {
background-color: #11f;
color: #fff;
}
tsmnodes.theme-nephrite tsmnode.root {
}
tsmnodes.theme-nephrite tsmfold {
}
tsmnodes.theme-nephrite tsmfold:hover {
}
/* belizehole theme */
tsmnodes.theme-belizehole tsmnode {
background-color: #3498db;
color: #fff;
}
tsmnodes.theme-belizehole tsmnode:hover {
background-color: #2980b9;
}
tsmnodes.theme-belizehole tsmnode.selected {
background-color: #11f;
color: #fff;
}
tsmnodes.theme-belizehole tsmnode.root {
}
tsmnodes.theme-belizehole tsmfold {
}
tsmnodes.theme-belizehole tsmfold:hover {
}
/* wisteria theme */
tsmnodes.theme-wisteria tsmnode {
background-color: #9b59b6;
color: #fff;
}
tsmnodes.theme-wisteria tsmnode:hover {
background-color: #8e44ad;
}
tsmnodes.theme-wisteria tsmnode.selected {
background-color: #11f;
color: #fff;
}
tsmnodes.theme-wisteria tsmnode.root {
}
tsmnodes.theme-wisteria tsmfold {
}
tsmnodes.theme-wisteria tsmfold:hover {
}
/* asphalt theme */
tsmnodes.theme-asphalt tsmnode {
background-color: #34495e;
color: #fff;
}
tsmnodes.theme-asphalt tsmnode:hover {
background-color: #2c3e50;
}
tsmnodes.theme-asphalt tsmnode.selected {
background-color: #11f;
color: #fff;
}
tsmnodes.theme-asphalt tsmnode.root {
}
tsmnodes.theme-asphalt tsmfold {
}
tsmnodes.theme-asphalt tsmfold:hover {
}
/* orange theme */
tsmnodes.theme-orange tsmnode {
background-color: #f1c40f;
color: #fff;
}
tsmnodes.theme-orange tsmnode:hover {
background-color: #f39c12;
}
tsmnodes.theme-orange tsmnode.selected {
background-color: #11f;
color: #fff;
}
tsmnodes.theme-orange tsmnode.root {
}
tsmnodes.theme-orange tsmfold {
}
tsmnodes.theme-orange tsmfold:hover {
}
/* pumpkin theme */
tsmnodes.theme-pumpkin tsmnode {
background-color: #e67e22;
color: #fff;
}
tsmnodes.theme-pumpkin tsmnode:hover {
background-color: #d35400;
}
tsmnodes.theme-pumpkin tsmnode.selected {
background-color: #11f;
color: #fff;
}
tsmnodes.theme-pumpkin tsmnode.root {
}
tsmnodes.theme-pumpkin tsmfold {
}
tsmnodes.theme-pumpkin tsmfold:hover {
}
/* pomegranate theme */
tsmnodes.theme-pomegranate tsmnode {
background-color: #e74c3c;
color: #fff;
}
tsmnodes.theme-pomegranate tsmnode:hover {
background-color: #c0392b;
}
tsmnodes.theme-pomegranate tsmnode.selected {
background-color: #11f;
color: #fff;
}
tsmnodes.theme-pomegranate tsmnode.root {
}
tsmnodes.theme-pomegranate tsmfold {
}
tsmnodes.theme-pomegranate tsmfold:hover {
}
/* clouds theme */
tsmnodes.theme-clouds tsmnode {
background-color: #ecf0f1;
color: #333;
}
tsmnodes.theme-clouds tsmnode:hover {
background-color: #bdc3c7;
}
tsmnodes.theme-clouds tsmnode.selected {
background-color: #11f;
color: #fff;
}
tsmnodes.theme-clouds tsmnode.root {
}
tsmnodes.theme-clouds tsmfold {
}
tsmnodes.theme-clouds tsmfold:hover {
}
/* asbestos theme */
tsmnodes.theme-asbestos tsmnode {
background-color: #95a5a6;
color: #fff;
}
tsmnodes.theme-asbestos tsmnode:hover {
background-color: #7f8c8d;
}
tsmnodes.theme-asbestos tsmnode.selected {
background-color: #11f;
color: #fff;
}
tsmnodes.theme-asbestos tsmnode.root {
}
tsmnodes.theme-asbestos tsmfold {
}
tsmnodes.theme-asbestos tsmfold:hover {
}