feat: change style a little more
This commit is contained in:
parent
8191587115
commit
a663b34500
66
src/App.css
66
src/App.css
@ -25,6 +25,11 @@ footer {
|
|||||||
left: 8px;
|
left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dialog {
|
||||||
|
border-radius: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*=========Network Controls=========*/
|
/*=========Network Controls=========*/
|
||||||
|
|
||||||
.infobutton {
|
.infobutton {
|
||||||
@ -190,6 +195,8 @@ h3 {
|
|||||||
.box {
|
.box {
|
||||||
position: relative;
|
position: relative;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
border-width: 3px;
|
||||||
|
border-style: solid;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
|
|
||||||
&.one {
|
&.one {
|
||||||
@ -199,8 +206,6 @@ h3 {
|
|||||||
|
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
margin: 4px 0.5%;
|
margin: 4px 0.5%;
|
||||||
border-style: solid;
|
|
||||||
border-color: black;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.reservoir {
|
.reservoir {
|
||||||
@ -210,24 +215,13 @@ h3 {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user {
|
|
||||||
max-width: 240px;
|
|
||||||
min-width: 100px;
|
|
||||||
margin: 4px auto;
|
|
||||||
|
|
||||||
.item {
|
|
||||||
font-weight: bold;
|
|
||||||
border-style: solid;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: small;
|
font-size: medium;
|
||||||
border: 3px dashed black;
|
border: 2px solid;
|
||||||
border-radius: 1.2em;
|
border-radius: 1em;
|
||||||
margin: 8px auto;
|
margin: 3px auto;
|
||||||
padding: 4px 16px;
|
padding: 5px 0.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.extra-margin {
|
.extra-margin {
|
||||||
@ -413,16 +407,14 @@ button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
background-color: lightsteelblue;
|
font-weight: bold;
|
||||||
padding: 3px 8px;
|
font-size: 110%;
|
||||||
|
padding: 3px 1em;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
border: 3px solid black;
|
border: 3px solid;
|
||||||
border-radius: 16px;
|
border-radius: 1em;
|
||||||
margin: 0 auto 16px auto;
|
margin: 0 auto 16px auto;
|
||||||
|
|
||||||
ul {
|
|
||||||
min-width: 100px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-info {
|
.user-info {
|
||||||
@ -438,6 +430,7 @@ button {
|
|||||||
/*=======CONTEXT MENU=======*/
|
/*=======CONTEXT MENU=======*/
|
||||||
.context-menu {
|
.context-menu {
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
|
min-width: 8em;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: aliceblue;
|
background: aliceblue;
|
||||||
box-shadow: 4px 4px black;
|
box-shadow: 4px 4px black;
|
||||||
@ -449,7 +442,7 @@ button {
|
|||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
padding: 8px;
|
padding: 4px 0.5em;
|
||||||
border-bottom: 2px solid #0008;
|
border-bottom: 2px solid #0008;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@ -471,12 +464,12 @@ button {
|
|||||||
@keyframes blink {
|
@keyframes blink {
|
||||||
|
|
||||||
0% {
|
0% {
|
||||||
background-color: #36c8;
|
background-color: #8888;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
13% {
|
13% {
|
||||||
background-color: #36c8;
|
background-color: #8888;
|
||||||
}
|
}
|
||||||
|
|
||||||
15% {
|
15% {
|
||||||
@ -484,12 +477,12 @@ button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
17% {
|
17% {
|
||||||
background-color: #36c8;
|
background-color: #8888;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
38% {
|
38% {
|
||||||
background-color: #36c8;
|
background-color: #8888;
|
||||||
}
|
}
|
||||||
|
|
||||||
40% {
|
40% {
|
||||||
@ -497,11 +490,11 @@ button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
42% {
|
42% {
|
||||||
background-color: #36c8;
|
background-color: #8888;
|
||||||
}
|
}
|
||||||
|
|
||||||
63% {
|
63% {
|
||||||
background-color: #36c8;
|
background-color: #8888;
|
||||||
}
|
}
|
||||||
|
|
||||||
65% {
|
65% {
|
||||||
@ -509,11 +502,11 @@ button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
67% {
|
67% {
|
||||||
background-color: #36c8;
|
background-color: #8888;
|
||||||
}
|
}
|
||||||
|
|
||||||
88% {
|
88% {
|
||||||
background-color: #36c8;
|
background-color: #8888;
|
||||||
}
|
}
|
||||||
|
|
||||||
90% {
|
90% {
|
||||||
@ -521,11 +514,11 @@ button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
92% {
|
92% {
|
||||||
background-color: #36c8;
|
background-color: #8888;
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
background-color: #36c8;
|
background-color: #8888;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -533,6 +526,7 @@ button {
|
|||||||
|
|
||||||
.loader {
|
.loader {
|
||||||
display: block;
|
display: block;
|
||||||
|
border-radius: 16px;
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
width: 96%;
|
width: 96%;
|
||||||
|
@ -10,7 +10,7 @@ type PlayerListProps = Partial<ReactSortableProps<any>> & {
|
|||||||
|
|
||||||
function PlayerList(props: PlayerListProps) {
|
function PlayerList(props: PlayerListProps) {
|
||||||
return (
|
return (
|
||||||
<ReactSortable {...props} animation={200}>
|
<ReactSortable {...props} animation={200} swapThreshold={0.4}>
|
||||||
{props.list?.map((item, index) => (
|
{props.list?.map((item, index) => (
|
||||||
<div key={item.id} className="item">
|
<div key={item.id} className="item">
|
||||||
{props.orderedList
|
{props.orderedList
|
||||||
@ -278,7 +278,7 @@ export default function Rankings() {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
loadPlayers();
|
loadPlayers();
|
||||||
}, []);
|
}, [user]);
|
||||||
|
|
||||||
const tabs = [
|
const tabs = [
|
||||||
{ id: "Chemistry", label: "🧪 Chemistry" },
|
{ id: "Chemistry", label: "🧪 Chemistry" },
|
||||||
@ -287,7 +287,7 @@ export default function Rankings() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{user && players && (
|
{user && players ? (
|
||||||
<div>
|
<div>
|
||||||
<div className="container navbar">
|
<div className="container navbar">
|
||||||
{tabs.map((tab) => (
|
{tabs.map((tab) => (
|
||||||
@ -314,6 +314,8 @@ export default function Rankings() {
|
|||||||
}
|
}
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
) : (
|
||||||
|
<span className="loader" />
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
@ -32,6 +32,7 @@ const ThemeProvider = ({ children }: ThemeContextProps) => {
|
|||||||
document.body.style.backgroundImage = theme.backgroundImage;
|
document.body.style.backgroundImage = theme.backgroundImage;
|
||||||
}
|
}
|
||||||
document.body.style.color = theme.textColor;
|
document.body.style.color = theme.textColor;
|
||||||
|
document.body.style.borderColor = theme.textColor;
|
||||||
}, [theme]);
|
}, [theme]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user