This commit is contained in:
杜恒
2021-05-12 11:30:20 +08:00
parent 144804ecb7
commit a155178fa0
8 changed files with 59 additions and 102 deletions

File diff suppressed because one or more lines are too long

View File

@@ -354,66 +354,44 @@
}
}
&__menu {
&.list {
width: 110px;
text-align: center;
a {
display: block;
height: 34px;
line-height: 34px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--minor);
transition: color 0.35s, background 0.35s;
&:hover,
&.active {
color: var(--theme);
background: var(--classD);
}
width: 110px;
text-align: center;
a {
display: block;
height: 34px;
line-height: 34px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--minor);
transition: color 0.35s, background 0.35s;
&:hover,
&.active {
color: var(--theme);
background: var(--classD);
}
}
&.form {
padding: 15px;
.item {
margin-bottom: 15px;
.label {
color: var(--routine);
margin-bottom: 8px;
font-size: 12px;
}
input[type='text'],
input[type='password'] {
width: 220px;
height: 34px;
border: 1px solid var(--classB);
padding: 0 10px;
border-radius: 3px;
transition: border 0.35s;
color: var(--routine);
background: var(--background);
&:focus {
border-color: var(--theme);
}
}
}
button[type='button'] {
width: 220px;
height: 34px;
border: none;
background: var(--theme);
color: #fff;
border-radius: 3px;
transition: opacity 0.35s;
&:hover {
opacity: 0.85;
}
&:disabled {
cursor: not-allowed;
}
}
}
}
.item {
display: flex;
align-items: center;
height: 45px;
color: var(--minor);
.icon {
fill: var(--minor);
margin-right: 5px;
}
a {
color: var(--minor);
transition: color 0.25s;
&:hover {
color: var(--theme);
}
}
.split {
margin: 0 5px;
}
}
}
&-progress {

View File

@@ -537,18 +537,4 @@ document.addEventListener('DOMContentLoaded', () => {
$('.joe_motto').html(motto);
}
}
/* 登录 */
{
$(".joe_header__below-sign button[type='button']").on('click', function (e) {
if ($(".joe_header__below-sign input[name='name']").val().trim() === '') {
return Qmsg.warning('请输入用户名!');
}
if ($(".joe_header__below-sign input[name='password']").val().trim() === '') {
return Qmsg.warning('请输入密码!');
}
$(this).html('登录中...').attr('disabled', true);
$('.joe_header__below-sign form').submit();
});
}
});

File diff suppressed because one or more lines are too long