Initial commit.
This commit is contained in:
+219
@@ -0,0 +1,219 @@
|
||||
/**
|
||||
* @fileoverview Base Styles for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Reset and foundational styles
|
||||
* @keywords css, base, reset, foundation, styles
|
||||
*/
|
||||
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html {
|
||||
font-size: 16px;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-family);
|
||||
font-size: var(--font-size-md);
|
||||
line-height: 1.5;
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-bg);
|
||||
min-height: 100vh;
|
||||
overflow-x: hidden;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
body.nav-open {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--color-link);
|
||||
text-decoration: none;
|
||||
transition: color var(--transition-fast);
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
img, video {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
button, input, textarea, select {
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
line-height: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
background: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
input, textarea {
|
||||
background-color: var(--color-surface);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--spacing-sm) var(--spacing-md);
|
||||
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
|
||||
}
|
||||
|
||||
input:focus, textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
min-height: 80px;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
h1 { font-size: var(--font-size-3xl); }
|
||||
h2 { font-size: var(--font-size-2xl); }
|
||||
h3 { font-size: var(--font-size-xl); }
|
||||
h4 { font-size: var(--font-size-lg); }
|
||||
|
||||
code, pre {
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
code {
|
||||
background-color: var(--color-code-bg);
|
||||
padding: 0.125em 0.375em;
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
pre {
|
||||
background-color: var(--color-code-bg);
|
||||
padding: var(--spacing-md);
|
||||
border-radius: var(--radius-md);
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
pre code {
|
||||
background: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background-color: var(--color-primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: var(--color-bg-secondary);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--color-border);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--spacing-sm);
|
||||
padding: var(--spacing-sm) var(--spacing-lg);
|
||||
border-radius: var(--radius-md);
|
||||
font-weight: 500;
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: var(--color-primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: var(--color-primary-hover);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background-color: var(--color-secondary);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background-color: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background-color: var(--color-error);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-danger:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.app-main {
|
||||
margin-top: var(--header-height);
|
||||
min-height: calc(100vh - var(--header-height));
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
|
||||
@media (min-width: 769px) {
|
||||
.app-main {
|
||||
margin-left: var(--nav-width);
|
||||
padding: var(--spacing-lg);
|
||||
}
|
||||
}
|
||||
|
||||
.page {
|
||||
max-width: var(--max-content-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
@@ -0,0 +1,214 @@
|
||||
/**
|
||||
* @fileoverview Header Styles for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Application header component styles
|
||||
* @keywords css, header, navigation, styles
|
||||
*/
|
||||
|
||||
app-header {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: var(--header-height);
|
||||
background-color: var(--color-surface);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
z-index: var(--z-sticky);
|
||||
}
|
||||
|
||||
.header-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
padding: 0 var(--spacing-md);
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.header-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.menu-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.menu-toggle:hover {
|
||||
background-color: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
.menu-icon {
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 2px;
|
||||
background-color: currentColor;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.menu-icon::before,
|
||||
.menu-icon::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background-color: currentColor;
|
||||
}
|
||||
|
||||
.menu-icon::before {
|
||||
top: -6px;
|
||||
}
|
||||
|
||||
.menu-icon::after {
|
||||
bottom: -6px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.logo-text {
|
||||
font-size: var(--font-size-xl);
|
||||
font-weight: 700;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.header-center {
|
||||
flex: 1;
|
||||
max-width: 400px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.search-container {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 100%;
|
||||
padding-right: 40px;
|
||||
}
|
||||
|
||||
.search-btn {
|
||||
position: absolute;
|
||||
right: 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
color: var(--color-text-muted);
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.search-btn:hover {
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
.header-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.header-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
color: var(--color-text-secondary);
|
||||
border-radius: var(--radius-md);
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.header-btn:hover {
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
.login-btn {
|
||||
width: auto;
|
||||
padding: 0 var(--spacing-md);
|
||||
background-color: var(--color-primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.login-btn:hover {
|
||||
background-color: var(--color-primary-hover);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.notifications-btn {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.notification-badge {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
right: 4px;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
padding: 0 4px;
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 600;
|
||||
background-color: var(--color-primary);
|
||||
color: white;
|
||||
border-radius: var(--radius-full);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.theme-icon-light {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.theme-dark .theme-icon-dark,
|
||||
.theme-black .theme-icon-dark,
|
||||
.theme-ocean .theme-icon-dark,
|
||||
.theme-forest .theme-icon-dark,
|
||||
.theme-sunset .theme-icon-dark {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.theme-dark .theme-icon-light,
|
||||
.theme-black .theme-icon-light,
|
||||
.theme-ocean .theme-icon-light,
|
||||
.theme-forest .theme-icon-light,
|
||||
.theme-sunset .theme-icon-light {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.theme-light .theme-icon-dark,
|
||||
.theme-white .theme-icon-dark {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.theme-light .theme-icon-light,
|
||||
.theme-white .theme-icon-light {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@media (min-width: 769px) {
|
||||
.menu-toggle {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.header-center {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
/**
|
||||
* @fileoverview Navigation Styles for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Side navigation component styles
|
||||
* @keywords css, navigation, sidebar, menu, styles
|
||||
*/
|
||||
|
||||
app-nav {
|
||||
position: fixed;
|
||||
top: var(--header-height);
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: var(--nav-width);
|
||||
background-color: var(--color-surface);
|
||||
border-right: 1px solid var(--color-border);
|
||||
overflow-y: auto;
|
||||
z-index: var(--z-sticky);
|
||||
transform: translateX(-100%);
|
||||
transition: transform var(--transition-normal);
|
||||
}
|
||||
|
||||
app-nav.nav-open {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
@media (min-width: 769px) {
|
||||
app-nav {
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
|
||||
.nav-container {
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
|
||||
.nav-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
padding: var(--spacing-sm) var(--spacing-md);
|
||||
color: var(--color-text-secondary);
|
||||
border-radius: var(--radius-md);
|
||||
text-decoration: none;
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.nav-link:hover {
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-surface-hover);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.nav-item.active .nav-link {
|
||||
color: var(--color-primary);
|
||||
background-color: rgba(233, 69, 96, 0.1);
|
||||
}
|
||||
|
||||
.nav-link svg {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.nav-label {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.nav-badge {
|
||||
margin-left: auto;
|
||||
min-width: 20px;
|
||||
height: 20px;
|
||||
padding: 0 6px;
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 600;
|
||||
background-color: var(--color-primary);
|
||||
color: white;
|
||||
border-radius: var(--radius-full);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.nav-divider {
|
||||
height: 1px;
|
||||
background-color: var(--color-border);
|
||||
margin: var(--spacing-md) 0;
|
||||
}
|
||||
|
||||
.nav-link-danger {
|
||||
color: var(--color-error);
|
||||
}
|
||||
|
||||
.nav-link-danger:hover {
|
||||
color: var(--color-error);
|
||||
background-color: rgba(239, 68, 68, 0.1);
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
/**
|
||||
* @fileoverview Comment Component Styles for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Styles for comment items and forms
|
||||
* @keywords css, comment, form, styles
|
||||
*/
|
||||
|
||||
comment-item {
|
||||
display: block;
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--radius-md);
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
comment-item.highlight {
|
||||
box-shadow: 0 0 0 2px var(--color-primary);
|
||||
}
|
||||
|
||||
.comment-content {
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
|
||||
.comment-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm);
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.comment-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm);
|
||||
flex: 1;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.comment-username {
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.comment-username:hover {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.comment-score {
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--color-upvote);
|
||||
}
|
||||
|
||||
.comment-time {
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.comment-actions {
|
||||
display: flex;
|
||||
gap: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.action-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
color: var(--color-text-muted);
|
||||
border-radius: var(--radius-sm);
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.action-btn:hover {
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
.action-btn.delete-btn:hover {
|
||||
color: var(--color-error);
|
||||
}
|
||||
|
||||
.comment-body {
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.comment-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.comment-skeleton {
|
||||
height: 100px;
|
||||
background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-hover) 50%, var(--color-surface) 75%);
|
||||
background-size: 200% 100%;
|
||||
animation: shimmer 1.5s infinite;
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.comment-edit {
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
|
||||
.comment-edit-input {
|
||||
width: 100%;
|
||||
min-height: 100px;
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.comment-edit-actions {
|
||||
display: flex;
|
||||
gap: var(--spacing-sm);
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
comment-form {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.comment-form-auth {
|
||||
text-align: center;
|
||||
padding: var(--spacing-lg);
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.comment-form-auth p {
|
||||
margin-bottom: var(--spacing-md);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.comment-form-inner {
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
|
||||
.comment-input {
|
||||
width: 100%;
|
||||
min-height: 80px;
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.char-count {
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
@@ -0,0 +1,487 @@
|
||||
/**
|
||||
* @fileoverview Component Styles for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Styles for all UI components
|
||||
* @keywords css, components, ui, styles
|
||||
*/
|
||||
|
||||
loading-spinner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.spinner-circle {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: 3px solid var(--color-border);
|
||||
border-top-color: var(--color-primary);
|
||||
border-radius: 50%;
|
||||
animation: spin 0.8s linear infinite;
|
||||
}
|
||||
|
||||
.spinner-small .spinner-circle {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-width: 2px;
|
||||
}
|
||||
|
||||
.spinner-large .spinner-circle {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-width: 4px;
|
||||
}
|
||||
|
||||
.spinner-text {
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
toast-container {
|
||||
position: fixed;
|
||||
bottom: var(--spacing-lg);
|
||||
right: var(--spacing-lg);
|
||||
z-index: var(--z-toast);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-sm);
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
toast-notification {
|
||||
display: block;
|
||||
animation: slideIn 0.3s ease;
|
||||
}
|
||||
|
||||
toast-notification.toast-hiding {
|
||||
animation: slideOut 0.3s ease forwards;
|
||||
}
|
||||
|
||||
.toast-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
padding: var(--spacing-md);
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-lg);
|
||||
border-left: 4px solid;
|
||||
}
|
||||
|
||||
.toast-success .toast-content { border-left-color: var(--color-success); }
|
||||
.toast-error .toast-content { border-left-color: var(--color-error); }
|
||||
.toast-warning .toast-content { border-left-color: var(--color-warning); }
|
||||
.toast-info .toast-content { border-left-color: var(--color-info); }
|
||||
|
||||
.toast-icon {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.toast-success .toast-icon { color: var(--color-success); }
|
||||
.toast-error .toast-icon { color: var(--color-error); }
|
||||
.toast-warning .toast-icon { color: var(--color-warning); }
|
||||
.toast-info .toast-icon { color: var(--color-info); }
|
||||
|
||||
.toast-message {
|
||||
flex: 1;
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
.toast-close {
|
||||
flex-shrink: 0;
|
||||
color: var(--color-text-muted);
|
||||
padding: var(--spacing-xs);
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.toast-close:hover {
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
@keyframes slideIn {
|
||||
from {
|
||||
transform: translateX(100%);
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
transform: translateX(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes slideOut {
|
||||
from {
|
||||
transform: translateX(0);
|
||||
opacity: 1;
|
||||
}
|
||||
to {
|
||||
transform: translateX(100%);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
user-avatar {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.avatar-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: var(--radius-md);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.avatar-small .avatar-wrapper {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.avatar-medium .avatar-wrapper {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
.avatar-large .avatar-wrapper {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.avatar-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.avatar-initials {
|
||||
color: white;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.avatar-small .avatar-initials { font-size: var(--font-size-xs); }
|
||||
.avatar-medium .avatar-initials { font-size: var(--font-size-md); }
|
||||
.avatar-large .avatar-initials { font-size: var(--font-size-xl); }
|
||||
|
||||
vote-buttons {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.vote-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
color: var(--color-text-muted);
|
||||
border-radius: var(--radius-sm);
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.vote-btn:hover {
|
||||
background-color: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
.vote-btn.upvote:hover,
|
||||
.vote-btn.upvote.active {
|
||||
color: var(--color-upvote);
|
||||
}
|
||||
|
||||
.vote-btn.downvote:hover,
|
||||
.vote-btn.downvote.active {
|
||||
color: var(--color-downvote);
|
||||
}
|
||||
|
||||
.vote-score {
|
||||
min-width: 40px;
|
||||
text-align: center;
|
||||
font-weight: 600;
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
.vote-score.positive { color: var(--color-upvote); }
|
||||
.vote-score.negative { color: var(--color-downvote); }
|
||||
|
||||
theme-selector {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.theme-options {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
|
||||
gap: var(--spacing-sm);
|
||||
margin-top: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.theme-option {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--spacing-xs);
|
||||
padding: var(--spacing-sm);
|
||||
border: 2px solid transparent;
|
||||
border-radius: var(--radius-md);
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.theme-option:hover {
|
||||
background-color: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
.theme-option.active {
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.theme-preview {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: var(--radius-sm);
|
||||
border: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.theme-preview-dark { background: linear-gradient(135deg, #1a1a2e 50%, #e94560 50%); }
|
||||
.theme-preview-light { background: linear-gradient(135deg, #f5f5f7 50%, #d63651 50%); }
|
||||
.theme-preview-black { background: linear-gradient(135deg, #000000 50%, #e94560 50%); }
|
||||
.theme-preview-white { background: linear-gradient(135deg, #ffffff 50%, #c52d47 50%); }
|
||||
.theme-preview-ocean { background: linear-gradient(135deg, #0a1929 50%, #5090d3 50%); }
|
||||
.theme-preview-forest { background: linear-gradient(135deg, #0d1f0d 50%, #4caf50 50%); }
|
||||
.theme-preview-sunset { background: linear-gradient(135deg, #1f1410 50%, #ff7043 50%); }
|
||||
|
||||
.theme-name {
|
||||
font-size: var(--font-size-xs);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.theme-label {
|
||||
font-weight: 500;
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
image-preview {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.image-container {
|
||||
position: relative;
|
||||
max-width: 100%;
|
||||
border-radius: var(--radius-md);
|
||||
overflow: hidden;
|
||||
background-color: var(--color-bg-tertiary);
|
||||
}
|
||||
|
||||
.preview-image {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.gif-badge {
|
||||
position: absolute;
|
||||
top: var(--spacing-sm);
|
||||
left: var(--spacing-sm);
|
||||
padding: 2px 6px;
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 600;
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
color: white;
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.expand-btn {
|
||||
position: absolute;
|
||||
bottom: var(--spacing-sm);
|
||||
right: var(--spacing-sm);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
color: white;
|
||||
border-radius: var(--radius-sm);
|
||||
opacity: 0;
|
||||
transition: opacity var(--transition-fast);
|
||||
}
|
||||
|
||||
.image-container:hover .expand-btn {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
image-lightbox {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: var(--z-modal);
|
||||
opacity: 0;
|
||||
transition: opacity var(--transition-normal);
|
||||
}
|
||||
|
||||
image-lightbox.lightbox-visible {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.lightbox-backdrop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-color: var(--color-overlay);
|
||||
}
|
||||
|
||||
.lightbox-content {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.lightbox-image {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.lightbox-close {
|
||||
position: absolute;
|
||||
top: var(--spacing-md);
|
||||
right: var(--spacing-md);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
color: white;
|
||||
border-radius: var(--radius-full);
|
||||
}
|
||||
|
||||
.lightbox-close:hover {
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
|
||||
youtube-embed {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.youtube-preview {
|
||||
position: relative;
|
||||
aspect-ratio: 16/9;
|
||||
border-radius: var(--radius-md);
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
background-color: var(--color-bg-tertiary);
|
||||
}
|
||||
|
||||
.youtube-thumbnail {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.youtube-play {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
transition: transform var(--transition-fast);
|
||||
}
|
||||
|
||||
.youtube-preview:hover .youtube-play {
|
||||
transform: translate(-50%, -50%) scale(1.1);
|
||||
}
|
||||
|
||||
.youtube-badge {
|
||||
position: absolute;
|
||||
bottom: var(--spacing-sm);
|
||||
right: var(--spacing-sm);
|
||||
padding: 2px 6px;
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 600;
|
||||
background-color: #ff0000;
|
||||
color: white;
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.youtube-player {
|
||||
aspect-ratio: 16/9;
|
||||
border-radius: var(--radius-md);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.youtube-player iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: none;
|
||||
}
|
||||
|
||||
link-preview {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.link-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
padding: var(--spacing-md);
|
||||
background-color: var(--color-surface);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
text-decoration: none;
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.link-card:hover {
|
||||
background-color: var(--color-surface-hover);
|
||||
border-color: var(--color-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.link-icon {
|
||||
flex-shrink: 0;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.link-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.link-title {
|
||||
display: block;
|
||||
font-weight: 500;
|
||||
color: var(--color-text);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.link-domain {
|
||||
display: block;
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.link-external {
|
||||
flex-shrink: 0;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
toast-container {
|
||||
left: var(--spacing-md);
|
||||
right: var(--spacing-md);
|
||||
bottom: var(--spacing-md);
|
||||
max-width: none;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,245 @@
|
||||
/**
|
||||
* @fileoverview Form Component Styles for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Styles for forms, inputs and modals
|
||||
* @keywords css, form, input, modal, styles
|
||||
*/
|
||||
|
||||
login-form,
|
||||
post-form {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.login-form,
|
||||
.post-form-inner {
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.form-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.form-title {
|
||||
font-size: var(--font-size-xl);
|
||||
}
|
||||
|
||||
.form-subtitle {
|
||||
color: var(--color-text-secondary);
|
||||
margin-top: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.close-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
color: var(--color-text-secondary);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.close-btn:hover {
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.form-label {
|
||||
display: block;
|
||||
font-weight: 500;
|
||||
margin-bottom: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.form-input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.form-checkbox {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.form-checkbox input[type="checkbox"] {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
accent-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.form-error {
|
||||
padding: var(--spacing-sm) var(--spacing-md);
|
||||
background-color: rgba(248, 113, 113, 0.1);
|
||||
color: var(--color-error);
|
||||
border-radius: var(--radius-md);
|
||||
margin-bottom: var(--spacing-md);
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
.form-submit,
|
||||
.submit-btn {
|
||||
width: 100%;
|
||||
padding: var(--spacing-md);
|
||||
background-color: var(--color-primary);
|
||||
color: white;
|
||||
border-radius: var(--radius-md);
|
||||
font-weight: 600;
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.form-submit:hover,
|
||||
.submit-btn:hover {
|
||||
background-color: var(--color-primary-hover);
|
||||
}
|
||||
|
||||
.form-submit:disabled,
|
||||
.submit-btn:disabled {
|
||||
opacity: 0.7;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.post-form-auth {
|
||||
text-align: center;
|
||||
padding: var(--spacing-lg);
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.post-form-auth p {
|
||||
margin-bottom: var(--spacing-md);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.post-input {
|
||||
width: 100%;
|
||||
min-height: 150px;
|
||||
}
|
||||
|
||||
.tags-input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.modal {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: var(--z-modal);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--spacing-md);
|
||||
opacity: 0;
|
||||
transition: opacity var(--transition-normal);
|
||||
}
|
||||
|
||||
.modal.modal-visible {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.modal-backdrop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-color: var(--color-overlay);
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-width: 500px;
|
||||
max-height: 90vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
login-page {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.login-container {
|
||||
max-width: 400px;
|
||||
margin: 0 auto;
|
||||
padding: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.login-header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-bottom: var(--spacing-xl);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.login-header .back-btn {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
color: var(--color-text-secondary);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.login-header .back-btn:hover {
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
.login-logo {
|
||||
font-size: var(--font-size-3xl);
|
||||
font-weight: 700;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.logged-in-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-xl);
|
||||
}
|
||||
|
||||
.logged-in-info user-avatar {
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.logged-in-text {
|
||||
font-size: var(--font-size-lg);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.logged-in-actions {
|
||||
display: flex;
|
||||
gap: var(--spacing-md);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.logged-in-actions .btn {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.switch-text {
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-sm);
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.btn-link {
|
||||
background: none;
|
||||
color: var(--color-link);
|
||||
padding: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.btn-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
/**
|
||||
* @fileoverview Notification Component Styles for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Styles for notification list and items
|
||||
* @keywords css, notification, alert, styles
|
||||
*/
|
||||
|
||||
notification-list {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.notification-auth,
|
||||
.notification-loading,
|
||||
.notification-empty {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 200px;
|
||||
text-align: center;
|
||||
gap: var(--spacing-md);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.notification-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--spacing-md);
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.notification-header h2 {
|
||||
font-size: var(--font-size-lg);
|
||||
}
|
||||
|
||||
.clear-btn {
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--color-primary);
|
||||
padding: var(--spacing-xs) var(--spacing-sm);
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.clear-btn:hover {
|
||||
background-color: rgba(233, 69, 96, 0.1);
|
||||
}
|
||||
|
||||
.notification-items {
|
||||
background-color: var(--color-surface);
|
||||
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
|
||||
}
|
||||
|
||||
notification-item {
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
notification-item:last-child {
|
||||
border-bottom: none;
|
||||
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
|
||||
}
|
||||
|
||||
notification-item:hover {
|
||||
background-color: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
notification-item.unread {
|
||||
background-color: rgba(233, 69, 96, 0.05);
|
||||
}
|
||||
|
||||
notification-item.unread::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 3px;
|
||||
background-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.notif-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
padding: var(--spacing-md);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.notif-icon {
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background-color: var(--color-bg-tertiary);
|
||||
border-radius: var(--radius-full);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.notif-body {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.notif-username {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.notif-action {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.notif-time {
|
||||
flex-shrink: 0;
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
/**
|
||||
* @fileoverview Page Component Styles for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Styles for page-level components
|
||||
* @keywords css, page, layout, styles
|
||||
*/
|
||||
|
||||
home-page,
|
||||
weekly-page,
|
||||
collabs-page,
|
||||
stories-page {
|
||||
display: block;
|
||||
}
|
||||
|
||||
rant-page,
|
||||
profile-page,
|
||||
search-page,
|
||||
notifications-page,
|
||||
settings-page,
|
||||
login-page {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
margin-bottom: var(--spacing-lg);
|
||||
padding: var(--spacing-md);
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.page-header h1 {
|
||||
font-size: var(--font-size-xl);
|
||||
}
|
||||
|
||||
search-page .search-header {
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
search-page .search-form {
|
||||
display: flex;
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
search-page .search-input {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
search-page .search-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
background-color: var(--color-primary);
|
||||
color: white;
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
search-page .search-btn:hover {
|
||||
background-color: var(--color-primary-hover);
|
||||
}
|
||||
|
||||
.search-empty {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 300px;
|
||||
text-align: center;
|
||||
color: var(--color-text-secondary);
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
settings-page .settings-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
padding: var(--spacing-md);
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
settings-page .settings-header .back-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
color: var(--color-text-secondary);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
settings-page .settings-header .back-btn:hover {
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
settings-page .settings-header h1 {
|
||||
font-size: var(--font-size-xl);
|
||||
}
|
||||
|
||||
.settings-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.settings-section {
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.settings-section h2 {
|
||||
font-size: var(--font-size-lg);
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.setting-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: var(--spacing-sm) 0;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.setting-item:last-of-type {
|
||||
border-bottom: none;
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.setting-label {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.setting-value {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.about-info {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.about-info p {
|
||||
margin-bottom: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.about-info strong {
|
||||
color: var(--color-text);
|
||||
}
|
||||
@@ -0,0 +1,342 @@
|
||||
/**
|
||||
* @fileoverview Rant Component Styles for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Styles for rant card, detail and feed
|
||||
* @keywords css, rant, card, feed, styles
|
||||
*/
|
||||
|
||||
rant-content {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.content-text {
|
||||
word-wrap: break-word;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.content-text p {
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.content-text p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.content-text a {
|
||||
color: var(--color-link);
|
||||
}
|
||||
|
||||
.content-text code {
|
||||
background-color: var(--color-code-bg);
|
||||
padding: 0.125em 0.375em;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 0.875em;
|
||||
}
|
||||
|
||||
.content-text pre {
|
||||
background-color: var(--color-code-bg);
|
||||
padding: var(--spacing-md);
|
||||
border-radius: var(--radius-md);
|
||||
overflow-x: auto;
|
||||
margin: var(--spacing-md) 0;
|
||||
}
|
||||
|
||||
.content-text pre code {
|
||||
background: none;
|
||||
padding: 0;
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
.content-images,
|
||||
.content-videos,
|
||||
.content-links {
|
||||
margin-top: var(--spacing-md);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
rant-card {
|
||||
display: block;
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--radius-lg);
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
rant-card:hover {
|
||||
background-color: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
.card-content {
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm);
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.card-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.card-username {
|
||||
font-weight: 600;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.card-score {
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--color-upvote);
|
||||
}
|
||||
|
||||
.card-time {
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.card-body {
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.card-image {
|
||||
margin-top: var(--spacing-md);
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.card-comments {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-xs);
|
||||
color: var(--color-text-muted);
|
||||
padding: var(--spacing-xs) var(--spacing-sm);
|
||||
border-radius: var(--radius-sm);
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.card-comments:hover {
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
.card-tags {
|
||||
display: flex;
|
||||
gap: var(--spacing-xs);
|
||||
flex-wrap: wrap;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.tag {
|
||||
padding: 2px 8px;
|
||||
font-size: var(--font-size-xs);
|
||||
color: var(--color-text-secondary);
|
||||
background-color: var(--color-bg-tertiary);
|
||||
border-radius: var(--radius-full);
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.tag:hover {
|
||||
background-color: var(--color-primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.rant-card-skeleton {
|
||||
height: 200px;
|
||||
background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-hover) 50%, var(--color-surface) 75%);
|
||||
background-size: 200% 100%;
|
||||
animation: shimmer 1.5s infinite;
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
0% { background-position: 200% 0; }
|
||||
100% { background-position: -200% 0; }
|
||||
}
|
||||
|
||||
rant-detail {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.rant-detail-loading,
|
||||
.rant-detail-error {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 200px;
|
||||
text-align: center;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.detail-content {
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.detail-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.detail-header .back-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
color: var(--color-text-secondary);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.detail-header .back-btn:hover {
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
.detail-title {
|
||||
font-size: var(--font-size-lg);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.detail-author {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.author-info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.author-username {
|
||||
display: block;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.author-username:hover {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.author-score {
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--color-upvote);
|
||||
}
|
||||
|
||||
.detail-time {
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.detail-body {
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.detail-image {
|
||||
margin-top: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.detail-tags {
|
||||
display: flex;
|
||||
gap: var(--spacing-sm);
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.detail-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-lg);
|
||||
padding-top: var(--spacing-md);
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.detail-comments-count {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.comments-section {
|
||||
margin-top: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.comments-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-md);
|
||||
margin-top: var(--spacing-lg);
|
||||
}
|
||||
|
||||
rant-feed {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.feed-controls {
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.sort-tabs {
|
||||
display: flex;
|
||||
gap: var(--spacing-xs);
|
||||
background-color: var(--color-surface);
|
||||
padding: var(--spacing-xs);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.sort-tab {
|
||||
flex: 1;
|
||||
padding: var(--spacing-sm) var(--spacing-md);
|
||||
color: var(--color-text-secondary);
|
||||
border-radius: var(--radius-sm);
|
||||
font-weight: 500;
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.sort-tab:hover {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.sort-tab.active {
|
||||
background-color: var(--color-primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.feed-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.feed-loading,
|
||||
.feed-loadmore {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.feed-empty {
|
||||
text-align: center;
|
||||
padding: var(--spacing-2xl);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.load-more-btn {
|
||||
min-width: 120px;
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
/**
|
||||
* @fileoverview User Component Styles for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Styles for user profile and related components
|
||||
* @keywords css, user, profile, avatar, styles
|
||||
*/
|
||||
|
||||
user-profile {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.profile-loading,
|
||||
.profile-error {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 300px;
|
||||
text-align: center;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.profile-header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
padding: var(--spacing-lg);
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--radius-lg);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.profile-header .back-btn {
|
||||
position: absolute;
|
||||
top: var(--spacing-md);
|
||||
left: var(--spacing-md);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
color: var(--color-text-secondary);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.profile-header .back-btn:hover {
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
.profile-info {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.profile-username {
|
||||
font-size: var(--font-size-2xl);
|
||||
margin-bottom: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.profile-score {
|
||||
font-size: var(--font-size-xl);
|
||||
font-weight: 600;
|
||||
color: var(--color-upvote);
|
||||
}
|
||||
|
||||
.profile-details {
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-lg);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.detail-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-xs);
|
||||
padding: var(--spacing-sm) 0;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.detail-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.detail-label {
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--color-text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.detail-value {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.detail-link {
|
||||
color: var(--color-link);
|
||||
}
|
||||
|
||||
.profile-content {
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.content-tabs {
|
||||
display: flex;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.content-tabs .tab {
|
||||
flex: 1;
|
||||
padding: var(--spacing-md);
|
||||
color: var(--color-text-secondary);
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
border-bottom: 2px solid transparent;
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.content-tabs .tab:hover {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.content-tabs .tab.active {
|
||||
color: var(--color-primary);
|
||||
border-bottom-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.content-panel {
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
|
||||
.rants-list,
|
||||
.comments-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.empty-message {
|
||||
text-align: center;
|
||||
padding: var(--spacing-lg);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.profile-comment {
|
||||
padding: var(--spacing-md);
|
||||
background-color: var(--color-bg-secondary);
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.profile-comment:hover {
|
||||
background-color: var(--color-bg-tertiary);
|
||||
}
|
||||
|
||||
.profile-comment .comment-meta {
|
||||
display: flex;
|
||||
gap: var(--spacing-sm);
|
||||
margin-top: var(--spacing-sm);
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* @fileoverview Black Theme for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Pure black OLED theme
|
||||
* @keywords theme, black, oled, colors
|
||||
*/
|
||||
|
||||
:root.theme-black,
|
||||
.theme-black {
|
||||
--color-bg: #000000;
|
||||
--color-bg-secondary: #0a0a0a;
|
||||
--color-bg-tertiary: #141414;
|
||||
--color-surface: #0a0a0a;
|
||||
--color-surface-hover: #1a1a1a;
|
||||
--color-border: #2a2a2a;
|
||||
--color-text: #ffffff;
|
||||
--color-text-secondary: #a0a0a0;
|
||||
--color-text-muted: #666666;
|
||||
--color-primary: #e94560;
|
||||
--color-primary-hover: #f85070;
|
||||
--color-secondary: #1a1a1a;
|
||||
--color-success: #4ade80;
|
||||
--color-warning: #fbbf24;
|
||||
--color-error: #f87171;
|
||||
--color-info: #60a5fa;
|
||||
--color-upvote: #4ade80;
|
||||
--color-downvote: #f87171;
|
||||
--color-link: #60a5fa;
|
||||
--color-code-bg: #0a0a0a;
|
||||
--color-overlay: rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* @fileoverview Dark Theme for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Dark color scheme
|
||||
* @keywords theme, dark, colors, scheme
|
||||
*/
|
||||
|
||||
:root.theme-dark,
|
||||
.theme-dark {
|
||||
--color-bg: #1a1a2e;
|
||||
--color-bg-secondary: #16213e;
|
||||
--color-bg-tertiary: #0f3460;
|
||||
--color-surface: #1f1f38;
|
||||
--color-surface-hover: #2a2a4a;
|
||||
--color-border: #3a3a5a;
|
||||
--color-text: #eaeaea;
|
||||
--color-text-secondary: #a0a0b0;
|
||||
--color-text-muted: #707080;
|
||||
--color-primary: #e94560;
|
||||
--color-primary-hover: #f85070;
|
||||
--color-secondary: #0f3460;
|
||||
--color-success: #4ade80;
|
||||
--color-warning: #fbbf24;
|
||||
--color-error: #f87171;
|
||||
--color-info: #60a5fa;
|
||||
--color-upvote: #4ade80;
|
||||
--color-downvote: #f87171;
|
||||
--color-link: #60a5fa;
|
||||
--color-code-bg: #0d1117;
|
||||
--color-overlay: rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* @fileoverview Forest Theme for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Deep forest green theme
|
||||
* @keywords theme, forest, green, colors
|
||||
*/
|
||||
|
||||
:root.theme-forest,
|
||||
.theme-forest {
|
||||
--color-bg: #0d1f0d;
|
||||
--color-bg-secondary: #122912;
|
||||
--color-bg-tertiary: #1a3a1a;
|
||||
--color-surface: #122912;
|
||||
--color-surface-hover: #1e451e;
|
||||
--color-border: #2a5a2a;
|
||||
--color-text: #e8f5e8;
|
||||
--color-text-secondary: #a8c8a8;
|
||||
--color-text-muted: #6a8a6a;
|
||||
--color-primary: #4caf50;
|
||||
--color-primary-hover: #66bb6a;
|
||||
--color-secondary: #1a3a1a;
|
||||
--color-success: #81c784;
|
||||
--color-warning: #ffb74d;
|
||||
--color-error: #e57373;
|
||||
--color-info: #64b5f6;
|
||||
--color-upvote: #81c784;
|
||||
--color-downvote: #e57373;
|
||||
--color-link: #64b5f6;
|
||||
--color-code-bg: #0a160a;
|
||||
--color-overlay: rgba(13, 31, 13, 0.8);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* @fileoverview Light Theme for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Light color scheme
|
||||
* @keywords theme, light, colors, scheme
|
||||
*/
|
||||
|
||||
:root.theme-light,
|
||||
.theme-light {
|
||||
--color-bg: #f5f5f7;
|
||||
--color-bg-secondary: #ffffff;
|
||||
--color-bg-tertiary: #e8e8ec;
|
||||
--color-surface: #ffffff;
|
||||
--color-surface-hover: #f0f0f4;
|
||||
--color-border: #d1d1d6;
|
||||
--color-text: #1c1c1e;
|
||||
--color-text-secondary: #636366;
|
||||
--color-text-muted: #8e8e93;
|
||||
--color-primary: #d63651;
|
||||
--color-primary-hover: #c52d47;
|
||||
--color-secondary: #e8e8ec;
|
||||
--color-success: #34c759;
|
||||
--color-warning: #ff9500;
|
||||
--color-error: #ff3b30;
|
||||
--color-info: #007aff;
|
||||
--color-upvote: #34c759;
|
||||
--color-downvote: #ff3b30;
|
||||
--color-link: #007aff;
|
||||
--color-code-bg: #f6f8fa;
|
||||
--color-overlay: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* @fileoverview Ocean Theme for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Deep ocean blue theme
|
||||
* @keywords theme, ocean, blue, colors
|
||||
*/
|
||||
|
||||
:root.theme-ocean,
|
||||
.theme-ocean {
|
||||
--color-bg: #0a1929;
|
||||
--color-bg-secondary: #0d2137;
|
||||
--color-bg-tertiary: #132f4c;
|
||||
--color-surface: #0d2137;
|
||||
--color-surface-hover: #173a5e;
|
||||
--color-border: #1e4976;
|
||||
--color-text: #e7ebf0;
|
||||
--color-text-secondary: #b2bac2;
|
||||
--color-text-muted: #6f7e8c;
|
||||
--color-primary: #5090d3;
|
||||
--color-primary-hover: #66a6e8;
|
||||
--color-secondary: #132f4c;
|
||||
--color-success: #66bb6a;
|
||||
--color-warning: #ffa726;
|
||||
--color-error: #ef5350;
|
||||
--color-info: #42a5f5;
|
||||
--color-upvote: #66bb6a;
|
||||
--color-downvote: #ef5350;
|
||||
--color-link: #42a5f5;
|
||||
--color-code-bg: #001e3c;
|
||||
--color-overlay: rgba(10, 25, 41, 0.8);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* @fileoverview Sunset Theme for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Warm sunset orange theme
|
||||
* @keywords theme, sunset, orange, colors
|
||||
*/
|
||||
|
||||
:root.theme-sunset,
|
||||
.theme-sunset {
|
||||
--color-bg: #1f1410;
|
||||
--color-bg-secondary: #2a1a14;
|
||||
--color-bg-tertiary: #3d261c;
|
||||
--color-surface: #2a1a14;
|
||||
--color-surface-hover: #453024;
|
||||
--color-border: #5a4030;
|
||||
--color-text: #fef3e8;
|
||||
--color-text-secondary: #d4b8a0;
|
||||
--color-text-muted: #8a7060;
|
||||
--color-primary: #ff7043;
|
||||
--color-primary-hover: #ff8a65;
|
||||
--color-secondary: #3d261c;
|
||||
--color-success: #aed581;
|
||||
--color-warning: #ffca28;
|
||||
--color-error: #ef5350;
|
||||
--color-info: #4fc3f7;
|
||||
--color-upvote: #aed581;
|
||||
--color-downvote: #ef5350;
|
||||
--color-link: #4fc3f7;
|
||||
--color-code-bg: #170e0a;
|
||||
--color-overlay: rgba(31, 20, 16, 0.8);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* @fileoverview White Theme for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Pure white minimalist theme
|
||||
* @keywords theme, white, minimal, colors
|
||||
*/
|
||||
|
||||
:root.theme-white,
|
||||
.theme-white {
|
||||
--color-bg: #ffffff;
|
||||
--color-bg-secondary: #fafafa;
|
||||
--color-bg-tertiary: #f0f0f0;
|
||||
--color-surface: #ffffff;
|
||||
--color-surface-hover: #f5f5f5;
|
||||
--color-border: #e0e0e0;
|
||||
--color-text: #000000;
|
||||
--color-text-secondary: #505050;
|
||||
--color-text-muted: #909090;
|
||||
--color-primary: #c52d47;
|
||||
--color-primary-hover: #a82540;
|
||||
--color-secondary: #f0f0f0;
|
||||
--color-success: #2e8b57;
|
||||
--color-warning: #cc7700;
|
||||
--color-error: #cc3333;
|
||||
--color-info: #0066cc;
|
||||
--color-upvote: #2e8b57;
|
||||
--color-downvote: #cc3333;
|
||||
--color-link: #0066cc;
|
||||
--color-code-bg: #f5f5f5;
|
||||
--color-overlay: rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* @fileoverview CSS Variables for Rantii
|
||||
* @author retoor <retoor@molodetz.nl>
|
||||
* @description Design tokens and CSS custom properties
|
||||
* @keywords css, variables, tokens, design, colors
|
||||
*/
|
||||
|
||||
:root {
|
||||
--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
||||
--font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
|
||||
|
||||
--font-size-xs: 0.75rem;
|
||||
--font-size-sm: 0.875rem;
|
||||
--font-size-md: 1rem;
|
||||
--font-size-lg: 1.125rem;
|
||||
--font-size-xl: 1.25rem;
|
||||
--font-size-2xl: 1.5rem;
|
||||
--font-size-3xl: 2rem;
|
||||
|
||||
--spacing-xs: 0.25rem;
|
||||
--spacing-sm: 0.5rem;
|
||||
--spacing-md: 1rem;
|
||||
--spacing-lg: 1.5rem;
|
||||
--spacing-xl: 2rem;
|
||||
--spacing-2xl: 3rem;
|
||||
|
||||
--radius-sm: 4px;
|
||||
--radius-md: 8px;
|
||||
--radius-lg: 12px;
|
||||
--radius-xl: 16px;
|
||||
--radius-full: 9999px;
|
||||
|
||||
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
|
||||
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
|
||||
--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
|
||||
|
||||
--transition-fast: 150ms ease;
|
||||
--transition-normal: 250ms ease;
|
||||
--transition-slow: 350ms ease;
|
||||
|
||||
--z-dropdown: 100;
|
||||
--z-sticky: 200;
|
||||
--z-modal: 300;
|
||||
--z-toast: 400;
|
||||
|
||||
--header-height: 56px;
|
||||
--nav-width: 240px;
|
||||
--max-content-width: 680px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
:root {
|
||||
--header-height: 52px;
|
||||
--nav-width: 280px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user