From 6bd6a67654688ac125dac7fad42b4de46538bb48 Mon Sep 17 00:00:00 2001 From: zhangjinlong Date: Sun, 11 Oct 2020 11:30:04 +0800 Subject: [PATCH] fix: replace logo and adjust header layout on 1280px --- src/assets/logo.svg | 12 +++++++++++ src/pages/editor/components/Header/index.less | 21 ++++++++++++++++--- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 src/assets/logo.svg diff --git a/src/assets/logo.svg b/src/assets/logo.svg new file mode 100644 index 0000000..825d4cf --- /dev/null +++ b/src/assets/logo.svg @@ -0,0 +1,12 @@ + + + + 编组 + Created with Sketch. + + + + + + + \ No newline at end of file diff --git a/src/pages/editor/components/Header/index.less b/src/pages/editor/components/Header/index.less index a0d7c95..eed2999 100644 --- a/src/pages/editor/components/Header/index.less +++ b/src/pages/editor/components/Header/index.less @@ -19,13 +19,15 @@ .logo { position: fixed; display: inline-block; - width: 50px; - height: 50px; + width: 120px; + height: 35px; border-radius: 3px; overflow: hidden; - background: url(../../../../assets/logo.png) no-repeat; + background: url(../../../../assets/logo.svg) no-repeat; background-size: contain; line-height: 50px; + margin-top: 7px; + margin-left: -20px; } } .controlArea { @@ -38,3 +40,16 @@ text-align: right; } } +@media screen and (min-width: 1280px) { + .header { + .logoArea { + width: 17%; + } + .controlArea { + width: auto; + } + .btnArea { + width: 30%; + } + } +}