1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-02-01 14:38:07 +08:00
1Panel/frontend/src/styles/common.scss
2023-01-31 14:18:52 +08:00

224 lines
4.1 KiB
SCSS

.flx-center {
display: flex;
align-items: center;
justify-content: center;
}
.flx-justify-between {
display: flex;
align-items: center;
justify-content: space-between;
}
.flx-align-center {
display: flex;
align-items: center;
}
.clearfix::after {
display: block;
height: 0;
overflow: hidden;
clear: both;
content: '';
}
.sle {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.mle {
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.break-word {
word-break: break-all;
word-wrap: break-word;
}
.fade-transform-leave-active,
.fade-transform-enter-active {
transition: all 0.2s;
}
.fade-transform-enter-from {
opacity: 0;
transition: all 0.2s;
transform: translateX(-30px);
}
.fade-transform-leave-to {
opacity: 0;
transition: all 0.2s;
transform: translateX(30px);
}
/* Breadcrumb */
.breadcrumb-enter-active,
.breadcrumb-leave-active {
transition: all 0.2s ease;
}
.breadcrumb-enter-from,
.breadcrumb-leave-active {
opacity: 0;
transform: translateX(10px);
}
.breadcrumb-leave-active {
position: absolute;
z-index: -1;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
background-color: white;
}
::-webkit-scrollbar-thumb {
background-color: #dddee0;
border-radius: 20px;
box-shadow: inset 0 0 0 white;
}
.content-box {
display: flex;
flex-direction: column;
align-items: center;
height: 100%;
.text {
margin: 30px 0;
font-size: 23px;
font-weight: bold;
color: rgb(88 88 88);
}
}
#nprogress .bar {
background: $primary-color !important;
}
#nprogress .spinner-icon {
border-top-color: $primary-color !important;
border-left-color: $primary-color !important;
}
#nprogress .peg {
box-shadow: 0 0 10px $primary-color, 0 0 5px $primary-color !important;
}
.form-button {
float: right;
}
.input-help {
font-size: 12px;
word-break: break-all;
color: #4a4b4d;
transform: scale(0.9);
transform-origin: left;
width: 110%;
display: inline-block;
}
.input-error {
font-size: 12px;
word-break: break-all;
color: red;
transform: scale(0.9);
transform-origin: left;
width: 110%;
display: inline-block;
}
.myTable {
border-collapse: collapse;
font-size: 12px;
table-layout: fixed;
}
.myTable td {
width: 35%;
padding: 8px;
height: 23px;
border: 1px solid #383c42;
word-wrap: break-word;
}
.myTable td div {
margin-top: 2px;
}
.myTable th {
border: 0;
height: 30px;
}
.myTable tr:hover {
background-color: #d9dde2;
}
.myTable tr:first-child:hover {
background-color: transparent !important;
}
.myTable tr td:nth-child(even) {
color: #85888e;
}
.mask {
width: 100%;
height: 100%;
opacity: 0.4;
top: 0;
left: 0;
pointer-events: none;
}
.mask-prompt {
position: absolute;
z-index: 9999;
top: 25%;
left: 50%;
transform: translate(-50%, -50%);
}
.table-button {
display: inline;
margin-right: 5px;
}
.button-left {
float: left;
}
.topRouterCard {
.el-card__body {
--el-card-border-color: var(--el-border-color-light);
--el-card-border-radius: 4px;
--el-card-padding: 0px;
--el-card-bg-color: var(--el-fill-color-blank);
}
}
.topRouterButton {
.el-radio-button__inner {
display: inline-block;
line-height: 1;
white-space: nowrap;
vertical-align: middle;
background: var(--el-button-bg-color, var(--el-fill-color-blank));
border: 0;
font-weight: 350;
border-left: 0;
color: var(--el-button-text-color, var(--el-text-color-regular));
text-align: center;
box-sizing: border-box;
outline: 0;
margin: 0;
position: relative;
cursor: pointer;
transition: var(--el-transition-all);
-webkit-user-select: none;
user-select: none;
padding: 8px 15px;
font-size: var(--el-font-size-base);
border-radius: 0;
}
}