profilePage/public/css/index.css
2025-04-05 09:18:54 -04:00

434 lines
5.9 KiB
CSS

body {
font-family: system-ui, sans-serif;
background-color: #0e0e10;
color: #ffffff;
margin: 0;
padding: 2rem;
display: flex;
flex-direction: column;
align-items: center;
}
.user-card {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 2rem;
max-width: 600px;
width: 100%;
}
.avatar-status-wrapper {
display: flex;
align-items: center;
gap: 1.5rem;
}
.avatar-wrapper {
position: relative;
width: 128px;
height: 128px;
}
.avatar {
width: 128px;
height: 128px;
border-radius: 50%;
}
.decoration {
position: absolute;
top: -18px;
left: -18px;
width: 164px;
height: 164px;
pointer-events: none;
}
.status-indicator {
position: absolute;
bottom: 4px;
right: 4px;
width: 24px;
height: 24px;
border-radius: 50%;
border: 4px solid #0e0e10;
display: flex;
align-items: center;
justify-content: center;
}
.status-indicator.online {
background-color: #23a55a;
}
.status-indicator.idle {
background-color: #f0b232;
}
.status-indicator.dnd {
background-color: #f23f43;
}
.status-indicator.offline {
background-color: #747f8d;
}
.platform-icon.mobile-only {
position: absolute;
bottom: 4px;
right: 4px;
width: 30px;
height: 30px;
pointer-events: none;
}
.user-info {
display: flex;
flex-direction: column;
}
h1 {
font-size: 2.5rem;
margin: 0;
color: #00b0f4;
}
.custom-status {
font-size: 1.2rem;
color: #bbb;
margin-top: 0.25rem;
word-break: break-word;
overflow-wrap: anywhere;
white-space: normal;
display: flex;
align-items: center;
gap: 0.4rem;
flex-wrap: wrap;
}
.custom-status .custom-emoji {
width: 20px;
height: 20px;
vertical-align: text-bottom;
margin-right: 4px;
display: inline-block;
}
h2 {
font-size: 1.8rem;
margin: 2rem 0 1rem;
}
ul {
list-style: none;
padding: 0;
width: 100%;
max-width: 600px;
}
.activities {
display: flex;
flex-direction: column;
gap: 1rem;
width: 100%;
max-width: 600px;
padding: 0;
margin: 0;
}
.activity {
display: flex;
flex-direction: row;
gap: 1rem;
background: #1a1a1d;
padding: 1rem;
border-radius: 6px;
box-shadow: 0 0 0 1px #2e2e30;
transition: background 0.2s ease;
align-items: flex-start;
}
.activity:hover {
background: #2a2a2d;
}
.activity-art {
width: 80px;
height: 80px;
border-radius: 6px;
object-fit: cover;
flex-shrink: 0;
}
.activity-content {
display: flex;
flex-direction: column;
flex: 1;
gap: 0.25rem;
}
.activity-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.activity-name {
font-weight: bold;
font-size: 1.1rem;
color: #ffffff;
}
.activity-detail {
font-size: 0.95rem;
color: #ccc;
}
.activity-timestamp {
font-size: 0.8rem;
color: #777;
text-align: right;
}
.progress-bar {
height: 6px;
background-color: #333;
border-radius: 3px;
overflow: hidden;
width: 100%;
margin-top: 0.5rem;
}
.progress-fill {
height: 100%;
background-color: #00b0f4;
transition: width 0.5s ease;
}
.progress-time-labels {
display: flex;
justify-content: space-between;
font-size: 0.75rem;
color: #888;
margin-top: 0.25rem;
}
.activity-header.no-timestamp {
justify-content: flex-start;
}
.progress-time-labels.paused .progress-current::after {
content: " ⏸";
color: #f0b232;
}
@media (max-width: 600px) {
html {
font-size: clamp(14px, 2vw, 16px);
}
body {
padding: 0;
margin: 0;
align-items: stretch;
}
.user-card {
width: 100%;
align-items: center;
}
.avatar-status-wrapper {
flex-direction: column;
align-items: center;
gap: 1rem;
text-align: center;
width: 100%;
}
.avatar-wrapper {
width: 96px;
height: 96px;
}
.avatar {
width: 96px;
height: 96px;
}
.decoration {
width: 128px;
height: 128px;
top: -16px;
left: -16px;
}
.status-indicator,
.platform-icon.mobile-only {
width: 20px;
height: 20px;
bottom: 2px;
right: 2px;
}
.user-info {
align-items: center;
text-align: center;
}
h1 {
font-size: 2rem;
}
.custom-status {
font-size: 1rem;
flex-direction: column;
gap: 0.2rem;
}
h2 {
font-size: 1.4rem;
text-align: center;
}
.activities {
gap: 0.75rem;
}
.activity {
flex-direction: column;
align-items: center;
text-align: center;
padding: 1rem;
border-radius:0;
}
.activity-art {
width: 100%;
max-width: 300px;
height: auto;
border-radius: 8px;
}
.activity-content {
width: 100%;
align-items: center;
}
.activity-header {
flex-direction: column;
align-items: center;
gap: 0.25rem;
}
.activity-timestamp {
text-align: center;
font-size: 0.75rem;
}
.activity-detail {
text-align: center;
}
.progress-time-labels {
justify-content: space-between;
font-size: 0.7rem;
margin-top: 0.25rem;
width: 100%;
}
}
/* readme :p */
.readme {
max-width: 600px;
width: 100%;
background: #1a1a1d;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 0 0 1px #2e2e30;
box-sizing: border-box;
overflow: hidden;
overflow-y: auto;
}
.readme h2 {
margin-top: 0;
color: #00b0f4;
}
.markdown-body {
font-size: 1rem;
line-height: 1.6;
color: #ddd;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
color: #ffffff;
margin-top: 1.25rem;
margin-bottom: 0.5rem;
}
.markdown-body p {
margin: 0.5rem 0;
}
.markdown-body a {
color: #00b0f4;
text-decoration: none;
}
.markdown-body a:hover {
text-decoration: underline;
}
.markdown-body code {
background: #2e2e30;
padding: 0.2em 0.4em;
border-radius: 4px;
font-family: monospace;
color: #f8f8f2;
}
.markdown-body pre {
background: #2e2e30;
padding: 1rem;
border-radius: 6px;
overflow-x: auto;
font-family: monospace;
color: #f8f8f2;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 1.5rem;
margin: 0.5rem 0;
}
.markdown-body blockquote {
border-left: 4px solid #00b0f4;
padding-left: 1rem;
color: #aaa;
margin: 1rem 0;
}
@media (max-width: 600px) {
.readme {
width: 100%;
padding: 1rem;
margin-top: 1rem;
border-radius: 0;
}
.markdown-body {
font-size: 0.95rem;
}
}