Skip to content
Snippets Groups Projects
Commit 61d8f52b authored by Viktoria Wiebe's avatar Viktoria Wiebe Committed by Marcus Eibrink-Lunzenauer
Browse files

CW ImageMapBlock: Implement dragging functionality, closes #1136

Closes #1136

Merge request studip/studip!1088
parent 330ddc50
No related branches found
No related tags found
No related merge requests found
...@@ -110,6 +110,8 @@ $media-buttons: ( ...@@ -110,6 +110,8 @@ $media-buttons: (
next: arr_eol-right next: arr_eol-right
); );
$cw-wrapper-gap: 0.5em;
/* * * * * * * * /* * * * * * * *
c o n t e n t s c o n t e n t s
* * * * * * * * */ * * * * * * * * */
...@@ -954,12 +956,13 @@ form.cw-container-dialog-edit-form { ...@@ -954,12 +956,13 @@ form.cw-container-dialog-edit-form {
width: 100%; width: 100%;
.cw-block-content { .cw-block-content {
overflow: auto; overflow: auto;
position: relative;
} }
} }
.cw-content-wrapper-active { .cw-content-wrapper-active {
border: solid thin $content-color-40; border: solid thin $content-color-40;
.cw-block-content { .cw-block-content {
padding: 0.5em; padding: $cw-wrapper-gap;
} }
} }
.cw-container-wrapper-discuss { .cw-container-wrapper-discuss {
...@@ -1027,6 +1030,27 @@ form.cw-container-dialog-edit-form { ...@@ -1027,6 +1030,27 @@ form.cw-container-dialog-edit-form {
margin-left: 10px; 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) { @media only screen and (max-width: 1820px) {
.cw-structural-element .cw-container-wrapper.cw-container-wrapper-discuss { .cw-structural-element .cw-container-wrapper.cw-container-wrapper-discuss {
max-width: 1095px; max-width: 1095px;
...@@ -1727,6 +1751,7 @@ $icons: ( ...@@ -1727,6 +1751,7 @@ $icons: (
&.cw-tab-active { &.cw-tab-active {
display: block; display: block;
height: unset; height: unset;
padding: 4px 8px;
} }
form.default { form.default {
...@@ -4069,6 +4094,12 @@ i m a g e m a p b l o c k ...@@ -4069,6 +4094,12 @@ i m a g e m a p b l o c k
.cw-image-map-original-img { .cw-image-map-original-img {
display: none; 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.
Please register or to comment