mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
Step table CSS fixes [SCI-6998] (#4270)
This commit is contained in:
parent
7874a3e1c5
commit
6367842e1e
2 changed files with 18 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
.step-table {
|
||||
border: $border-transparent;
|
||||
border-radius: 4px;
|
||||
margin-left: var(--left-component-padding);
|
||||
padding: 4px;
|
||||
position: relative;
|
||||
|
@ -20,6 +21,19 @@
|
|||
z-index: 200;
|
||||
}
|
||||
|
||||
.enable-edit-mode__icon {
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
transparent 0%,
|
||||
$color-concrete 25%,
|
||||
$color-concrete 100%
|
||||
);
|
||||
padding: 4px 8px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.edit-message {
|
||||
@include font-small;
|
||||
color: $color-silver-chalice;
|
||||
|
@ -43,6 +57,7 @@
|
|||
|
||||
&.edit {
|
||||
border: $border-default;
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,9 @@
|
|||
</div>
|
||||
<div :class="'step-table ' + (editingTable ? 'edit' : 'view')" tabindex="0" @keyup.enter="!editingTable && enableTableEdit()">
|
||||
<div class="enable-edit-mode" v-if="!editingTable && element.attributes.orderable.urls.update_url" @click="enableTableEdit">
|
||||
<i class="fas fa-pen"></i>
|
||||
<div class="enable-edit-mode__icon">
|
||||
<i class="fas fa-pen"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div ref="hotTable" class="hot-table-container">
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue