| /* |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| @import '~antd/lib/style/themes/default.less'; |
| |
| .header { |
| display: flex; |
| justify-content: space-between; |
| align-items: center; |
| height: 64px; |
| padding: 0 24px 0 0; |
| background: #fff; |
| box-shadow: 0 4px 4px rgba(0, 21, 41, 0.08); |
| position: relative; |
| } |
| |
| .warning { |
| padding-left: 34px; |
| color: red; |
| } |
| |
| .text { |
| font-size: 20px; |
| font-weight: 600; |
| margin-left: 24px; |
| } |
| |
| :global { |
| .ant-layout { |
| min-height: 100vh; |
| overflow-x: hidden; |
| } |
| } |
| |
| .logo { |
| height: 64px; |
| line-height: 58px; |
| vertical-align: top; |
| display: inline-block; |
| padding: 0 0 0 24px; |
| cursor: pointer; |
| font-size: 20px; |
| |
| img { |
| display: inline-block; |
| vertical-align: middle; |
| } |
| } |
| |
| .menu { |
| :global(.anticon) { |
| margin-right: 8px; |
| } |
| |
| :global(.ant-dropdown-menu-item) { |
| width: 160px; |
| } |
| } |
| |
| i.trigger { |
| font-size: 20px; |
| line-height: 64px; |
| cursor: pointer; |
| transition: all 0.3s, padding 0s; |
| padding: 0 24px; |
| |
| &:hover { |
| background: @primary-1; |
| } |
| } |
| |
| .right { |
| margin-left: 13px; |
| float: right; |
| height: 100%; |
| cursor: pointer; |
| |
| &:hover { |
| color: @primary-color; |
| } |
| |
| .action { |
| cursor: pointer; |
| padding: 0 12px; |
| display: inline-block; |
| transition: all 0.3s; |
| height: 100%; |
| |
| >i { |
| font-size: 16px; |
| vertical-align: middle; |
| color: @text-color; |
| } |
| |
| &:hover, |
| &:global(.ant-popover-open) { |
| background: @primary-1; |
| } |
| } |
| |
| .search { |
| padding: 0; |
| margin: 0 12px; |
| |
| &:hover { |
| background: transparent; |
| } |
| } |
| |
| .account { |
| .avatar { |
| margin: 20px 8px 20px 0; |
| color: @primary-color; |
| background: rgba(255, 255, 255, 0.85); |
| vertical-align: middle; |
| } |
| } |
| } |
| |
| @media only screen and (max-width: @screen-md) { |
| .header { |
| :global(.ant-divider-vertical) { |
| vertical-align: unset; |
| } |
| |
| .name { |
| display: none; |
| } |
| |
| i.trigger { |
| padding: 0 12px; |
| } |
| |
| .logo { |
| padding-right: 12px; |
| position: relative; |
| } |
| |
| .right { |
| position: absolute; |
| right: 12px; |
| top: 0; |
| background: #fff; |
| |
| .account { |
| .avatar { |
| margin-right: 0; |
| } |
| } |
| } |
| } |
| } |