208 lines
3.6 KiB
CSS
208 lines
3.6 KiB
CSS
/* CMap view, concept presentation and CMapTools-like interactions. */
|
|
|
|
#cmap-view {
|
|
max-width: none;
|
|
}
|
|
|
|
.cmap-page-header {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.cmap-toolbar {
|
|
display: flex;
|
|
gap: .45rem;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.cmap-toolbar button {
|
|
font: inherit;
|
|
padding: .35rem .65rem;
|
|
}
|
|
|
|
.cmap-help {
|
|
margin: .25rem 0 .75rem;
|
|
}
|
|
|
|
.cmap-canvas {
|
|
position: relative;
|
|
width: min(1380px, 100%);
|
|
min-width: 760px;
|
|
height: 720px;
|
|
overflow: auto;
|
|
border: 1px solid var(--wiki-border);
|
|
background-color: #fbfbf8;
|
|
background-image:
|
|
linear-gradient(#ecece7 1px, transparent 1px),
|
|
linear-gradient(90deg, #ecece7 1px, transparent 1px);
|
|
background-size: 24px 24px;
|
|
}
|
|
|
|
.cmap-prototype-node {
|
|
box-sizing: border-box;
|
|
cursor: move;
|
|
border-radius: 6px;
|
|
box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
font-size: 15px;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.cmap-card {
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
padding: 9px 11px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cmap-card-title {
|
|
margin-bottom: .3rem;
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.cmap-card-synopsis {
|
|
color: #4b4b4b;
|
|
font-size: .84rem;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.cmap-card-page .cmap-card-title::after {
|
|
content: " ↗";
|
|
color: #4479a1;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.cmap-card-submap .cmap-card-title::after {
|
|
content: " [+]";
|
|
color: #57834a;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.rw-cmap-item {
|
|
overflow: visible !important;
|
|
}
|
|
|
|
.rw-cmap-selected {
|
|
z-index: 20 !important;
|
|
outline: 3px solid #9994ff !important;
|
|
outline-offset: 2px;
|
|
box-shadow: 0 0 0 1px rgb(255 255 255 / 95%),
|
|
0 0 0 5px rgb(132 126 255 / 38%) !important;
|
|
}
|
|
|
|
.rw-cmap-handle {
|
|
position: absolute;
|
|
z-index: 60;
|
|
display: grid;
|
|
place-items: center;
|
|
width: 12px;
|
|
height: 12px;
|
|
padding: 0;
|
|
border: 1px solid #111;
|
|
border-radius: 0;
|
|
background: #fff;
|
|
box-shadow: none;
|
|
color: #111;
|
|
cursor: crosshair;
|
|
font: 10px/1 Arial, Helvetica, sans-serif;
|
|
}
|
|
|
|
.rw-cmap-relation-handle {
|
|
top: -21px;
|
|
left: 50%;
|
|
width: 34px;
|
|
height: 12px;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.rw-cmap-relation-handle::before,
|
|
.rw-cmap-relation-handle::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 5px;
|
|
width: 15px;
|
|
border-top: 1px solid #111;
|
|
}
|
|
|
|
.rw-cmap-relation-handle::before {
|
|
left: 2px;
|
|
transform: rotate(18deg);
|
|
transform-origin: right center;
|
|
}
|
|
|
|
.rw-cmap-relation-handle::after {
|
|
right: 2px;
|
|
transform: rotate(-18deg);
|
|
transform-origin: left center;
|
|
}
|
|
|
|
.rw-cmap-resize-handle {
|
|
right: -8px;
|
|
bottom: -8px;
|
|
background:
|
|
linear-gradient(135deg,
|
|
transparent 0 42%,
|
|
#111 43% 51%,
|
|
transparent 52% 63%,
|
|
#111 64% 72%,
|
|
transparent 73%),
|
|
#fff;
|
|
cursor: nwse-resize;
|
|
}
|
|
|
|
.rw-cmap-item-phrase {
|
|
border-radius: 4px !important;
|
|
cursor: move;
|
|
}
|
|
|
|
.rw-cmap-phrase-label {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
padding: 4px 8px;
|
|
font-size: 14px;
|
|
line-height: 1.1;
|
|
text-align: center;
|
|
}
|
|
|
|
.rw-cmap-phrase-input {
|
|
width: calc(100% - 8px);
|
|
height: calc(100% - 8px);
|
|
box-sizing: border-box;
|
|
margin: 4px;
|
|
padding: 2px 5px;
|
|
border: 1px solid #5966d6;
|
|
background: #fff;
|
|
font: inherit;
|
|
text-align: center;
|
|
}
|
|
|
|
.rw-cmap-draft-layer {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 50;
|
|
overflow: visible;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.rw-cmap-draft-line {
|
|
stroke: #4f5ee8;
|
|
stroke-width: 2.5;
|
|
stroke-dasharray: 6 4;
|
|
}
|
|
|
|
.rw-cmap-connector {
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.cmap-canvas {
|
|
min-width: 0;
|
|
height: 620px;
|
|
}
|
|
}
|