mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
changes logo when risezes the page (#6504)
Co-authored-by: Lopez <rodrigo@scclouds.com.br>
This commit is contained in:
parent
ba65b51808
commit
7a1401a111
221
ui/public/assets/mini-logo.svg
Normal file
221
ui/public/assets/mini-logo.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 57 KiB |
4
ui/public/config.json
vendored
4
ui/public/config.json
vendored
@ -12,6 +12,7 @@
|
|||||||
"footer": "Licensed under the <a href='http://www.apache.org/licenses/' target='_blank'>Apache License</a>, Version 2.0.",
|
"footer": "Licensed under the <a href='http://www.apache.org/licenses/' target='_blank'>Apache License</a>, Version 2.0.",
|
||||||
"loginFooter": "",
|
"loginFooter": "",
|
||||||
"logo": "assets/logo.svg",
|
"logo": "assets/logo.svg",
|
||||||
|
"minilogo": "assets/mini-logo.svg",
|
||||||
"banner": "assets/banner.svg",
|
"banner": "assets/banner.svg",
|
||||||
"error": {
|
"error": {
|
||||||
"403": "assets/403.png",
|
"403": "assets/403.png",
|
||||||
@ -21,6 +22,7 @@
|
|||||||
"theme": {
|
"theme": {
|
||||||
"@layout-mode": "light",
|
"@layout-mode": "light",
|
||||||
"@logo-background-color": "#ffffff",
|
"@logo-background-color": "#ffffff",
|
||||||
|
"@mini-logo-background-color": "#ffffff",
|
||||||
"@navigation-background-color": "#ffffff",
|
"@navigation-background-color": "#ffffff",
|
||||||
"@project-nav-background-color": "#001529",
|
"@project-nav-background-color": "#001529",
|
||||||
"@project-nav-text-color": "rgba(255, 255, 255, 0.65)",
|
"@project-nav-text-color": "rgba(255, 255, 255, 0.65)",
|
||||||
@ -43,6 +45,8 @@
|
|||||||
"@box-shadow-base": "0 2px 8px rgba(0, 0, 0, 0.15)",
|
"@box-shadow-base": "0 2px 8px rgba(0, 0, 0, 0.15)",
|
||||||
"@logo-width": "256px",
|
"@logo-width": "256px",
|
||||||
"@logo-height": "64px",
|
"@logo-height": "64px",
|
||||||
|
"@mini-logo-width": "80px",
|
||||||
|
"@mini-logo-height": "64px",
|
||||||
"@banner-width": "700px",
|
"@banner-width": "700px",
|
||||||
"@banner-height": "110px",
|
"@banner-height": "110px",
|
||||||
"@error-width": "256px",
|
"@error-width": "256px",
|
||||||
|
|||||||
@ -16,15 +16,21 @@
|
|||||||
// under the License.
|
// under the License.
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="logo">
|
<div v-if="collapsed && $config.minilogo">
|
||||||
|
<img
|
||||||
|
:style="{
|
||||||
|
width: $config.theme['@mini-logo-width'],
|
||||||
|
height: $config.theme['@mini-logo-height']
|
||||||
|
}"
|
||||||
|
:src="$config.minilogo" />
|
||||||
|
</div>
|
||||||
|
<div v-else-if="$config.logo">
|
||||||
<img
|
<img
|
||||||
v-if="$config.logo"
|
|
||||||
:style="{
|
:style="{
|
||||||
width: $config.theme['@logo-width'],
|
width: $config.theme['@logo-width'],
|
||||||
height: $config.theme['@logo-height']
|
height: $config.theme['@logo-height']
|
||||||
}"
|
}"
|
||||||
:src="$config.logo"
|
:src="$config.logo" />
|
||||||
class="logo-image" />
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -44,28 +50,12 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
required: false
|
required: false
|
||||||
|
},
|
||||||
|
collapsed: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
required: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style type="less" scoped>
|
|
||||||
.logo {
|
|
||||||
height: 64px;
|
|
||||||
position: relative;
|
|
||||||
line-height: 64px;
|
|
||||||
-webkit-transition: all .3s;
|
|
||||||
transition: all .3s;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sider.light .logo {
|
|
||||||
box-shadow: 1px 1px 0px 0px #e8e8e8;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo-image {
|
|
||||||
display: inline-block;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|||||||
@ -22,7 +22,8 @@
|
|||||||
collapsible
|
collapsible
|
||||||
v-model:collapsed="isCollapsed"
|
v-model:collapsed="isCollapsed"
|
||||||
:trigger="null">
|
:trigger="null">
|
||||||
<logo />
|
<logo
|
||||||
|
:collapsed="collapsed"/>
|
||||||
<s-menu
|
<s-menu
|
||||||
:collapsed="isCollapsed"
|
:collapsed="isCollapsed"
|
||||||
:menu="menus"
|
:menu="menus"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user