Refactors page styles into separate CSS files
Extracts inline styles from Razor pages into modular CSS files Adds new CSS files for components and specific page styles Improves code organization and maintainability by separating styling concerns Updates layout to include new CSS files and optional style sections
This commit is contained in:
parent
77d35ff965
commit
08f8150064
12 changed files with 577 additions and 555 deletions
|
|
@ -4,6 +4,10 @@
|
|||
ViewData["Title"] = "Forgejo Repositories";
|
||||
}
|
||||
|
||||
@section Styles {
|
||||
<link rel="stylesheet" href="~/css/pages/forgejo.css" asp-append-version="true" />
|
||||
}
|
||||
|
||||
<div class="page-header">
|
||||
<h1 class="page-title">Repositories</h1>
|
||||
<p class="page-subtitle">Alle repositories med backup status</p>
|
||||
|
|
@ -144,74 +148,6 @@ else
|
|||
}
|
||||
}
|
||||
|
||||
<style>
|
||||
.filter-tabs {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.filter-tab {
|
||||
padding: 6px 12px;
|
||||
border: 1px solid var(--border-color);
|
||||
background: transparent;
|
||||
font-family: inherit;
|
||||
font-size: 11px;
|
||||
cursor: pointer;
|
||||
border-radius: var(--radius-sm);
|
||||
transition: all 0.15s;
|
||||
}
|
||||
|
||||
.filter-tab:hover {
|
||||
background: var(--hover-bg);
|
||||
}
|
||||
|
||||
.filter-tab.active {
|
||||
background: var(--text-color);
|
||||
color: var(--bg-color);
|
||||
border-color: var(--text-color);
|
||||
}
|
||||
|
||||
.repo-desc {
|
||||
font-size: 10px;
|
||||
color: var(--muted-color);
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.backup-detail {
|
||||
font-size: 10px;
|
||||
color: var(--muted-color);
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.warning-card {
|
||||
border-color: var(--warning-color);
|
||||
}
|
||||
|
||||
.warning-card .card-header {
|
||||
background: linear-gradient(90deg, rgba(240, 165, 0, 0.1), transparent);
|
||||
}
|
||||
|
||||
.missing-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.missing-repo {
|
||||
background: rgba(240, 165, 0, 0.1);
|
||||
border: 1px solid var(--warning-color);
|
||||
padding: 4px 8px;
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.repo-row.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.success { color: var(--success-color); }
|
||||
</style>
|
||||
|
||||
<script>
|
||||
function filterRepos(filter) {
|
||||
// Update active tab
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue