scinote-web/app/assets/stylesheets/my_modules/status_flow.scss

167 lines
3.2 KiB
SCSS
Raw Normal View History

2020-07-14 17:24:33 +08:00
// scss-lint:disable SelectorDepth
// scss-lint:disable NestingDepth
// scss-lint:disable SelectorFormat
// scss-lint:disable ImportantRule
.content-pane.my-modules-protocols-index {
.status-flow-dropdown {
.dropdown-toggle {
2020-10-21 15:58:28 +08:00
border: 0;
2020-07-14 17:24:33 +08:00
color: $color-white;
text-align: left;
2020-09-02 21:41:07 +08:00
width: 100%;
2020-07-14 17:24:33 +08:00
.caret {
margin: 8px 0;
}
}
2020-09-02 21:41:07 +08:00
&.open .dropdown-menu{
align-items: center;
display: grid;
grid-template-columns: minmax(0, auto) 12px minmax(0, auto);
2020-09-14 21:56:24 +08:00
padding: .5em 0 0;
2020-09-02 21:41:07 +08:00
li {
display: contents;
> * {
cursor: pointer;
line-height: 2em;
padding: .5em 1em;
}
&:hover > *{
background: $color-concrete;
}
&.disabled {
pointer-events: none;
.status-name {
background: $color-alto !important;
}
}
2020-09-02 21:41:07 +08:00
}
.fa-long-arrow-alt-right {
color: $color-silver-chalice;
2023-06-20 21:53:33 +08:00
padding: 1.5em 0;
z-index: 1;
2020-09-02 21:41:07 +08:00
}
.status-container {
display: flex;
}
.status-name {
border-radius: $border-radius-tag;
color: $color-white;
display: inline-block;
font-weight: bold;
line-height: 1em;
max-width: 100%;
overflow: hidden;
padding: .5em;
text-overflow: ellipsis;
white-space: nowrap;
}
2020-09-03 20:34:34 +08:00
.error-message {
@include font-small;
color: $color-silver-chalice;
grid-column: span 3;
line-height: 1em;
padding: 0em 1em .5em;
2020-09-14 21:56:24 +08:00
&:empty {
display: none;
}
&.permission-error {
padding: .5em 1em;
}
2020-09-03 20:34:34 +08:00
}
2020-09-02 21:41:07 +08:00
#viewTaskFlow {
2020-09-14 21:56:24 +08:00
border-top: $border-default;
2020-09-02 21:41:07 +08:00
cursor: pointer;
display: list-item;
grid-column: span 3;
line-height: 2em;
2020-09-14 21:56:24 +08:00
margin-top: .5em;
2020-09-02 21:41:07 +08:00
padding: .5em 1em;
}
}
2020-07-14 17:24:33 +08:00
}
}
2020-07-22 15:45:56 +08:00
#statusFlowModal {
.status-flow {
padding: 2em;
.status-container {
align-items: center;
display: grid;
grid-template-columns: 1fr min-content 1fr;
2020-09-09 14:50:24 +08:00
grid-template-rows: 28px;
2020-07-22 15:45:56 +08:00
justify-content: space-around;
position: relative;
.current-status {
@include font-small;
justify-self: end;
.fas {
margin: 0 .5em;
}
}
.status-block {
2020-09-02 21:41:07 +08:00
@include font-button;
2020-07-22 15:45:56 +08:00
border-radius: $border-radius-tag;
color: $color-white;
font-weight: bold;
line-height: 1em;
padding: .5em;
white-space: nowrap;
}
.status-comment {
@include font-small;
color: $color-silver-chalice;
padding-left: .5em;
}
}
.connector {
background: $color-black;
height: 2em;
margin: 0 auto;
position: relative;
width: 2px;
&:before,
&:after {
border-left: .2em solid transparent;
border-right: .2em solid transparent;
content: '';
display: block;
margin-left: -.1em;
position: absolute;
}
&:before {
border-top: .2em solid $color-black;
top: 0;
}
&:after {
border-bottom: .2em solid $color-black;
bottom: 0;
}
}
}
}