pref: adjust info component mobile

This commit is contained in:
KUN1007 2023-10-25 21:45:56 +08:00
parent 6e205d46fe
commit 887edd3316
2 changed files with 36 additions and 1 deletions

View file

@ -32,7 +32,7 @@ We believe that "what truly makes a good game is something that makes you feel h
- Compatible with all modern browsers on both mobile and desktop. - Compatible with all modern browsers on both mobile and desktop.
- Responsive design for screens of any size. - Responsive design for screens of any size.
- Developed entirely using `Vue3` Composition API and fully supports `Typescript`. The coding style follows the best practices recommended on the [Vue official website](https://chat.openai.com/c/vuejs.org). - Developed entirely using `Vue3` Composition API and fully supports `Typescript`. The coding style follows the best practices recommended on the [Vue official website](https://vuejs.org/).
## Features ## Features

View file

@ -65,6 +65,7 @@ const handleClose = () => {
right: 0; right: 0;
z-index: 9999; z-index: 9999;
} }
.lass { .lass {
padding: 5px; padding: 5px;
font-size: 20px; font-size: 20px;
@ -74,6 +75,7 @@ const handleClose = () => {
border-bottom: none; border-bottom: none;
/* This shadow can only be drawn like this */ /* This shadow can only be drawn like this */
filter: drop-shadow(2px 4px 3px var(--kungalgame-trans-blue-4)); filter: drop-shadow(2px 4px 3px var(--kungalgame-trans-blue-4));
span { span {
padding: 0 50px; padding: 0 50px;
text-align: center; text-align: center;
@ -83,14 +85,18 @@ const handleClose = () => {
clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0 50%); clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0 50%);
} }
} }
.avatar { .avatar {
position: absolute; position: absolute;
margin-top: 10px; margin-top: 10px;
margin-left: 20px; margin-left: 20px;
img { img {
height: 100px; height: 100px;
width: 100%;
} }
} }
.info { .info {
margin-top: 20px; margin-top: 20px;
margin-left: 150px; margin-left: 150px;
@ -112,4 +118,33 @@ const handleClose = () => {
right: 0; right: 0;
color: var(--kungalgame-font-color-1); color: var(--kungalgame-font-color-1);
} }
@media (max-width: 700px) {
.container {
min-height: 77px;
}
.lass {
padding: 5px;
font-size: 15px;
padding-left: 20px;
top: -33px;
span {
font-size: 17px;
}
}
.info {
margin-top: 10px;
margin-right: 30px;
margin-left: 77px;
}
.avatar {
img {
height: 50px;
width: 100%;
}
}
}
</style> </style>