A lot of things
- Added Database page. - Added Xenforo API compatibility - Added Hovercard - Added Notifications
This commit is contained in:
@@ -22,3 +22,78 @@
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
/* ENTRY CARDS */
|
||||
|
||||
.entry-card {
|
||||
background-color: var(--bg2);
|
||||
border: 1px solid var(--border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transition: transform 0.2s, border-color 0.2s;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-3px);
|
||||
border-color: var(--rhpz-orange);
|
||||
}
|
||||
|
||||
.entry-cover-wrapper {
|
||||
position: relative;
|
||||
aspect-ratio: 4/3;
|
||||
background-color: var(--bg);
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.entry-cover-wrapper img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.entry-badge {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
background-color: rgba(0,0,0,0.7);
|
||||
backdrop-filter: blur(4px);
|
||||
border: 1px solid var(--border);
|
||||
padding: 4px 8px;
|
||||
font-size: 0.75rem;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.entry-card-info {
|
||||
padding: 15px;
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.entry-card-title {
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 5px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.entry-card-author {
|
||||
color: var(--rhpz-orange);
|
||||
font-size: 0.85rem;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.entry-card-meta {
|
||||
margin-top: auto;
|
||||
font-size: 0.8rem;
|
||||
color: var(--text2);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,17 +87,49 @@
|
||||
color: var(--text3);
|
||||
border-color: var(--rhpz-orange);
|
||||
}
|
||||
.badge.blue {
|
||||
.badge.blue, .badge.translations {
|
||||
background-color: var(--info);
|
||||
color: var(--text);
|
||||
border-color: var(--info);
|
||||
}
|
||||
.badge.green {
|
||||
.badge.green, .badge.romhacks {
|
||||
background-color: var(--success2);
|
||||
color: var(--text);
|
||||
border-color: var(--success2);
|
||||
}
|
||||
|
||||
.topbar-badge {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
padding: 0 4px;
|
||||
border-radius: 9px;
|
||||
background-color: var(--rhpz-orange);
|
||||
color: #111;
|
||||
font-size: 0.65rem;
|
||||
font-weight: 700;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
border: 2px solid var(--bg);
|
||||
animation: badge-pop 0.2s ease;
|
||||
}
|
||||
|
||||
.topbar-badge--overflow {
|
||||
border-radius: 9px;
|
||||
padding: 0 5px;
|
||||
font-size: 0.6rem;
|
||||
}
|
||||
|
||||
@keyframes badge-pop {
|
||||
0% { transform: scale(0.5); opacity: 0; }
|
||||
70% { transform: scale(1.2); }
|
||||
100% { transform: scale(1); opacity: 1; }
|
||||
}
|
||||
|
||||
/* BREADCRUMB */
|
||||
|
||||
.breadcrumb {
|
||||
|
||||
391
resources/css/components/database.css
Normal file
391
resources/css/components/database.css
Normal file
@@ -0,0 +1,391 @@
|
||||
.filter-bar {
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
background-color: var(--bg2);
|
||||
padding: 15px;
|
||||
border: 1px solid var(--border);
|
||||
margin-bottom: 20px;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
|
||||
.filter-bar-search {
|
||||
flex: 1;
|
||||
max-width: 400px;
|
||||
background-color: var(--bg);
|
||||
border: 1px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 8px 12px;
|
||||
gap: 8px;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.database-wrapper {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
align-items: flex-start;
|
||||
|
||||
.database-filters {
|
||||
width: 300px;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
background-color: var(--bg2);
|
||||
border: 1px solid var(--border);
|
||||
|
||||
.filter-group {
|
||||
border-bottom: 1px solid var(--border);
|
||||
overflow: hidden;
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
.filter-title-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px 14px;
|
||||
background-color: var(--bg3);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
|
||||
.filter-title {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.8px;
|
||||
color: var(--text2);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.filter-mode {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.filter-btn-mode {
|
||||
background: none;
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text2);
|
||||
font-size: 0.7rem;
|
||||
font-weight: 600;
|
||||
padding: 2px 7px;
|
||||
cursor: pointer;
|
||||
font-family: var(--typography);
|
||||
transition: all 0.15s;
|
||||
letter-spacing: 0.5px;
|
||||
&:hover {
|
||||
border-color: var(--rhpz-orange);
|
||||
color: var(--rhpz-orange);
|
||||
}
|
||||
&.active {
|
||||
background-color: var(--rhpz-orange);
|
||||
border-color: var(--rhpz-orange);
|
||||
color: var(--text3);
|
||||
}
|
||||
}
|
||||
|
||||
.filter-options {
|
||||
padding: 6px 0;
|
||||
max-height: 180px;
|
||||
overflow-y: auto;
|
||||
&::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
&::-webkit-scrollbar-track {
|
||||
background: var(--bg2);
|
||||
}
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: var(--border);
|
||||
}
|
||||
}
|
||||
|
||||
.filter-option {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
padding: 6px 14px;
|
||||
font-size: 0.88rem;
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
transition: background-color 0.1s;
|
||||
&:hover {
|
||||
background-color: var(--bg4);
|
||||
}
|
||||
}
|
||||
|
||||
.filter-option input[type="checkbox"] {
|
||||
accent-color: var(--rhpz-orange);
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.database-results {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
|
||||
.database-sort {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-bottom: 15px;
|
||||
padding-bottom: 15px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
flex-wrap: wrap;
|
||||
|
||||
.btn {
|
||||
font-size: 0.85rem;
|
||||
padding: 6px 12px;
|
||||
&.active {
|
||||
border-color: var(--rhpz-orange);
|
||||
color: var(--rhpz-orange);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.database-results-count {
|
||||
margin-left: auto;
|
||||
font-size: 0.85rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.database-active-filters {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.database-active-filter-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
background-color: var(--bg3);
|
||||
border: 1px solid var(--border);
|
||||
padding: 3px 10px;
|
||||
font-size: 0.8rem;
|
||||
color: var(--text);
|
||||
.tag-type {
|
||||
color: var(--rhpz-orange);
|
||||
font-weight: 600;
|
||||
font-size: 0.75rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
button {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text2);
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
transition: color 0.15s;
|
||||
&:hover {
|
||||
color: var(--text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.database-empty {
|
||||
grid-column: 1 / -1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 60px 20px;
|
||||
color: var(--text2);
|
||||
background-color: var(--bg2);
|
||||
border: 1px solid var(--border);
|
||||
gap: 15px;
|
||||
text-align: center;
|
||||
|
||||
i {
|
||||
color: var(--border);
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.database-pagination {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin-top: 20px;
|
||||
|
||||
.btn {
|
||||
min-width: 36px;
|
||||
padding: 6px 10px;
|
||||
font-size: 0.85rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.active {
|
||||
background-color: var(--rhpz-orange);
|
||||
border-color: var(--rhpz-orange);
|
||||
color: #111;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.database-search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.database-layout {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.database-filters {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2,1fr);
|
||||
}
|
||||
|
||||
.database-filter-group:last-child {
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.database-results-count {
|
||||
margin-left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.database-filters {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.grid-entries {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 420px) {
|
||||
.grid-entries {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.filter-chevron {
|
||||
transition: transform 0.2s ease;
|
||||
color: var(--text2);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.filter-chevron.rotated {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.internal-filter-search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
padding: 7px 14px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background-color: var(--bg);
|
||||
|
||||
i {
|
||||
color: var(--text2);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
input {
|
||||
background: none;
|
||||
border: none;
|
||||
outline: none;
|
||||
color: var(--text);
|
||||
font-family: var(--typography);
|
||||
font-size: 0.85rem;
|
||||
width: 100%;
|
||||
|
||||
&::placeholder {
|
||||
color: var(--text2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.filter-title-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.filter-title-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.internal-filter-count {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--rhpz-orange);
|
||||
color: #111;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
padding: 0 5px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.internal-filter-clear {
|
||||
background: none;
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text2);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
padding: 0;
|
||||
transition: all 0.15s;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--error);
|
||||
color: var(--error);
|
||||
}
|
||||
}
|
||||
|
||||
.filter-search-clear {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text2);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0;
|
||||
flex-shrink: 0;
|
||||
transition: color 0.15s;
|
||||
&:hover {
|
||||
color: var(--text);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,3 +27,11 @@
|
||||
grid-template-columns: 0.5fr 1fr 0.25fr;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.grid-entries {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6,1fr);
|
||||
gap: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
|
||||
119
resources/css/components/hovercard.css
Normal file
119
resources/css/components/hovercard.css
Normal file
@@ -0,0 +1,119 @@
|
||||
.hovercard-overlay {
|
||||
position: absolute;
|
||||
z-index: 2000;
|
||||
background-color: var(--bg2);
|
||||
border: 1px solid var(--border);
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.hovercard-overlay-loading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 30px;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.hovercard-overlay-error {
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
color: var(--text2);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.hovercard {
|
||||
width: 280px;
|
||||
}
|
||||
|
||||
.hovercard-header {
|
||||
height: 70px;
|
||||
background-color: var(--bg3);
|
||||
border-bottom: 1px solid var(--border);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.hovercard-avatar {
|
||||
position: absolute;
|
||||
bottom: -26px;
|
||||
left: 16px;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
border-radius: 50%;
|
||||
border: 3px solid var(--bg2);
|
||||
overflow: hidden;
|
||||
background-color: var(--bg4);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 600;
|
||||
font-size: 1.2rem;
|
||||
color: var(--text);
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
|
||||
.hovercard-body {
|
||||
padding: 34px 16px 16px;
|
||||
}
|
||||
|
||||
.hovercard-username {
|
||||
font-weight: 600;
|
||||
font-size: 1rem;
|
||||
color: var(--text);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.hovercard-title {
|
||||
font-size: 0.8rem;
|
||||
color: var(--rhpz-orange);
|
||||
margin-bottom: 14px;
|
||||
min-height: 14px;
|
||||
}
|
||||
|
||||
.hovercard-stats {
|
||||
display: flex;
|
||||
border: 1px solid var(--border);
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.hovercard-stat {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 8px 4px;
|
||||
border-right: 1px solid var(--border);
|
||||
|
||||
&:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 0.68rem;
|
||||
color: var(--text2);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.hovercard-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.hovercard-actions .btn {
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
138
resources/css/components/notifications.css
Normal file
138
resources/css/components/notifications.css
Normal file
@@ -0,0 +1,138 @@
|
||||
.notifications {
|
||||
position: absolute;
|
||||
top: calc(100% + 8px);
|
||||
right: 0;
|
||||
width: 340px;
|
||||
max-height: 480px;
|
||||
overflow-y: auto;
|
||||
background-color: var(--bg2);
|
||||
border: 1px solid var(--border);
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,0.5);
|
||||
z-index: 2000;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
}
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background-color: var(--border);
|
||||
}
|
||||
&::-webkit-scrollbar-track {
|
||||
background-color: var(--bg2);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes dropdown-enter {
|
||||
from { opacity: 0; transform: translateY(-6px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.dropdown-enter {
|
||||
animation: dropdown-enter 0.15s ease;
|
||||
}
|
||||
|
||||
.notifications-header {
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
background-color: var(--bg3);
|
||||
z-index: 1;
|
||||
|
||||
.notifications-header-title {
|
||||
font-weight: 600;
|
||||
font-size: 0.9rem;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.notifications-header-actions {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
.notifications-loading, .notifications-empty {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
padding: 40px 20px;
|
||||
color: var(--text2);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.notifications-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
text-decoration: none;
|
||||
color: var(--text);
|
||||
transition: background-color 0.1s;
|
||||
position: relative;
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
&:hover {
|
||||
background-color: var(--bg3);
|
||||
}
|
||||
.unread {
|
||||
border-left: 2px solid var(--rhpz-orange);
|
||||
background-color: var(--bg3);
|
||||
}
|
||||
}
|
||||
|
||||
.notifications-avatar {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
background-color: var(--bg4);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 600;
|
||||
font-size: 0.9rem;
|
||||
color: var(--text);
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
|
||||
.notifications-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
|
||||
.notifications-text {
|
||||
font-size: 0.88rem;
|
||||
color: var(--text);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.notifications-date {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
}
|
||||
|
||||
.notifications-unread-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background-color: var(--rhpz-orange);
|
||||
flex-shrink: 0;
|
||||
margin-top: 4px;
|
||||
}
|
||||
Reference in New Issue
Block a user