mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-09 19:47:39 +08:00
feat: blur
This commit is contained in:
@@ -1,15 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<HeaderComponent
|
<div class="header-container">
|
||||||
@toggle-menu="menuVisible = !menuVisible"
|
<HeaderComponent
|
||||||
:show-menu-btn="!hideMenu"
|
@toggle-menu="menuVisible = !menuVisible"
|
||||||
/>
|
:show-menu-btn="!hideMenu"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="main-container">
|
<div class="main-container">
|
||||||
<MenuComponent
|
<div class="menu-container">
|
||||||
:visible="!hideMenu && menuVisible"
|
<MenuComponent
|
||||||
@item-click="menuVisible = false"
|
:visible="!hideMenu && menuVisible"
|
||||||
/>
|
@item-click="menuVisible = false"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
class="content"
|
class="content"
|
||||||
:class="{ 'menu-open': menuVisible && !hideMenu }"
|
:class="{ 'menu-open': menuVisible && !hideMenu }"
|
||||||
@@ -47,6 +51,17 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.header-container {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-container {
|
||||||
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
--header-text-color: black;
|
--header-text-color: black;
|
||||||
--menu-background-color: white;
|
--menu-background-color: white;
|
||||||
--background-color: white;
|
--background-color: white;
|
||||||
|
--background-color-blur: rgba(255, 255, 255, 0.57);
|
||||||
--menu-border-color: lightgray;
|
--menu-border-color: lightgray;
|
||||||
--normal-border-color: lightgray;
|
--normal-border-color: lightgray;
|
||||||
--menu-selected-background-color: rgba(208, 250, 255, 0.659);
|
--menu-selected-background-color: rgba(208, 250, 255, 0.659);
|
||||||
@@ -33,6 +34,7 @@
|
|||||||
--header-text-color: white;
|
--header-text-color: white;
|
||||||
--menu-background-color: #333;
|
--menu-background-color: #333;
|
||||||
--background-color: #333;
|
--background-color: #333;
|
||||||
|
--background-color-blur: #333333a4;
|
||||||
--menu-border-color: #555;
|
--menu-border-color: #555;
|
||||||
--normal-border-color: #555;
|
--normal-border-color: #555;
|
||||||
--menu-selected-background-color: rgba(255, 255, 255, 0.1);
|
--menu-selected-background-color: rgba(255, 255, 255, 0.1);
|
||||||
|
|||||||
@@ -73,11 +73,10 @@ export default {
|
|||||||
right: 0;
|
right: 0;
|
||||||
background-color: var(--menu-background-color);
|
background-color: var(--menu-background-color);
|
||||||
border: 1px solid var(--normal-border-color);
|
border: 1px solid var(--normal-border-color);
|
||||||
border-radius: 4px;
|
|
||||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
|
||||||
z-index: 1000;
|
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
|
z-index: 2000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-item {
|
.dropdown-item {
|
||||||
|
|||||||
@@ -173,7 +173,8 @@ export default {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: var(--header-height);
|
height: var(--header-height);
|
||||||
background-color: var(--header-background-color);
|
background-color: var(--background-color-blur);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
color: var(--header-text-color);
|
color: var(--header-text-color);
|
||||||
border-bottom: 1px solid var(--header-border-color);
|
border-bottom: 1px solid var(--header-border-color);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -237,13 +237,14 @@ export default {
|
|||||||
.menu {
|
.menu {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
background-color: var(--menu-background-color);
|
background-color: var(--menu-background-color);
|
||||||
height: calc(100vh - var(--header-height) - 20px);
|
height: calc(100vh - 10px);
|
||||||
border-right: 1px solid var(--menu-border-color);
|
border-right: 1px solid var(--menu-border-color);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
|
padding-top: calc(var(--header-height) + 10px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-item-container {
|
.menu-item-container {
|
||||||
@@ -381,6 +382,10 @@ export default {
|
|||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
border-right: none;
|
border-right: none;
|
||||||
height: 400px;
|
height: 400px;
|
||||||
|
top: calc(var(--header-height) + 10px);
|
||||||
|
padding-top: 10px;
|
||||||
|
background-color: var(--background-color-blur);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.slide-enter-active,
|
.slide-enter-active,
|
||||||
|
|||||||
@@ -76,10 +76,16 @@ export default {
|
|||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
height: calc(100vh - var(--header-height));
|
height: calc(100vh - var(--header-height));
|
||||||
|
padding-top: var(--header-height);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-tabs {
|
.about-tabs {
|
||||||
|
position: sticky;
|
||||||
|
top: 1px;
|
||||||
|
z-index: 200;
|
||||||
|
background-color: var(--background-color-blur);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
border-bottom: 1px solid var(--normal-border-color);
|
border-bottom: 1px solid var(--normal-border-color);
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ export default {
|
|||||||
padding: 20px;
|
padding: 20px;
|
||||||
height: calc(100vh - var(--header-height) - 40px);
|
height: calc(100vh - var(--header-height) - 40px);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
padding-top: calc(var(--header-height) + 20px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.activity-list-page-card {
|
.activity-list-page-card {
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ export default {
|
|||||||
.discord-callback-page {
|
.discord-callback-page {
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
height: calc(100vh - var(--header-height));
|
height: calc(100vh - var(--header-height));
|
||||||
|
padding-top: var(--header-height);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@@ -212,6 +212,7 @@ export default {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
height: calc(100vh - var(--header-height));
|
height: calc(100vh - var(--header-height));
|
||||||
|
padding-top: var(--header-height);
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|||||||
@@ -132,6 +132,7 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
height: calc(100vh - var(--header-height));
|
height: calc(100vh - var(--header-height));
|
||||||
|
padding-top: var(--header-height);
|
||||||
}
|
}
|
||||||
.forgot-content {
|
.forgot-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ export default {
|
|||||||
.github-callback-page {
|
.github-callback-page {
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
height: calc(100vh - var(--header-height));
|
height: calc(100vh - var(--header-height));
|
||||||
|
padding-top: var(--header-height);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
<div class="article-container">
|
<div class="article-container">
|
||||||
<template v-if="selectedTopic === '最新' || selectedTopic === '排行榜' || selectedTopic === '最新回复'">
|
<template v-if="selectedTopic === '最新' || selectedTopic === '排行榜' || selectedTopic === '最新回复'">
|
||||||
<div class="header-container">
|
<div class="article-header-container">
|
||||||
<div class="header-item main-item">
|
<div class="header-item main-item">
|
||||||
<div class="header-item-text">话题</div>
|
<div class="header-item-text">话题</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -385,6 +385,7 @@ export default {
|
|||||||
.home-page {
|
.home-page {
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
height: calc(100vh - var(--header-height));
|
height: calc(100vh - var(--header-height));
|
||||||
|
padding-top: var(--header-height);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -437,9 +438,11 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.topic-container {
|
.topic-container {
|
||||||
position: sticky;
|
/* position: sticky;
|
||||||
z-index: 1000;
|
top: 1px;
|
||||||
background-color: var(--background-color);
|
z-index: 1000; */
|
||||||
|
background-color: var(--background-color-blur);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -482,7 +485,7 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-container {
|
.article-header-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -692,7 +695,7 @@ export default {
|
|||||||
margin-right: 3%;
|
margin-right: 3%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-container {
|
.article-header-container {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -721,6 +724,7 @@ export default {
|
|||||||
|
|
||||||
.topic-container {
|
.topic-container {
|
||||||
position: static;
|
position: static;
|
||||||
|
z-index: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -124,6 +124,7 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
height: calc(100vh - var(--header-height));
|
height: calc(100vh - var(--header-height));
|
||||||
|
padding-top: var(--header-height);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -535,10 +535,16 @@ export default {
|
|||||||
.message-page {
|
.message-page {
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
height: calc(100vh - var(--header-height));
|
height: calc(100vh - var(--header-height));
|
||||||
|
padding-top: var(--header-height);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.message-page-header {
|
.message-page-header {
|
||||||
|
position: sticky;
|
||||||
|
top: 1px;
|
||||||
|
z-index: 200;
|
||||||
|
background-color: var(--background-color-blur);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|||||||
@@ -262,6 +262,7 @@ export default {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
height: calc(100vh - var(--header-height));
|
height: calc(100vh - var(--header-height));
|
||||||
|
padding-top: var(--header-height);
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ export default {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: calc(100vh - var(--header-height));
|
height: calc(100vh - var(--header-height));
|
||||||
|
padding-top: var(--header-height);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -597,7 +597,7 @@ export default {
|
|||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
height: calc(100vh - var(--header-height));
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.loading-container {
|
.loading-container {
|
||||||
@@ -612,11 +612,13 @@ export default {
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
height: calc(100% - 40px);
|
height: calc(100% - 40px - var(--header-height));
|
||||||
width: calc(85% - 40px);
|
width: calc(85% - 40px);
|
||||||
|
padding-top: calc(var(--header-height) + 20px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-page-scroller-container {
|
.post-page-scroller-container {
|
||||||
|
padding-top: var(--header-height);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 15%;
|
width: 15%;
|
||||||
@@ -905,6 +907,7 @@ export default {
|
|||||||
.post-page-main-container {
|
.post-page-main-container {
|
||||||
width: calc(100% - 20px);
|
width: calc(100% - 20px);
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
padding-top: calc(var(--header-height) + 10px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.article-title {
|
.article-title {
|
||||||
|
|||||||
@@ -490,6 +490,7 @@ export default {
|
|||||||
.profile-page {
|
.profile-page {
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
height: calc(100vh - var(--header-height));
|
height: calc(100vh - var(--header-height));
|
||||||
|
padding-top: var(--header-height);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
@@ -630,6 +631,11 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.profile-tabs {
|
.profile-tabs {
|
||||||
|
position: sticky;
|
||||||
|
top: 1px;
|
||||||
|
z-index: 200;
|
||||||
|
background-color: var(--background-color-blur);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
|
|||||||
@@ -226,6 +226,7 @@ export default {
|
|||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
padding: 40px;
|
padding: 40px;
|
||||||
height: calc(100vh - var(--header-height) - 80px);
|
height: calc(100vh - var(--header-height) - 80px);
|
||||||
|
padding-top: calc(var(--header-height) + 40px);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -223,6 +223,7 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
height: calc(100vh - var(--header-height));
|
height: calc(100vh - var(--header-height));
|
||||||
|
padding-top: var(--header-height);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
height: calc(100vh - var(--header-height));
|
height: calc(100vh - var(--header-height));
|
||||||
|
padding-top: var(--header-height);
|
||||||
}
|
}
|
||||||
|
|
||||||
.reason-title {
|
.reason-title {
|
||||||
|
|||||||
@@ -49,5 +49,6 @@ onMounted(loadData)
|
|||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
height: calc(100vh - var(--header-height) - 40px);
|
height: calc(100vh - var(--header-height) - 40px);
|
||||||
|
padding-top: calc(var(--header-height) + 20px);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ export default {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
padding-top: var(--header-height);
|
||||||
}
|
}
|
||||||
|
|
||||||
.twitter-callback-page-text {
|
.twitter-callback-page-text {
|
||||||
|
|||||||
Reference in New Issue
Block a user