scinote-web/app/assets/stylesheets/steps/components/table.scss

78 lines
1.3 KiB
SCSS
Raw Normal View History

2022-05-06 17:59:22 +08:00
.step-table-container {
margin-bottom: 1em;
.step-table {
border: $border-transparent;
border-radius: 4px;
margin-left: var(--left-component-padding);
2022-05-06 17:59:22 +08:00
padding: 4px;
position: relative;
.enable-edit-mode {
cursor: pointer;
justify-content: flex-end;
opacity: 0;
2022-05-06 17:59:22 +08:00
padding: 12px;
position: absolute;
right: 0;
2022-05-06 17:59:22 +08:00
top: 0;
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;
}
2022-05-06 17:59:22 +08:00
.edit-message {
@include font-small;
color: $color-silver-chalice;
padding: 12px 0 8px;
}
td,
th {
color: $color-black;
}
2022-07-15 20:58:06 +08:00
&.view:not(.locked) {
2022-05-06 17:59:22 +08:00
&:hover {
background-color: $color-concrete;
.enable-edit-mode {
display: flex;
opacity: 1;
2022-05-06 17:59:22 +08:00
}
}
}
&.edit {
border: $border-default;
border-radius: 4px;
2022-05-06 17:59:22 +08:00
}
}
.edit-buttons {
display: flex;
justify-content: flex-end;
margin-top: .5em;
.btn {
margin-left: .5em;
}
}
.table-name-error {
color: $brand-danger;
font-size: 12px;
}
2022-05-06 17:59:22 +08:00
}