92c8dfe986
- Add mobile responsive styles for settings page - Stack sidebar tabs horizontally on small screens - Adjust workspace header for mobile - Quality gates: typecheck ✓ lint ✓ build ✓
1241 lines
19 KiB
CSS
1241 lines
19 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
|
|
--bg: #f4f1ea;
|
|
--panel: #fffef9;
|
|
--ink: #1d1d1b;
|
|
--muted: #5f5b55;
|
|
--brand: #275d4b;
|
|
--brand-strong: #154236;
|
|
--border: #d8d0c5;
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
color-scheme: dark;
|
|
--bg: #1a1a18;
|
|
--panel: #252522;
|
|
--ink: #e8e6e1;
|
|
--muted: #a39e96;
|
|
--brand: #4a9e7f;
|
|
--brand-strong: #3d8a6e;
|
|
--border: #3d3d38;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
}
|
|
|
|
[data-theme="dark"] body {
|
|
background: radial-gradient(circle at top right, #2a2520, var(--bg));
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.shell {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.shell-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.85rem 1.25rem;
|
|
border-bottom: 1px solid var(--border);
|
|
background: rgba(255, 255, 255, 0.85);
|
|
backdrop-filter: blur(7px);
|
|
}
|
|
|
|
.brand {
|
|
font-weight: 700;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.shell-body {
|
|
display: grid;
|
|
grid-template-columns: 230px 1fr;
|
|
min-height: calc(100vh - 57px);
|
|
}
|
|
|
|
.shell-nav {
|
|
border-right: 1px solid var(--border);
|
|
padding: 1rem 0.75rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.nav-item {
|
|
padding: 0.65rem 0.75rem;
|
|
border-radius: 10px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background: #ece7df;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.nav-item-active {
|
|
background: var(--brand);
|
|
color: #f7fff7;
|
|
}
|
|
|
|
.shell-content {
|
|
padding: 1.25rem;
|
|
}
|
|
|
|
.stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.muted {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.card-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 0.9rem;
|
|
}
|
|
|
|
.card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.card-label {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.card-value {
|
|
margin: 0.45rem 0 0;
|
|
font-size: 1.6rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.quick-actions {
|
|
display: flex;
|
|
gap: 0.6rem;
|
|
}
|
|
|
|
.primary-button,
|
|
.secondary-button,
|
|
.ghost-button {
|
|
border-radius: 10px;
|
|
border: 1px solid transparent;
|
|
padding: 0.58rem 0.85rem;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
}
|
|
|
|
.primary-button {
|
|
background: var(--brand);
|
|
color: white;
|
|
}
|
|
|
|
.primary-button:hover {
|
|
background: var(--brand-strong);
|
|
}
|
|
|
|
.secondary-button {
|
|
border-color: var(--border);
|
|
background: var(--panel);
|
|
}
|
|
|
|
.ghost-button {
|
|
border-color: var(--border);
|
|
background: transparent;
|
|
}
|
|
|
|
.user-chip {
|
|
border: 1px solid var(--border);
|
|
background: var(--panel);
|
|
border-radius: 999px;
|
|
padding: 0.35rem 0.7rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.center-screen {
|
|
min-height: 55vh;
|
|
display: grid;
|
|
place-content: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.project-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.project-card {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.project-info h3 {
|
|
margin: 0 0 0.35rem;
|
|
}
|
|
|
|
.project-info p {
|
|
margin: 0;
|
|
}
|
|
|
|
.project-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.delete-confirm {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.danger-button {
|
|
border-radius: 10px;
|
|
border: 1px solid transparent;
|
|
padding: 0.58rem 0.85rem;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
background: #b91c1c;
|
|
color: white;
|
|
}
|
|
|
|
.danger-text {
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.error-text {
|
|
color: #b91c1c;
|
|
margin: 0;
|
|
}
|
|
|
|
.dialog-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.35);
|
|
display: grid;
|
|
place-content: center;
|
|
z-index: 50;
|
|
}
|
|
|
|
.dialog {
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
padding: 1.25rem;
|
|
min-width: 320px;
|
|
max-width: 90vw;
|
|
}
|
|
|
|
.dialog h2 {
|
|
margin: 0 0 1rem;
|
|
}
|
|
|
|
.form-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.form-field input,
|
|
.form-field textarea {
|
|
padding: 0.55rem 0.7rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
font: inherit;
|
|
}
|
|
|
|
.dialog-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 0.6rem;
|
|
}
|
|
|
|
.keys-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.key-card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.key-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.key-header h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
.key-meta {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.key-public {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.5rem;
|
|
background: #f5f3ee;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.key-public code {
|
|
font-size: 0.85rem;
|
|
word-break: break-all;
|
|
flex: 1;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.form-group input {
|
|
padding: 0.55rem 0.7rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
font: inherit;
|
|
}
|
|
|
|
.error {
|
|
color: #b91c1c;
|
|
padding: 0.75rem;
|
|
background: #fef2f2;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
@media (max-width: 860px) {
|
|
.shell-body {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.shell-nav {
|
|
flex-direction: row;
|
|
overflow-x: auto;
|
|
border-right: 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.card-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.quick-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.project-card {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
/* URL Validation Styles */
|
|
.valid-url {
|
|
border-color: #16a34a !important;
|
|
background-color: #f0fdf4 !important;
|
|
}
|
|
|
|
.needs-parsing-url {
|
|
border-color: #ca8a04 !important;
|
|
background-color: #fefce8 !important;
|
|
}
|
|
|
|
.invalid-url {
|
|
border-color: #dc2626 !important;
|
|
background-color: #fef2f2 !important;
|
|
}
|
|
|
|
.validation-status {
|
|
font-size: 0.85rem;
|
|
margin-top: 0.25rem;
|
|
display: block;
|
|
}
|
|
|
|
.validation-status.valid {
|
|
color: #16a34a;
|
|
}
|
|
|
|
.validation-status.warning {
|
|
color: #ca8a04;
|
|
}
|
|
|
|
.validation-status.invalid {
|
|
color: #dc2626;
|
|
}
|
|
|
|
.validation-status.validating {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.url-suggestion {
|
|
margin-top: 0.5rem;
|
|
padding: 0.5rem;
|
|
background: #fefce8;
|
|
border-radius: 8px;
|
|
border: 1px solid #fde047;
|
|
}
|
|
|
|
.suggestion-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
margin-top: 0.35rem;
|
|
}
|
|
|
|
.suggested-url {
|
|
font-size: 0.85rem;
|
|
color: #854d0e;
|
|
flex: 1;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.secondary-button.small {
|
|
padding: 0.35rem 0.6rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Git History Page Styles */
|
|
.history-actions {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.branch-selector {
|
|
padding: 0.45rem 0.7rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
font: inherit;
|
|
background: var(--panel);
|
|
color: var(--ink);
|
|
}
|
|
|
|
.history-container {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 1rem;
|
|
min-height: 60vh;
|
|
}
|
|
|
|
.commit-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
overflow-y: auto;
|
|
max-height: 70vh;
|
|
}
|
|
|
|
.commit-list.with-detail {
|
|
grid-column: 1;
|
|
}
|
|
|
|
.commit-item {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
padding: 0.75rem;
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
transition: background-color 0.15s ease;
|
|
}
|
|
|
|
.commit-item:hover {
|
|
background: #ece7df;
|
|
}
|
|
|
|
.commit-item.selected {
|
|
border-color: var(--brand);
|
|
background: #f0f7f4;
|
|
}
|
|
|
|
.commit-graph {
|
|
font-family: monospace;
|
|
font-size: 0.9rem;
|
|
color: var(--brand);
|
|
white-space: pre;
|
|
flex-shrink: 0;
|
|
min-width: 60px;
|
|
}
|
|
|
|
.graph-line {
|
|
display: inline-block;
|
|
}
|
|
|
|
.commit-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.commit-header {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.commit-hash {
|
|
font-family: monospace;
|
|
font-size: 0.85rem;
|
|
color: var(--brand);
|
|
background: #f0f7f4;
|
|
padding: 0.15rem 0.4rem;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.commit-refs {
|
|
display: flex;
|
|
gap: 0.35rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.ref-tag {
|
|
font-size: 0.75rem;
|
|
padding: 0.15rem 0.4rem;
|
|
background: var(--brand);
|
|
color: white;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.commit-message {
|
|
margin: 0 0 0.35rem;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.commit-meta {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
font-size: 0.85rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.commit-detail-panel {
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
padding: 1.25rem;
|
|
overflow-y: auto;
|
|
max-height: 70vh;
|
|
}
|
|
|
|
.detail-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
padding-bottom: 0.75rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.detail-header h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
.detail-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.detail-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.detail-section h4 {
|
|
margin: 0 0 0.5rem;
|
|
color: var(--muted);
|
|
font-size: 0.9rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.commit-hash-full {
|
|
font-family: monospace;
|
|
font-size: 0.85rem;
|
|
color: var(--brand);
|
|
margin: 0;
|
|
}
|
|
|
|
.commit-message-full {
|
|
margin: 0.5rem 0 0;
|
|
line-height: 1.5;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.stat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 0.75rem;
|
|
background: #f5f3ee;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.stat.additions {
|
|
background: #f0fdf4;
|
|
}
|
|
|
|
.stat.deletions {
|
|
background: #fef2f2;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.stat.additions .stat-value {
|
|
color: #16a34a;
|
|
}
|
|
|
|
.stat.deletions .stat-value {
|
|
color: #dc2626;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.8rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.parent-list {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.parent-hash {
|
|
font-family: monospace;
|
|
font-size: 0.85rem;
|
|
padding: 0.2rem 0.5rem;
|
|
background: #f5f3ee;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.diff-content {
|
|
font-family: monospace;
|
|
font-size: 0.8rem;
|
|
line-height: 1.5;
|
|
background: #f5f3ee;
|
|
padding: 0.75rem;
|
|
border-radius: 10px;
|
|
overflow-x: auto;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
.history-container {
|
|
grid-template-columns: 1fr 400px;
|
|
}
|
|
|
|
.commit-list.with-detail {
|
|
grid-column: 1;
|
|
}
|
|
|
|
.commit-detail-panel {
|
|
grid-column: 2;
|
|
position: sticky;
|
|
top: 1rem;
|
|
}
|
|
}
|
|
|
|
/* Repository Workspace */
|
|
.repo-workspace {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: calc(100vh - 60px);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.workspace-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1rem 1.5rem;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--panel);
|
|
}
|
|
|
|
.workspace-header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.workspace-header-icon {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.workspace-header-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.workspace-header-title {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.workspace-header-subtitle {
|
|
color: var(--muted);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.workspace-header-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.workspace-header-action-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem 1rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: var(--panel);
|
|
color: var(--ink);
|
|
font-size: 0.875rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.workspace-header-action-btn:hover {
|
|
background: var(--bg);
|
|
border-color: var(--brand);
|
|
}
|
|
|
|
.workspace-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.workspace-title h1 {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.repo-name {
|
|
color: var(--muted);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.workspace-layout {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.workspace-sidebar {
|
|
width: 280px;
|
|
min-width: 280px;
|
|
border-right: 1px solid var(--border);
|
|
background: var(--panel);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sidebar-section {
|
|
padding: 1rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.sidebar-section label {
|
|
margin: 0;
|
|
}
|
|
|
|
.workspace-main {
|
|
flex: 1;
|
|
overflow: auto;
|
|
padding: 1rem;
|
|
background: var(--bg);
|
|
}
|
|
|
|
/* File Tree */
|
|
.file-tree {
|
|
flex: 1;
|
|
overflow: auto;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.tree-entry {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 0.375rem 0.5rem;
|
|
border: none;
|
|
background: none;
|
|
color: var(--ink);
|
|
text-align: left;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
font-size: 0.875rem;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.tree-entry:hover {
|
|
background: var(--bg);
|
|
}
|
|
|
|
.tree-directory {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.tree-up {
|
|
color: var(--muted);
|
|
font-style: italic;
|
|
}
|
|
|
|
/* File Viewer */
|
|
.file-viewer {
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.file-viewer-header {
|
|
padding: 0.75rem 1rem;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg);
|
|
}
|
|
|
|
.file-breadcrumbs {
|
|
font-size: 0.875rem;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.breadcrumb-sep {
|
|
color: var(--muted);
|
|
margin: 0 0.25rem;
|
|
}
|
|
|
|
.file-content {
|
|
padding: 1rem;
|
|
overflow: auto;
|
|
max-height: calc(100vh - 200px);
|
|
}
|
|
|
|
.file-content pre {
|
|
margin: 0;
|
|
font-family: "IBM Plex Mono", monospace;
|
|
font-size: 0.875rem;
|
|
line-height: 1.5;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.file-viewer-empty {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
min-height: 300px;
|
|
}
|
|
|
|
/* File Status Indicators */
|
|
.file-status-indicator {
|
|
float: right;
|
|
font-size: 0.75rem;
|
|
font-weight: bold;
|
|
padding: 0 0.375rem;
|
|
border-radius: 3px;
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
.file-status-indicator.modified {
|
|
color: #f59e0b;
|
|
background: rgba(245, 158, 11, 0.1);
|
|
}
|
|
|
|
.file-status-indicator.added {
|
|
color: #10b981;
|
|
background: rgba(16, 185, 129, 0.1);
|
|
}
|
|
|
|
.file-status-indicator.deleted {
|
|
color: #ef4444;
|
|
background: rgba(239, 68, 68, 0.1);
|
|
}
|
|
|
|
.file-status-indicator.untracked {
|
|
color: #6b7280;
|
|
background: rgba(107, 114, 128, 0.1);
|
|
}
|
|
|
|
/* Commit Panel */
|
|
.commit-panel {
|
|
padding: 1rem;
|
|
border-top: 1px solid var(--border);
|
|
background: var(--panel);
|
|
}
|
|
|
|
.commit-panel h4 {
|
|
margin: 0 0 0.5rem 0;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.file-list {
|
|
max-height: 150px;
|
|
overflow: auto;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.file-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.25rem 0;
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
.file-status {
|
|
font-weight: bold;
|
|
font-size: 0.75rem;
|
|
width: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.file-item.modified .file-status { color: #f59e0b; }
|
|
.file-item.added .file-status { color: #10b981; }
|
|
.file-item.deleted .file-status { color: #ef4444; }
|
|
.file-item.untracked .file-status { color: #6b7280; }
|
|
|
|
.commit-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.commit-message-input {
|
|
width: 100%;
|
|
padding: 0.5rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
font-family: inherit;
|
|
font-size: 0.875rem;
|
|
resize: vertical;
|
|
}
|
|
|
|
.commit-button {
|
|
padding: 0.5rem 1rem;
|
|
background: var(--primary);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.commit-button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.commit-error {
|
|
color: #ef4444;
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
/* Modal Styles */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 1.5rem;
|
|
min-width: 400px;
|
|
max-width: 600px;
|
|
max-height: 80vh;
|
|
overflow: auto;
|
|
}
|
|
|
|
.modal-content h2 {
|
|
margin: 0 0 1rem 0;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 0.75rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
/* Merge Dialog */
|
|
.merge-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.merge-form .form-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.375rem;
|
|
}
|
|
|
|
.merge-form label {
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.merge-form select,
|
|
.merge-form input,
|
|
.merge-form textarea {
|
|
padding: 0.5rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
font-family: inherit;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.merge-form textarea {
|
|
resize: vertical;
|
|
}
|
|
|
|
.input-disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.success-text {
|
|
color: #10b981;
|
|
font-size: 0.875rem;
|
|
padding: 0.5rem;
|
|
background: rgba(16, 185, 129, 0.1);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Settings Layout */
|
|
.settings-layout {
|
|
display: flex;
|
|
gap: 2rem;
|
|
padding: 1.5rem 0;
|
|
}
|
|
|
|
.settings-sidebar {
|
|
width: 200px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.settings-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.settings-nav-link {
|
|
padding: 0.625rem 1rem;
|
|
border-radius: 8px;
|
|
color: var(--muted);
|
|
text-decoration: none;
|
|
font-size: 0.95rem;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.settings-nav-link:hover {
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
}
|
|
|
|
.settings-nav-link.active {
|
|
background: var(--brand);
|
|
color: white;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.settings-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.settings-panel {
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
/* Mobile responsiveness */
|
|
@media (max-width: 768px) {
|
|
.settings-layout {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.settings-sidebar {
|
|
width: 100%;
|
|
}
|
|
|
|
.settings-nav {
|
|
flex-direction: row;
|
|
overflow-x: auto;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
.settings-nav-link {
|
|
white-space: nowrap;
|
|
padding: 0.5rem 0.75rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.workspace-header {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.workspace-header-actions {
|
|
width: 100%;
|
|
justify-content: flex-start;
|
|
}
|
|
}
|
|
|
|
.settings-panel h2 {
|
|
margin: 0 0 1.25rem;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.settings-breadcrumb {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.9rem;
|
|
color: var(--muted);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.settings-breadcrumb a {
|
|
color: var(--brand);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.settings-breadcrumb a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.project-settings-page {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
/* Repositories Settings Tab */
|
|
.repositories-settings-tab h2 {
|
|
margin: 0 0 1.25rem;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.repositories-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.repository-card {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1rem;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.repository-info h3 {
|
|
margin: 0 0 0.25rem;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.repository-info p {
|
|
margin: 0 0 0.5rem;
|
|
font-size: 0.85rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.repo-type {
|
|
font-size: 0.75rem;
|
|
padding: 0.2rem 0.5rem;
|
|
background: var(--brand);
|
|
color: white;
|
|
border-radius: 999px;
|
|
}
|