unrhodecode/rhodecode/public/css/styleguide.css
russell@unturf.com 722c3bd369 Prototype: OTP auth, styleguide overhaul, login/session rework
Replace password reset with email OTP verification flow.
Add auth_otp module, OTP templates, and email delivery.
Expand styleguide CSS with full component library.
Rework login, register, and admin views for cookie sessions.
Remove legacy 2FA templates and password reset flow.
Update SSH wrappers, forms, validators, and middleware.
2026-03-04 16:44:40 -05:00

3360 lines
75 KiB
CSS

/* RhodeCode Style Guide — Pure CSS, CSS Grid, No Preprocessors */
/* Capability-Driven Presentation: content for everyone, interactivity for those who can handle it */
/* ========================================================================
DESIGN TOKENS
======================================================================== */
:root {
/* Colors */
--bg: #fafafa;
--surface: #ffffff;
--surface-alt: #f3f4f6;
--border: #e0e0e0;
--border-focus: #2563eb;
--text: #1a1a1a;
--text-muted: #6b7280;
--text-inverse: #ffffff;
--accent: #2563eb;
--accent-hover: #1d4ed8;
--accent-light: #dbeafe;
--success: #059669;
--success-light: #d1fae5;
--warning: #d97706;
--warning-light: #fef3c7;
--danger: #dc2626;
--danger-light: #fee2e2;
--info: #2563eb;
--info-light: #dbeafe;
/* Typography */
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
--font-mono: 'Berkeley Mono', 'JetBrains Mono', 'Fira Code', 'Consolas', 'DejaVu Sans Mono', 'Ubuntu Mono', monospace;
--font-size: 15px;
--line-height: 1.5;
/* Spacing scale (4px base) */
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 24px;
--space-6: 32px;
--space-7: 48px;
--space-8: 64px;
/* Borders */
--radius-sm: 3px;
--radius-md: 6px;
--radius-lg: 10px;
--border-width: 1px;
/* Shadows */
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
/* Layout */
--content-max: 1200px;
--sidebar-width: 260px;
/* Header */
--header-bg: #1a1a2e;
--header-text: #ffffff;
}
/* ========================================================================
RESET & BASE — applies to all pages
======================================================================== */
*, *::before, *::after {
box-sizing: border-box;
}
html {
font-size: var(--font-size);
line-height: var(--line-height);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
margin: 0;
padding: 0;
font-family: var(--font-sans);
font-size: var(--font-size);
color: var(--text);
background: var(--bg);
}
a {
color: var(--accent);
text-decoration: none;
}
a:hover {
text-decoration: underline;
color: var(--accent-hover);
}
img {
max-width: 100%;
height: auto;
}
h1, h2, h3, h4, h5, h6 {
line-height: 1.3;
font-weight: 600;
}
/* ========================================================================
APP LAYOUT — targets actual RhodeCode template markup
======================================================================== */
/* --- Main page structure --- */
.outerwrapper {
min-height: 100vh;
}
.wrapper {
max-width: var(--content-max);
margin: 0 auto;
padding: 0 var(--space-4);
}
/* --- Header --- */
.header {
background: var(--header-bg);
border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.1);
position: sticky;
top: 0;
z-index: 100;
}
.header #header-inner {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: var(--space-4);
padding: var(--space-2) var(--space-4);
max-width: var(--content-max);
margin: 0 auto;
}
#logo {
display: grid;
grid-template-columns: auto auto;
align-items: center;
gap: var(--space-3);
}
#logo .logo-wrapper a {
display: block;
line-height: 0;
}
#logo .logo-wrapper img {
height: 32px;
width: auto;
}
#logo .branding a {
color: var(--header-text);
font-weight: 600;
font-size: 1rem;
text-decoration: none;
}
/* --- Navigation --- */
ul.main_nav,
ul.navigation,
ul.horizontal-list {
list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-auto-flow: column;
grid-auto-columns: auto;
gap: var(--space-1);
align-items: center;
}
.header .menulink,
.header .menulink a {
color: rgba(255, 255, 255, 0.7);
text-decoration: none;
padding: var(--space-2) var(--space-3);
border-radius: var(--radius-sm);
font-size: 0.875rem;
font-weight: 500;
transition: color 0.15s, background 0.15s;
display: block;
}
.header .menulink:hover,
.header .menulink a:hover {
color: var(--header-text);
background: rgba(255, 255, 255, 0.15);
text-decoration: none;
}
/* Active nav item */
.header li.active .menulink,
.header li.active .menulink a {
color: var(--header-text);
background: rgba(255, 255, 255, 0.12);
}
.menulabel {
font-size: 0.875rem;
}
/* Suppress native title tooltips on nav elements */
.header [title] {
pointer-events: auto;
}
.header .menulink[title]::after {
display: none;
}
/* --- Search / goto bar --- */
.main_filter_box {
justify-self: center;
}
.main_filter_input_box {
position: relative;
}
#main_filter {
padding: var(--space-2) var(--space-3);
padding-left: var(--space-5);
font-family: var(--font-sans);
font-size: 0.875rem;
color: var(--text);
background: rgba(255, 255, 255, 0.9);
border: var(--border-width) solid rgba(255, 255, 255, 0.3);
border-radius: var(--radius-md);
width: 320px;
transition: width 0.2s, background 0.15s;
}
#main_filter:focus {
width: 400px;
background: var(--surface);
border-color: var(--accent);
outline: none;
box-shadow: 0 0 0 3px var(--accent-light);
}
#main_filter::placeholder {
color: var(--text-muted);
}
/* --- Context bar (repo, admin subnav) --- */
#context-bar {
background: var(--surface);
border-bottom: var(--border-width) solid var(--border);
padding: 0 var(--space-4);
}
#context-bar .wrapper {
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
gap: var(--space-4);
}
#context-bar .title {
padding: var(--space-3) 0;
}
#context-bar .title-content {
font-weight: 600;
font-size: 0.9375rem;
}
#context-bar ul.navigation {
justify-self: start;
}
#context-bar .navigation li {
list-style: none;
}
#context-bar .navigation a {
display: block;
padding: var(--space-2) var(--space-3);
color: var(--text-muted);
text-decoration: none;
font-size: 0.8125rem;
font-weight: 500;
border-bottom: 2px solid transparent;
transition: color 0.15s, border-color 0.15s;
}
#context-bar .navigation a:hover {
color: var(--text);
border-bottom-color: var(--border);
text-decoration: none;
}
#context-bar .navigation a.current,
#context-bar .navigation li.active a {
color: var(--accent);
border-bottom-color: var(--accent);
}
/* --- Main content area --- */
#content {
padding: var(--space-5) var(--space-4);
}
#content .main {
max-width: var(--content-max);
margin: 0 auto;
}
/* ========================================================================
PAGE LAYOUT — left sidebar + content
======================================================================== */
.page-with-sidebar {
display: grid;
grid-template-columns: 200px 1fr;
gap: var(--space-5);
align-items: start;
}
/* Left sidebar nav */
.page-sidebar {
position: sticky;
top: var(--space-4);
padding-right: var(--space-3);
border-right: var(--border-width) solid var(--border);
}
.sidebar-section {
margin-bottom: var(--space-4);
}
.sidebar-heading {
font-size: 0.6875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-muted);
padding: 0 var(--space-2);
margin: 0 0 var(--space-2) 0;
}
.sidebar-nav {
list-style: none;
margin: 0;
padding: 0;
}
.sidebar-nav li a {
display: grid;
grid-template-columns: 18px 1fr;
gap: var(--space-2);
align-items: center;
padding: var(--space-1) var(--space-2);
color: var(--text-muted);
text-decoration: none;
font-size: 0.8125rem;
border-radius: var(--radius-sm);
transition: color 0.15s, background 0.15s;
}
.sidebar-nav li a:hover {
color: var(--text);
background: var(--surface-alt);
text-decoration: none;
}
.sidebar-nav li a i {
font-size: 0.75rem;
text-align: center;
color: var(--text-muted);
}
.sidebar-nav li a:hover i {
color: var(--accent);
}
.sidebar-nav li.active a {
color: var(--accent);
background: var(--accent-light);
font-weight: 600;
}
.sidebar-nav li.active a i {
color: var(--accent);
}
/* Hide old horizontal admin sub-nav if rendered */
#context-bar { display: none; }
.page-content {
min-width: 0;
}
@media (max-width: 768px) {
.page-with-sidebar {
grid-template-columns: 1fr;
}
.page-sidebar {
position: static;
border-right: none;
border-bottom: var(--border-width) solid var(--border);
padding-right: 0;
padding-bottom: var(--space-3);
}
.sidebar-nav {
display: grid;
grid-auto-flow: column;
grid-auto-columns: auto;
gap: var(--space-1);
overflow-x: auto;
}
}
/* --- Footer — old ID-based styles replaced by .site-footer in FOOTER section --- */
/* --- Hide keyboard shortcuts modal (binding disabled, CSS safety net) --- */
#help_kb { display: none !important; }
/* --- Admin dashboard --- */
.admin-dashboard h2 {
font-size: 1.25rem;
font-weight: 600;
margin: 0 0 var(--space-4);
color: var(--text);
}
.admin-dashboard h3 {
font-size: 0.9375rem;
font-weight: 600;
margin: 0 0 var(--space-3);
color: var(--text);
}
.dashboard-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: var(--space-3);
margin-bottom: var(--space-5);
}
.dashboard-card {
display: grid;
gap: var(--space-1);
padding: var(--space-4);
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
text-decoration: none;
text-align: center;
transition: border-color 0.15s, box-shadow 0.15s;
}
.dashboard-card:hover {
border-color: var(--accent);
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
text-decoration: none;
}
.dashboard-card-count {
font-size: 2rem;
font-weight: 700;
color: var(--accent);
line-height: 1;
}
.dashboard-card-label {
font-size: 0.8125rem;
color: var(--text-muted);
font-weight: 500;
}
.dashboard-actions {
padding-top: var(--space-4);
border-top: 1px solid var(--border);
}
.dashboard-action-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: var(--space-2);
}
/* --- User menu --- */
#quick_login_link {
display: grid;
grid-template-columns: auto auto;
align-items: center;
gap: var(--space-2);
color: var(--header-text);
text-decoration: none;
padding: var(--space-1) var(--space-2);
border-radius: var(--radius-sm);
cursor: pointer;
}
#quick_login_link:hover {
background: rgba(255, 255, 255, 0.1);
text-decoration: none;
}
#quick_login_link .menu_link_user {
font-size: 0.875rem;
font-weight: 500;
}
#quick_login_link .show_more {
display: inline-block;
width: 0;
height: 0;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid currentColor;
margin-left: 2px;
vertical-align: middle;
}
.gravatar {
border-radius: 50%;
vertical-align: middle;
}
/* --- Dropdowns / submenus (shared) --- */
.submenu {
position: absolute;
top: 100%;
right: 0;
background: var(--surface);
border: var(--border-width) solid var(--border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
z-index: 200;
min-width: 200px;
padding: var(--space-2) 0;
}
.submenu ol,
.submenu ul {
list-style: none;
margin: 0;
padding: 0;
}
.submenu li {
list-style: none;
}
.submenu li a {
display: block;
padding: var(--space-2) var(--space-4);
color: var(--text);
font-size: 0.8125rem;
text-decoration: none;
transition: background 0.1s;
}
.submenu li a:hover {
background: var(--surface-alt);
color: var(--accent);
text-decoration: none;
}
/* --- Submenu section titles --- */
.submenu .submenu-title,
.submenu li.submenu-title {
font-size: 0.6875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
padding: var(--space-3) var(--space-4) var(--space-1);
}
/* ========================================================================
LOGIN PAGE — standalone layout (inherits root.mako, not base.mako)
======================================================================== */
.loginbox {
min-height: 100vh;
display: grid;
grid-template-rows: auto auto 1fr;
background: var(--surface-alt);
}
.header-account {
background: var(--header-bg);
padding: var(--space-4) var(--space-5);
}
.header-account .title {
max-width: var(--content-max);
margin: 0 auto;
}
.header-account #logo {
display: grid;
grid-template-columns: auto auto;
align-items: center;
gap: var(--space-3);
}
.header-account #logo img {
height: 40px;
width: auto;
}
.header-account .branding a {
color: var(--header-text);
font-weight: 600;
font-size: 1.125rem;
text-decoration: none;
}
.loginwrapper {
display: grid;
grid-template-columns: 1fr minmax(340px, 420px);
align-items: center;
gap: var(--space-7);
max-width: 900px;
margin: 0 auto;
padding: var(--space-7) var(--space-5);
}
/* Single-column loginwrapper when no auth-image */
.loginwrapper:not(:has(.auth-image-wrapper)) {
grid-template-columns: minmax(340px, 520px);
justify-content: center;
}
.auth-image-wrapper {
justify-self: center;
}
.sign-in-image {
max-width: 300px;
height: auto;
opacity: 0.9;
}
#login,
#register {
background: var(--surface);
border: var(--border-width) solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
padding: var(--space-6);
}
.sign-in-title h1 {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: var(--space-5);
color: var(--text);
}
#login .inner.form label,
#register .inner.form label {
display: block;
font-size: 0.875rem;
font-weight: 500;
color: var(--text);
margin-bottom: var(--space-1);
margin-top: var(--space-4);
}
#login .inner.form label:first-of-type,
#register .inner.form label:first-of-type {
margin-top: 0;
}
#login .inner.form input[type="text"],
#login .inner.form input[type="password"],
#register .inner.form input[type="text"],
#register .inner.form input[type="password"] {
display: block;
width: 100%;
padding: var(--space-2) var(--space-3);
font-family: var(--font-sans);
font-size: 0.9375rem;
color: var(--text);
background: var(--surface);
border: var(--border-width) solid var(--border);
border-radius: var(--radius-sm);
transition: border-color 0.15s, box-shadow 0.15s;
}
#login .inner.form input[type="text"]:focus,
#login .inner.form input[type="password"]:focus,
#register .inner.form input[type="text"]:focus,
#register .inner.form input[type="password"]:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-light);
}
#login .inner.form input[type="checkbox"],
#register .inner.form input[type="checkbox"] {
margin-right: var(--space-2);
vertical-align: middle;
}
#login .inner.form label.checkbox,
#register .inner.form label.checkbox {
display: inline;
font-weight: 400;
color: var(--text-muted);
font-size: 0.875rem;
margin-top: var(--space-3);
}
#login .inner.form .pull-right,
#register .inner.form .pull-right {
float: right;
font-size: 0.8125rem;
}
#login .inner.form .pwd_reset {
color: var(--accent);
font-size: 0.8125rem;
}
#login .inner.form .links,
#register .inner.form .links {
margin-top: var(--space-4);
font-size: 0.875rem;
}
#login .inner.form .links a,
#register .inner.form .links a {
color: var(--accent);
}
#login .inner.form .help-block,
#register .inner.form .help-block {
margin-top: var(--space-3);
font-size: 0.8125rem;
color: var(--text-muted);
line-height: 1.5;
}
#login .error-message,
#register .error-message {
color: var(--danger);
font-size: 0.8125rem;
margin-top: var(--space-1);
}
/* --- Sign in button --- */
.btn.sign-in {
display: block;
width: 100%;
padding: var(--space-3);
margin-top: var(--space-5);
font-family: var(--font-sans);
font-size: 0.9375rem;
font-weight: 600;
color: var(--text-inverse);
background: var(--accent);
border: none;
border-radius: var(--radius-sm);
cursor: pointer;
transition: background 0.15s;
}
.btn.sign-in:hover {
background: var(--accent-hover);
}
/* ========================================================================
NOTIFICATIONS / TOASTS
======================================================================== */
rhodecode-toast {
display: block;
}
.noscript-error {
padding: var(--space-4);
background: var(--warning-light);
color: #92400e;
text-align: center;
font-size: 0.875rem;
border-bottom: var(--border-width) solid var(--warning);
}
/* ========================================================================
GENERIC FORM ELEMENTS — applies wherever forms appear
======================================================================== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="number"],
select,
textarea {
font-family: var(--font-sans);
font-size: 0.875rem;
color: var(--text);
border: var(--border-width) solid var(--border);
border-radius: var(--radius-sm);
padding: var(--space-2) var(--space-3);
background: var(--surface);
transition: border-color 0.15s, box-shadow 0.15s;
box-sizing: border-box;
}
/* Native select — always single-line dropdown */
select {
height: 36px;
appearance: auto;
cursor: pointer;
}
/* .medium class used by RhodeCode form helpers */
select.medium {
min-width: 200px;
max-width: 360px;
}
input.medium {
min-width: 200px;
max-width: 360px;
width: 100%;
}
textarea.medium {
min-width: 200px;
max-width: 480px;
width: 100%;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-light);
}
/* ========================================================================
BUTTONS — generic .btn and common button styles
======================================================================== */
.btn {
display: inline-block;
padding: var(--space-2) var(--space-4);
font-family: var(--font-sans);
font-size: 0.875rem;
font-weight: 500;
line-height: 1.5;
border: var(--border-width) solid transparent;
border-radius: var(--radius-sm);
cursor: pointer;
transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
text-decoration: none;
white-space: nowrap;
text-align: center;
}
.btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.btn-primary,
.btn-action {
background: var(--accent);
color: var(--text-inverse);
border-color: var(--accent);
}
.btn-primary:hover,
.btn-action:hover {
background: var(--accent-hover);
border-color: var(--accent-hover);
text-decoration: none;
color: var(--text-inverse);
}
.btn-secondary,
.btn-default {
background: var(--surface);
color: var(--text);
border-color: var(--border);
}
.btn-secondary:hover,
.btn-default:hover {
background: var(--surface-alt);
border-color: var(--border-focus);
text-decoration: none;
}
.btn-danger {
background: var(--danger);
color: var(--text-inverse);
border-color: var(--danger);
}
.btn-danger:hover {
background: #b91c1c;
border-color: #b91c1c;
text-decoration: none;
color: var(--text-inverse);
}
.btn-ghost {
background: transparent;
color: var(--accent);
border-color: transparent;
}
.btn-ghost:hover {
background: var(--accent-light);
}
.btn-sm {
padding: var(--space-1) var(--space-3);
font-size: 0.8125rem;
}
.btn-lg {
padding: var(--space-3) var(--space-5);
font-size: 1rem;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* ========================================================================
ALERTS / FLASH MESSAGES
======================================================================== */
.alert {
padding: var(--space-3) var(--space-4);
border-radius: var(--radius-md);
font-size: 0.875rem;
border: var(--border-width) solid transparent;
margin-bottom: var(--space-3);
}
.alert-success {
background: var(--success-light);
border-color: var(--success);
color: #065f46;
}
.alert-warning {
background: var(--warning-light);
border-color: var(--warning);
color: #92400e;
}
.alert-danger,
.alert-error {
background: var(--danger-light);
border-color: var(--danger);
color: #991b1b;
}
.alert-info {
background: var(--info-light);
border-color: var(--info);
color: #1e40af;
}
.alert .alert-dismiss {
float: right;
background: none;
border: none;
cursor: pointer;
font-size: 1.25rem;
line-height: 1;
opacity: 0.6;
color: inherit;
}
.alert .alert-dismiss:hover {
opacity: 1;
}
/* ========================================================================
CARDS / PANELS — used across admin, settings, etc.
======================================================================== */
.card,
.panel,
.panel-default {
background: var(--surface);
border: var(--border-width) solid var(--border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-sm);
margin-bottom: var(--space-4);
}
.card-header,
.panel-heading {
padding: var(--space-3) var(--space-4);
border-bottom: var(--border-width) solid var(--border);
font-weight: 600;
font-size: 0.9375rem;
background: var(--surface-alt);
border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.card-body,
.panel-body {
padding: var(--space-4);
}
.card-footer,
.panel-footer {
padding: var(--space-3) var(--space-4);
border-top: var(--border-width) solid var(--border);
background: var(--surface-alt);
border-radius: 0 0 var(--radius-md) var(--radius-md);
}
/* ========================================================================
TABLES
======================================================================== */
table {
width: 100%;
border-collapse: collapse;
font-size: 0.875rem;
}
table th {
text-align: left;
padding: var(--space-3) var(--space-4);
background: var(--surface-alt);
font-weight: 600;
font-size: 0.8125rem;
color: var(--text-muted);
border-bottom: 2px solid var(--border);
}
table td {
padding: var(--space-3) var(--space-4);
border-bottom: var(--border-width) solid var(--border);
}
table tr:hover td {
background: var(--surface-alt);
}
/* ========================================================================
BADGES / TAGS
======================================================================== */
.badge,
.tag {
display: inline-block;
padding: var(--space-1) var(--space-2);
font-size: 0.75rem;
font-weight: 600;
line-height: 1;
border-radius: var(--radius-sm);
white-space: nowrap;
}
.badge-accent { background: var(--accent-light); color: #1e40af; }
.badge-success { background: var(--success-light); color: #065f46; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-danger { background: var(--danger-light); color: #991b1b; }
.badge-neutral { background: var(--surface-alt); color: var(--text-muted); }
/* ========================================================================
CODE BLOCKS
======================================================================== */
code {
font-family: var(--font-mono);
font-size: 0.875em;
background: var(--surface-alt);
padding: 0.1em 0.3em;
border-radius: var(--radius-sm);
}
pre {
font-family: var(--font-mono);
font-size: 0.8125rem;
line-height: 1.6;
background: var(--surface-alt);
padding: var(--space-4);
border-radius: var(--radius-md);
overflow-x: auto;
border: var(--border-width) solid var(--border);
}
pre code {
background: none;
padding: 0;
}
/* ========================================================================
DIFF BLOCKS
======================================================================== */
.diff-block {
font-family: var(--font-mono);
font-size: 0.8125rem;
line-height: 1.6;
border: var(--border-width) solid var(--border);
border-radius: var(--radius-md);
overflow: hidden;
}
.diff-header {
padding: var(--space-3) var(--space-4);
background: var(--surface-alt);
font-weight: 600;
border-bottom: var(--border-width) solid var(--border);
}
.diff-add { background: #dcfce7; }
.diff-del { background: #fee2e2; }
/* ========================================================================
SEARCH BAR — main_filter in header
======================================================================== */
.searchItems {
list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-template-columns: auto auto 1fr auto;
align-items: center;
background: rgba(255, 255, 255, 0.9);
border: var(--border-width) solid rgba(255, 255, 255, 0.3);
border-radius: var(--radius-md);
padding: 0 var(--space-2);
}
.searchItems:focus-within {
background: var(--surface);
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-light);
}
.searchTagIcon {
color: var(--text-muted);
padding: var(--space-1) var(--space-2);
font-size: 0.875rem;
}
.searchTagFilter {
padding: var(--space-1);
}
.searchTagFilter .tag {
display: inline-block;
padding: var(--space-1) var(--space-2);
background: var(--accent-light);
color: #1e40af;
border-radius: var(--radius-sm);
font-size: 0.75rem;
font-weight: 500;
}
.searchTagFilter .tag a {
color: #1e40af;
margin-left: var(--space-1);
}
.searchTagInput {
min-width: 0;
}
.searchTagInput input.main_filter_input {
border: none;
background: transparent;
padding: var(--space-2) var(--space-2);
font-size: 0.875rem;
width: 100%;
min-width: 200px;
outline: none;
box-shadow: none;
}
.searchTagInput input.main_filter_input:focus {
box-shadow: none;
border: none;
}
.searchTagHelp a {
color: var(--text-muted);
font-size: 0.75rem;
padding: var(--space-1) var(--space-2);
text-decoration: none;
}
.searchTagHidable {
/* only show when active */
}
#main_filter_help {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: var(--surface);
border: var(--border-width) solid var(--border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
padding: var(--space-4);
font-size: 0.8125rem;
color: var(--text);
line-height: 1.7;
z-index: 300;
white-space: pre-line;
max-width: 500px;
}
/* ========================================================================
USER MENU — dropdown in header
======================================================================== */
#quick_login_li {
position: relative;
}
.user-menu.submenu {
right: 0;
min-width: 260px;
padding: 0;
display: none;
}
#quick_login_li:hover .user-menu.submenu,
#quick_login_li:focus-within .user-menu.submenu {
display: block;
}
#quick_login {
padding: 0;
}
/* User header (avatar, name, email) */
.user-menu-header {
padding: var(--space-4);
text-align: center;
border-bottom: 1px solid var(--border);
}
.user-menu-header .big_gravatar {
margin-bottom: var(--space-2);
}
.user-menu-header .big_gravatar img {
border-radius: 50%;
width: 48px;
height: 48px;
}
.user-menu-header .full_name {
font-weight: 600;
font-size: 0.9375rem;
color: var(--text);
}
.user-menu-header .email {
font-size: 0.8125rem;
color: var(--text-muted);
}
/* Navigation links */
.user-menu-links {
display: grid;
padding: var(--space-2) 0;
border-bottom: 1px solid var(--border);
}
.user-menu-links a {
display: block;
padding: var(--space-2) var(--space-4);
color: var(--text);
font-size: 0.8125rem;
text-decoration: none;
}
.user-menu-links a:hover {
background: var(--surface-alt);
color: var(--accent);
text-decoration: none;
}
/* Bookmarks section */
.user-menu-bookmarks {
padding: var(--space-2) 0;
border-bottom: 1px solid var(--border);
}
.user-menu-bookmarks-header {
display: grid;
grid-template-columns: 1fr auto;
align-items: center;
padding: var(--space-1) var(--space-4);
font-size: 0.6875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
}
.user-menu-bookmarks-header a {
color: var(--text-muted);
text-decoration: none;
}
.user-menu-bookmarks-header a:hover {
color: var(--accent);
}
.user-menu-bookmarks .bookmark-item {
display: block;
padding: var(--space-1) var(--space-4);
color: var(--text);
font-size: 0.8125rem;
text-decoration: none;
}
.user-menu-bookmarks .bookmark-item:hover {
background: var(--surface-alt);
color: var(--accent);
text-decoration: none;
}
.user-menu-bookmarks .bookmark-item code {
font-family: var(--font-mono);
font-size: 0.75rem;
background: var(--surface-alt);
padding: 1px 4px;
border-radius: 2px;
margin-right: var(--space-1);
}
/* Sign out */
.user-menu-logout {
padding: var(--space-3) var(--space-4);
}
.user-menu-logout form {
margin: 0;
}
.btn-signout {
display: block;
width: 100%;
padding: var(--space-2);
font-size: 0.8125rem;
font-weight: 500;
text-align: center;
color: var(--text);
background: var(--surface-alt);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
cursor: pointer;
font-family: inherit;
}
.btn-signout:hover {
background: var(--danger-light);
color: var(--danger);
border-color: var(--danger);
}
/* --- Action menu (+) --- */
.action-menu.submenu {
display: none;
left: auto;
right: 0;
min-width: 220px;
padding: var(--space-2) 0;
}
.action-menu.submenu ol {
list-style: none;
padding: 0;
margin: 0;
}
.action-menu.submenu .submenu-title {
padding: var(--space-3) var(--space-4) var(--space-1);
font-size: 0.6875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted);
}
.action-menu.submenu ol li a {
display: block;
padding: var(--space-2) var(--space-4);
color: var(--text);
font-size: 0.875rem;
text-decoration: none;
}
.action-menu.submenu ol li a:hover {
background: var(--surface-alt);
text-decoration: none;
}
li:hover > .action-menu.submenu {
display: block;
}
/* --- Notification badge --- */
#quick li a.empty {
color: rgba(255, 255, 255, 0.4);
}
#quick li a:not(.empty):not(.menulink) {
color: var(--header-text);
background: var(--accent);
padding: var(--space-1) var(--space-2);
border-radius: var(--radius-sm);
font-size: 0.75rem;
font-weight: 600;
min-width: 20px;
text-align: center;
text-decoration: none;
}
/* --- Notice messages --- */
.notice-messages-container {
position: absolute;
top: 100%;
right: 0;
background: var(--surface);
border: var(--border-width) solid var(--border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
z-index: 200;
min-width: 400px;
max-width: 600px;
padding: var(--space-3);
}
.menulabel-notice {
padding: var(--space-1) var(--space-2);
border-radius: var(--radius-sm);
font-size: 0.75rem;
font-weight: 600;
min-width: 20px;
text-align: center;
color: var(--header-text);
}
.menulabel-notice.warning { background: var(--warning); }
.menulabel-notice.error { background: var(--danger); }
.menulabel-notice.info { background: var(--accent); }
/* ========================================================================
DASHBOARD / CONTENT BOXES
======================================================================== */
.box {
background: var(--surface);
border-radius: var(--radius-md);
}
.box > .title {
padding: var(--space-4) 0;
font-size: 1.125rem;
font-weight: 600;
}
/* --- Empty state --- */
#no_grid_data {
text-align: center;
padding: var(--space-8) var(--space-5);
}
#no_grid_data h2 {
font-size: 1.125rem;
font-weight: 500;
color: var(--text-muted);
margin: 0;
}
#grid_data_loading {
text-align: center;
padding: var(--space-7) var(--space-5);
color: var(--text-muted);
font-size: 0.9375rem;
}
/* --- DataTables overrides --- */
.dataTables_wrapper {
font-size: 0.875rem;
}
.dataTables_paginate {
padding: var(--space-3) 0;
text-align: center;
}
.dataTables_paginate .paginate_button {
display: inline-block;
padding: var(--space-1) var(--space-3);
margin: 0 var(--space-1);
border-radius: var(--radius-sm);
font-size: 0.8125rem;
cursor: pointer;
color: var(--text);
text-decoration: none;
}
.dataTables_paginate .paginate_button:hover {
background: var(--surface-alt);
}
.dataTables_paginate .paginate_button.current {
background: var(--accent);
color: var(--text-inverse);
font-weight: 600;
}
.dataTables_paginate .paginate_button.disabled {
color: var(--text-muted);
opacity: 0.5;
cursor: default;
}
/* --- Quick repo menu --- */
.quick_repo_menu {
width: 30px;
text-align: center;
}
/* ========================================================================
ICONS (icon font overrides)
======================================================================== */
[class^="icon-"],
[class*=" icon-"] {
font-style: normal;
line-height: 1;
vertical-align: middle;
}
.icon-plus-circled {
font-size: 1.125rem;
color: rgba(255, 255, 255, 0.8);
}
.icon-plus-circled:hover {
color: var(--header-text);
}
.show_more {
display: inline-block;
width: 0;
height: 0;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid rgba(255, 255, 255, 0.6);
vertical-align: middle;
margin-left: var(--space-1);
}
/* ========================================================================
RC-SPECIFIC TABLES
======================================================================== */
.rctable {
width: 100%;
border-collapse: collapse;
font-size: 0.875rem;
}
.rctable th {
text-align: left;
padding: var(--space-3) var(--space-4);
background: var(--surface-alt);
font-weight: 600;
font-size: 0.8125rem;
color: var(--text-muted);
border-bottom: 2px solid var(--border);
}
.rctable td {
padding: var(--space-3) var(--space-4);
border-bottom: var(--border-width) solid var(--border);
}
.rctable tr:hover td {
background: var(--surface-alt);
}
/* ========================================================================
SIDEBAR + CONTENT LAYOUT — admin, my_account, settings pages
======================================================================== */
.sidebar-col-wrapper {
display: grid;
grid-template-columns: 220px 1fr;
gap: var(--space-5);
align-items: start;
}
.sidebar-col-wrapper.scw-small {
grid-template-columns: 200px 1fr;
}
.sidebar {
position: sticky;
top: 60px;
}
.main-content-full-width {
min-width: 0;
}
/* --- Vertical nav (nav-pills nav-stacked) — sidebar navigation --- */
.nav.nav-pills.nav-stacked,
.sidebar ul.nav {
list-style: none;
padding: 0;
margin: 0;
display: grid;
gap: var(--space-1);
}
.nav.nav-pills.nav-stacked li a,
.sidebar ul.nav li a {
display: block;
padding: var(--space-2) var(--space-3);
color: var(--text-muted);
text-decoration: none;
font-size: 0.875rem;
border-radius: var(--radius-sm);
transition: color 0.15s, background 0.15s;
}
.nav.nav-pills.nav-stacked li a:hover,
.sidebar ul.nav li a:hover {
color: var(--text);
background: var(--surface-alt);
text-decoration: none;
}
.nav.nav-pills.nav-stacked li.active a,
.sidebar ul.nav li.active a {
color: var(--accent);
background: var(--accent-light);
font-weight: 500;
}
/* ========================================================================
BREADCRUMBS / PAGE TITLES
======================================================================== */
.breadcrumbs {
font-size: 1.125rem;
font-weight: 600;
color: var(--text);
padding: 0;
margin: 0;
}
/* ========================================================================
BUTTON-LINKS — horizontal filter tabs (gists, etc.)
======================================================================== */
.button-links {
list-style: none;
padding: 0;
margin: 0;
display: grid;
grid-auto-flow: column;
grid-auto-columns: auto;
gap: var(--space-2);
align-items: center;
}
.button-links li .btn {
padding: var(--space-2) var(--space-3);
font-size: 0.8125rem;
color: var(--text-muted);
background: transparent;
border: var(--border-width) solid var(--border);
}
.button-links li .btn:hover {
color: var(--text);
background: var(--surface-alt);
border-color: var(--border-focus);
text-decoration: none;
}
.button-links li .btn.active {
color: var(--accent);
background: var(--accent-light);
border-color: var(--accent);
font-weight: 500;
}
/* ========================================================================
GRID FILTER — quick filter input (gists, repos, etc.)
======================================================================== */
.grid-quick-filter {
margin-top: var(--space-3);
}
.grid-filter-box {
list-style: none;
padding: 0;
margin: 0;
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
border: var(--border-width) solid var(--border);
border-radius: var(--radius-sm);
background: var(--surface);
max-width: 280px;
}
.grid-filter-box-icon {
padding: var(--space-2) var(--space-3);
color: var(--text-muted);
font-size: 0.875rem;
}
.grid-filter-box-input input {
border: none;
background: transparent;
padding: var(--space-2) var(--space-3);
font-size: 0.875rem;
width: 100%;
outline: none;
box-shadow: none;
}
.grid-filter-box-input input:focus {
box-shadow: none;
border: none;
}
.grid-filter-box:focus-within {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-light);
}
/* ========================================================================
PROFILE / DETAIL VIEWS
======================================================================== */
.profile-side {
text-align: center;
}
/* Definition-list style profile fields */
.dl-horizontal {
display: grid;
grid-template-columns: 140px 1fr;
gap: var(--space-2) var(--space-4);
font-size: 0.9375rem;
}
.dl-horizontal dt {
font-weight: 600;
color: var(--text-muted);
text-align: right;
font-size: 0.8125rem;
}
.dl-horizontal dd {
margin: 0;
color: var(--text);
}
/* ========================================================================
TOOLTIPS
======================================================================== */
.tooltip {
position: relative;
}
.tippy-box,
.tooltip-hovercard {
font-size: 0.8125rem;
}
/* Native title tooltip override — can't style, but we can hide the old ones */
/* ========================================================================
FORM PANELS — settings, admin edit forms
======================================================================== */
.form {
max-width: 720px;
}
.fields {
display: grid;
gap: var(--space-4);
}
.fields .field {
display: grid;
grid-template-columns: 160px 1fr;
gap: var(--space-3);
align-items: start;
}
.fields .field .label {
font-size: 0.875rem;
font-weight: 500;
color: var(--text);
padding-top: var(--space-2);
}
.fields .field .input {
min-width: 0;
}
.fields .field .input input[type="text"],
.fields .field .input input[type="password"],
.fields .field .input input[type="email"],
.fields .field .input textarea,
.fields .field .input select {
width: 100%;
max-width: 400px;
}
.fields .field .input .help-block {
margin-top: var(--space-1);
font-size: 0.8125rem;
color: var(--text-muted);
}
/* ========================================================================
MISC PAGE ELEMENTS
======================================================================== */
/* Collapsible sections */
.btn-collapse {
cursor: pointer;
color: var(--accent);
font-size: 0.8125rem;
}
.collapsable-content {
padding: var(--space-2) 0;
}
/* RC user display */
.rc-user {
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
gap: var(--space-2);
}
.rc-user .user a {
color: var(--text);
text-decoration: none;
}
.rc-user .user a:hover {
color: var(--accent);
}
/* Grey link actions (footer, etc.) */
.grey-link-action {
color: var(--text-muted);
text-decoration: none;
}
.grey-link-action:hover {
color: var(--text);
}
/* Activation message on register */
.activation_msg {
font-size: 0.875rem;
color: var(--text-muted);
font-style: italic;
}
/* ========================================================================
RESPONSIVE — sidebar collapse
======================================================================== */
@media (max-width: 768px) {
.sidebar-col-wrapper,
.sidebar-col-wrapper.scw-small {
grid-template-columns: 1fr;
}
.sidebar {
position: static;
}
.nav.nav-pills.nav-stacked {
display: grid;
grid-auto-flow: column;
grid-auto-columns: auto;
overflow-x: auto;
gap: var(--space-1);
}
.fields .field {
grid-template-columns: 1fr;
}
}
/* ========================================================================
UTILITY CLASSES
======================================================================== */
.pull-right { float: right; }
.pull-left { float: left; }
.clear { clear: both; }
.hidden { display: none; }
.discreet { color: var(--text-muted); }
/* ========================================================================
RESPONSIVE
======================================================================== */
@media (max-width: 768px) {
.loginwrapper {
grid-template-columns: 1fr;
padding: var(--space-5);
}
.auth-image-wrapper {
display: none;
}
.header #header-inner {
grid-template-columns: auto 1fr;
}
#main_filter {
width: 200px;
}
#main_filter:focus {
width: 260px;
}
}
/* ========================================================================
STYLEGUIDE PAGE — standalone layout (sg-body, sg-layout, etc.)
Only applies on /_admin/styleguide
======================================================================== */
body.sg-body {
background: var(--bg);
}
.sg-layout {
display: grid;
grid-template-columns: var(--sidebar-width) 1fr;
grid-template-rows: auto 1fr;
min-height: 100vh;
}
.sg-header {
grid-column: 1 / -1;
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: var(--space-4);
padding: var(--space-4) var(--space-6);
background: var(--text);
color: var(--text-inverse);
}
.sg-header h1 {
font-size: 1.125rem;
font-weight: 600;
letter-spacing: -0.01em;
}
.sg-header .sg-version {
font-family: var(--font-mono);
font-size: 0.75rem;
opacity: 0.6;
}
.sg-sidebar {
padding: var(--space-5);
background: var(--surface);
border-right: var(--border-width) solid var(--border);
overflow-y: auto;
position: sticky;
top: 0;
height: 100vh;
}
.sg-sidebar nav a {
display: block;
padding: var(--space-2) var(--space-3);
color: var(--text-muted);
text-decoration: none;
font-size: 0.875rem;
border-radius: var(--radius-sm);
transition: color 0.15s, background 0.15s;
}
.sg-sidebar nav a:hover {
color: var(--text);
background: var(--surface-alt);
}
.sg-sidebar nav a.active {
color: var(--accent);
background: var(--accent-light);
font-weight: 500;
}
.sg-sidebar h3 {
font-size: 0.6875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-muted);
padding: var(--space-4) var(--space-3) var(--space-2);
}
.sg-main {
padding: var(--space-7);
overflow-y: auto;
max-width: var(--content-max);
}
.sg-section {
margin-bottom: var(--space-8);
}
.sg-section > h2 {
font-size: 1.5rem;
font-weight: 700;
letter-spacing: -0.02em;
margin-bottom: var(--space-2);
padding-bottom: var(--space-3);
border-bottom: 2px solid var(--text);
}
.sg-section > p.sg-desc {
color: var(--text-muted);
margin-bottom: var(--space-6);
max-width: 65ch;
}
.sg-subsection {
margin-bottom: var(--space-6);
}
.sg-subsection > h3 {
font-size: 1rem;
font-weight: 600;
margin-bottom: var(--space-4);
color: var(--text);
}
.sg-showcase {
padding: var(--space-5);
background: var(--surface);
border: var(--border-width) solid var(--border);
border-radius: var(--radius-md);
margin-bottom: var(--space-4);
}
.sg-code {
background: #1e1e2e;
color: #cdd6f4;
padding: var(--space-4);
border-radius: var(--radius-md);
font-family: var(--font-mono);
font-size: 0.8125rem;
line-height: 1.7;
overflow-x: auto;
margin-bottom: var(--space-4);
white-space: pre;
}
.sg-colors {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: var(--space-4);
}
.sg-swatch {
border-radius: var(--radius-md);
overflow: hidden;
border: var(--border-width) solid var(--border);
box-shadow: var(--shadow-sm);
}
.sg-swatch-color {
height: 80px;
}
.sg-swatch-info {
padding: var(--space-3);
background: var(--surface);
}
.sg-swatch-info .sg-swatch-name {
font-weight: 600;
font-size: 0.8125rem;
}
.sg-swatch-info .sg-swatch-value {
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--text-muted);
}
.sg-type-scale {
display: grid;
gap: var(--space-4);
}
.sg-type-specimen {
display: grid;
grid-template-columns: 100px 1fr;
align-items: baseline;
gap: var(--space-4);
padding: var(--space-3) 0;
border-bottom: var(--border-width) solid var(--border);
}
.sg-type-label {
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--text-muted);
}
.sg-button-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, auto));
gap: var(--space-3);
align-items: start;
}
@media (max-width: 768px) {
.sg-layout {
grid-template-columns: 1fr;
}
.sg-sidebar {
position: static;
height: auto;
border-right: none;
border-bottom: var(--border-width) solid var(--border);
}
.sg-main {
padding: var(--space-5);
}
}
/* ========================================================================
CREATION FORMS — repo add, repo group add
======================================================================== */
/* Full repo name line: [parent group] / [name input] */
.full-repo-name-container {
display: grid;
grid-template-columns: auto auto 1fr;
align-items: center;
gap: var(--space-2);
}
.repo-create-spacer {
font-size: 1.25rem;
color: var(--text-muted);
font-weight: 300;
padding: 0 var(--space-1);
}
.repo-name-input-container {
min-width: 0;
}
.repo-name-input-container input[type="text"] {
width: 100%;
}
.repo-header-row {
display: grid;
grid-template-columns: 1fr auto;
align-items: center;
margin-top: var(--space-2);
}
.help-block-repo-create {
font-size: 0.8125rem;
color: var(--text-muted);
}
.import-repo {
font-size: 0.8125rem;
}
.import-repo a {
color: var(--accent);
text-decoration: none;
}
.import-repo a:hover {
text-decoration: underline;
}
/* Copy permissions checkbox row */
#copy_perms {
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
gap: var(--space-2);
margin-top: var(--space-3);
padding: var(--space-2) var(--space-3);
background: var(--surface-alt);
border-radius: var(--radius-sm);
}
.help-block-inline {
font-size: 0.8125rem;
color: var(--text-muted);
}
/* Name availability check */
.repo-check-container,
#group_check {
font-size: 0.8125rem;
margin-top: var(--space-1);
padding: var(--space-1) var(--space-2);
border-radius: var(--radius-sm);
}
.check-progress {
color: var(--text-muted);
}
.check-success {
color: var(--success);
}
.check-error {
color: var(--danger);
}
/* Repo type radio buttons */
.repo-type-radio {
display: grid;
grid-auto-flow: column;
grid-auto-columns: auto;
gap: var(--space-4);
align-items: center;
justify-content: start;
}
.repo-type-radio input[type="radio"] {
margin-right: var(--space-1);
}
.repo-type-radio label {
display: grid;
grid-template-columns: auto auto;
align-items: center;
gap: var(--space-1);
cursor: pointer;
font-size: 0.875rem;
}
.repo-type-radio .help-block {
grid-column: 1 / -1;
}
/* ========================================================================
PANELS — used throughout settings pages
======================================================================== */
.panel {
background: var(--surface);
border: var(--border-width) solid var(--border);
border-radius: var(--radius-md);
margin-bottom: var(--space-5);
}
.panel-default {
border-color: var(--border);
}
.panel-heading {
padding: var(--space-3) var(--space-4);
border-bottom: var(--border-width) solid var(--border);
background: var(--surface-alt);
border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.panel-heading .panel-title {
margin: 0;
font-size: 1rem;
font-weight: 600;
color: var(--text);
}
.panel-body {
padding: var(--space-4);
}
.panel-footer {
padding: var(--space-3) var(--space-4);
border-top: var(--border-width) solid var(--border);
background: var(--surface-alt);
border-radius: 0 0 var(--radius-md) var(--radius-md);
}
/* ========================================================================
PERMISSIONS TABLE
======================================================================== */
#permissions_manage {
width: 100%;
border-collapse: collapse;
}
#permissions_manage th {
text-align: center;
font-size: 0.8125rem;
font-weight: 600;
color: var(--text-muted);
padding: var(--space-2) var(--space-3);
border-bottom: 2px solid var(--border);
text-transform: uppercase;
letter-spacing: 0.03em;
}
#permissions_manage th.td-owner,
#permissions_manage th.td-componentname {
text-align: left;
}
#permissions_manage td {
padding: var(--space-2) var(--space-3);
border-bottom: var(--border-width) solid var(--border);
vertical-align: middle;
}
#permissions_manage td.td-radio {
text-align: center;
}
#permissions_manage td.td-radio input[type="radio"] {
width: 16px;
height: 16px;
cursor: pointer;
accent-color: var(--accent);
}
#permissions_manage td.td-user,
#permissions_manage td.td-componentname {
font-size: 0.875rem;
}
#permissions_manage .perm_admin_row td {
background: var(--surface-alt);
color: var(--text-muted);
}
#permissions_manage .revoke_perm {
cursor: pointer;
}
.user-perm-help-text {
font-size: 0.75rem;
color: var(--text-muted);
font-style: italic;
}
.user-perm-duplicate {
opacity: 0.5;
}
/* Recursive apply radio group */
.label-radio {
font-size: 0.875rem;
font-weight: 500;
padding-top: var(--space-2);
}
.radios {
display: grid;
gap: var(--space-2);
}
.radios label {
display: inline-grid;
grid-template-columns: auto auto;
gap: var(--space-1);
align-items: center;
cursor: pointer;
font-size: 0.875rem;
margin-right: var(--space-4);
}
/* ========================================================================
SELECT2 OVERRIDES — for dropdowns used in create forms
======================================================================== */
.select2-container .select2-choice {
border: var(--border-width) solid var(--border) !important;
border-radius: var(--radius-sm) !important;
background: var(--surface) !important;
background-image: none !important;
height: 36px !important;
line-height: 34px !important;
padding: 0 var(--space-3) !important;
font-size: 0.875rem !important;
color: var(--text) !important;
box-shadow: none !important;
}
.select2-container .select2-choice:hover {
border-color: var(--border-focus) !important;
}
.select2-container-active .select2-choice {
border-color: var(--accent) !important;
box-shadow: 0 0 0 3px var(--accent-light) !important;
}
.select2-drop {
border: var(--border-width) solid var(--border) !important;
border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
box-shadow: var(--shadow-md) !important;
background: var(--surface) !important;
}
.select2-results {
max-height: 280px !important;
}
.select2-results .select2-result-label {
padding: var(--space-2) var(--space-3) !important;
font-size: 0.875rem !important;
color: var(--text) !important;
}
.select2-results .select2-highlighted {
background: var(--accent-light) !important;
color: var(--accent) !important;
}
.drop-menu {
min-width: 180px;
}
.drop-menu-dropdown {
min-width: 180px;
}
/* ========================================================================
CHECKBOX STYLING
======================================================================== */
.checkboxes {
padding: var(--space-2) 0;
}
.checkboxes input[type="checkbox"] {
width: 16px;
height: 16px;
accent-color: var(--accent);
cursor: pointer;
vertical-align: middle;
margin-right: var(--space-2);
}
.label-checkbox {
padding-top: var(--space-2);
}
/* ========================================================================
ADMIN MENU BAR — sub-navigation (repos, groups, users)
======================================================================== */
.submenu-title {
font-size: 0.6875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
padding: var(--space-3) var(--space-4) var(--space-1);
list-style: none;
}
/* Menu items container (quick_repo_menu) */
.quick_repo_menu {
position: relative;
}
.quick_repo_menu .icon-more {
cursor: pointer;
padding: var(--space-1);
color: var(--text-muted);
}
.quick_repo_menu .icon-more:hover {
color: var(--text);
}
.quick_repo_menu .menu_items_container {
position: absolute;
right: 0;
top: 100%;
z-index: 100;
background: var(--surface);
border: var(--border-width) solid var(--border);
border-radius: var(--radius-sm);
box-shadow: var(--shadow-md);
min-width: 180px;
}
.quick_repo_menu .menu_items {
list-style: none;
margin: 0;
padding: var(--space-1) 0;
}
.quick_repo_menu .menu_items li {
padding: 0;
}
.quick_repo_menu .menu_items li a {
display: block;
padding: var(--space-2) var(--space-3);
color: var(--text);
text-decoration: none;
font-size: 0.8125rem;
}
.quick_repo_menu .menu_items li a:hover {
background: var(--surface-alt);
color: var(--accent);
}
/* ========================================================================
TITLE BAR — page title area with breadcrumbs
======================================================================== */
.box > .title {
padding: var(--space-3) var(--space-4);
border-bottom: var(--border-width) solid var(--border);
margin-bottom: var(--space-4);
}
/* ========================================================================
ADMIN SUB-MENU (repos, repo groups, users, etc.)
======================================================================== */
.admin_menu {
display: grid;
grid-auto-flow: column;
grid-auto-columns: auto;
gap: 0;
list-style: none;
margin: 0;
padding: 0;
background: var(--surface);
border-bottom: var(--border-width) solid var(--border);
}
.admin_menu li a {
display: block;
padding: var(--space-2) var(--space-4);
color: var(--text-muted);
text-decoration: none;
font-size: 0.875rem;
border-bottom: 2px solid transparent;
transition: color 0.15s, border-color 0.15s;
}
.admin_menu li a:hover {
color: var(--text);
border-bottom-color: var(--border);
}
.admin_menu li.active a {
color: var(--accent);
border-bottom-color: var(--accent);
font-weight: 500;
}
/* ========================================================================
TEXTAREA EDITOR
======================================================================== */
.textarea.editor textarea {
width: 100%;
max-width: 500px;
min-height: 100px;
resize: vertical;
}
/* ========================================================================
ERROR MESSAGES — form validation
======================================================================== */
.error-message,
span.error-message,
.error {
color: var(--danger);
font-size: 0.8125rem;
}
.error input,
input.error {
border-color: var(--danger) !important;
}
/* ========================================================================
FLASH MESSAGES — alerts
======================================================================== */
.alert {
padding: var(--space-3) var(--space-4);
border-radius: var(--radius-sm);
margin-bottom: var(--space-4);
font-size: 0.875rem;
border: var(--border-width) solid transparent;
}
.alert-success {
background: var(--success-light);
color: var(--success);
border-color: var(--success);
}
.alert-warning {
background: var(--warning-light);
color: var(--warning);
border-color: var(--warning);
}
.alert-error,
.alert-danger {
background: var(--danger-light);
color: var(--danger);
border-color: var(--danger);
}
.alert-info {
background: var(--info-light);
color: var(--info);
border-color: var(--info);
}
/* ========================================================================
GRAVATAR / AVATAR — user icons
======================================================================== */
.gravatar {
border-radius: 50%;
vertical-align: middle;
}
.gravatar-hierarchical {
border-radius: 50%;
}
/* ========================================================================
REPO GROUP / REPO LISTING — home page groups
======================================================================== */
.groups_and_repos {
width: 100%;
}
.groups_and_repos .rctable td {
padding: var(--space-2) var(--space-3);
}
/* Repo/group name links */
.groups_and_repos .namerow a {
color: var(--text);
font-weight: 500;
text-decoration: none;
}
.groups_and_repos .namerow a:hover {
color: var(--accent);
}
/* Metatag badges */
.metatag {
display: inline-block;
padding: 1px 6px;
font-size: 0.6875rem;
font-weight: 600;
border-radius: 3px;
line-height: 1.6;
}
/* ========================================================================
BUTTONS — extended styles
======================================================================== */
.btn.btn-primary {
background: var(--accent);
color: var(--text-inverse);
border-color: var(--accent);
}
.btn.btn-primary:hover {
background: var(--accent-hover);
border-color: var(--accent-hover);
}
.btn.btn-danger {
background: var(--danger);
color: var(--text-inverse);
border-color: var(--danger);
}
.btn.btn-danger:hover {
background: #b91c1c;
border-color: #b91c1c;
}
.btn.btn-link {
background: transparent;
border: none;
color: var(--accent);
padding: var(--space-1) var(--space-2);
cursor: pointer;
}
.btn.btn-link:hover {
color: var(--accent-hover);
text-decoration: underline;
}
.btn.btn-link.btn-danger {
color: var(--danger);
background: transparent;
}
.btn.btn-link.btn-danger:hover {
color: #b91c1c;
}
/* Button row in forms */
.buttons {
padding-top: var(--space-4);
display: grid;
grid-auto-flow: column;
grid-auto-columns: auto;
gap: var(--space-3);
justify-content: start;
}
/* ========================================================================
REPO GROUP EDIT TABS — settings pages
======================================================================== */
.repo-group-title,
.repo-title {
font-size: 1.125rem;
font-weight: 600;
color: var(--text);
margin-bottom: var(--space-3);
}
/* ========================================================================
NOSCRIPT ERROR
======================================================================== */
.noscript-error {
background: var(--warning-light);
color: var(--warning);
padding: var(--space-4);
text-align: center;
font-size: 0.875rem;
font-weight: 500;
}
/* ========================================================================
DATA / EMPTY STATES
======================================================================== */
.empty-state {
text-align: center;
padding: var(--space-7) var(--space-5);
color: var(--text-muted);
}
.empty-state h3 {
font-size: 1.125rem;
margin-bottom: var(--space-2);
}
.empty-state p {
font-size: 0.875rem;
}
/* ========================================================================
DEFORM / RCFORM — schema-based forms (repo group settings edit)
======================================================================== */
.deform .form-group,
.rc-form .form-group {
display: grid;
grid-template-columns: 180px 1fr;
gap: var(--space-3);
align-items: start;
margin-bottom: var(--space-4);
}
.deform .form-group .control-label,
.rc-form .form-group .control-label {
font-size: 0.875rem;
font-weight: 500;
color: var(--text);
padding-top: var(--space-2);
text-align: right;
}
.deform .form-group .controls,
.rc-form .form-group .controls {
min-width: 0;
}
.deform .form-group .controls input[type="text"],
.deform .form-group .controls input[type="email"],
.deform .form-group .controls textarea,
.deform .form-group .controls select,
.rc-form .form-group .controls input[type="text"],
.rc-form .form-group .controls input[type="email"],
.rc-form .form-group .controls textarea,
.rc-form .form-group .controls select {
width: 100%;
max-width: 400px;
}
/* ========================================================================
QUICK PATH CREATE — create nested groups with paths like org/team/project
======================================================================== */
.path-create-help {
background: var(--info-light);
border: var(--border-width) solid var(--accent);
border-radius: var(--radius-sm);
padding: var(--space-2) var(--space-3);
margin-top: var(--space-2);
font-size: 0.8125rem;
color: var(--text);
}
.path-create-help code {
background: var(--surface);
padding: 1px 4px;
border-radius: 2px;
font-family: var(--font-mono);
font-size: 0.75rem;
}
/* ========================================================================
SELECT2 — override the jQuery Select2 plugin appearance
The old RhodeCode uses Select2 for dropdowns. These styles make it
blend with our design without removing the jQuery dependency yet.
======================================================================== */
/* Hide the inner select2 container and show native select when select2 fails */
.select2-container {
display: inline-block;
vertical-align: middle;
}
.select2-container .select2-choice {
height: 36px !important;
line-height: 34px !important;
border: var(--border-width) solid var(--border) !important;
border-radius: var(--radius-sm) !important;
background: var(--surface) !important;
background-image: none !important;
box-shadow: none !important;
padding: 0 var(--space-3) !important;
font-size: 0.875rem !important;
color: var(--text) !important;
}
.select2-container .select2-choice:hover {
border-color: var(--text-muted) !important;
}
.select2-container-active .select2-choice,
.select2-container .select2-choice:focus {
border-color: var(--accent) !important;
box-shadow: 0 0 0 3px var(--accent-light) !important;
}
.select2-container .select2-choice .select2-arrow {
background: none !important;
border-left: none !important;
width: 24px !important;
}
.select2-drop {
border: var(--border-width) solid var(--border) !important;
border-top: none !important;
border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
box-shadow: var(--shadow-md) !important;
background: var(--surface) !important;
}
.select2-results {
max-height: 300px !important;
padding: var(--space-1) 0 !important;
margin: 0 !important;
}
.select2-results .select2-result-label {
padding: var(--space-2) var(--space-3) !important;
font-size: 0.875rem !important;
}
.select2-results .select2-highlighted {
background: var(--accent-light) !important;
color: var(--accent) !important;
}
.select2-search input {
border: var(--border-width) solid var(--border) !important;
border-radius: var(--radius-sm) !important;
font-size: 0.875rem !important;
padding: var(--space-2) var(--space-3) !important;
}
/* ========================================================================
DATA GRID / TABLE CONTROLS — admin list pages
======================================================================== */
/* Quick filter input on list pages */
.dataTables_filter,
.grid-quick-filter-box {
margin-bottom: var(--space-3);
}
.dataTables_filter input,
input.q_filter_box {
padding: var(--space-2) var(--space-3);
border: var(--border-width) solid var(--border);
border-radius: var(--radius-sm);
font-size: 0.875rem;
background: var(--surface);
min-width: 200px;
}
.dataTables_filter input:focus,
input.q_filter_box:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-light);
outline: none;
}
/* Info text (e.g. "0 user groups (0 inactive)") */
.dataTables_info,
.grid-data-info {
font-size: 0.875rem;
color: var(--text-muted);
margin-bottom: var(--space-3);
}
/* Pagination */
.dataTables_paginate {
margin-top: var(--space-3);
display: grid;
grid-auto-flow: column;
grid-auto-columns: auto;
gap: var(--space-1);
justify-content: center;
}
.dataTables_paginate .paginate_button {
display: inline-block;
padding: var(--space-1) var(--space-3);
font-size: 0.8125rem;
color: var(--text-muted);
border: var(--border-width) solid var(--border);
border-radius: var(--radius-sm);
background: var(--surface);
cursor: pointer;
text-decoration: none;
}
.dataTables_paginate .paginate_button:hover {
color: var(--text);
border-color: var(--accent);
text-decoration: none;
}
.dataTables_paginate .paginate_button.current {
color: var(--text-inverse);
background: var(--accent);
border-color: var(--accent);
}
.dataTables_paginate .paginate_button.disabled {
opacity: 0.4;
cursor: default;
}
/* ========================================================================
ADMIN LIST PAGES — repositories, users, groups list layouts
======================================================================== */
/* Grid header row with filter + count */
.panel-body > ul,
.panel-body > ol {
list-style: none;
padding: 0;
margin: 0;
}
/* RC table for list views */
table.rctable {
width: 100%;
border-collapse: collapse;
}
table.rctable th {
text-align: left;
font-size: 0.8125rem;
font-weight: 600;
color: var(--text-muted);
padding: var(--space-2) var(--space-3);
border-bottom: 2px solid var(--border);
white-space: nowrap;
}
table.rctable td {
padding: var(--space-2) var(--space-3);
border-bottom: var(--border-width) solid var(--border);
font-size: 0.875rem;
vertical-align: middle;
}
table.rctable tr:hover td {
background: var(--surface-alt);
}
table.rctable td.td-action {
text-align: right;
white-space: nowrap;
}
/* Empty state messages in tables */
table.rctable td[colspan] {
text-align: center;
color: var(--text-muted);
padding: var(--space-5) var(--space-3);
font-style: italic;
}
/* Action links and items inside tables */
.grid_edit,
.grid_delete {
font-size: 0.8125rem;
}
/* ========================================================================
HEADER SEARCH HELP DROPDOWN
======================================================================== */
#main_filter_help {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: var(--surface);
border: var(--border-width) solid var(--border);
border-radius: var(--radius-sm);
box-shadow: var(--shadow-lg);
padding: var(--space-3) var(--space-4);
font-size: 0.8125rem;
color: var(--text);
z-index: 300;
max-width: 500px;
line-height: 1.6;
}
#main_filter_help strong {
color: var(--accent);
font-family: var(--font-mono);
font-size: 0.75rem;
}
/* ========================================================================
NOTIFICATION BADGE — top bar
======================================================================== */
.header .main_nav > li > a.empty {
opacity: 0.4;
}
/* ========================================================================
ICON OVERRIDES — ensure consistent sizing
======================================================================== */
i[class^="icon-"],
i[class*=" icon-"] {
font-style: normal;
}
/* ========================================================================
HELPER / UTILITY TEXT
======================================================================== */
.help-block {
font-size: 0.8125rem;
color: var(--text-muted);
margin-top: var(--space-1);
}
.help-block pre {
font-family: var(--font-mono);
font-size: 0.75rem;
background: var(--surface-alt);
padding: var(--space-2) var(--space-3);
border-radius: var(--radius-sm);
white-space: pre-wrap;
overflow-x: auto;
}
/* ========================================================================
TABLE HEADER ROW — used on admin list pages with filter + button
======================================================================== */
.table-header-row {
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
gap: var(--space-3);
margin-bottom: var(--space-3);
}
/* ========================================================================
BOX TITLE / PAGE TITLE — used above content sections
======================================================================== */
.box > .title {
padding: var(--space-2) 0;
margin-bottom: var(--space-3);
border-bottom: none;
}
.box > .title h5 {
font-size: 1rem;
font-weight: 600;
color: var(--text);
margin: 0;
}
/* ========================================================================
LINKS LIST (non-nav) — used in content for action links
======================================================================== */
.links-block {
list-style: none;
padding: 0;
margin: 0;
}
/* ========================================================================
FORM IMPROVEMENTS — tighter spacing for create/edit forms
======================================================================== */
.form .fields .field .label label {
font-weight: 500;
font-size: 0.875rem;
color: var(--text);
}
.form .fields .buttons {
grid-column: 1 / -1;
}
/* Fix formencode error styling */
.form .error-message,
.form span.error-message {
display: block;
color: var(--danger);
font-size: 0.8125rem;
margin-top: var(--space-1);
}
/* ========================================================================
FOOTER — multi-column site footer
======================================================================== */
.site-footer {
background: var(--surface);
border-top: 1px solid var(--border);
margin-top: var(--space-6);
padding: var(--space-6) var(--space-5) var(--space-4);
}
.footer-grid {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr;
gap: var(--space-6);
max-width: 1200px;
margin: 0 auto var(--space-5);
}
.footer-brand {
display: grid;
gap: var(--space-2);
align-content: start;
}
.footer-logo {
font-size: 1.25rem;
font-weight: 700;
color: var(--text);
text-decoration: none;
}
.footer-logo:hover {
color: var(--accent);
}
.footer-tagline {
color: var(--text-muted);
font-size: 0.8125rem;
line-height: 1.5;
max-width: 300px;
margin: 0;
}
.footer-version {
color: var(--text-muted);
font-size: 0.75rem;
margin: 0;
}
.footer-group {
display: grid;
gap: var(--space-3);
align-content: start;
}
.footer-group-title {
font-size: 0.75rem;
font-weight: 600;
color: var(--text);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.footer-links {
display: grid;
gap: var(--space-2);
}
.footer-links a {
color: var(--text-muted);
font-size: 0.8125rem;
text-decoration: none;
}
.footer-links a:hover {
color: var(--accent);
}
.footer-bottom {
text-align: center;
color: var(--text-muted);
font-size: 0.75rem;
padding-top: var(--space-4);
border-top: 1px solid var(--border);
max-width: 1200px;
margin: 0 auto;
}
.footer-instance {
margin-left: var(--space-2);
opacity: 0.6;
}
/* ========================================================================
RESPONSIVE — page sidebar collapse
======================================================================== */
@media (max-width: 900px) {
.page-with-sidebar {
grid-template-columns: 1fr;
}
.page-sidebar {
position: static;
border-right: none;
border-bottom: var(--border-width) solid var(--border);
padding-right: 0;
padding-bottom: var(--space-3);
margin-bottom: var(--space-3);
}
.sidebar-section {
display: none;
}
.sidebar-section:first-child {
display: block;
}
.sidebar-nav {
display: grid;
grid-auto-flow: column;
grid-auto-columns: auto;
gap: var(--space-1);
overflow-x: auto;
}
.footer-grid {
grid-template-columns: 1fr 1fr;
gap: var(--space-4);
}
.footer-brand {
grid-column: 1 / -1;
}
}