登录页面改造
This commit is contained in:
@@ -115,4 +115,14 @@ body.swal2-shown {
|
|||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
}
|
}
|
||||||
|
.main-menu {
|
||||||
|
top: 2.6em !important;
|
||||||
|
}
|
||||||
|
.main-menu > .ui.menu > .item:first-child:empty {
|
||||||
|
display: none !important;
|
||||||
|
height: 0 !important;
|
||||||
|
min-height: 0 !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
/*# sourceMappingURL=@layout_override.css.map */
|
/*# sourceMappingURL=@layout_override.css.map */
|
||||||
|
|||||||
@@ -150,3 +150,16 @@ body.swal2-shown {
|
|||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Align left menu with top nav and remove leading spacer item
|
||||||
|
.main-menu {
|
||||||
|
top: 2.6em !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-menu > .ui.menu > .item:first-child:empty {
|
||||||
|
display: none !important;
|
||||||
|
height: 0 !important;
|
||||||
|
min-height: 0 !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ func (this *IndexAction) RunGet(params struct {
|
|||||||
this.Data["version"] = teaconst.Version
|
this.Data["version"] = teaconst.Version
|
||||||
}
|
}
|
||||||
this.Data["faviconFileId"] = config.FaviconFileId
|
this.Data["faviconFileId"] = config.FaviconFileId
|
||||||
|
this.Data["logoFileId"] = config.LogoFileId
|
||||||
this.Data["themeBackgroundColor"] = config.Theme.BackgroundColor
|
this.Data["themeBackgroundColor"] = config.Theme.BackgroundColor
|
||||||
|
|
||||||
// 是否可以注册
|
// 是否可以注册
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ func (this *IndexAction) RunGet(params struct {
|
|||||||
this.Data["version"] = teaconst.Version
|
this.Data["version"] = teaconst.Version
|
||||||
}
|
}
|
||||||
this.Data["faviconFileId"] = config.FaviconFileId
|
this.Data["faviconFileId"] = config.FaviconFileId
|
||||||
|
this.Data["logoFileId"] = config.LogoFileId
|
||||||
this.Data["themeBackgroundColor"] = config.Theme.BackgroundColor
|
this.Data["themeBackgroundColor"] = config.Theme.BackgroundColor
|
||||||
|
|
||||||
// 是否可以注册
|
// 是否可以注册
|
||||||
|
|||||||
@@ -106,6 +106,23 @@ body.login-page > div {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.logo-image-wrap {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
border-radius: 6px;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
overflow: hidden;
|
||||||
|
background: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
.logo-icon i.icon {
|
.logo-icon i.icon {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|||||||
@@ -38,7 +38,11 @@
|
|||||||
<div class="login-card">
|
<div class="login-card">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="brand-logo">
|
<div class="brand-logo">
|
||||||
|
{$if gt .logoFileId 0}
|
||||||
|
<span class="logo-image-wrap"><img class="logo-image" src="/ui/image/{$.logoFileId}" alt="logo"/></span>
|
||||||
|
{$else}
|
||||||
<span class="logo-icon"><i class="shield alternate icon"></i></span>
|
<span class="logo-icon"><i class="shield alternate icon"></i></span>
|
||||||
|
{$end}
|
||||||
<span class="logo-text">{$ htmlEncode .systemName}</span>
|
<span class="logo-text">{$ htmlEncode .systemName}</span>
|
||||||
</div>
|
</div>
|
||||||
<p class="header-title">新一代 Web与APP 应用防护平台</p>
|
<p class="header-title">新一代 Web与APP 应用防护平台</p>
|
||||||
|
|||||||
@@ -106,6 +106,23 @@ body.login-page > div {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.logo-image-wrap {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
border-radius: 6px;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
overflow: hidden;
|
||||||
|
background: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
.logo-icon i.icon {
|
.logo-icon i.icon {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|||||||
@@ -106,6 +106,23 @@ body.login-page > div {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.logo-image-wrap {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
border-radius: 6px;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
overflow: hidden;
|
||||||
|
background: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
.logo-icon i.icon {
|
.logo-icon i.icon {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|||||||
@@ -38,7 +38,11 @@
|
|||||||
<div class="login-card">
|
<div class="login-card">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="brand-logo">
|
<div class="brand-logo">
|
||||||
|
{$if gt .logoFileId 0}
|
||||||
|
<span class="logo-image-wrap"><img class="logo-image" src="/ui/image/{$.logoFileId}" alt="logo"/></span>
|
||||||
|
{$else}
|
||||||
<span class="logo-icon"><i class="shield alternate icon"></i></span>
|
<span class="logo-icon"><i class="shield alternate icon"></i></span>
|
||||||
|
{$end}
|
||||||
<span class="logo-text">{$ htmlEncode .systemName}</span>
|
<span class="logo-text">{$ htmlEncode .systemName}</span>
|
||||||
</div>
|
</div>
|
||||||
<p class="header-title">新一代 Web与APP 应用防护平台</p>
|
<p class="header-title">新一代 Web与APP 应用防护平台</p>
|
||||||
|
|||||||
@@ -106,6 +106,23 @@ body.login-page > div {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.logo-image-wrap {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
border-radius: 6px;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
overflow: hidden;
|
||||||
|
background: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
.logo-icon i.icon {
|
.logo-icon i.icon {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|||||||
Reference in New Issue
Block a user