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

181 lines
3.4 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
.status-flow-dropdown {
.dropdown-toggle {
color: $color-white;
padding: .5rem .5rem .5rem 1rem;
text-align: left;
width: 100%;
&.btn-not-started {
border: 1px solid var(--sn-sleepy-grey);
color: var(--sn-black);
}
2023-08-17 21:29:22 +08:00
.caret {
margin: 8px 0;
2020-07-14 17:24:33 +08:00
}
}
2023-08-17 21:31:04 +08:00
&.open .dropdown-menu{
align-items: center;
display: grid;
grid-template-columns: minmax(0, auto) 12px minmax(0, auto);
min-width: 230px;
padding: .5em 0 0;
2020-09-02 21:41:07 +08:00
li {
display: contents;
2020-09-02 21:41:07 +08:00
> * {
cursor: pointer;
line-height: 2em;
padding: .5em 1em;
}
2020-09-02 21:41:07 +08:00
&:hover > *{
background: $color-concrete;
}
&.disabled {
pointer-events: none;
.status-name {
background: $color-alto !important;
}
2020-09-02 21:41:07 +08:00
}
}
2020-09-02 21:41:07 +08:00
.fa-long-arrow-alt-right {
color: $color-silver-chalice;
padding: 1.5em 0;
z-index: 1;
}
2020-09-02 21:41:07 +08:00
.status-container {
display: flex;
}
2020-09-02 21:41:07 +08:00
.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;
}
2023-08-17 21:29:22 +08:00
.btn-not-started {
border: 1px solid var(--sn-sleepy-grey);
color: var(--sn-black);
}
2020-09-14 21:56:24 +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;
2020-09-03 20:34:34 +08:00
}
2020-09-02 21:41:07 +08:00
&.permission-error {
2020-09-02 21:41:07 +08:00
padding: .5em 1em;
}
}
#viewTaskFlow {
border-top: $border-default;
cursor: pointer;
display: list-item;
grid-column: span 3;
line-height: 2em;
margin-top: .5em;
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;
&.btn-not-started {
border: 1px solid var(--sn-sleepy-grey);
color: var(--sn-black);
}
2020-07-22 15:45:56 +08:00
}
.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;
}
}
}
}