2023-06-10 01:01:30 +08:00

761 lines
18 KiB
SCSS
Executable File
Vendored

body {
overflow: hidden;
&.touch-back {
.scrollbar-container .scrollbar-content,
.dialog-wrapper .vue-recycle-scroller.direction-vertical:not(.page-mode),
.dialog-wrapper .dialog-scroller.scrollbar-virtual,
.common-gantt .gantt-left .gantt-item,
.project-panel .project-column,
.project-panel .project-table,
.ivu-modal-wrap {
overflow: hidden;
}
}
.form-tip {
color: $primary-desc-color;
line-height: 22px;
padding: 5px 0;
&.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-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 {
user-select: none;
max-height: 360px;
&.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-tooltip-popper {
.ivu-tooltip-inner {
white-space: normal;
}
}
.ivu-table {
table {
width: 100% !important;
.ivu-table-cell {
padding-left: 12px;
padding-right: 12px;
}
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-modal-wrap {
overflow: overlay;
.ivu-modal {
top: 100px;
padding-bottom: 100px;
@media (max-height: 900px) {
top: 35px;
padding-bottom: 35px;
}
&.ivu-modal-fullscreen {
top: 0;
.ivu-modal-content {
border-radius: 0;
}
}
.ivu-modal-header,
.ivu-modal-footer {
border-color: transparent;
}
.ivu-modal-header {
padding: 22px 24px 20px;
.ivu-modal-header-inner {
font-size: 18px;
}
}
.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 (max-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 {
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-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;
}
}
*[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;
overflow-y: overlay !important;
&::-webkit-scrollbar {
width: 0;
height: 0;
}
&::-webkit-scrollbar-thumb {
border: 3px solid transparent;
background-color: rgba(0, 0, 0, .2);
background-clip: content-box;
border-radius: 12px;
&:hover {
border: 2px solid transparent;
background-color: rgba(0, 0, 0, .2);
}
&:active {
border: 2px solid transparent;
background-color: rgba(0, 0, 0, .4);
}
}
&::-webkit-scrollbar-track {
border-radius: 12px;
background: rgba(0, 0, 0, 0);
}
&:hover {
&::-webkit-scrollbar {
width: 12px;
height: 12px;
}
}
}
}
}
.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;
.ivu-select {
width: auto;
max-width: 200px;
margin-right: 3px;
}
}
.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;
}
}
}
}
&.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%;
}
}
}
}
}
}
.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;
}