Skip to content

Commit

Permalink
mod: page max-width, galgame page
Browse files Browse the repository at this point in the history
  • Loading branch information
KUN1007 committed Oct 25, 2024
1 parent 87d322e commit 881911d
Show file tree
Hide file tree
Showing 27 changed files with 43 additions and 43 deletions.
4 changes: 4 additions & 0 deletions assets/css/theme/color.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
html {
--kungalgame-white-solid: #fff;
--kungalgame-black-solid: #000;

--kungalgame-gray-4: #bcc8d4;

--kungalgame-blue-2: #80ccff;
Expand All @@ -21,6 +24,7 @@ html {
--kungalgame-pink-4: #e85aad;

--kungalgame-shadow-color: hsla(0, 0%, 0%, 0.05);
--kungalgame-trans-gray: rgba(255, 255, 255, 0.2);

--kungalgame-trans-blue-3: #54aeff77;
--kungalgame-trans-blue-4: #218bff77;
Expand Down
25 changes: 14 additions & 11 deletions components/galgame/card/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ defineProps<{
<style lang="scss" scoped>
.grid-card {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
gap: 10px;
}
Expand All @@ -86,7 +86,8 @@ defineProps<{
color: var(--kungalgame-font-color-3);
border-radius: 8px;
box-shadow: var(--shadow);
border: 1px solid var(--kungalgame-blue-3);
overflow: hidden;
@include kun-blur;
}
.banner {
Expand Down Expand Up @@ -134,15 +135,12 @@ defineProps<{
left: 0;
right: 0;
padding: 8px 8px;
background: linear-gradient(
transparent,
rgba(0, 0, 0, 0.7)
);
color: white;
background: linear-gradient(transparent, var(--kungalgame-mask-color-0));
color: var(--kungalgame-white-solid);
display: flex;
justify-content: space-between;
align-items: flex-end;
font-size: x-small;
font-size: small;
.data {
display: flex;
Expand All @@ -158,10 +156,10 @@ defineProps<{
.language {
display: flex;
gap: 8px;
span {
padding: 2px 4px;
background: rgba(255, 255, 255, 0.2);
background: var(rgba(255, 255, 255, 0.2));
border-radius: 4px;
}
}
Expand All @@ -180,6 +178,11 @@ defineProps<{
color: var(--kungalgame-blue-5);
font-weight: bold;
margin: 7px 0;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.publisher {
Expand All @@ -202,4 +205,4 @@ defineProps<{
gap: 7px;
}
}
</style>
</style>
9 changes: 1 addition & 8 deletions components/galgame/card/Container.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,9 @@ const { data, status } = await useFetch(`/api/galgame`, {
</template>

<style lang="scss" scoped>
.container {
padding: 17px;
@include kun-blur;
}
.declaration {
user-select: none;
margin-top: 17px;
margin-top: 16px;
text-align: center;
font-size: small;
color: var(--kungalgame-font-color-0);
Expand All @@ -48,7 +42,6 @@ const { data, status } = await useFetch(`/api/galgame`, {
@media (max-width: 700px) {
.container {
margin: 0 5px;
padding: 17px 10px;
}
}
</style>
2 changes: 1 addition & 1 deletion components/pool/Container.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ onUnmounted(() => {
.pool {
display: flex;
flex-direction: column;
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
padding: 0 10px;
}
Expand Down
2 changes: 1 addition & 1 deletion components/report/Report.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const handleSubmitReport = async () => {
<style lang="scss" scoped>
.container {
width: 100%;
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
padding: 20px 20px 60px;
Expand Down
2 changes: 1 addition & 1 deletion error.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const handleError = async () => {
flex-direction: column;
height: 100%;
min-height: calc(100dvh - 75px);
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/message.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const isShowContent = computed(() => {
border-radius: 10px;
height: calc(100dvh - 75px);
transition: width 0.2s;
max-width: 64rem;
max-width: 80rem;
margin: auto;
display: flex;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kun-galgame-nuxt3",
"version": "2.19.13",
"version": "2.19.14",
"packageManager": "[email protected]",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion pages/category/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ useHead({
display: flex;
flex-direction: column;
height: 100%;
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
color: var(--kungalgame-font-color-3);
}
Expand Down
2 changes: 1 addition & 1 deletion pages/donate/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const isShowOR = ref(false)
<style lang="scss" scoped>
.root {
height: calc(100vh - 75px);
max-width: 64rem;
max-width: 80rem;
min-width: 500px;
min-height: 500px;
margin: 0 auto;
Expand Down
2 changes: 1 addition & 1 deletion pages/edit/galgame/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const type = useRequestURL().searchParams.get('type')
flex-direction: column;
height: 100%;
min-height: calc(100dvh - 75px);
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
color: var(--kungalgame-font-color-3);
}
Expand Down
2 changes: 1 addition & 1 deletion pages/edit/topic/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ onBeforeRouteLeave(async (_, __, next) => {
.container {
position: relative;
width: 100%;
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
@include kun-blur;
Expand Down
2 changes: 1 addition & 1 deletion pages/friend-links/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ useHead({
display: flex;
flex-direction: column;
height: 100%;
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
padding: 17px;
Expand Down
2 changes: 1 addition & 1 deletion pages/galgame/[gid]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ if (galgame.value) {
display: flex;
flex-direction: column;
height: 100%;
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
padding: 17px;
Expand Down
2 changes: 1 addition & 1 deletion pages/galgame/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ useHead({
display: flex;
flex-direction: column;
height: 100%;
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
color: var(--kungalgame-font-color-3);
}
Expand Down
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ useHead({
flex-direction: column;
height: 100%;
min-height: calc(100dvh - 75px);
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
padding: 17px;
Expand Down
2 changes: 1 addition & 1 deletion pages/kungalgame/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ useHead({
border-radius: 7px;
height: calc(100dvh - 75px);
transition: width 0.2s;
max-width: 64rem;
max-width: 80rem;
margin: auto;
display: flex;
}
Expand Down
2 changes: 1 addition & 1 deletion pages/kungalgamer/[uid].vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ useHead({
.root {
margin: 0 auto;
min-height: 800px;
max-width: 64rem;
max-width: 80rem;
display: flex;
flex-direction: column;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion pages/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ useHead({
flex-direction: column;
height: 100%;
min-height: calc(100dvh - 75px);
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
@include kun-center;
}
Expand Down
2 changes: 1 addition & 1 deletion pages/ranking/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ useHead({
.article {
max-height: calc(100dvh - 100px);
width: 100%;
max-width: 64rem;
max-width: 80rem;
margin: auto;
display: flex;
padding: 10px;
Expand Down
2 changes: 1 addition & 1 deletion pages/register/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ useHead({
flex-direction: column;
height: 100%;
min-height: calc(100dvh - 75px);
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
@include kun-center;
}
Expand Down
2 changes: 1 addition & 1 deletion pages/search/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ useHead({
flex-direction: column;
height: 100%;
min-height: calc(100dvh - 75px);
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
color: var(--kungalgame-font-color-3);
padding: 17px;
Expand Down
2 changes: 1 addition & 1 deletion pages/section/[section]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ useHead({
flex-direction: column;
height: 100%;
min-height: calc(100dvh - 75px);
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
@include kun-blur;
Expand Down
2 changes: 1 addition & 1 deletion pages/technique/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ useHead({
height: 100%;
transition: width 0.2s;
width: 100%;
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
display: flex;
flex-direction: column;
Expand Down
2 changes: 1 addition & 1 deletion pages/thanks-list/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ useHead({
.container {
width: 100%;
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
position: relative;
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion pages/topic/[tid]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ if (data) {
display: flex;
flex-direction: column;
height: 100%;
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
color: var(--kungalgame-font-color-3);
}
Expand Down
2 changes: 1 addition & 1 deletion pages/update-log/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ useHead({
flex-direction: column;
height: 100%;
min-height: calc(100dvh - 75px);
max-width: 64rem;
max-width: 80rem;
margin: 0 auto;
padding: 10px;
overflow-y: scroll;
Expand Down

0 comments on commit 881911d

Please sign in to comment.