2025-09-28 05:55:02 +08:00

1005 lines
22 KiB
SCSS
Executable File
Vendored

body {
overflow: hidden;
.ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.form-tip {
color: $primary-desc-color;
line-height: 22px;
padding: 5px 0;
word-break:break-all;
&.red {
color: #ED4014;
}
}
.form-list {
ol,
ul {
li {
list-style-type: none;
&::before {
display: inline-block;
white-space: nowrap;
width: 1.2em;
text-align: left;
margin-right: 0.2em;
}
}
}
ul {
li {
&::before {
content: '\2022';
font-weight: 900;
}
}
}
ol {
li {
counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
counter-increment: list-0;
&:before {
width: auto;
min-width: 1.2em;
content: counter(list-0, decimal) '. ';
}
}
}
}
.ivu-badge-count {
font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}
.input-range-box {
.input-range-item {
margin-bottom: 6px;
}
}
.input-number-box {
display: flex;
align-items: center;
border: 1px solid #dcdee2;
border-radius: 4px;
.ivu-input-number {
width: 72px;
margin: 0;
border: 0;
}
> label {
color: #515a6e;
text-align: center;
background-color: #f8f8f9;
padding: 0 7px;
font-weight: 400;
white-space: nowrap;
&:first-child {
border-left: 1px solid transparent;
border-right: 1px solid #dcdee2;
border-radius: 4px 0 0 4px;
}
&:last-child {
border-left: 1px solid #dcdee2;
border-right: 1px solid transparent;
border-radius: 0 4px 4px 0;
}
}
}
.ivu-input,
.ivu-select-selection {
border-color: #e8e8e8;
}
.ivu-select-dropdown {
max-height: 360px;
&.max-h-400 {
max-height: 400px;
}
&.select-node {
.ivu-select-item {
display: flex;
align-items: center;
justify-content: space-between;
.option-title {
flex: 1;
}
.ivu-tag {
flex-shrink: 0;
margin-left: 18px;
margin-right: 0;
transform: scale(0.9);
transform-origin: right center;
}
}
}
.ivu-select-group-wrap {
padding: 0 8px;
}
}
.ivu-tooltip-popper {
.ivu-tooltip-inner {
white-space: normal;
}
}
.ivu-table {
table {
width: 100% !important;
.ivu-table-cell {
padding-left: 12px;
padding-right: 12px;
.common-avatar {
.avatar-name {
width: 0;
flex: 1;
}
}
}
thead {
.ivu-table-cell {
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
tbody {
.tree-icon-loading {
.ivu-table-cell {
display: flex;
align-items: center;
.ivu-table-cell-tree {
margin-right: 6px;
}
}
}
}
}
.td-ellipsis {
display: flex;
align-items: center;
max-width: 100%;
.remark-text {
overflow: hidden;
text-overflow: ellipsis;
align-items: center;
white-space: nowrap;
height: 20px;
line-height: 20px;
margin-right: 6px;
}
.remark-icon {
display: none;
font-size: 16px;
cursor: pointer;
}
.remark-tag {
display: inline-block;
height: 22px;
line-height: 22px;
margin: 2px 4px 2px 0;
border: 1px solid #e8eaec;
border-radius: 3px;
background: #f7f7f7;
font-size: 12px;
vertical-align: middle;
opacity: 1;
color: $primary-text-color;
padding: 0 4px;
white-space: nowrap;
overflow: visible;
&.pointer-tag {
cursor: pointer;
color: #1890ff;
background: #e6f7ff;
border-color: #91d5ff;
}
}
.icon-tooltip {
.ivu-tooltip-rel {
display: flex;
align-items: center;
}
}
}
.td-action {
max-width: 100%;
display: flex;
align-items: center;
justify-content: center;
.td-action-container {
flex-shrink: 0;
a {
font-size: 12px;
padding: 0 5px;
}
&.td-action-menu {
display: flex;
align-items: center;
.menu-dropdown {
display: flex;
}
.menu-icon {
cursor: pointer;
font-size: 21px;
padding: 0 6px;
&.ivu-icon {
font-size: 16px;
}
}
}
}
}
.ivu-table-row-hover {
&:hover {
.td-ellipsis {
.remark-icon {
display: inline-block;
}
}
}
}
&:before {
background-color: #efefef;
}
}
.ivu-notice,
.ivu-message {
margin-top: calc(var(--window-scroll-y) + var(--status-bar-height));
}
.ivu-modal-wrap {
overflow: overlay;
.ivu-modal {
top: 100px;
padding-bottom: 100px;
@media (width < 768px) {
top: 60px;
padding-bottom: 60px;
}
@media (height <= 900px) {
top: 35px;
padding-bottom: 35px;
}
.ivu-modal-header,
.ivu-modal-footer {
border-color: transparent;
}
.ivu-modal-header {
padding: 22px 24px 20px;
.ivu-modal-header-inner {
font-size: 18px;
padding-right: 24px;
}
}
.ivu-modal-body {
padding: 16px 32px 2px;
.ivu-table-body,
.project-log {
overscroll-behavior: none;
}
}
.ivu-modal-footer {
padding: 20px 30px 22px;
.ivu-btn {
height: 34px;
line-height: 32px;
min-width: 94px;
}
@media (width <= 576px) {
.adaption {
display: flex;
align-items: center;
overflow-x: auto;
.ivu-btn {
height: 38px;
line-height: 36px;
min-width: auto;
}
.ivu-btn,
.ivu-btn-group,
.ivu-poptip {
flex: 1;
}
.ivu-btn-group {
display: flex;
align-items: center;
}
.ivu-poptip {
display: flex;
align-items: center;
.ivu-poptip-rel {
flex: 1;
display: flex;
align-items: center;
}
}
}
}
}
.ivu-modal-content {
margin-top: var(--status-bar-height);
margin-bottom: var(--navigation-bar-height);
border-radius: 18px;
.ivu-modal-close {
.ivu-icon-ios-close {
font-size: 38px;
top: 3px;
right: 2px;
transition: all 0.2s;
}
&:hover {
.ivu-icon-ios-close {
transform: rotate(-90deg);
}
}
}
}
&.ivu-modal-fullscreen {
top: 0;
padding-bottom: 0;
.ivu-modal-content {
border-radius: 0;
box-shadow: none;
}
}
}
.ivu-modal-confirm {
padding: 6px 0 20px;
.ivu-modal-confirm-body {
> div {
word-break: break-all;
}
}
}
.form-network-add-tabs {
.ivu-tabs-tabpane {
padding: 10px 6px 0;
}
}
.form-network-add-in-out {
padding: 0 6px;
.select-in-type {
span.ivu-radio {
display: none;
}
.select-in-type-item-checked {
color: $primary-color;
border: 1px solid $primary-color !important;
}
.select-in-type-item {
display: flex;
align-items: center;
min-width: 90px;
border: 1px solid #E8EBEE;
border-radius: 4px;
padding: 0 12px;
margin: 0 8px 0 0;
> span {
flex: 1;
}
&:hover {
cursor: pointer;
}
.select-in-type-icon {
margin-left: 12px;
}
}
}
.select-in-node {
margin-top: 18px;
}
}
}
.ivu-progress {
display: flex;
align-items: center;
.ivu-progress-outer {
display: flex;
align-items: center;
}
&.ivu-progress-show-info {
.ivu-progress-outer {
margin: 0;
padding: 0;
}
.ivu-progress-text {
flex-shrink: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
.ivu-drawer-right {
.ivu-drawer-content {
border-radius: 18px 0 0 18px;
.ivu-drawer-header {
padding-top: 16px;
padding-bottom: 6px;
border-bottom: 1px solid transparent;
.ivu-drawer-header-inner {
font-size: 18px;
padding: 0 4px;
height: 32px;
line-height: 32px;
}
}
.ivu-drawer-body {
padding: 10px 20px;
}
}
}
.ivu-drawer-bottom {
.ivu-drawer-content {
border-radius: 18px 18px 0 0;
.ivu-drawer-close {
top: -40px;
.ivu-icon {
font-size: 40px;
color: #ffffff;
}
}
}
}
.ivu-tabs-nav-next,
.ivu-tabs-nav-prev {
padding-top: 3px;
}
.vuepress-markdown-body {
h1,
h2 {
padding-bottom: 0.8rem;
border-bottom: 1px solid #eaecef;
}
.apply-reasoning {
margin: 0 0 12px 0;
padding: 0 0 0 13px;
line-height: 26px;
position: relative;
&:before {
content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 2px;
background-color: #e1e1e1;
}
.reasoning-label {
margin-bottom: 4px;
opacity: 0.9;
}
.reasoning-content {
opacity: 0.5;
> p:last-child {
margin-bottom: 0;
}
}
}
}
.ivu-color-picker {
cursor: pointer;
}
}
*[hidden="hidden"] {
display: none !important;
}
.clearfix {
zoom: 1;
&:after,
&:before {
display: table;
content: ""
}
&:after {
clear: both
}
}
.table-page-box {
display: flex;
flex-direction: column;
.ivu-table-wrapper {
flex: 1;
.ivu-table {
display: flex;
flex-direction: column;
.ivu-table-header {
flex-shrink: 0;
}
.ivu-table-body {
flex: 1;
overflow: auto;
}
}
}
.ivu-page {
flex-shrink: 0;
text-align: center;
margin-top: 20px;
}
.table-attach {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
margin-top: 20px;
.select-box {
margin-right: 12px;
display: flex;
flex-wrap: wrap;
gap: 4px 2px;
.ivu-select {
width: auto;
max-width: 200px;
margin-right: 3px;
}
.ivu-btn {
em {
font-style: normal;
padding-left: 2px;
}
}
}
.ivu-page {
padding: 0;
margin-top: 0;
margin-left: 12px;
}
}
}
.page-container {
text-align: center;
padding: 20px 0;
}
.search-container {
margin-bottom: 12px;
> ul {
display: flex;
align-items: flex-end;
flex-wrap: wrap;
> li {
flex: 1;
flex-shrink: 0;
margin-right: 12px;
margin-bottom: 12px;
list-style: none;
display: flex;
flex-direction: column;
&:last-child {
margin-right: 0;
}
.search-label {
font-weight: 600;
}
.search-content {
margin-top: 6px;
}
&.search-button {
flex: none;
display: flex;
align-items: center;
flex-direction: row;
> button + button {
margin-left: 8px;
}
.ivu-btn-text {
box-shadow: none;
}
}
}
}
&.lr {
> ul {
> li:not(.search-button) {
flex: none;
flex-direction: row;
align-items: center;
margin-right: 18px;
.search-label {
flex-shrink: 0;
}
.search-content {
margin-top: 0;
margin-left: 6px;
.ivu-input-wrapper,
.ivu-select {
width: 168px;
max-width: 100%;
}
}
}
}
}
&.auto {
> ul {
> li:not(.search-button) {
flex: none;
.search-content {
margin-top: 0;
margin-left: 6px;
.ivu-input-wrapper,
.ivu-select {
width: 150px;
max-width: 100%;
}
}
}
}
}
@media (width <= 576px) {
&.lr,
&.auto {
> ul {
> li:not(.search-button) {
.search-content {
.ivu-input-wrapper,
.ivu-select {
width: auto;
}
}
}
}
}
}
}
.search-expand {
display: flex;
align-items: flex-end;
.search-container {
flex: 1;
}
.expand-button-group {
flex-shrink: 0;
margin-left: 24px;
margin-bottom: 24px;
}
}
.search-button-clear {
.ivu-tooltip-inner {
padding: 0;
display: flex;
align-items: center;
.ivu-btn {
min-width: 80px;
font-size: 13px;
}
}
}
.icon-loading {
animation: animation-icon-loading 0.6s infinite linear;
}
@keyframes animation-icon-loading {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.common-shake {
animation: animation-common-shake 600ms ease-in-out;
animation-delay: 200ms;
}
@keyframes animation-common-shake {
10%, 90% { transform: translate3d(-1px, 0, 0); }
20%, 80% { transform: translate3d(+2px, 0, 0); }
30%, 70% { transform: translate3d(-4px, 0, 0); }
40%, 60% { transform: translate3d(+4px, 0, 0); }
50% { transform: translate3d(-4px, 0, 0); }
}
/*登录右侧滑入*/
.login-mode-enter-active {
transition: all 0.3s ease;
}
.login-mode-leave-active {
position: absolute;
z-index: -1;
display: none;
}
.login-mode-enter,
.login-mode-leave-to {
transform: translate(100%, 0);
opacity: 0;
}
/*全局返回按钮*/
.common-nav-back{
cursor: pointer;
padding-right: 8px;
&.portrait{
display: none;
}
.taskfont{
font-size: 26px;
}
}
body.window-portrait {
.common-nav-back{
display: block;
}
}
/*设置box*/
.block-setting-box {
position: relative;
padding: 0 24px 4px;
margin: 8px 0 16px;
&:before {
content: "";
position: absolute;
top: 17px;
left: 0;
right: 0;
bottom: 0;
border: 1px solid #eeeeee;
border-radius: 8px;
transition: box-shadow 0.3s;
pointer-events: none;
}
&:hover {
&:before {
box-shadow: 0 0 10px #e6ecfa;
}
}
h3 {
position: sticky;
top: 0;
left: 24px;
z-index: 9;
line-height: 32px;
box-sizing: content-box;
padding: 0 10px;
border-radius: 4px;
display: inline-block;
background-color: #ffffff;
border: 1px solid #eeeeee;
font-size: 15px;
font-weight: 500;
}
.form-box {
margin-top: 24px;
overflow: auto;
}
.ivu-form-item {
.ivu-form {
padding: 12px 0 0 0;
.ivu-form-item {
margin-bottom: 8px;
.ivu-form-item-content {
display: flex;
align-items: center;
}
}
}
}
}
.block-setting-space {
height: 8px;
}
.form-label-weight-bold {
.ivu-form-item-label {
font-weight: 500;
}
}
.confirm-popover {
max-width: 200px;
.buttons {
text-align: right;
margin-top: 12px;
.ivu-btn-small {
font-size: 12px
}
}
}
.form-quick-select {
> span {
margin-right: 4px;
}
> em {
display: inline-block;
margin-right: 4px;
cursor: pointer;
color: #2b85e4;
font-style: normal;
word-break: break-word;
&:hover {
text-decoration: underline;
}
}
}
/*标签点*/
.tag-dot {
position: relative;
padding-left: 18px;
&:after {
content: "";
position: absolute;
top: 50%;
left: 0;
width: 12px;
height: 12px;
border-radius: 50%;
background-color: var(--bg-color);
transform: translateY(-50%);
}
&.start:after {
background-color: var(--flow-item-custom-color-100, $flow-status-start-color);
}
&.progress:after {
background-color: var(--flow-item-custom-color-100, $flow-status-progress-color);
}
&.test:after {
background-color: var(--flow-item-custom-color-100, $flow-status-test-color);
}
&.end:after {
background-color: var(--flow-item-custom-color-100, $flow-status-end-color);
}
&.completed:after {
background-color: $flow-status-end-color;
}
&.uncompleted:after {
background-color: $flow-status-archived-color;
}
}
/*部门层级*/
.department-level-name {
&.level-2 {
margin-left: 18px;
}
&.level-3 {
margin-left: 36px;
}
&.level-4 {
margin-left: 54px;
}
}
/*操作位置*/
.operate-position {
position: absolute;
top: 0;
left: 0;
width: 1px;
height: auto;
margin-top: var(--window-scroll-y);
opacity: 0;
visibility: hidden;
pointer-events: none;
}