Files
psf-memo-client/src/App.css
T

1006 lines
15 KiB
CSS
Raw Normal View History

2026-07-15 12:21:44 -07:00
:root {
--app-bg: #f7f9f9;
--surface: #ffffff;
--surface-hover: #f7f9f9;
--surface-muted: #eff3f4;
--text-primary: #0f1419;
--text-secondary: #536471;
--text-muted: #8b98a5;
--border: #eff3f4;
--border-strong: #cfd9de;
--brand: #1683d8;
--brand-hover: #0876c9;
--brand-soft: rgba(29, 155, 240, 0.1);
--success: #00a884;
--danger: #f4212e;
--content-width: 650px;
--sidebar-width: 260px;
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-round: 9999px;
--shadow-menu:
0 2px 8px rgba(15, 20, 25, 0.08),
0 12px 32px rgba(15, 20, 25, 0.06);
}
/* Base reset */
*,
*::before,
*::after {
box-sizing: border-box;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
html {
min-height: 100%;
scroll-behavior: smooth;
}
body {
min-height: 100%;
margin: 0;
color: var(--text-primary);
background: var(--app-bg);
font-family:
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Helvetica,
Arial,
sans-serif;
font-size: 15px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
#root {
min-height: 100vh;
}
a {
color: inherit;
text-decoration: none;
}
img,
svg {
max-width: 100%;
}
button,
input,
select,
textarea {
font: inherit;
}
/* Main application shell */
2026-06-03 11:02:41 -07:00
.app-container {
min-height: 100vh;
2026-07-15 12:21:44 -07:00
2026-06-03 11:02:41 -07:00
display: flex;
flex-direction: column;
2026-07-15 12:21:44 -07:00
color: var(--text-primary);
background: var(--app-bg);
2026-06-03 11:02:41 -07:00
}
.main-content {
2026-07-15 12:21:44 -07:00
position: relative;
z-index: 1;
2026-06-03 11:02:41 -07:00
flex: 1 0 auto;
2026-07-15 12:21:44 -07:00
width: 100%;
min-height: calc(100vh - 120px);
padding:
calc(var(--navbar-height) + 24px)
16px
56px;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
/*
Center common Bootstrap containers.
This creates a narrow social-media feed instead of a wide dashboard.
*/
.main-content > .container,
.main-content > .container-fluid {
width: 100%;
max-width: 1140px;
margin-inline: auto;
padding-inline: 12px;
2026-06-03 11:02:41 -07:00
2026-07-15 12:21:44 -07:00
text-align: left;
}
.posts-feed,
.posts-feed-container,
.posts-feed-list {
width: 100%;
max-width: 760px;
margin-inline: auto;
text-align: left;
}
.posts-feed-item,
.posts-feed-item-text,
.posts-feed-item-meta,
.posts-feed-item-footer {
width: 100%;
text-align: left;
}
.main-content .row {
margin-inline: 0;
}
.main-content .row > [class*="col"] {
padding-inline: 0;
}
/* Navigation shell */
header,
.header,
.navbar {
position: sticky;
top: 0;
z-index: 1000;
width: 100%;
min-height: 64px;
color: var(--text-primary);
background: rgba(255, 255, 255, 0.97);
border-bottom: 1px solid var(--border);
box-shadow: 0 1px 3px rgba(15, 20, 25, 0.06);
text-align: left;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}
.navbar {
padding: 8px max(16px, calc((100vw - 1100px) / 2));
}
.navbar > .container,
.navbar > .container-fluid {
width: 100%;
max-width: 1100px;
margin-inline: auto;
padding-inline: 0;
}
/* SLP Wallet title */
.navbar-brand,
.header-brand,
.app-brand {
display: inline-flex;
2026-06-03 11:02:41 -07:00
align-items: center;
2026-07-15 12:21:44 -07:00
flex-shrink: 0;
2026-06-03 11:02:41 -07:00
gap: 10px;
2026-07-15 12:21:44 -07:00
margin-right: 20px;
color: var(--text-primary) !important;
font-size: 20px;
font-weight: 750;
letter-spacing: -0.03em;
line-height: 1;
text-align: left;
2026-06-03 11:02:41 -07:00
text-decoration: none;
}
2026-07-15 12:21:44 -07:00
.navbar-brand:hover,
.navbar-brand:focus,
.header-brand:hover,
.app-brand:hover {
color: var(--text-primary) !important;
opacity: 0.75;
}
.navbar-brand img,
.header-brand img,
.app-brand img {
width: 34px;
height: 34px;
object-fit: contain;
border-radius: 9px;
}
/* Navigation links */
.nav-link,
.nav-link-active,
2026-06-03 11:02:41 -07:00
.nav-link-inactive {
2026-07-15 12:21:44 -07:00
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
min-height: 42px;
padding: 8px 14px !important;
color: var(--text-secondary) !important;
background: transparent !important;
border: 0 !important;
border-radius: var(--radius-round);
font-size: 15px;
font-weight: 600;
line-height: 1;
2026-06-03 11:02:41 -07:00
text-decoration: none;
2026-07-15 12:21:44 -07:00
text-align: left;
box-shadow: none !important;
transition:
color 150ms ease,
background-color 150ms ease;
}
.nav-link:hover,
.nav-link-inactive:hover {
color: var(--text-primary) !important;
background: var(--surface-muted) !important;
}
.nav-link.active,
.nav-link-active {
color: var(--text-primary) !important;
background: var(--surface-muted) !important;
font-weight: 700;
}
.nav-link.active::after,
.nav-link-active::after {
content: "";
position: absolute;
right: 14px;
bottom: 3px;
left: 14px;
height: 3px;
background: var(--brand);
border-radius: var(--radius-round);
}
.navbar-toggler {
width: 42px;
height: 42px;
padding: 8px;
color: var(--text-primary);
background: transparent;
border: 1px solid var(--border);
border-radius: 50%;
2026-06-03 11:02:41 -07:00
2026-07-15 12:21:44 -07:00
box-shadow: none;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
.navbar-toggler:focus {
box-shadow: 0 0 0 3px var(--brand-soft);
}
/* Dropdown menus */
.dropdown-menu {
min-width: 220px;
padding: 8px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-menu);
}
.dropdown-item {
padding: 10px 12px;
color: var(--text-primary);
border-radius: var(--radius-sm);
font-size: 14px;
font-weight: 500;
}
.dropdown-item:hover,
.dropdown-item:focus {
color: var(--text-primary);
background: var(--surface-muted);
}
.dropdown-divider {
border-top-color: var(--border);
}
/* General page headings */
.main-content h1 {
margin: 0 0 8px;
color: var(--text-primary);
font-size: clamp(26px, 5vw, 34px);
font-weight: 800;
line-height: 1.15;
letter-spacing: -0.04em;
}
.main-content h2 {
color: var(--text-primary);
font-size: 22px;
font-weight: 750;
letter-spacing: -0.025em;
}
.main-content h3 {
color: var(--text-primary);
font-size: 18px;
font-weight: 700;
}
.text-muted {
color: var(--text-secondary) !important;
}
/* Instagram/X-style content panel */
.content-panel,
.page-panel,
.wallet-panel,
.card {
color: var(--text-primary);
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: none;
}
.card-header,
.card-footer {
background: var(--surface);
border-color: var(--border);
}
.card-header {
padding: 14px 16px;
font-size: 15px;
font-weight: 700;
}
.card-body {
padding: 16px;
}
.card-footer {
padding: 12px 16px;
}
/* Buttons */
.btn,
button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
min-height: 40px;
padding: 8px 16px;
border-radius: var(--radius-round);
font-weight: 700;
line-height: 1;
transition:
background-color 150ms ease,
border-color 150ms ease,
opacity 150ms ease,
transform 100ms ease;
}
.btn-primary {
color: #ffffff;
background: var(--brand);
border-color: var(--brand);
box-shadow: none;
}
.btn-primary:hover,
.btn-primary:focus {
color: #ffffff;
background: var(--brand-hover);
border-color: var(--brand-hover);
box-shadow: none;
}
.btn-outline-primary {
color: var(--brand);
background: transparent;
border-color: var(--border-strong);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
color: var(--brand-hover);
background: var(--brand-soft);
border-color: var(--brand);
}
.btn-outline-dark,
.btn-secondary,
.btn-outline-secondary {
color: var(--text-primary);
background: transparent;
border-color: var(--border-strong);
}
.btn-outline-dark:hover,
.btn-secondary:hover,
.btn-outline-secondary:hover {
color: var(--text-primary);
background: var(--surface-muted);
border-color: var(--border-strong);
}
.btn-danger {
background: var(--danger);
border-color: var(--danger);
}
.btn:active,
button:active {
transform: scale(0.97);
}
.btn:disabled,
button:disabled {
opacity: 0.45;
cursor: not-allowed;
transform: none;
}
/* Forms */
.form-control,
.form-select,
input,
select,
textarea {
width: 100%;
min-height: 44px;
padding: 10px 13px;
color: var(--text-primary);
background: var(--surface);
border: 1px solid var(--border-strong);
border-radius: var(--radius-sm);
outline: none;
box-shadow: none;
transition:
border-color 150ms ease,
box-shadow 150ms ease,
background-color 150ms ease;
}
textarea.form-control,
textarea {
min-height: 110px;
resize: vertical;
}
.form-control:hover,
.form-select:hover,
input:hover,
select:hover,
textarea:hover {
border-color: #aab8c2;
}
.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
color: var(--text-primary);
background: var(--surface);
border-color: var(--brand);
box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
color: var(--text-muted);
}
.form-label,
label {
margin-bottom: 6px;
color: var(--text-primary);
font-size: 14px;
font-weight: 650;
}
/* Alerts */
.alert {
padding: 12px 14px;
border-radius: var(--radius-md);
font-size: 14px;
}
.alert-danger {
color: #b4232c;
background: #fff1f2;
border-color: #ffd3d7;
}
.alert-success {
color: #08785f;
background: #ecfdf8;
border-color: #b8efe1;
}
.text-danger {
color: var(--danger) !important;
}
/* Loading state */
.balance-spinner-container,
.loading-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 180px;
gap: 12px;
color: var(--text-secondary);
}
.spinner-border {
color: var(--brand) !important;
}
/* Startup modal */
.modal-content {
color: var(--text-primary);
background: var(--surface);
border: 0;
border-radius: var(--radius-lg);
box-shadow:
0 8px 30px rgba(15, 20, 25, 0.15),
0 30px 80px rgba(15, 20, 25, 0.12);
}
.modal-header {
padding: 16px 18px;
border-bottom: 1px solid var(--border);
}
.modal-title {
font-size: 19px;
font-weight: 750;
}
.modal-body {
padding: 18px;
color: var(--text-secondary);
}
.modal-footer {
padding: 12px 18px;
border-top: 1px solid var(--border);
}
.modal-backdrop.show {
opacity: 0.48;
}
/* Address control */
2026-06-03 11:02:41 -07:00
#address-switch {
2026-07-15 12:21:44 -07:00
color: var(--brand);
2026-06-03 11:02:41 -07:00
cursor: pointer;
2026-07-15 12:21:44 -07:00
font-weight: 650;
}
#address-switch:hover {
color: var(--brand-hover);
text-decoration: underline;
text-underline-offset: 3px;
}
/* Tables */
.table {
--bs-table-bg: var(--surface);
--bs-table-color: var(--text-primary);
--bs-table-border-color: var(--border);
margin-bottom: 0;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
.table th {
color: var(--text-secondary);
background: var(--surface-muted);
font-size: 12px;
font-weight: 700;
letter-spacing: 0.03em;
text-transform: uppercase;
}
.table td,
.table th {
padding: 12px 14px;
vertical-align: middle;
}
/* Footer */
footer,
.footer {
flex-shrink: 0;
width: 100%;
padding: 22px 16px;
color: var(--text-secondary);
background: var(--surface);
border-top: 1px solid var(--border);
font-size: 13px;
text-align: center;
}
footer a,
.footer a {
color: var(--text-secondary);
font-weight: 600;
}
footer a:hover,
.footer a:hover {
color: var(--brand);
}
/* Remove number input controls */
2026-06-03 11:02:41 -07:00
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
margin: 0;
2026-07-15 12:21:44 -07:00
-webkit-appearance: none;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
input[type="number"] {
appearance: textfield;
-moz-appearance: textfield;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
/* Selection and keyboard navigation */
::selection {
color: var(--text-primary);
background: rgba(29, 155, 240, 0.2);
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
outline: 3px solid var(--brand-soft);
outline-offset: 2px;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
/* Desktop */
@media (min-width: 992px) {
.main-content {
padding-top: 32px;
}
/*
Optional wide layouts can override the narrow social-feed width
by adding className="wide-page" to a page container.
*/
.main-content > .wide-page {
width: min(100%, 1100px);
}
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
/* Mobile */
@media (max-width: 767px) {
body {
background: var(--surface);
}
.main-content {
padding: 14px 0 36px;
}
.main-content > .container,
.main-content > .container-fluid {
width: 100%;
padding-inline: 0;
}
header,
.header,
.navbar {
min-height: 56px;
}
.navbar {
padding: 7px 12px;
}
.navbar-brand,
.header-brand,
.app-brand {
font-size: 18px;
}
.navbar-collapse {
margin-top: 8px;
padding: 8px 0 12px;
background: var(--surface);
}
.navbar-nav {
align-items: stretch;
}
.nav-link,
.nav-link-active,
.nav-link-inactive {
justify-content: flex-start;
min-height: 44px;
padding-inline: 14px !important;
border-radius: var(--radius-sm);
}
.nav-link.active::after,
.nav-link-active::after {
display: none;
}
.card,
.content-panel,
.page-panel,
.wallet-panel {
border-right: 0;
border-left: 0;
border-radius: 0;
}
footer,
.footer {
padding: 20px 12px;
}
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
transition-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
}
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
:root {
--navbar-height: 64px;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
.main-content {
position: relative;
z-index: 1;
padding-top: calc(var(--navbar-height) + 24px);
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
.recent-posts-heading {
position: relative;
z-index: 2;
width: 100%;
max-width: 760px;
margin: 0 auto 24px;
padding: 0;
text-align: left;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
.recent-posts-heading h1,
.recent-posts-heading p,
.recent-posts-heading span {
text-align: left;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
.recent-posts-heading p {
margin-left: 0;
margin-right: 0;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
.posts-feed {
position: relative;
z-index: 1;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
.posts-feed-item {
position: relative;
z-index: 1;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
@media (max-width: 767px) {
:root {
--navbar-height: 56px;
}
.main-content {
padding:
calc(var(--navbar-height) + 14px)
0
36px;
}
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
/* Final navbar alignment and color overrides */
.navbar,
.header {
text-align: left !important;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
/* Keep SLP WALLET visible on the dark navbar */
.navbar-brand,
.navbar-brand:hover,
.navbar-brand:focus,
.header-brand,
.app-brand {
color: #ffffff !important;
text-align: left !important;
opacity: 1;
}
/* Keep the entire navbar content aligned left */
.navbar > .container,
.navbar > .container-fluid {
display: flex !important;
align-items: center !important;
justify-content: flex-start !important;
2026-06-03 11:02:41 -07:00
width: 100%;
2026-07-15 12:21:44 -07:00
max-width: 1140px;
margin: 0 auto;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
/* Place menu directly after the brand */
.navbar-collapse {
flex-grow: 0;
text-align: left !important;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
.navbar-nav {
display: flex !important;
justify-content: flex-start !important;
margin-left: 0 !important;
margin-right: auto !important;
text-align: left !important;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
/* Menu item text */
.navbar-nav .nav-link,
.nav-link-active,
.nav-link-inactive {
justify-content: flex-start !important;
text-align: left !important;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
/* Dark navbar link colors */
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .nav-link-active,
.navbar-dark .nav-link-inactive {
color: rgba(255, 255, 255, 0.82) !important;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .nav-link-inactive:hover {
color: #ffffff !important;
background: rgba(255, 255, 255, 0.1) !important;
}
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .nav-link-active {
color: #ffffff !important;
background: rgba(255, 255, 255, 0.14) !important;
}
/* Mobile expanded menu */
@media (max-width: 767px) {
.navbar-collapse {
width: 100%;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
.navbar-nav {
width: 100%;
align-items: stretch !important;
2026-06-03 11:02:41 -07:00
}
2026-07-15 12:21:44 -07:00
.navbar-nav .nav-link,
.nav-link-active,
.nav-link-inactive {
width: 100%;
justify-content: flex-start !important;
text-align: left !important;
2026-06-03 11:02:41 -07:00
}
}