Commit 9d34fb4a authored by Chunchi Che's avatar Chunchi Che

adjust builddeck css

parent 1fb49b1d
Pipeline #23541 passed with stages
in 18 minutes and 54 seconds
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
top: 0; top: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
padding: 0 10px 20px 10px; padding: 0 0.625rem 1.25rem 0.625rem;
transition: 0.2s; transition: 0.2s;
} }
...@@ -25,41 +25,41 @@ ...@@ -25,41 +25,41 @@
box-shadow: box-shadow:
-1px 0 0 2px rgba(255, 255, 255, 0.15), -1px 0 0 2px rgba(255, 255, 255, 0.15),
0 0 30px 0 #ffffff54; 0 0 30px 0 #ffffff54;
backdrop-filter: blur(20px); backdrop-filter: blur(1.25rem);
@include utils.noise-bg; @include utils.noise-bg;
padding: 15px; padding: 1rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
position: relative; position: relative;
border-radius: 8px; border-radius: 0.5rem;
} }
.btn-close { .btn-close {
position: absolute; position: absolute;
right: 5px; right: 0.3rem;
top: 5px; top: 0.3rem;
} }
.card { .card {
--width: 160px; --width: 10rem;
width: var(--width); width: var(--width);
height: calc(var(--width) / var(--card-ratio)); height: calc(var(--width) / var(--card-ratio));
flex-shrink: 0; flex-shrink: 0;
border: 1px solid #ffffff52; border: 1px solid #ffffff52;
overflow: hidden; overflow: hidden;
box-shadow: 0 0 6px 2px #ffffff2b; box-shadow: 0 0 0.375rem 0.125rem #ffffff2b;
transition: 0.3s; transition: 0.3s;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
--width: 220px; --width: 13.75rem;
filter: contrast(1.1); filter: contrast(1.1);
} }
} }
.title { .title {
font-size: 20px; font-size: 1.25rem;
font-family: var(--nato-serif-font); font-family: var(--nato-serif-font);
margin: 20px 0 15px; margin: 1.25rem 0 1rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
// color: rgba(255, 255, 255, 0.45); // color: rgba(255, 255, 255, 0.45);
......
...@@ -117,7 +117,6 @@ export const CardDetail: React.FC<{ ...@@ -117,7 +117,6 @@ export const CardDetail: React.FC<{
</a> </a>
<div className={styles.title}> <div className={styles.title}>
<span>{card?.text.name}</span> <span>{card?.text.name}</span>
{/* <Avatar size={22}>光</Avatar> */}
</div> </div>
<ScrollableArea> <ScrollableArea>
<Descriptions layout="vertical" size="small" items={items} /> <Descriptions layout="vertical" size="small" items={items} />
......
.deck-select { .deck-select {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 4px; gap: 0.25rem;
.item { .item {
height: 40px; height: 2.5rem;
padding: 0 20px; padding: 0 1.25rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
height: auto; height: auto;
top: 0; top: 0;
bottom: 0; bottom: 0;
--padding-x: 5px; --padding-x: 0.3rem;
left: var(--padding-x); left: var(--padding-x);
right: var(--padding-x); right: var(--padding-x);
border-radius: 4px; border-radius: 0.25rem;
transition: 0.2s; transition: 0.2s;
} }
.hover { .hover {
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
transition: 0.2s; transition: 0.2s;
opacity: 0; opacity: 0;
display: flex; display: flex;
gap: 4px; gap: 0.25rem;
} }
&:hover { &:hover {
.hover, .hover,
...@@ -47,12 +47,12 @@ ...@@ -47,12 +47,12 @@
.btn-add { .btn-add {
position: absolute; position: absolute;
bottom: 40px; bottom: 2.5rem;
left: 0; left: 0;
right: 0; right: 0;
margin: auto; margin: auto;
background-color: rgba(0, 168, 202, 0.451); background-color: rgba(0, 168, 202, 0.451);
box-shadow: 0 0 20px 0 rgba(0, 221, 255, 0.5); box-shadow: 0 0 1.25rem 0 rgba(0, 221, 255, 0.5);
&:hover { &:hover {
background-color: rgba(0, 168, 202, 0.451) !important; background-color: rgba(0, 168, 202, 0.451) !important;
transform: scale(1.1); transform: scale(1.1);
......
.title { .title {
text-align: center; text-align: center;
font-size: 24px; font-size: 1.5rem;
font-weight: bold; font-weight: bold;
margin: 12px 0 32px; margin: 0.75rem 0 2rem;
} }
.item { .item {
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
align-items: center; align-items: center;
.item-name { .item-name {
display: flex; display: flex;
gap: 4px; gap: 0.25rem;
flex: 1; flex: 1;
flex-basis: 80px; flex-basis: 5rem;
vertical-align: middle; vertical-align: middle;
} }
} }
...@@ -20,18 +20,18 @@ ...@@ -20,18 +20,18 @@
.form { .form {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 20px; gap: 1.25rem;
padding: 8px; padding: 0.5rem;
} }
.btns { .btns {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 0.625rem;
align-items: center; align-items: center;
padding: 30px 0 10px; padding: 1.875rem 0 0.625rem;
& > button { & > button {
width: 220px; width: 13.75rem;
border-radius: 3px; border-radius: 3px;
} }
} }
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
} }
.divider { .divider {
flex: 0; flex: 0;
flex-basis: 32px; flex-basis: 2rem;
text-align: center; text-align: center;
line-height: 30px; line-height: 1.25rem;
} }
} }
...@@ -173,7 +173,7 @@ const Item: React.FC< ...@@ -173,7 +173,7 @@ const Item: React.FC<
{title} {title}
{showTip && ( {showTip && (
<Tooltip title="若要输入 ? 的攻击/守备,请输入 -2"> <Tooltip title="若要输入 ? 的攻击/守备,请输入 -2">
<InfoCircleFilled style={{ fontSize: 10 }} /> <InfoCircleFilled style={{ fontSize: "0.625rem" }} />
</Tooltip> </Tooltip>
)} )}
</div> </div>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
} }
.sider { .sider {
--sider-width: 300px; --sider-width: 18.75rem;
width: var(--sider-width); width: var(--sider-width);
flex: 0 0 var(--sider-width); flex: 0 0 var(--sider-width);
background: transparent !important; background: transparent !important;
...@@ -27,21 +27,21 @@ ...@@ -27,21 +27,21 @@
padding-bottom: 0; padding-bottom: 0;
padding-right: 1rem; padding-right: 1rem;
.deck { .deck {
width: 660px; width: 41.25rem;
} }
.select { .select {
flex: 1; flex: 1;
.select-btns { .select-btns {
padding: 5px 10px; padding: 0.3rem 0.625rem;
display: flex; display: flex;
gap: 8px; gap: 0.5rem;
} }
} }
} }
.container { .container {
width: -webkit-fill-available; width: -webkit-fill-available;
height: calc(100% - 20px); height: calc(100% - 1.25rem);
border: 1px solid rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.05);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -49,8 +49,8 @@ ...@@ -49,8 +49,8 @@
border-bottom: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
} }
.title { .title {
height: 44px; height: 2.75rem;
flex: 0 0 44px; flex: 0 0 2.75rem;
justify-content: space-between; justify-content: space-between;
} }
.deck-zone { .deck-zone {
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
--card-grid: 10; --card-grid: 10;
} }
background-color: hsla(0, 0%, 100%, 0.05); background-color: hsla(0, 0%, 100%, 0.05);
backdrop-filter: blur(5px); backdrop-filter: blur(0.3rem);
} }
.deck .container { .deck .container {
...@@ -75,20 +75,20 @@ ...@@ -75,20 +75,20 @@
.search-cards-container { .search-cards-container {
height: 100%; height: 100%;
.search-cards { .search-cards {
--card-width: 80px; --card-width: 5rem;
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(var(--card-width), 1fr)); grid-template-columns: repeat(auto-fill, minmax(var(--card-width), 1fr));
padding: 0.75rem; padding: 0.75rem;
gap: 10px; gap: 0.625rem;
} }
} }
.search-count { .search-count {
font-size: 11px; font-size: 0.7rem;
} }
.empty { .empty {
gap: 20px; gap: 1.25rem;
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
...@@ -103,8 +103,8 @@ ...@@ -103,8 +103,8 @@
bottom: 0; bottom: 0;
background-color: #212332; background-color: #212332;
color: hsla(0, 0%, 100%, 0.3); color: hsla(0, 0%, 100%, 0.3);
font-size: 12px; font-size: 0.75rem;
padding: 2px 6px; padding: 0.125rem 0.375rem;
font-family: var(--theme-font); font-family: var(--theme-font);
user-select: none; user-select: none;
} }
...@@ -237,11 +237,11 @@ export const DeckEditor: React.FC<{ ...@@ -237,11 +237,11 @@ export const DeckEditor: React.FC<{
placeholder="请输入卡组名字" placeholder="请输入卡组名字"
bordered={false} bordered={false}
prefix={<EditOutlined />} prefix={<EditOutlined />}
style={{ width: 240 }} style={{ width: "8.8rem" }}
onChange={(e) => setDeckName(e.target.value)} onChange={(e) => setDeckName(e.target.value)}
value={deckName} value={deckName}
/> />
<Space style={{ marginRight: 6 }}> <Space style={{ marginRight: "0.4rem" }} size={5}>
<Button <Button
type="text" type="text"
size="small" size="small"
......
.desc { .desc {
line-height: 1.8; line-height: 1.8;
font-size: 14px; font-size: 0.875rem;
max-height: calc(100% - 237px); max-height: calc(100% - 15rem);
font-family: var(--theme-font); font-family: var(--theme-font);
white-space: pre-wrap; white-space: pre-wrap;
.maro-item { .maro-item {
display: flex; display: flex;
gap: 8px; gap: 0.5rem;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment