style: style optimization
This commit is contained in:
@@ -43,7 +43,6 @@
|
|||||||
|
|
||||||
.loading-hide {
|
.loading-hide {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
transition: all 200ms;
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -174,21 +174,12 @@ router.afterEach((to) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
function removeLoading() {
|
function removeLoading() {
|
||||||
if (window.innerWidth < 1025) {
|
|
||||||
document.documentElement.style.setProperty('--loading-hide-transition', 'none')
|
|
||||||
}
|
|
||||||
const doc = document.getElementById('loading-first');
|
const doc = document.getElementById('loading-first');
|
||||||
if (!doc) {
|
if (!doc) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
doc.classList.add('loading-complete')
|
doc.remove()
|
||||||
setTimeout(() => {
|
|
||||||
doc.classList.add('loading-hide')
|
|
||||||
setTimeout(() => {
|
|
||||||
doc.remove()
|
|
||||||
}, 1000)
|
|
||||||
}, 200)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default router
|
export default router
|
||||||
|
|||||||
@@ -1468,7 +1468,7 @@ function editSetting(settingForm, refreshStatus = true) {
|
|||||||
.card-grid {
|
.card-grid {
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
@media (max-width: 500px) {
|
@media (max-width: 500px) {
|
||||||
|
|||||||
Reference in New Issue
Block a user