Skip to content
Snippets Groups Projects
Commit 4ca88e3b authored by Ron Lucke's avatar Ron Lucke Committed by Jan-Hendrik Willms
Browse files

fix #4355

Closes #4355

Merge request studip/studip!3170
parent a92b0998
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
display: flex; display: flex;
position: relative; position: relative;
border: solid thin var(--content-color-40); border: solid thin var(--content-color-40);
background-color: var(--white);
max-width: 268px; max-width: 268px;
.cw-sortable-handle { .cw-sortable-handle {
...@@ -23,6 +24,13 @@ ...@@ -23,6 +24,13 @@
} }
} }
.cw-blockadder-item { .cw-blockadder-item {
display: inline-flex;
align-items: flex-start;
flex-direction: column;
text-align: left;
color: var(--base-color);
border: none;
background-color: var(--white);
padding: 64px 10px 4px 10px; padding: 64px 10px 4px 10px;
@include background-icon(unit-test, clickable, 48); @include background-icon(unit-test, clickable, 48);
background-position: 16px 10px; background-position: 16px 10px;
...@@ -43,6 +51,10 @@ ...@@ -43,6 +51,10 @@
display: inline-block; display: inline-block;
margin: 0 0 4px; margin: 0 0 4px;
} }
&:hover {
color: var(--active-color);
}
} }
.cw-blockadder-item-fav { .cw-blockadder-item-fav {
height: 32px; height: 32px;
...@@ -71,11 +83,15 @@ ...@@ -71,11 +83,15 @@
} }
.cw-containeradder-item { .cw-containeradder-item {
border: none;
background-color: var(--white);
min-height: 5em; min-height: 5em;
padding: 1em 1em 1em 6em; padding: 1em 1em 1em 6em;
@include background-icon(unit-test, clickable, 48); @include background-icon(unit-test, clickable, 48);
background-position: 16px center; background-position: 16px center;
background-repeat: no-repeat; background-repeat: no-repeat;
text-align: left;
color: var(--base-color);
cursor: pointer; cursor: pointer;
@each $item, $icon in $containeradder-items { @each $item, $icon in $containeradder-items {
...@@ -87,6 +103,10 @@ ...@@ -87,6 +103,10 @@
.cw-containeradder-item-title { .cw-containeradder-item-title {
font-weight: 600; font-weight: 600;
} }
&:hover {
color: var(--active-color);
}
} }
} }
...@@ -135,6 +155,10 @@ ...@@ -135,6 +155,10 @@
outline-width: 1px; outline-width: 1px;
} }
} }
&.sortable-ghost {
background-color: var(--active-color);
}
} }
.cw-element-inserter-wrapper { .cw-element-inserter-wrapper {
display: grid; display: grid;
...@@ -144,6 +168,7 @@ ...@@ -144,6 +168,7 @@
margin-bottom: 8px; margin-bottom: 8px;
.cw-clipboard-item-wrapper { .cw-clipboard-item-wrapper {
background-color: var(--white);
display: flex; display: flex;
border: solid thin var(--content-color-40); border: solid thin var(--content-color-40);
max-width: 248px; max-width: 248px;
......
<template> <template>
<div class="cw-blockadder-item-wrapper"> <div class="cw-blockadder-item-wrapper">
<span class="cw-sortable-handle cw-sortable-handle-blockadder"></span> <span class="cw-sortable-handle cw-sortable-handle-blockadder"></span>
<a href="#" class="cw-blockadder-item" :class="['cw-blockadder-item-' + type]" @click.prevent="addBlock"> <button class="cw-blockadder-item" :class="['cw-blockadder-item-' + type]" @click.prevent="addBlock">
<header class="cw-blockadder-item-title"> <header class="cw-blockadder-item-title">
{{ title }} {{ title }}
</header> </header>
<p class="cw-blockadder-item-description"> <p class="cw-blockadder-item-description">
{{ description }} {{ description }}
</p> </p>
</a> </button>
<button <button
class="cw-blockadder-item-fav" class="cw-blockadder-item-fav"
:title="favButtonTitle" :title="favButtonTitle"
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
<studip-icon :shape="blockTypeIsFav ? 'star' : 'star-empty'" :size="20" /> <studip-icon :shape="blockTypeIsFav ? 'star' : 'star-empty'" :size="20" />
</button> </button>
</div> </div>
</template> </template>
<script> <script>
......
<template> <template>
<div class="cw-containeradder-item-wrapper"> <div class="cw-containeradder-item-wrapper">
<span class="cw-sortable-handle cw-sortable-handle-containeradder"></span> <span class="cw-sortable-handle cw-sortable-handle-containeradder"></span>
<a href="#" @click.prevent="addNewContainer"> <button class="cw-containeradder-item" :class="['cw-containeradder-item-' + type]" @click.prevent="addNewContainer">
<div class="cw-containeradder-item" :class="['cw-containeradder-item-' + type]"> <header class="cw-containeradder-item-title">
<header class="cw-containeradder-item-title"> {{ title }}
{{ title }} </header>
</header> <p class="cw-containeradder-item-description">
<p class="cw-containeradder-item-description"> {{ description }}
{{ description }} </p>
</p> </button>
</div>
</a>
<li class="cw-container-dragitem cw-container-item-sortable" ref="container-drag-item">
<div class="cw-container cw-container-list cw-container-item" :class="['cw-container-colspan-' + colspan]">
<div class="cw-container-content">
<header class="cw-container-header">{{ title }}</header>
<div class="cw-block-wrapper">{{ description }}</div>
</div>
</div>
</li>
</div> </div>
</template> </template>
<script> <script>
......
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