Update styling for content block form
This commit is contained in:
parent
6c97f2ba4c
commit
d2dd8d8c5b
|
|
@ -16,6 +16,7 @@
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import '~styles/helpers';
|
@import '~styles/helpers';
|
||||||
$color: $color-silver-dark;
|
$color: $color-silver-dark;
|
||||||
|
$icon-size: 14px;
|
||||||
|
|
||||||
.add-content-link {
|
.add-content-link {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
|
@ -24,15 +25,14 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&__icon {
|
&__icon {
|
||||||
width: 20px;
|
width: $icon-size;
|
||||||
height: 20px;
|
height: $icon-size;
|
||||||
margin-right: $small-spacing;
|
margin-right: $small-spacing;
|
||||||
fill: $color;
|
fill: $color;
|
||||||
}
|
}
|
||||||
&__text {
|
&__text {
|
||||||
// custom style, because the view needs this
|
// custom style, because the view needs this
|
||||||
@include link-base;
|
@include large-link;
|
||||||
font-weight: $font-weight-semibold;
|
|
||||||
color: $color;
|
color: $color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -160,13 +160,13 @@
|
||||||
}
|
}
|
||||||
grid-template-columns: repeat(7, 1fr);
|
grid-template-columns: repeat(7, 1fr);
|
||||||
-ms-grid-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
|
-ms-grid-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
|
||||||
grid-column-gap: 0px;
|
grid-column-gap: 0;
|
||||||
font-family: $sans-serif-font-family;
|
font-family: $sans-serif-font-family;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
// grid position in wrapper element
|
// grid position in wrapper element
|
||||||
grid-column: 1 / span 2;
|
grid-column: 1 / -1;
|
||||||
|
|
||||||
/*IE10+*/
|
/*IE10+*/
|
||||||
& > :nth-child(1) {
|
& > :nth-child(1) {
|
||||||
|
|
@ -200,23 +200,26 @@
|
||||||
|
|
||||||
&__wrapper {
|
&__wrapper {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 50px;
|
grid-template-columns: 180px 1fr 50px;
|
||||||
|
align-items: center;
|
||||||
|
row-gap: $small-spacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__remove-button {
|
&__remove-button {
|
||||||
grid-column: 2;
|
grid-column: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__heading {
|
&__heading {
|
||||||
@include heading-4;
|
@include heading-3;
|
||||||
margin-bottom: $medium-spacing;
|
margin-bottom: 0;
|
||||||
grid-column: 1;
|
grid-column: 1;
|
||||||
grid-row: 1;
|
grid-row: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__list-toggle {
|
&__list-toggle {
|
||||||
margin-bottom: $medium-spacing;
|
margin-bottom: 0;
|
||||||
grid-column: 1;
|
grid-column: 2;
|
||||||
|
grid-row: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__link {
|
&__link {
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,16 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="tip-tap">
|
<div class="tip-tap">
|
||||||
|
<editor-content
|
||||||
|
class="tip-tap__editor-wrapper"
|
||||||
|
:editor="editor"
|
||||||
|
/>
|
||||||
|
|
||||||
<toggle
|
<toggle
|
||||||
:bordered="false"
|
:bordered="false"
|
||||||
:checked="isList"
|
:checked="isList"
|
||||||
label="Als Liste formatieren"
|
label="Als Liste formatieren"
|
||||||
@input="toggleList"
|
@input="toggleList"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<editor-content :editor="editor" />
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -112,9 +115,15 @@
|
||||||
|
|
||||||
|
|
||||||
.tip-tap {
|
.tip-tap {
|
||||||
|
|
||||||
|
&__editor-wrapper {
|
||||||
|
margin-bottom: $medium-spacing;
|
||||||
|
}
|
||||||
|
|
||||||
/deep/ &__editor {
|
/deep/ &__editor {
|
||||||
@include inputstyle;
|
@include inputstyle;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
min-height: 150px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/ ul {
|
/deep/ ul {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
viewBox="0 0 100 100"
|
viewBox="0 0 100 100"
|
||||||
class="cross"
|
class="cross-icon"
|
||||||
>
|
>
|
||||||
<path
|
<path
|
||||||
d="M53.91,50,87.19,16.73a2.77,2.77,0,1,0-3.91-3.91L50,46.09,16.73,12.81a2.77,2.77,0,1,0-3.91,3.91L46.09,50,12.81,83.27a2.77,2.77,0,1,0,3.91,3.91L50,53.91,83.27,87.19a2.77,2.77,0,0,0,3.91-3.91Z"
|
d="M53.91,50,87.19,16.73a2.77,2.77,0,1,0-3.91-3.91L50,46.09,16.73,12.81a2.77,2.77,0,1,0-3.91,3.91L46.09,50,12.81,83.27a2.77,2.77,0,1,0,3.91,3.91L50,53.91,83.27,87.19a2.77,2.77,0,0,0,3.91-3.91Z"
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.cross {
|
.cross-icon {
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
border: 0;
|
border: 0;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|
||||||
&__icon {
|
& > &__icon { // need to be specific, to override local svg component styles
|
||||||
@include default-icon;
|
@include default-icon;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
justify-self: center;
|
justify-self: center;
|
||||||
|
|
@ -57,5 +57,10 @@
|
||||||
&--subtle {
|
&--subtle {
|
||||||
fill: $color-silver-dark;
|
fill: $color-silver-dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&--small {
|
||||||
|
@include small-icon;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -240,3 +240,8 @@
|
||||||
width: $default-icon-dimension;
|
width: $default-icon-dimension;
|
||||||
height: $default-icon-dimension;
|
height: $default-icon-dimension;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@mixin small-icon {
|
||||||
|
width: $small-icon-dimension;
|
||||||
|
height: $small-icon-dimension;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -84,3 +84,4 @@ $news-width: 550px;
|
||||||
$screen-width: 1200px;
|
$screen-width: 1200px;
|
||||||
|
|
||||||
$default-icon-dimension: 25px;
|
$default-icon-dimension: 25px;
|
||||||
|
$small-icon-dimension: 14px;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue