rounded design servants

This commit is contained in:
Firq 2023-07-07 18:32:14 +02:00
parent ff42678a16
commit 537bacca38
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
3 changed files with 14 additions and 12 deletions

View file

@ -17,7 +17,6 @@ if (mlb === 'false') {
--- ---
<article> <article>
<div class="heading-center">{name}</div>
<div> <div>
<img class="ce-crop" src={ce_img} alt={name} /> <img class="ce-crop" src={ce_img} alt={name} />
</div> </div>
@ -33,6 +32,7 @@ if (mlb === 'false') {
} }
article { article {
border-radius: 1.25rem;
background-color: var(--c-darkergray); background-color: var(--c-darkergray);
padding: 20px; padding: 20px;
padding-top: 5px; padding-top: 5px;
@ -44,11 +44,10 @@ if (mlb === 'false') {
margin: 0px; margin: 0px;
display: grid; display: grid;
grid-template-columns: 100%; grid-template-columns: 100%;
grid-template-rows: auto auto 3em; grid-template-rows: auto 3em;
gap: 0px 0px; gap: 0px 0px;
grid-auto-flow: row; grid-auto-flow: row;
grid-template-areas: grid-template-areas:
'.'
'.' '.'
'.'; '.';
} }
@ -62,6 +61,8 @@ if (mlb === 'false') {
} }
img { img {
border-radius: 1.5rem;
margin-top: 1rem;
display: flex; display: flex;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@ -103,8 +104,6 @@ if (mlb === 'false') {
} }
article { article {
width: 10em; width: 10em;
grid-template-columns: auto;
grid-template-rows: auto auto 3em;
} }
.mlbalign { .mlbalign {
width: 7.5em; width: 7.5em;

View file

@ -23,7 +23,6 @@ if (bond10 === 'false') {
--- ---
<article> <article>
<div class="heading">{name}</div>
<img src={servant_img} alt={name} /> <img src={servant_img} alt={name} />
<h2 class="subtext"> <h2 class="subtext">
Level {level}<br /> Level {level}<br />
@ -43,7 +42,7 @@ if (bond10 === 'false') {
width: 100%; width: 100%;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 22px; font-size: 24px;
color: white; color: white;
max-width: 200px; max-width: 200px;
padding-bottom: 0.3rem; padding-bottom: 0.3rem;
@ -74,11 +73,14 @@ if (bond10 === 'false') {
align-items: center; align-items: center;
text-align: center; text-align: center;
transition: transform var(--speed) var(--ease); transition: transform var(--speed) var(--ease);
border-radius: 1.25rem;
} }
article > img { article > img {
width: 120px; width: 7.5rem;
height: 120px; height: 7.5rem;
border-radius: 2.5rem;
margin-top: 0.75rem;
} }
.subtext { .subtext {
color: white; color: white;
@ -97,6 +99,7 @@ if (bond10 === 'false') {
top: 95%; top: 95%;
left: 0px; left: 0px;
right: 0px; right: 0px;
border-radius: 0px 0px 1.25rem 1.25rem;
} }
article:hover .expand-on-hover { article:hover .expand-on-hover {
@ -127,8 +130,7 @@ if (bond10 === 'false') {
} }
.bond-ce { .bond-ce {
width: 128px; height: 3.5rem;
height: 58px;
} }
} }
</style> </style>

View file

@ -36,13 +36,14 @@ const { title } = Astro.props
letter-spacing: -1px; letter-spacing: -1px;
color: white; color: white;
margin-top: 2rem; margin-top: 2rem;
margin-bottom: 0; margin-bottom: 0px;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
padding: 0.25rem 1.5rem; padding: 0.25rem 1.5rem;
border-radius: 0.5rem; border-radius: 0.5rem;
max-width: max-content; max-width: max-content;
background-color: var(--c-darkgray); background-color: var(--c-darkgray);
padding-bottom: 0.5rem;
} }
@media (min-width: 512px) { @media (min-width: 512px) {
div { div {