Add Message/Challenge-Logik
This commit is contained in:
1 parent
57ae0ccda5
commit
c533198c38
12 files changed
+1308
-7
No files matched your search
+190
-1
@@ -32,6 +32,24 @@ body {
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
.navbar .nav-link.has-unread-messages {
|
||||
background-color: #dc3545;
|
||||
color: #ffffff;
|
||||
font-weight: bold;
|
||||
border-radius: 6px;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
.navbar .nav-link.has-unread-messages::after {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
margin-left: 8px;
|
||||
border-radius: 50%;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
/* Main content styles */
|
||||
.container-dashboard {
|
||||
flex-wrap: wrap;
|
||||
@@ -276,4 +294,175 @@ p {
|
||||
|
||||
.leaderboard-table tbody tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Messages */
|
||||
.container > .messages-card:not(.modal),
|
||||
.messages-card {
|
||||
text-align: left;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.container > .messages-card:not(.modal):hover,
|
||||
.messages-card:hover {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.messages-header,
|
||||
.messages-inbox-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.messages-panel {
|
||||
background: #f8f9fa;
|
||||
border: 1px solid #dbe3ef;
|
||||
border-radius: 8px;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.messages-panel h3 {
|
||||
font-size: 1.1rem;
|
||||
margin: 0 0 14px;
|
||||
}
|
||||
|
||||
.messages-user-list {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.messages-user-button {
|
||||
width: 100%;
|
||||
border: 1px solid #c9d6e8;
|
||||
border-radius: 6px;
|
||||
background: #ffffff;
|
||||
color: #1b1b2f;
|
||||
padding: 10px 12px;
|
||||
text-align: left;
|
||||
transition: background-color 0.2s, border-color 0.2s;
|
||||
}
|
||||
|
||||
.messages-user-button:hover {
|
||||
background: #e8f0fb;
|
||||
border-color: #4a6fa5;
|
||||
}
|
||||
|
||||
.message-form textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.message-list {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.message-item {
|
||||
border-left: 4px solid #4a6fa5;
|
||||
border-radius: 8px;
|
||||
background: #ffffff;
|
||||
padding: 12px 14px;
|
||||
}
|
||||
|
||||
.message-item-unread {
|
||||
border-left-color: #dc3545;
|
||||
background: #fff4f4;
|
||||
}
|
||||
|
||||
.message-meta {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
color: #1b1b2f;
|
||||
font-size: 0.9rem;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.message-meta span,
|
||||
.messages-empty {
|
||||
color: #667085;
|
||||
}
|
||||
|
||||
.message-item p,
|
||||
.messages-empty {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.challenge-result-graphic,
|
||||
.play-challenge-result {
|
||||
margin-top: 12px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #dbe3ef;
|
||||
background: #ffffff;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.challenge-result-headline,
|
||||
.play-challenge-result-title {
|
||||
padding: 10px 14px;
|
||||
font-weight: 700;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.challenge-result-win,
|
||||
.play-challenge-result-winner .play-challenge-result-title {
|
||||
background: #198754;
|
||||
}
|
||||
|
||||
.challenge-result-draw,
|
||||
.play-challenge-result-draw .play-challenge-result-title {
|
||||
background: #4a6fa5;
|
||||
}
|
||||
|
||||
.play-challenge-result-loser .play-challenge-result-title {
|
||||
background: #a84848;
|
||||
}
|
||||
|
||||
.challenge-result-scores,
|
||||
.play-challenge-result-scores {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 1px;
|
||||
background: #dbe3ef;
|
||||
}
|
||||
|
||||
.challenge-result-score,
|
||||
.play-challenge-result-score {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
background: #ffffff;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.challenge-result-score span,
|
||||
.play-challenge-result-score span {
|
||||
color: #4a6fa5;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.challenge-hint {
|
||||
display: inline-block;
|
||||
margin-top: 8px;
|
||||
border-radius: 6px;
|
||||
background: #fff4cc;
|
||||
color: #1b1b2f;
|
||||
padding: 6px 10px;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.messages-header,
|
||||
.messages-inbox-title,
|
||||
.message-meta {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.challenge-result-scores,
|
||||
.play-challenge-result-scores {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user