mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Created editor legend component
This commit is contained in:
parent
514e7ff411
commit
906de07f8e
@ -61,15 +61,18 @@
|
||||
/>
|
||||
|
||||
<menu-bar-button
|
||||
@mouseover="hover = true"
|
||||
@mouseleave="hover = false"
|
||||
@mouseover.native="hover = true"
|
||||
@mouseleave.native="hover = false"
|
||||
:isActive="isActive.horizontal_rule()"
|
||||
:onClick="commands.horizontal_rule"
|
||||
icon="question-circle"
|
||||
class="legend-button"
|
||||
/>
|
||||
|
||||
<menu-legend>
|
||||
<menu-legend
|
||||
v-if="hover"
|
||||
class="menu-legend"
|
||||
>
|
||||
</menu-legend>
|
||||
|
||||
</div>
|
||||
@ -91,7 +94,6 @@ export default {
|
||||
EditorMenuBar,
|
||||
MenuBarButton,
|
||||
MenuLegend,
|
||||
|
||||
},
|
||||
props: {
|
||||
editor: Object,
|
||||
@ -109,4 +111,4 @@ export default {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
<span v-if="item.label">{{ item.label }}</span>
|
||||
</base-button>
|
||||
<span>{{item.name}}</span>
|
||||
<span>{{item.shortcut}}</span>
|
||||
<span class="tool-shortcut">{{item.shortcut}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</ds-card>
|
||||
@ -37,12 +37,10 @@ export default {
|
||||
|
||||
<style lang="scss">
|
||||
.legend{
|
||||
z-index: 1;
|
||||
z-index: 5;
|
||||
position: absolute;
|
||||
width: 400px;
|
||||
top: 0;
|
||||
right:0;
|
||||
padding: 0.5em;
|
||||
width: 22rem;
|
||||
padding: 0rem;
|
||||
border: 1px solid #e5e3e8;
|
||||
}
|
||||
.legend-container{
|
||||
@ -54,8 +52,12 @@ export default {
|
||||
}
|
||||
.legend-table{
|
||||
display:grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
align-items: center;
|
||||
grid-template-columns: 0.5fr 1fr 2fr;
|
||||
border-bottom: 0.5px solid grey;
|
||||
padding: 0.2em;
|
||||
}
|
||||
</style>
|
||||
.tool-shortcut{
|
||||
padding-left: 2rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user