Working member cards and assignment groups, some formatting
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
/* --- base --- */
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #1e1e2f;
|
||||
@@ -8,165 +9,195 @@ body {
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 95%;
|
||||
max-width: 1300px;
|
||||
margin: 2rem auto;
|
||||
width: 96%;
|
||||
max-width: 1400px;
|
||||
margin: 1.5rem auto;
|
||||
}
|
||||
|
||||
/* top bar */
|
||||
.top-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.interval-box {
|
||||
background-color: #3a3a4d;
|
||||
padding: 0.75rem 1rem;
|
||||
border-radius: 10px;
|
||||
padding: 0.5rem 0.8rem;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.4rem;
|
||||
gap: 0.5rem;
|
||||
align-items: center;
|
||||
}
|
||||
.interval-box label { color: #ffcc66; font-size: 0.9rem; margin-right: 8px; }
|
||||
.interval-box input { width: 80px; padding: 6px; border-radius: 6px; border: none; }
|
||||
|
||||
.interval-box label {
|
||||
font-size: 0.9rem;
|
||||
color: #ffcc66;
|
||||
}
|
||||
|
||||
.interval-box input {
|
||||
padding: 0.5rem;
|
||||
border-radius: 6px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.faction-row {
|
||||
/* main split */
|
||||
.main-row {
|
||||
display: flex;
|
||||
flex-direction: row !important;
|
||||
justify-content: space-between;
|
||||
gap: 2rem;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.faction-card {
|
||||
flex: 1;
|
||||
background-color: #2c2c3e;
|
||||
padding: 1.5rem;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 0 20px rgba(0,0,0,0.5);
|
||||
/* left column: stacked friendly / enemy */
|
||||
.left-col {
|
||||
width: 48%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
}
|
||||
|
||||
.faction-card h2 {
|
||||
color: #66ccff;
|
||||
/* right column: groups grid */
|
||||
.right-col {
|
||||
width: 52%;
|
||||
}
|
||||
|
||||
input[type="number"] {
|
||||
.groups-grid {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
/* group card */
|
||||
.group {
|
||||
background: #232331;
|
||||
border-radius: 10px;
|
||||
padding: 0.6rem;
|
||||
min-height: 140px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
border: 1px solid rgba(255,255,255,0.03);
|
||||
}
|
||||
|
||||
.group-title {
|
||||
font-weight: bold;
|
||||
color: #ffcc66;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
/* zones layout inside group */
|
||||
.group-zones {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* drop zones */
|
||||
.drop-zone {
|
||||
flex: 1;
|
||||
background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
|
||||
border-radius: 8px;
|
||||
border: 2px dashed rgba(255,255,255,0.03);
|
||||
padding: 8px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
align-items: stretch;
|
||||
overflow-y: auto;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* subtle label */
|
||||
.zone-label {
|
||||
font-size: 0.9rem;
|
||||
color: #99a7bf;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
/* highlight when a valid draggable is over */
|
||||
.drop-zone.dragover-valid {
|
||||
background: rgba(51,153,255,0.06);
|
||||
border-color: rgba(102,204,255,0.4);
|
||||
}
|
||||
|
||||
/* invalid dragover */
|
||||
.drop-zone.dragover-invalid {
|
||||
background: rgba(255,77,77,0.06);
|
||||
border-color: rgba(255,77,77,0.4);
|
||||
}
|
||||
|
||||
/* friendly/enemy specific coloring for zone headers */
|
||||
.friendly-zone .zone-label { color: #8fd38f; }
|
||||
.enemy-zone .zone-label { color: #ff9b9b; }
|
||||
|
||||
/* Faction card containers on left */
|
||||
.faction-card.small {
|
||||
background-color: #2c2c3e;
|
||||
padding: 1rem;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 0 18px rgba(0,0,0,0.45);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.faction-card.small h2 { color: #66ccff; margin: 0; }
|
||||
.faction-card .controls { display:flex; gap: 0.5rem; align-items:center; margin-bottom: 6px; }
|
||||
.faction-card .controls input { padding: 0.5rem; border-radius:6px; border: none; }
|
||||
|
||||
/* member list in left column */
|
||||
.member-list {
|
||||
max-height: 380px;
|
||||
overflow-y: auto;
|
||||
background: #1a1a26;
|
||||
padding: 0.6rem;
|
||||
border-radius: 8px;
|
||||
border: 1px solid rgba(255,255,255,0.02);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
/* member card (used both in lists and zones) */
|
||||
.member-card {
|
||||
background-color: #3a3a4d;
|
||||
color: #f0f0f0;
|
||||
padding: 0.7rem;
|
||||
border-radius: 6px;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
box-shadow: 0 0 10px rgba(0,0,0,0.45);
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
/* name and stat blocks */
|
||||
.member-card .name { min-width: 110px; color: #66ccff; font-weight: bold; }
|
||||
.member-card .stats { color: #f0f0f0; font-size: 0.9rem; line-height: 1.2; }
|
||||
|
||||
/* Friendly name color */
|
||||
.member-card.friendly .name {
|
||||
color: #4cff4c; /* Green */
|
||||
}
|
||||
|
||||
/* Enemy name color */
|
||||
.member-card.enemy .name {
|
||||
color: #ff4c4c; /* Red */
|
||||
}
|
||||
|
||||
|
||||
/* small status span; color is applied by classes */
|
||||
.status-text { font-weight: 700; padding-left: 6px; }
|
||||
|
||||
/* status color classes */
|
||||
.status-ok { color: #28a745; text-shadow: 0 0 2px rgba(40,167,69,0.25); }
|
||||
.status-traveling { color: #3399ff; text-shadow: 0 0 2px rgba(51,153,255,0.25); }
|
||||
.status-hospitalized { color: #ff4d4d; text-shadow: 0 0 2px rgba(255,77,77,0.25); }
|
||||
|
||||
/* buttons */
|
||||
button {
|
||||
padding: 0.7rem 1rem;
|
||||
padding: 0.5rem 0.7rem;
|
||||
border-radius: 6px;
|
||||
border: none;
|
||||
background-color: #66ccff;
|
||||
color: #1e1e2f;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
button:hover { background-color: #3399ff; }
|
||||
|
||||
button:hover {
|
||||
background-color: #3399ff;
|
||||
}
|
||||
|
||||
.member-list {
|
||||
margin-top: 1rem;
|
||||
max-height: 350px;
|
||||
overflow-y: auto;
|
||||
background: #1a1a26;
|
||||
padding: 0.8rem;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.member-card {
|
||||
background-color: #3a3a4d;
|
||||
padding: 1rem;
|
||||
margin: 0.5rem 0;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
flex-direction: row; /* horizontal layout */
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: 2rem;
|
||||
box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
|
||||
cursor: grab;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.member-card:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
/* Name section */
|
||||
.member-card .name {
|
||||
font-weight: bold;
|
||||
color: #66ccff;
|
||||
min-width: 120px; /* ensures spacing */
|
||||
}
|
||||
|
||||
/* Stats section */
|
||||
.member-card .stats {
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.3;
|
||||
color: #f0f0f0;
|
||||
}
|
||||
|
||||
.member-card strong {
|
||||
font-size: 1rem;
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
.member-card span {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.member-card:hover {
|
||||
background-color: #4a4a60;
|
||||
}
|
||||
|
||||
#friendly-container,
|
||||
#enemy-container {
|
||||
max-height: 400px;
|
||||
overflow-y: auto;
|
||||
padding: 0.5rem;
|
||||
border: 1px solid #444;
|
||||
border-radius: 10px;
|
||||
background-color: #2c2c3e;
|
||||
}
|
||||
|
||||
#friendly-container::-webkit-scrollbar,
|
||||
#enemy-container::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
}
|
||||
|
||||
#friendly-container::-webkit-scrollbar-thumb,
|
||||
#enemy-container::-webkit-scrollbar-thumb {
|
||||
background-color: #66ccff;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#friendly-container::-webkit-scrollbar-track,
|
||||
#enemy-container::-webkit-scrollbar-track {
|
||||
background-color: #2c2c3e;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.status-ok { color: #28a745; font-weight: bold; }
|
||||
.status-traveling { color: #3399ff; font-weight: bold; }
|
||||
.status-hospitalized { color: #ff4d4d; font-weight: bold; }
|
||||
/* scrollbar niceties for drop zones and lists */
|
||||
.member-list::-webkit-scrollbar, .drop-zone::-webkit-scrollbar { width: 8px; height: 8px; }
|
||||
.member-list::-webkit-scrollbar-thumb, .drop-zone::-webkit-scrollbar-thumb { background: #66ccff; border-radius: 4px; }
|
||||
|
||||
Reference in New Issue
Block a user