skyline/src/components/MagicInput/index.less
Jingwei.Zhang 6354d67d9d feat: use the port list page to instead of the virutal adapter
1. Add port list page, the old virtual adapter list page only show the
compute:nova bouned ports and unbouned ports
2. Update actions's allowed check: detach fip
3. Update port store: from virtualAdatperStore to portStore
4. Adjust file/folder path: from virtualAdapter to port

Change-Id: Iceec96731a9fd17de429b4e6061490a26e562162
2022-08-16 13:48:08 +08:00

164 lines
2.6 KiB
Plaintext

@import '~styles/variables';
.magic-input-outer-wrapper {
display: flex;
align-items: center;
}
.magic-input-wrapper {
position: relative;
align-items: center;
width: 100%;
min-width: 200px;
padding: 3px 0 3px 8px;
background-color: #fff;
border: 1px solid rgb(217, 217, 217);
border-radius: @border-radius;
:global {
.ant-tag {
height: 24px;
margin-right: 4px;
padding: 0 4px;
color: #fff;
font-size: 10px;
line-height: 24px;
background-color: @primary-color;
border: none;
.anticon-close {
margin-left: 16px;
color: #fff;
}
}
.ant-btn {
margin-top: -3px;
margin-right: 0;
}
.ant-btn-icon-only {
background-color: #fff;
}
}
}
.magic-input-wrapper-active {
border-color: @primary-color;
box-shadow: 0 0 0 2px rgba(0, 104, 255, 20%);
}
.input-wrapper {
position: relative;
flex-grow: 1;
height: 24px;
line-height: 24px;
:global {
.ant-input {
padding: 0;
background: none;
border: none;
box-shadow: none;
}
.ant-input:focus {
border: none;
box-shadow: none;
}
input::placeholder {
font-size: 10px;
}
.ant-menu-vertical > .ant-menu-item {
height: 26px;
line-height: 26px;
}
.ant-menu-vertical .ant-menu-item {
margin-top: 0;
margin-bottom: 0;
font-size: 10px;
}
}
}
.menu {
box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 9%) !important;
}
.menu,
.option-menu {
position: absolute;
top: 34px;
z-index: 100;
max-height: 310px;
overflow-x: hidden;
overflow-y: auto;
border-radius: @border-radius;
}
.key {
font-size: 10px;
line-height: 24px;
:global {
.ant-divider,
.ant-divider-vertical {
margin-right: 4px;
margin-left: 4px;
}
}
}
:global {
.ant-form-item-has-error .magic-input-wrapper .ant-input,
.ant-form-item-has-error .magic-input-wrapper .ant-input:focus,
.ant-form-item-has-error
.magic-input-wrapper
.ant-input:not([disabled]):hover {
background: none;
border: none;
box-shadow: none;
}
.magic-input-wrapper .ant-tag {
display: inline-block;
height: 24px;
margin: 0 5px 0 0;
line-height: 24px;
}
}
.search-icon {
position: absolute;
top: 0;
right: 8px;
color: @color-text-body;
font-size: 12px;
line-height: 32px;
}
.close-btn-col {
height: 24px;
line-height: 24px;
.close-btn {
height: 24px !important;
padding: 0;
border: none;
}
}
.close-option-btn {
top: 3px;
height: 24px !important;
}
.magic-input-checks {
min-width: 120px;
margin-left: 8px;
line-height: 32px;
}