MediaWiki:QuestTracker.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Quest Tracker Overview */ | /* Quest Tracker Overview */ | ||
.quest-tracker-overview { | .quest-tracker-overview { | ||
background: | background: var(--bg-1); | ||
border: 2px solid | border: 2px solid var(--border); | ||
border-radius: 16px; | border-radius: 16px; | ||
padding: 2rem; | padding: 2rem; | ||
margin-bottom: 2rem; | margin-bottom: 2rem; | ||
box-shadow: 0 6px 25px | box-shadow: 0 6px 25px var(--shadow-soft); | ||
} | } | ||
| Line 24: | Line 24: | ||
display: block; | display: block; | ||
font-weight: 600; | font-weight: 600; | ||
color: | color: var(--text-muted); | ||
font-size: 0.9rem; | font-size: 0.9rem; | ||
margin-bottom: 0.5rem; | margin-bottom: 0.5rem; | ||
| Line 33: | Line 33: | ||
font-weight: 700; | font-weight: 700; | ||
font-size: 1.5rem; | font-size: 1.5rem; | ||
color: | color: var(--heading); | ||
} | } | ||
| Line 44: | Line 44: | ||
width: 100%; | width: 100%; | ||
height: 12px; | height: 12px; | ||
background: | background: var(--bg-1); | ||
border-radius: 6px; | border-radius: 6px; | ||
overflow: hidden; | overflow: hidden; | ||
box-shadow: inset 0 2px 4px | box-shadow: inset 0 2px 4px var(--shadow-soft); | ||
} | } | ||
.progress-fill { | .progress-fill { | ||
height: 100%; | height: 100%; | ||
background: | background: var(--primary); | ||
border-radius: 6px; | border-radius: 6px; | ||
transition: width 0.5s ease; | transition: width 0.5s ease; | ||
| Line 75: | Line 75: | ||
.reset-progress-btn { | .reset-progress-btn { | ||
background: | background: var(--danger); | ||
color: | color: var(--text-strong); | ||
border: none; | border: none; | ||
padding: 0.75rem 1.5rem; | padding: 0.75rem 1.5rem; | ||
| Line 83: | Line 83: | ||
cursor: pointer; | cursor: pointer; | ||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
box-shadow: 0 2px 10px | box-shadow: 0 2px 10px var(--shadow-soft); | ||
} | } | ||
.reset-progress-btn:hover { | .reset-progress-btn:hover { | ||
background: | background: var(--danger-hover); | ||
transform: translateY(-2px); | transform: translateY(-2px); | ||
box-shadow: 0 4px 15px | box-shadow: 0 4px 15px var(--shadow-medium); | ||
} | } | ||
| Line 100: | Line 100: | ||
.location-section { | .location-section { | ||
background: | background: var(--bg-1); | ||
border: 1px solid | border: 1px solid var(--border); | ||
border-radius: 12px; | border-radius: 12px; | ||
padding: 1.5rem; | padding: 1.5rem; | ||
box-shadow: 0 2px 15px | box-shadow: 0 2px 15px var(--shadow-soft); | ||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
width: 100%; | width: 100%; | ||
| Line 116: | Line 116: | ||
.location-title { | .location-title { | ||
color: | color: var(--heading); | ||
font-size: 1.3rem; | font-size: 1.3rem; | ||
font-weight: 700; | font-weight: 700; | ||
margin-bottom: 1rem; | margin-bottom: 1rem; | ||
padding-bottom: 0.5rem; | padding-bottom: 0.5rem; | ||
border-bottom: 2px solid | border-bottom: 2px solid var(--border); | ||
position: relative; | position: relative; | ||
} | } | ||
| Line 132: | Line 132: | ||
width: 50px; | width: 50px; | ||
height: 2px; | height: 2px; | ||
background: | background: var(--primary); | ||
} | } | ||
| Line 143: | Line 143: | ||
.quest-item { | .quest-item { | ||
background: | background: var(--bg-1); | ||
border-radius: 8px; | border-radius: 8px; | ||
padding: 1rem; | padding: 1rem; | ||
| Line 153: | Line 153: | ||
.quest-item:hover { | .quest-item:hover { | ||
background: | background: var(--bg-1); | ||
border-left-color: | border-left-color: var(--primary); | ||
} | } | ||
/* Custom Checkbox Styling */ | /* Custom Checkbox Styling */ | ||
| Line 162: | Line 162: | ||
cursor: pointer; | cursor: pointer; | ||
font-weight: 500; | font-weight: 500; | ||
color: | color: var(--text); | ||
gap: 0.75rem; | gap: 0.75rem; | ||
position: relative; | position: relative; | ||
| Line 168: | Line 168: | ||
.quest-checkbox { | .quest-checkbox { | ||
position: absolute; | |||
opacity: 0; | |||
cursor: pointer; | |||
} | |||
.region-checkbox { | |||
position: absolute; | position: absolute; | ||
opacity: 0; | opacity: 0; | ||
| Line 176: | Line 182: | ||
width: 20px; | width: 20px; | ||
height: 20px; | height: 20px; | ||
background: | background: var(--bg-1); | ||
border: 2px solid | border: 2px solid var(--border); | ||
border-radius: 4px; | border-radius: 4px; | ||
position: relative; | position: relative; | ||
| Line 185: | Line 191: | ||
.quest-checkbox:checked + .checkmark { | .quest-checkbox:checked + .checkmark { | ||
background: | background: var(--primary); | ||
border-color: | border-color: var(--border-strong); | ||
} | |||
.region-checkbox:checked + .checkmark { | |||
background: var(--primary); | |||
border-color: var(--border-strong); | |||
} | |||
/* Disabled state */ | |||
.quest-checkbox:disabled + .checkmark { | |||
background: var(--disabled-bg); | |||
border-color: var(--disabled-border); | |||
opacity: 0.6; | |||
cursor: not-allowed; | |||
} | |||
.quest-checkbox:disabled ~ .quest-name { | |||
color: var(--disabled-text); | |||
opacity: 0.7; | |||
} | |||
.quest-checkbox:disabled:hover + .checkmark { | |||
border-color: var(--disabled-border); | |||
box-shadow: none; | |||
} | } | ||
| Line 195: | Line 221: | ||
left: 50%; | left: 50%; | ||
transform: translate(-50%, -50%); | transform: translate(-50%, -50%); | ||
color: | color: var(--text-strong); | ||
font-weight: bold; | |||
font-size: 12px; | |||
} | |||
.region-checkbox:checked + .checkmark::after { | |||
content: '✓'; | |||
position: absolute; | |||
top: 50%; | |||
left: 50%; | |||
transform: translate(-50%, -50%); | |||
color: var(--text-strong); | |||
font-weight: bold; | font-weight: bold; | ||
font-size: 12px; | font-size: 12px; | ||
| Line 201: | Line 238: | ||
.quest-checkbox:hover + .checkmark { | .quest-checkbox:hover + .checkmark { | ||
border-color: | border-color: var(--border-strong); | ||
box-shadow: 0 0 0 3px | box-shadow: 0 0 0 3px var(--focus-ring); | ||
} | |||
.region-checkbox:hover + .checkmark { | |||
border-color: var(--border-strong); | |||
box-shadow: 0 0 0 3px var(--focus-ring); | |||
} | } | ||
| Line 211: | Line 253: | ||
.quest-checkbox:checked ~ .quest-name { | .quest-checkbox:checked ~ .quest-name { | ||
color: | color: var(--text-muted); | ||
text-decoration: line-through; | |||
opacity: 0.7; | |||
} | |||
.region-checkbox:checked ~ .quest-name { | |||
color: var(--text-muted); | |||
text-decoration: line-through; | text-decoration: line-through; | ||
opacity: 0.7; | opacity: 0.7; | ||
} | } | ||
/* ------------------------------------------------------------------------------- */ | /* ------------------------------------------------------------------------------- */ | ||
Latest revision as of 22:58, 1 January 2026
/* Quest Tracker Overview */
.quest-tracker-overview {
background: var(--bg-1);
border: 2px solid var(--border);
border-radius: 16px;
padding: 2rem;
margin-bottom: 2rem;
box-shadow: 0 6px 25px var(--shadow-soft);
}
.progress-stats {
display: flex;
justify-content: space-around;
margin-bottom: 1.5rem;
gap: 1rem;
}
.stat-item {
text-align: center;
flex: 1;
}
.stat-label {
display: block;
font-weight: 600;
color: var(--text-muted);
font-size: 0.9rem;
margin-bottom: 0.5rem;
}
.stat-value {
display: block;
font-weight: 700;
font-size: 1.5rem;
color: var(--heading);
}
/* Progress Bar */
.progress-bar-container {
margin-bottom: 1.5rem;
}
.progress-bar {
width: 100%;
height: 12px;
background: var(--bg-1);
border-radius: 6px;
overflow: hidden;
box-shadow: inset 0 2px 4px var(--shadow-soft);
}
.progress-fill {
height: 100%;
background: var(--primary);
border-radius: 6px;
transition: width 0.5s ease;
position: relative;
}
.progress-fill::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
animation: shimmer 2s infinite;
}
/* Tracker Actions */
.tracker-actions {
text-align: center;
}
.reset-progress-btn {
background: var(--danger);
color: var(--text-strong);
border: none;
padding: 0.75rem 1.5rem;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 2px 10px var(--shadow-soft);
}
.reset-progress-btn:hover {
background: var(--danger-hover);
transform: translateY(-2px);
box-shadow: 0 4px 15px var(--shadow-medium);
}
/* Quest Tracker Locations */
.quest-tracker-locations {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
}
.location-section {
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: 12px;
padding: 1.5rem;
box-shadow: 0 2px 15px var(--shadow-soft);
transition: all 0.3s ease;
width: 100%;
box-sizing: border-box;
}
.location-section:hover {
transform: translateY(-2px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.location-title {
color: var(--heading);
font-size: 1.3rem;
font-weight: 700;
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid var(--border);
position: relative;
}
.location-title::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 50px;
height: 2px;
background: var(--primary);
}
/* Quest List */
.quest-list {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
}
.quest-item {
background: var(--bg-1);
border-radius: 8px;
padding: 1rem;
transition: all 0.3s ease;
border-left: 4px solid transparent;
width: 100%;
box-sizing: border-box;
}
.quest-item:hover {
background: var(--bg-1);
border-left-color: var(--primary);
}
/* Custom Checkbox Styling */
.quest-checkbox-label {
display: flex;
align-items: center;
cursor: pointer;
font-weight: 500;
color: var(--text);
gap: 0.75rem;
position: relative;
}
.quest-checkbox {
position: absolute;
opacity: 0;
cursor: pointer;
}
.region-checkbox {
position: absolute;
opacity: 0;
cursor: pointer;
}
.checkmark {
width: 20px;
height: 20px;
background: var(--bg-1);
border: 2px solid var(--border);
border-radius: 4px;
position: relative;
transition: all 0.3s ease;
flex-shrink: 0;
}
.quest-checkbox:checked + .checkmark {
background: var(--primary);
border-color: var(--border-strong);
}
.region-checkbox:checked + .checkmark {
background: var(--primary);
border-color: var(--border-strong);
}
/* Disabled state */
.quest-checkbox:disabled + .checkmark {
background: var(--disabled-bg);
border-color: var(--disabled-border);
opacity: 0.6;
cursor: not-allowed;
}
.quest-checkbox:disabled ~ .quest-name {
color: var(--disabled-text);
opacity: 0.7;
}
.quest-checkbox:disabled:hover + .checkmark {
border-color: var(--disabled-border);
box-shadow: none;
}
.quest-checkbox:checked + .checkmark::after {
content: '✓';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: var(--text-strong);
font-weight: bold;
font-size: 12px;
}
.region-checkbox:checked + .checkmark::after {
content: '✓';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: var(--text-strong);
font-weight: bold;
font-size: 12px;
}
.quest-checkbox:hover + .checkmark {
border-color: var(--border-strong);
box-shadow: 0 0 0 3px var(--focus-ring);
}
.region-checkbox:hover + .checkmark {
border-color: var(--border-strong);
box-shadow: 0 0 0 3px var(--focus-ring);
}
.quest-name {
flex: 1;
transition: all 0.3s ease;
}
.quest-checkbox:checked ~ .quest-name {
color: var(--text-muted);
text-decoration: line-through;
opacity: 0.7;
}
.region-checkbox:checked ~ .quest-name {
color: var(--text-muted);
text-decoration: line-through;
opacity: 0.7;
}
/* ------------------------------------------------------------------------------- */
/* Desktop médio: 992px - 1199px */
@media (max-width: 1199px) {
.quest-tracker-overview {
padding: 18px;
border-radius: 11px;
}
.progress-stats {
gap: 18px;
}
.stat-item {
padding: 13px;
}
.stat-label {
font-size: 0.95em;
}
.stat-value {
font-size: 1.8rem;
}
.progress-bar-container {
height: 9px;
border-radius: 9px;
}
.tracker-actions {
gap: 13px;
}
.reset-progress-btn {
padding: 9px 18px;
font-size: 0.95em;
border-radius: 18px;
}
.quest-tracker-locations {
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 18px;
}
.location-section {
padding: 18px;
border-radius: 11px;
}
.location-title {
font-size: 1.4rem;
margin-bottom: 18px;
}
.quest-list {
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 13px;
}
.quest-item {
padding: 13px;
border-radius: 9px;
}
.quest-checkbox-label {
gap: 13px;
}
.checkmark {
width: 18px;
height: 18px;
}
.quest-name {
font-size: 0.95em;
}
}
/* Desktop pequeno: 768px - 991px */
@media (max-width: 991px) {
.quest-tracker-overview {
padding: 16px;
border-radius: 10px;
}
.progress-stats {
gap: 16px;
}
.stat-item {
padding: 12px;
}
.stat-label {
font-size: 0.9em;
}
.stat-value {
font-size: 1.6rem;
}
.progress-bar-container {
height: 8px;
border-radius: 8px;
}
.tracker-actions {
gap: 12px;
}
.reset-progress-btn {
padding: 8px 16px;
font-size: 0.9em;
border-radius: 16px;
}
.reset-progress-btn:hover {
transform: translateY(-1px);
}
.quest-tracker-locations {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 16px;
}
.location-section {
padding: 16px;
border-radius: 10px;
}
.location-section:hover {
transform: translateY(-1px);
}
.location-title {
font-size: 1.3rem;
margin-bottom: 16px;
}
.quest-list {
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 12px;
}
.quest-item {
padding: 12px;
border-radius: 8px;
}
.quest-item:hover {
transform: translateY(-1px);
}
.quest-checkbox-label {
gap: 12px;
}
.checkmark {
width: 16px;
height: 16px;
}
.quest-name {
font-size: 0.9em;
}
}
/* Tablet: 576px - 767px */
@media (max-width: 767px) {
.quest-tracker-overview {
padding: 14px;
border-radius: 8px;
}
.progress-stats {
flex-direction: column;
gap: 14px;
}
.stat-item {
padding: 10px;
text-align: center;
}
.stat-label {
font-size: 0.85em;
}
.stat-value {
font-size: 1.4rem;
}
.progress-bar-container {
height: 7px;
border-radius: 7px;
}
.tracker-actions {
gap: 10px;
justify-content: center;
}
.reset-progress-btn {
padding: 7px 14px;
font-size: 0.85em;
border-radius: 14px;
}
.reset-progress-btn:hover {
transform: translateY(-1px);
}
.quest-tracker-locations {
grid-template-columns: 1fr;
gap: 14px;
}
.location-section {
padding: 14px;
border-radius: 8px;
}
.location-section:hover {
transform: translateY(-1px);
}
.location-title {
font-size: 1.2rem;
margin-bottom: 14px;
}
.quest-list {
grid-template-columns: 1fr;
gap: 10px;
}
.quest-item {
padding: 10px;
border-radius: 6px;
}
.quest-item:hover {
transform: translateY(-1px);
}
.quest-checkbox-label {
gap: 10px;
}
.checkmark {
width: 14px;
height: 14px;
}
.quest-name {
font-size: 0.85em;
}
}
/* Mobile: até 575px */
@media (max-width: 575px) {
.quest-tracker-overview {
padding: 12px;
border-radius: 6px;
}
.progress-stats {
flex-direction: column;
gap: 12px;
}
.stat-item {
padding: 8px;
text-align: center;
}
.stat-label {
font-size: 0.8em;
}
.stat-value {
font-size: 1.2rem;
}
.progress-bar-container {
height: 6px;
border-radius: 6px;
}
.tracker-actions {
gap: 8px;
justify-content: center;
}
.reset-progress-btn {
padding: 6px 12px;
font-size: 0.8em;
border-radius: 12px;
}
.reset-progress-btn:hover {
transform: none;
}
.quest-tracker-locations {
grid-template-columns: 1fr;
gap: 12px;
}
.location-section {
padding: 12px;
border-radius: 6px;
}
.location-section:hover {
transform: none;
}
.location-title {
font-size: 1.1rem;
margin-bottom: 12px;
}
.quest-list {
grid-template-columns: 1fr;
gap: 8px;
}
.quest-item {
padding: 8px;
border-radius: 4px;
}
.quest-item:hover {
transform: none;
}
.quest-checkbox-label {
gap: 8px;
}
.checkmark {
width: 12px;
height: 12px;
}
.quest-name {
font-size: 0.8em;
}
}