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

282 lines
5.3 KiB
SCSS
Raw Normal View History

2022-08-16 23:30:23 +08:00
.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);
}
}
2023-02-03 12:50:48 +08:00
#nprogress {
.bar {
background: $primary-color !important;
}
.spinner-icon {
border-top-color: $primary-color !important;
border-left-color: $primary-color !important;
}
.peg {
box-shadow: 0 0 10px $primary-color, 0 0 5px $primary-color !important;
}
2022-08-16 23:30:23 +08:00
}
2023-02-09 10:36:18 +08:00
.inline-block {
2023-02-13 18:47:00 +08:00
display: inline-block;
2023-02-09 10:36:18 +08:00
}
2022-08-16 23:30:23 +08:00
.form-button {
float: right;
}
.input-help {
2022-12-07 16:06:15 +08:00
font-size: 12px;
word-break: break-all;
2023-02-17 19:05:53 +08:00
color: #8f959e;
2022-12-07 16:06:15 +08:00
transform: scale(0.9);
transform-origin: left;
width: 110%;
display: inline-block;
2022-10-21 18:50:38 +08:00
}
.input-error {
font-size: 12px;
word-break: break-all;
color: red;
transform: scale(0.9);
transform-origin: left;
width: 110%;
display: inline-block;
2022-12-07 16:06:15 +08:00
}
2022-10-21 18:50:38 +08:00
.myTable {
border-collapse: collapse;
font-size: 12px;
table-layout: fixed;
2023-02-03 12:50:48 +08:00
td {
width: 35%;
padding: 8px;
height: 23px;
border: 1px solid #383c42;
word-wrap: break-word;
div {
margin-top: 2px;
}
th {
border: 0;
height: 30px;
}
tr {
&:hover {
background-color: #d9dde2;
}
&:first-child:hover {
background-color: transparent !important;
}
td:nth-child(even) {
color: #85888e;
}
}
}
2022-12-07 16:06:15 +08:00
}
.mask {
width: 100%;
height: 100%;
opacity: 0.4;
top: 0;
left: 0;
pointer-events: none;
}
.mask-prompt {
position: absolute;
z-index: 9999;
2022-12-12 11:50:51 +08:00
top: 25%;
2022-12-07 16:06:15 +08:00
left: 50%;
transform: translate(-50%, -50%);
}
.table-button {
display: inline;
margin-right: 5px;
}
2023-01-06 12:17:50 +08:00
2023-01-09 10:38:54 +08:00
.button-left {
float: left;
}
2023-01-06 12:17:50 +08:00
.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;
}
2023-01-09 10:38:54 +08:00
}
2023-02-01 15:19:41 +08:00
.menu-popper {
.el-menu--popup-right-start {
background-color: rgba(0, 94, 235, 0.1);
}
}
2023-02-03 12:50:48 +08:00
// search条圆角
.search-button {
2023-02-08 16:35:21 +08:00
float: right;
2023-02-03 12:50:48 +08:00
.el-input__wrapper {
border-radius: 50px;
}
2023-02-06 16:58:45 +08:00
.el-input-group__prepend {
border-top-left-radius: 50px;
border-bottom-left-radius: 50px;
}
2023-02-03 12:50:48 +08:00
}
// drawer头部增加按钮
.drawer-header-button {
span {
color: currentColor !important;
font-size: var(--el-font-size-base) !important;
}
.active-button {
color: var(--el-button-hover-text-color);
border-color: var(--el-button-hover-border-color);
}
}
2023-02-07 18:06:27 +08:00
.app-status {
font-size: 12px;
.el-card {
--el-card-padding: 12px;
.buttons {
margin-left: 100px;
}
.status-content {
margin-left: 50px;
}
}
}
2023-02-24 18:50:35 +08:00
.xterm-viewport::-webkit-scrollbar {
width: 8px;
height: 8px;
background-color: #000000;
2023-03-09 17:50:47 +08:00
}
.middle-center {
vertical-align: middle;
}