mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-20 02:31:43 +00:00
style: 整合 navheader 中的样式
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:placeholder="$tc('Select')"
|
:placeholder="$tc('Select')"
|
||||||
:value="currentOrgId"
|
:value="currentOrgId"
|
||||||
class="org-select organization"
|
class="org-select"
|
||||||
filterable
|
filterable
|
||||||
popper-class="switch-org"
|
popper-class="switch-org"
|
||||||
@change="changeOrg"
|
@change="changeOrg"
|
||||||
@@ -130,24 +130,49 @@ export default {
|
|||||||
@import '~@/styles/variables.scss';
|
@import '~@/styles/variables.scss';
|
||||||
$height: 28px;
|
$height: 28px;
|
||||||
|
|
||||||
.org-select {
|
::v-deep .el-input {
|
||||||
padding: 0 10px 0 18px;
|
.el-input__inner {
|
||||||
background-color: #293846;
|
height: 30px;
|
||||||
color: white;
|
line-height: 30px;
|
||||||
font-weight: 600;
|
background: none;
|
||||||
font-size: 15px;
|
border: none;
|
||||||
//border-top: solid 1px rgb(47, 64, 80);
|
padding-left: 20px;
|
||||||
::v-deep .el-input {
|
}
|
||||||
input.el-input__inner {
|
|
||||||
line-height: $height;
|
.el-input__prefix {
|
||||||
height: $height;
|
left: 0;
|
||||||
background: none;
|
}
|
||||||
border: none;
|
|
||||||
padding-left: 20px;
|
.el-input__suffix > .el-input__suffix-inner i {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-select-dropdown.switch-org {
|
||||||
|
border-radius: 4px;
|
||||||
|
|
||||||
|
.option-group {
|
||||||
|
max-width: 400px;
|
||||||
|
|
||||||
|
::v-deep .el-select-group__title {
|
||||||
|
color: var(--color-icon-primary);
|
||||||
|
padding-left: 15px;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-select-dropdown__item {
|
||||||
|
padding: 0 15px;
|
||||||
|
line-height: 30px;
|
||||||
|
height: 30px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.org-select >>> .el-input.is-disabled .el-input__inner {
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
@@ -158,50 +183,4 @@ $height: 28px;
|
|||||||
border: .5px solid #FFF;
|
border: .5px solid #FFF;
|
||||||
opacity: 0.4;
|
opacity: 0.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.organization {
|
|
||||||
height: $height;
|
|
||||||
line-height: $height;
|
|
||||||
background: transparent;
|
|
||||||
color: #FFF;
|
|
||||||
font-size: 13px;
|
|
||||||
|
|
||||||
& >>> .el-input__prefix {
|
|
||||||
left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
& >>> .el-input--prefix .el-input__inner {
|
|
||||||
line-height: $height !important;
|
|
||||||
height: $height !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
& >>> .el-input__icon {
|
|
||||||
color: #606266;
|
|
||||||
line-height: $height;
|
|
||||||
}
|
|
||||||
|
|
||||||
& >>> .el-input .el-select__caret {
|
|
||||||
color: #FFF;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.option-group {
|
|
||||||
max-width: 400px;
|
|
||||||
|
|
||||||
& >>> .el-select-group__title {
|
|
||||||
color: #909399 !important;
|
|
||||||
padding-left: 15px;
|
|
||||||
font-size: 12px;
|
|
||||||
line-height: $height;
|
|
||||||
}
|
|
||||||
|
|
||||||
&>>> .el-select-dropdown__item {
|
|
||||||
line-height: 30px;
|
|
||||||
height: 30px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.org-select >>> .el-input.is-disabled .el-input__inner {
|
|
||||||
color: #ffffff !important;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
@@ -38,7 +38,7 @@
|
|||||||
<Logo v-if="showLogo" :collapse="false" />
|
<Logo v-if="showLogo" :collapse="false" />
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li v-if="orgsShow" class="left-item" style="margin-left: 21px;">
|
<li v-if="orgsShow" class="left-item" style="margin-left: 20px;">
|
||||||
<Organization :disabled="orgsDisabled" class="organization" />
|
<Organization :disabled="orgsDisabled" class="organization" />
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -103,93 +103,12 @@ export default {
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "~@/styles/variables.scss";
|
@import "~@/styles/variables.scss";
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: $headerHeight;
|
height: $headerHeight;
|
||||||
line-height: $headerHeight;
|
line-height: $headerHeight;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: var(--banner-bg);
|
background-color: var(--banner-bg);
|
||||||
|
|
||||||
.navbar-left {
|
|
||||||
float: left;
|
|
||||||
|
|
||||||
.left-item {
|
|
||||||
line-height: $headerHeight;
|
|
||||||
display: inline-block;
|
|
||||||
vertical-align: top;
|
|
||||||
|
|
||||||
& >>> .el-submenu__title {
|
|
||||||
font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
||||||
padding: 0 8px;
|
|
||||||
line-height: $headerHeight;
|
|
||||||
height: $headerHeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
& >>> .org-select {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
& >>> .svg-icon {
|
|
||||||
color: #FFF !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-logo {
|
|
||||||
width: 200px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
>>> .el-link {
|
|
||||||
vertical-align: baseline;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header-item:hover, .nav-logo:hover {
|
|
||||||
background: rgba(0, 0, 0, 12%);
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-right {
|
|
||||||
float: right;
|
|
||||||
margin-right: 10px;
|
|
||||||
height: $headerHeight;
|
|
||||||
line-height: $headerHeight;
|
|
||||||
|
|
||||||
.header-item {
|
|
||||||
line-height: $headerHeight;
|
|
||||||
display: inline-block;
|
|
||||||
padding-right: 10px;
|
|
||||||
padding-left: 10px;
|
|
||||||
vertical-align: top;
|
|
||||||
|
|
||||||
& >>> .svg-icon {
|
|
||||||
color: #FFF !important;
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
& >>> .el-badge {
|
|
||||||
vertical-align: top;
|
|
||||||
|
|
||||||
.el-badge__content {
|
|
||||||
top: 8px;
|
|
||||||
height: 15px;
|
|
||||||
line-height: 15px;
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
& >>> i {
|
|
||||||
color: #FFF;
|
|
||||||
font-size: 16px;
|
|
||||||
|
|
||||||
&.el-icon-arrow-down {
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
& >>> i.el-dialog__close.el-icon-close {
|
|
||||||
color: #7c7e7f;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -199,14 +118,13 @@ export default {
|
|||||||
.is-show-menu {
|
.is-show-menu {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hamburger-container {
|
.hamburger-container {
|
||||||
line-height: 26px;
|
|
||||||
float: left;
|
float: left;
|
||||||
height: 26px;
|
height: 30px;
|
||||||
margin: 6px;
|
margin: 5px;
|
||||||
padding: 0 10px !important;
|
padding: 0 10px !important;
|
||||||
border-radius: 4px;
|
line-height: 30px;
|
||||||
|
border-radius: 5px;
|
||||||
border-color: $--color-primary;
|
border-color: $--color-primary;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@@ -215,13 +133,143 @@ export default {
|
|||||||
-webkit-tap-highlight-color: transparent;
|
-webkit-tap-highlight-color: transparent;
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
|
|
||||||
& >>> .svg-icon {
|
::v-deep .svg-icon {
|
||||||
font-size: 16px !important;
|
font-size: 16px !important;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1006px) {
|
// 折叠按钮
|
||||||
|
.hamburger-container {
|
||||||
|
float: left;
|
||||||
|
height: 30px;
|
||||||
|
margin: 5px;
|
||||||
|
padding: 0 10px !important;
|
||||||
|
line-height: 30px;
|
||||||
|
border-radius: 5px;
|
||||||
|
border-color: $--color-primary;
|
||||||
|
background-color: white;
|
||||||
|
color: #fff;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: .2s;
|
||||||
|
-webkit-tap-highlight-color: transparent;
|
||||||
|
opacity: 0.7;
|
||||||
|
|
||||||
|
::v-deep .svg-icon {
|
||||||
|
font-size: 16px !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-left {
|
||||||
|
float: left;
|
||||||
|
display: flex;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
.left-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
list-style: none;
|
||||||
|
|
||||||
|
.nav-logo {
|
||||||
|
width: 200px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(0, 0, 0, 12%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.organization {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
line-height: 30px;
|
||||||
|
padding: 0 10px 0 15px !important;
|
||||||
|
border-radius: 5px;
|
||||||
|
background-color: rgba(255, 255, 255, .15);
|
||||||
|
color: #fff;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 15px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: rgba(0, 0, 0, .12) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 未找到与之对应的
|
||||||
|
& >>> .el-submenu__title {
|
||||||
|
font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
padding: 0 8px;
|
||||||
|
line-height: $headerHeight;
|
||||||
|
height: $headerHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 未找到与之对应的
|
||||||
|
& >>> .svg-icon {
|
||||||
|
color: #FFF !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-right {
|
||||||
|
float: right;
|
||||||
|
margin-right: 10px;
|
||||||
|
height: $headerHeight;
|
||||||
|
line-height: $headerHeight;
|
||||||
|
|
||||||
|
.header-item {
|
||||||
|
line-height: $headerHeight;
|
||||||
|
display: inline-block;
|
||||||
|
padding-right: 10px;
|
||||||
|
padding-left: 10px;
|
||||||
|
vertical-align: top;
|
||||||
|
|
||||||
|
& >>> .svg-icon {
|
||||||
|
color: #FFF !important;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
& >>> .el-badge {
|
||||||
|
vertical-align: top;
|
||||||
|
|
||||||
|
.el-link {
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-badge__content--primary {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-badge__content {
|
||||||
|
top: 8px;
|
||||||
|
height: 15px;
|
||||||
|
line-height: 15px;
|
||||||
|
border: none;
|
||||||
|
color: var(--color-primary);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
& >>> i {
|
||||||
|
color: #FFF;
|
||||||
|
font-size: 16px;
|
||||||
|
|
||||||
|
&.el-icon-arrow-down {
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
& >>> i.el-dialog__close.el-icon-close {
|
||||||
|
color: #7c7e7f;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(0, 0, 0, 12%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 1006px) {
|
||||||
|
.navbar {
|
||||||
.is-show-menu {
|
.is-show-menu {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
@@ -229,29 +277,11 @@ export default {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 480px) {
|
@media screen and (max-width: 480px) {
|
||||||
.active-menu {
|
.active-menu {
|
||||||
display: none !important;;
|
display: none !important;;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
>>> .el-badge__content {
|
|
||||||
color: var(--color-primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
>>> .el-badge__content--primary {
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.organization {
|
|
||||||
border-radius: 3px;
|
|
||||||
background-color: rgba(255, 255, 255, .15);
|
|
||||||
padding-left: 10px !important;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: rgba(0, 0, 0, .12);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
@@ -223,6 +223,12 @@ input[type=file] {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-popper.switch-org {
|
||||||
|
border-radius: 5px;
|
||||||
|
left: 220px !important;
|
||||||
|
max-width: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
// 步骤条
|
// 步骤条
|
||||||
.el-timeline .el-timeline-item {
|
.el-timeline .el-timeline-item {
|
||||||
.el-timeline-item__wrapper {
|
.el-timeline-item__wrapper {
|
||||||
|
Reference in New Issue
Block a user