Commit 5bbdd818 authored by Chunchi Che's avatar Chunchi Che

adjust waitroom css

parent c91e088b
Pipeline #23543 passed with stages
in 17 minutes and 52 seconds
...@@ -11,17 +11,17 @@ ...@@ -11,17 +11,17 @@
width: 100%; width: 100%;
margin-top: auto; margin-top: auto;
background-color: hsla(0, 0%, 100%, 0.07); background-color: hsla(0, 0%, 100%, 0.07);
padding: 8px; padding: 0.5rem;
display: flex; display: flex;
} }
.dialogs { .dialogs {
position: absolute; position: absolute;
padding: 8px 0; padding: 0.5rem 0;
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 4px; gap: 0.25rem;
.item { .item {
vertical-align: baseline; vertical-align: baseline;
.name { .name {
...@@ -31,16 +31,16 @@ ...@@ -31,16 +31,16 @@
.time { .time {
font-size: 11px; font-size: 11px;
opacity: 0.8; opacity: 0.8;
margin-left: 8px; margin-left: 0.5rem;
} }
.content { .content {
font-size: 13px; font-size: 13px;
color: #ccc; color: #ccc;
margin-top: 2px; margin-top: 2px;
} }
padding: 8px 8px; padding: 0.5rem 0.5rem;
margin: 0 10px; margin: 0 0.625rem;
border-radius: 8px; border-radius: 0.5rem;
transition: 0.2s; transition: 0.2s;
&:hover { &:hover {
background-color: hsla(0, 0%, 100%, 0.07); background-color: hsla(0, 0%, 100%, 0.07);
......
...@@ -94,7 +94,7 @@ export const TpPopover: React.FC< ...@@ -94,7 +94,7 @@ export const TpPopover: React.FC<
return ( return (
<Popover <Popover
overlayStyle={{ backdropFilter: "blur(10px)" }} overlayStyle={{ backdropFilter: "blur(0.625rem)" }}
content={ content={
<Space> <Space>
{[Tp.First, Tp.Second].map((item) => ( {[Tp.First, Tp.Second].map((item) => (
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
height: 100%; height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
--side-box-width: 500px; --side-box-width: 30rem;
--border-radius: 10px; --border-radius: 0.625rem;
--sider-width: 300px; --sider-width: 18.75rem;
.content { .content {
height: 100%; height: 100%;
position: relative; position: relative;
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
justify-content: center; justify-content: center;
transition: transform 0.3s; transition: transform 0.3s;
.wrap { .wrap {
height: 500px; // TODO: 修正这里的高度,或者说修正全局的高度设置。高度不应该超过100% height: 30rem; // TODO: 修正这里的高度,或者说修正全局的高度设置。高度不应该超过100%
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
...@@ -25,11 +25,11 @@ ...@@ -25,11 +25,11 @@
.sider { .sider {
position: relative; position: relative;
width: var(--sider-width); width: var(--sider-width);
flex: 0 0 300px; flex: 0 0 18.75rem;
height: 100%; height: 100%;
background-color: hsla(0, 0%, 100%, 0.05); background-color: hsla(0, 0%, 100%, 0.05);
transition: transform 0.3s; transition: transform 0.3s;
backdrop-filter: blur(5px); backdrop-filter: blur(0.3rem);
z-index: 1; z-index: 1;
} }
} }
...@@ -37,48 +37,48 @@ ...@@ -37,48 +37,48 @@
.both-side-container { .both-side-container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 30px; gap: 1.8rem;
align-items: center; align-items: center;
margin-top: 80px; margin-top: 5rem;
.side-box { .side-box {
height: 100px; height: 6.25rem;
width: var(--side-box-width); width: var(--side-box-width);
border-radius: var(--border-radius); border-radius: var(--border-radius);
background: hsla(0, 0%, 100%, 0.1); background: hsla(0, 0%, 100%, 0.1);
backdrop-filter: blur(10px); backdrop-filter: blur(0.625rem);
overflow: hidden; overflow: hidden;
padding: 0 32px; padding: 0 2rem;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 16px; gap: 1rem;
.inner { .inner {
position: absolute; position: absolute;
left: 0; left: 0;
width: 150px; width: 9.4rem;
height: 70px; height: 4.375rem;
filter: blur(120px); filter: blur(7.5rem);
transition: 0.3s; transition: 0.3s;
} }
&.ready .inner { &.ready .inner {
width: 250px; width: 15.6rem;
height: 100px; height: 6.25rem;
filter: blur(100px) brightness(1.2) saturate(1.2); filter: blur(6.25rem) brightness(1.2) saturate(1.2);
} }
&.me { &.me {
box-shadow: -5px 0 20px 0 rgba(0, 115, 255, 0.15); box-shadow: -0.3rem 0 1.25rem 0 rgba(0, 115, 255, 0.15);
.inner { .inner {
background: linear-gradient(to right, blue, rgb(0, 149, 255)); background: linear-gradient(to right, blue, rgb(0, 149, 255));
} }
z-index: 1; z-index: 1;
} }
&.op { &.op {
box-shadow: 5px 0 20px 0 rgba(255, 0, 81, 0.1); box-shadow: 0.3rem 0 1.25rem 0 rgba(255, 0, 81, 0.1);
.inner { .inner {
background: linear-gradient(to right, rgb(255, 0, 106), rgb(255, 0, 0)); background: linear-gradient(to right, rgb(255, 0, 106), rgb(255, 0, 0));
} }
} }
.name { .name {
font-size: 18px; font-size: 1.2rem;
color: white; color: white;
z-index: 1; z-index: 1;
} }
...@@ -108,22 +108,22 @@ ...@@ -108,22 +108,22 @@
} }
.avatars-watch { .avatars-watch {
padding-left: 8px; padding-left: 0.5rem;
} }
.btns-side { .btns-side {
position: absolute; position: absolute;
left: 10px; left: 0.625rem;
top: 10px; top: 0.625rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 0.625rem;
transition: 0.3s; transition: 0.3s;
.btn { .btn {
width: 32px; width: 2rem;
background: hsla(0, 0%, 100%, 0.1); background: hsla(0, 0%, 100%, 0.1);
justify-content: start; justify-content: start;
padding: 0 8px; padding: 0 0.5rem;
overflow: hidden; overflow: hidden;
.btn-icon { .btn-icon {
display: flex; display: flex;
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
} }
} }
&:hover { &:hover {
width: 100px; width: 6.25rem;
} }
} }
} }
...@@ -153,14 +153,14 @@ ...@@ -153,14 +153,14 @@
} }
.fake-btn-large { .fake-btn-large {
min-width: 88px; min-width: 5.5rem;
height: 40px; height: 2.5rem;
background: hsla(0, 0%, 100%, 0.1); background: hsla(0, 0%, 100%, 0.1);
border-radius: 6px; border-radius: 0.375rem;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0 16px 0 16px; padding: 0 1rem 0 1rem;
gap: 8px; gap: 0.5rem;
cursor: not-allowed; cursor: not-allowed;
transition: 0.2s; transition: 0.2s;
position: relative; position: relative;
......
...@@ -249,7 +249,7 @@ const Controller: React.FC<{ onDeckChange: (deckName: string) => void }> = ({ ...@@ -249,7 +249,7 @@ const Controller: React.FC<{ onDeckChange: (deckName: string) => void }> = ({
<Select <Select
title="卡组" title="卡组"
showSearch showSearch
style={{ width: 250 }} style={{ width: "15.6rem" }}
defaultValue={snapDeck.decks[0].deckName} defaultValue={snapDeck.decks[0].deckName}
options={snapDeck.decks.map((deck) => ({ options={snapDeck.decks.map((deck) => ({
value: deck.deckName, value: deck.deckName,
......
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