Skip to content
Snippets Groups Projects
Commit 3ff038d2 authored by Viktoria Wiebe's avatar Viktoria Wiebe Committed by Jan-Hendrik Willms
Browse files

CW ImageMapBlock: Implement dragging functionality, closes #1136

Closes #1136

Merge request studip/studip!1088
parent e1fb3942
No related branches found
No related tags found
No related merge requests found
......@@ -89,6 +89,8 @@ $media-buttons: (
next: arr_eol-right
);
$cw-wrapper-gap: 0.5em;
/* * * * * * * *
c o n t e n t s
* * * * * * * * */
......@@ -893,12 +895,13 @@ form.cw-container-dialog-edit-form {
width: 100%;
.cw-block-content {
overflow: auto;
position: relative;
}
}
.cw-content-wrapper-active {
border: solid thin $content-color-40;
.cw-block-content {
padding: 0.5em;
padding: $cw-wrapper-gap;
}
}
.cw-container-wrapper-discuss {
......@@ -966,6 +969,27 @@ form.cw-container-dialog-edit-form {
margin-left: 10px;
}
.cw-draggable-shapes-wrapper {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
margin: $cw-wrapper-gap;
.cw-draggable-area {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
&:hover {
cursor: grab;
}
}
}
@media only screen and (max-width: 1820px) {
.cw-structural-element .cw-container-wrapper.cw-container-wrapper-discuss {
max-width: 1095px;
......@@ -1666,6 +1690,7 @@ $icons: (
&.cw-tab-active {
display: block;
height: unset;
padding: 4px 8px;
}
}
&.cw-course-manager-tabs {
......@@ -4005,6 +4030,12 @@ i m a g e m a p b l o c k
.cw-image-map-original-img {
display: none;
}
form.default {
label.cw-block-image-map-dimensions > input[type=number] {
display: inline-block;
}
}
}
/* * * * * * * * * * * * * * * * *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment