320 lines
7.3 KiB
SCSS
320 lines
7.3 KiB
SCSS
.web-terminal-new{
|
|
height: calc(100vh - 68px);
|
|
background: $--background-color-base;
|
|
/*border-top: 1px solid #BEBEBE;*/
|
|
box-shadow: 0 1px 0 0 $--border-color-light;
|
|
.el-tabs{
|
|
border: none;
|
|
height: 100%;
|
|
width:100%;
|
|
margin-left:0px;
|
|
.el-tabs__nav-prev, .el-tabs__nav-next{
|
|
display: inline-block;
|
|
background: $--background-color-2 !important;
|
|
width: 20px;
|
|
height: 36px;
|
|
text-align: center;
|
|
line-height: 40px;
|
|
color: $--color-text-primary;
|
|
}
|
|
.el-tabs__nav-prev.is-disabled, .el-tabs__nav-next.is-disabled{
|
|
cursor: pointer !important;
|
|
display: inline-block;
|
|
background: $--background-color-2 !important;
|
|
width: 20px;
|
|
height: 36px;
|
|
text-align: center;
|
|
line-height: 40px;
|
|
color: $--color-text-primary;
|
|
}
|
|
.el-tabs__header{
|
|
height: 36px;
|
|
width: 100%;
|
|
.el-tabs__item{
|
|
height: 36px;
|
|
transform: translateY(-2px);
|
|
padding: 0 10px 0 10px;
|
|
margin-top: 0;
|
|
border-top: 2px solid transparent;
|
|
width: 126px;
|
|
background: $--background-color-empty;
|
|
line-height: 34px;
|
|
display: inline-block;
|
|
box-sizing: border-box;
|
|
.el-tabs__item-label{
|
|
display: inline-flex;
|
|
width: calc(100% - 20px);
|
|
align-items: center;
|
|
.active-icon{
|
|
flex-shrink: 1;
|
|
}
|
|
.el-tabs__item-label-name{
|
|
flex: 1;
|
|
width: calc(100% - 30px);
|
|
}
|
|
}
|
|
.el-icon-close{
|
|
display: none;
|
|
}
|
|
}
|
|
.el-tabs__item.is-active {
|
|
width: 200px;
|
|
border-top: 2px solid $--color-primary;
|
|
font-size: 14px;
|
|
color: $--color-text-primary;
|
|
}
|
|
.icon-reference{
|
|
display: none;
|
|
}
|
|
.el-tabs__item:hover{
|
|
width: 200px;
|
|
.icon-reference{
|
|
display: inline-block;
|
|
}
|
|
.el-icon-close{
|
|
display: inline-block;
|
|
}
|
|
}
|
|
.el-tabs__item:last-of-type {
|
|
height: 36px;
|
|
padding: 0 5px;
|
|
border: none;
|
|
border-top: 2px solid transparent;
|
|
background: transparent;
|
|
width: 40px;
|
|
line-height: 34px;
|
|
}
|
|
}
|
|
.el-tabs__content{
|
|
height: calc(100% - 36px);
|
|
background: #000;
|
|
box-sizing: border-box;
|
|
overflow: unset;
|
|
padding: 5px 5px;
|
|
.el-tab-pane{
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.webshell-selectAsset{
|
|
.el-dialog__header{
|
|
box-sizing: border-box;
|
|
height: 48px;
|
|
padding: 0 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
position: relative;
|
|
border-bottom: 1px solid $--web-ssh-border-bottom-color2;
|
|
.el-dialog__headerbtn{
|
|
top: 0;
|
|
bottom: 0;
|
|
margin: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
}
|
|
.header-el-dropdown{
|
|
width: 86px;
|
|
height: 32px;
|
|
line-height: 32px;
|
|
border: 1px solid $--border-color-light;
|
|
border-right: none;
|
|
box-sizing: border-box;
|
|
padding: 0 8px;
|
|
.el-dropdown-link{
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
& span:first-of-type{
|
|
color: $--color-text-primary;
|
|
}
|
|
i.el-icon--right{
|
|
margin-left: 0;
|
|
color: #999;
|
|
}
|
|
}
|
|
}
|
|
.header-el-dropdown+.el-input{
|
|
border-radius: 0 2px 2px 0;
|
|
}
|
|
.el-dialog__footer{
|
|
padding: 15px 20px;
|
|
border-top: 1px solid $--web-ssh-border-bottom-color2;
|
|
.footer__btn{
|
|
margin: 0;
|
|
&.webshell-btn-disable{
|
|
background: $--background-color-base;
|
|
color: $--web-ssh-color-text-disable;
|
|
cursor: default;
|
|
}
|
|
}
|
|
.footer__btn--light{
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.webTerminal{
|
|
height: 100%;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
.web-terminal-header{
|
|
height: 36px;
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
box-sizing: border-box;
|
|
padding: 0 15px;
|
|
background: $--background-color-base;
|
|
box-shadow: inset 0 -1px 0 0 $--dropdown-menu-box-shadow-color;
|
|
font-size: 14px;
|
|
line-height: 36px;
|
|
color: $--color-text-primary;
|
|
img {
|
|
vertical-align: sub;
|
|
height: 20px;
|
|
width: 20px;
|
|
margin-right: 10px;
|
|
}
|
|
.personal-avatar {
|
|
cursor: pointer;
|
|
span {
|
|
width: 24px;
|
|
height: 24px;
|
|
display: inline-block;
|
|
text-align: center;
|
|
line-height: 24px;
|
|
background: $--profile-span-background-color;
|
|
font-size: 14px;
|
|
color: $--profile-span-color;
|
|
letter-spacing: 0;
|
|
font-weight: 500;
|
|
text-transform: capitalize;
|
|
border-radius: 100%;
|
|
}
|
|
}
|
|
}
|
|
.right-tip {
|
|
position: absolute;
|
|
left: 8px;
|
|
top: 4px;
|
|
padding: 0 6px;
|
|
line-height: 15px;
|
|
height: 15px;
|
|
background-color: #ba3939;
|
|
opacity: .9;
|
|
border-radius: 7px;
|
|
color: white;
|
|
font-size: 6px;
|
|
}
|
|
.shell-input{
|
|
position: relative;
|
|
input {
|
|
background: #1E1E1E !important;
|
|
border: none;
|
|
color: white;
|
|
padding-right: 53px;
|
|
}
|
|
input::input-placeholder{
|
|
color: #7C7C7C;
|
|
}
|
|
.el-input__suffix{
|
|
right: 20px;
|
|
.el-input__suffix-inner{
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 18px;
|
|
}
|
|
i{
|
|
color: #B7B7B7;
|
|
cursor: pointer;
|
|
}
|
|
i.active{
|
|
color: $--color-primary;
|
|
}
|
|
}
|
|
}
|
|
|
|
.web-terminal-history{
|
|
position: absolute;
|
|
bottom: 32px;
|
|
z-index: 9;
|
|
width: 100%;
|
|
background: #1E1E1E;
|
|
border-bottom: 1px solid rgba(0,0,0,0.50);
|
|
.terminal-history-header{
|
|
box-sizing: border-box;
|
|
padding: 0 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
font-size: 14px;
|
|
color: #B7B7B7;
|
|
height: 36px;
|
|
border-bottom: 1px solid #2F2F2F;
|
|
i{
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
.terminal-history-list-wrap{
|
|
padding: 10px 0;
|
|
box-sizing: border-box;
|
|
.terminal-history-list{
|
|
max-height: 160px;
|
|
overflow-y: auto;
|
|
line-height:normal;
|
|
&::-webkit-scrollbar-thumb{
|
|
background-color:#404040;
|
|
border:2px solid #222329;
|
|
}
|
|
.terminal-history-item{
|
|
width: 100%;
|
|
padding: 0px 20px;
|
|
height: 20px;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
&:hover{
|
|
background: #18171D;
|
|
}
|
|
.terminal-history-num{
|
|
width: 28px;
|
|
font-size: 14px;
|
|
color: #B7B7B7;
|
|
font-weight: 400;
|
|
flex-shrink: 0;
|
|
margin-right: 8px;
|
|
}
|
|
.terminal-history-text{
|
|
font-size: 14px;
|
|
color: #FFFFFF;
|
|
font-weight: 400;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
word-break: break-all;
|
|
white-space: pre;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.terminal-history-empty{
|
|
line-height: 50px;
|
|
color: #B7B7B7;
|
|
font-size: 14px;
|
|
text-align: center;
|
|
}
|
|
}
|
|
.terminal-menu {
|
|
position: fixed;
|
|
width: 150px;
|
|
border-radius: 2px;
|
|
z-index: 1000;
|
|
}
|
|
}
|
|
|