mirror of
https://github.com/YouHaveTrouble/GuildMaster.git
synced 2026-05-12 06:26:59 +00:00
drastically improve applying adventurers interface section
This commit is contained in:
@@ -101,19 +101,35 @@ export default defineComponent({
|
|||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
||||||
section {
|
section {
|
||||||
min-height: 20rem;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.adventurers {
|
.adventurers {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: center;
|
justify-content: start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: nowrap;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
|
scroll-snap-type: x mandatory;
|
||||||
|
overflow-x: scroll;
|
||||||
|
width: 100%;
|
||||||
|
min-height: 12rem;
|
||||||
|
|
||||||
|
@media (min-width: 800px) {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
|
overflow-x: hidden;
|
||||||
|
scroll-snap-type: none;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.adventurer-tile {
|
.adventurer-tile {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
position: relative;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -122,6 +138,47 @@ section {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding-block: 1rem;
|
padding-block: 1rem;
|
||||||
padding-inline: 0.5rem;
|
padding-inline: 0.5rem;
|
||||||
|
min-width: 100%;
|
||||||
|
scroll-snap-align: center;
|
||||||
|
|
||||||
|
&:not(:first-of-type) {
|
||||||
|
&::before {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 4rem;
|
||||||
|
content: "⇠";
|
||||||
|
width: 1rem;
|
||||||
|
height: 1rem;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:not(:last-of-type) {
|
||||||
|
&::after {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 4rem;
|
||||||
|
content: "⇢";
|
||||||
|
width: 1rem;
|
||||||
|
height: 1rem;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@media (min-width: 800px) {
|
||||||
|
min-width: auto;
|
||||||
|
scroll-snap-align: none;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
content: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.hire-tile {
|
.hire-tile {
|
||||||
height: 7rem;
|
height: 7rem;
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ h1 {
|
|||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
padding-block: 0.5rem;
|
padding-block: 0.5rem;
|
||||||
padding-inline: 5rem;
|
padding-inline: 5rem;
|
||||||
overflow-x: auto;
|
overflow-x: scroll;
|
||||||
scroll-snap-type: x mandatory;
|
scroll-snap-type: x mandatory;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
|||||||
Reference in New Issue
Block a user