From 9c6795fd3c44e46cf3955fbfd8f8eeca23acb7a9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 08 十月 2022 00:31:51 +0800 Subject: [PATCH] 2022-10-08 --- src/components/header/index.scss | 193 +++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 164 insertions(+), 29 deletions(-) diff --git a/src/components/header/index.scss b/src/components/header/index.scss index f4a50f4..0c8a8d0 100644 --- a/src/components/header/index.scss +++ b/src/components/header/index.scss @@ -1,16 +1,14 @@ -@import '../../assets/css/global.scss'; - .header-container { position: fixed; - z-index: 1060; + z-index: 20; left: 0; top: 0; font-weight: bold!important; width: 100%; height: 48px; + display: flex; .header-logo { - float: left; width: 180px; line-height: 48px; text-align: center; @@ -30,13 +28,14 @@ } .header-collapse { - float: left; - width: 80px; + width: 35px; + min-height: 48px; line-height: 48px; - padding-left: 20px; - cursor: pointer; + padding-left: 10px; + margin: 0 10px; transition: padding-left 0.15s; - i { + .anticon { + cursor: pointer; position: relative; top: 3px; font-size: 20px; @@ -44,16 +43,21 @@ } } .header-collapse.collapse { - padding-left: 30px; + width: 60px; + padding-left: 20px; } .header-menu { - float: left; margin: 0; + min-height: 20px; line-height: 48px; + flex: 1; + overflow-x: auto; + overflow-y: hidden; + white-space: nowrap; li { - float: left; font-size: 1.3rem; cursor: pointer; + display: inline-block; span { padding: 0 10px; height: 42px; @@ -69,16 +73,40 @@ &.active { color: #ffffff; span { - border-bottom: 4px solid #06b4f7; + border-bottom: 4px solid #1890ff; } } } } + .header-menu.vertical-menu { + >li { + >span { + border-color: transparent!important; + } + } + } + + .header-menu::-webkit-scrollbar { + height: 5px; + } + .header-menu::-webkit-scrollbar-thumb { + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13); + background: rgba(0, 0, 0, 0.13); + border-radius: 5px; + } + .header-menu::-webkit-scrollbar-track { + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); + border: 1px solid rgba(0, 0, 0, 0.07); + background: rgba(0, 0, 0, 0); + border-radius: 3px; + } + .header-setting { - float: right; line-height: 48px; margin-right: 10px; img { + width: 29px; + height: 29px; border-radius: 30px; margin-right: 7px; } @@ -86,30 +114,137 @@ color: #ffffff; font-size: 0.95rem; .username { + vertical-align: middle; display: inline-block; - height: 30px; - max-width: 95px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + span { + display: block; + line-height: 15px; + padding: 0 3px; + font-size: 0.95rem; + max-width: 100px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + span + span { + font-size: 12px; + } } } } - .edit-check { + + .search-menu { font-size: 18px; - margin-top: 14px; + margin-top: 17px; + margin-right: 20px; margin-left: 10px; cursor: pointer; } -} -.header-dropdown { - li { - padding: 5px 25px; + .menu-select-dropdown { + top: 48px!important; + box-shadow: 0px 0px 2px #cdcdcd; + border-radius: 0 0 4px 4px; + background: #ffffff; + .ant-input-affix-wrapper { + margin-top: 2px; + } + .menu-select-box { + max-height: 200px; + min-height: 50px; + overflow-y: auto; + background: #ffffff; + margin-bottom: 3px; + .ant-menu { + border-radius: 0 0 4px 4px; + } + .ant-menu-item { + padding: 0px 25px; + height: 26px; + line-height: 26px; + color: rgba(0, 0, 0, 0.85); + cursor: pointer; + } + .ant-menu-item:hover { + background-color: #e6f7ff; + } + } + .menu-select-box::-webkit-scrollbar { + width: 7px; + } + .menu-select-box::-webkit-scrollbar-thumb { + border-radius: 5px; + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13); + background: rgba(0, 0, 0, 0.13); + } + .menu-select-box::-webkit-scrollbar-track { + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); + border-radius: 3px; + border: 1px solid rgba(0, 0, 0, 0.07); + background: rgba(0, 0, 0, 0); + } } } -.header-subSystem { - min-width: 100px; +.header-dropdown { + >li { + padding: 5px 25px; + } + >li.ant-dropdown-menu-submenu { + padding: 0px; + .ant-dropdown-menu-submenu-title { + padding: 5px 25px; + } + } } -.edit-switch { - margin-left: 10px; +.ant-dropdown.vertical-dropdown-menu { + z-index: 1100 !important; } + +.vertical-dropdown-menu, .vertical-dropdown-submenu { + ul.ant-dropdown-menu { + min-width: 125px; + } + .ant-dropdown-menu-submenu-title { + padding-right: 30px; + } +} +.menu-board { + background: #ffffff; + padding: 20px 50px; + border-radius: 4px; + box-shadow: 0 0 3px #959595; + position: relative; + // left: 11.8%; + .menu-wrap { + .title { + color: #1890ff; + font-size: 15px; + font-weight: 600; + } + .menu-detail { + max-width: 60vw; + padding: 5px 0 5px 15px; + div { + // float: left; + display: inline-block; + vertical-align: top; + margin-bottom: 8px; + width: 120px; + // overflow: hidden; + // white-space: nowrap; + // text-overflow: ellipsis; + cursor: pointer; + } + div:hover { + color: #40a9ff; + } + div:not(:last-child) { + margin-right: 15px; + } + } + .menu-detail::after { + content: ' '; + display: block; + clear: both; + } + } +} \ No newline at end of file -- Gitblit v1.8.0