Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
refactor: update logo (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby authored Oct 27, 2021
1 parent ee614c1 commit a2e83e8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 55 deletions.
1 change: 1 addition & 0 deletions public/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions src/components/Tools/Logo.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<template>
<div class="logo">
<a href="javascript:void(0);" @click="onLogoClick()">
<h1 class="logo-title">Halo</h1>
<h1 class="logo-sub-title" style="padding-left: 10px;">Dashboard</h1>
<img src="/images/logo.svg" alt="Halo Logo" />
</a>
</div>
</template>
Expand Down
63 changes: 10 additions & 53 deletions src/styles/global.less
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,6 @@ body {
flex: 0;
text-align: center;
line-height: 58px;

h1 {
display: none;
}
}
}
}
Expand Down Expand Up @@ -274,8 +270,8 @@ body {
display: flex;

.logo.top-nav-header {
flex: 0 0 165px;
width: 165px;
flex: 0 0 115px;
width: 115px;
height: 64px;
position: relative;
line-height: 64px;
Expand All @@ -286,17 +282,7 @@ body {
svg {
display: inline-block;
vertical-align: middle;
height: 32px;
width: 32px;
}

h1 {
color: #fff;
display: inline-block;
vertical-align: top;
font-size: 16px;
margin: 0;
font-weight: 600;
width: 56px;
}
}
}
Expand All @@ -322,16 +308,6 @@ body {

&.light {
background-color: #fff;

.header-index-wide {
.header-index-left {
.logo {
h1 {
color: #002140;
}
}
}
}
}
}

Expand Down Expand Up @@ -405,26 +381,11 @@ body {
background: #002140;
transition: all 0.3s;

img,
svg,
h1 {
display: inline-block;
vertical-align: middle;
}

img,
svg {
height: 32px;
width: 32px;
}

h1 {
color: #fff;
font-size: 20px;
margin: 0;
font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
font-weight: 600;
display: inline-block;
vertical-align: middle;
width: 64px;
}
}

Expand All @@ -435,10 +396,6 @@ body {
.logo {
background: #fff;
box-shadow: 1px 1px 0px 0px #e8e8e8;

h1 {
color: unset;
}
}

.ant-menu-light {
Expand Down Expand Up @@ -894,7 +851,7 @@ body {
width: 100px;
height: 100%;
box-shadow: 0 0 10px #29d, 0 0 5px #29d;
opacity: 1.0;
opacity: 1;

-webkit-transform: rotate(3deg) translate(0px, -4px);
-ms-transform: rotate(3deg) translate(0px, -4px);
Expand Down Expand Up @@ -953,26 +910,26 @@ body {
}

/* scroll bar style */
*::-webkit-scrollbar-track-piece{
*::-webkit-scrollbar-track-piece {
background-color: #f8f8f8;
-webkit-border-radius: 2em;
-moz-border-radius: 2em;
border-radius: 2em;
}

*::-webkit-scrollbar{
*::-webkit-scrollbar {
width: 8px;
height: 8px;
}

*::-webkit-scrollbar-thumb{
*::-webkit-scrollbar-thumb {
background-color: #ddd;
background-clip: padding-box;
-webkit-border-radius: 2em;
-moz-border-radius: 2em;
border-radius: 2em;
}

*::-webkit-scrollbar-thumb:hover{
*::-webkit-scrollbar-thumb:hover {
background-color: #bbb;
}

0 comments on commit a2e83e8

Please sign in to comment.