latest changes
This commit is contained in:
@@ -0,0 +1,163 @@
|
||||
/* Keep Bootstrap components in the same palette as the dashboard shell. */
|
||||
html[data-theme] {
|
||||
--bs-body-bg: var(--page-bg);
|
||||
--bs-body-color: var(--text);
|
||||
--bs-emphasis-color: var(--text);
|
||||
--bs-secondary-color: var(--text-secondary);
|
||||
--bs-secondary-bg: var(--surface-secondary);
|
||||
--bs-tertiary-bg: var(--surface);
|
||||
--bs-border-color: var(--border);
|
||||
--bs-border-color-translucent: var(--border);
|
||||
--bs-heading-color: var(--text);
|
||||
--bs-link-color: var(--accent);
|
||||
--bs-link-hover-color: var(--positive);
|
||||
--bs-code-color: var(--accent);
|
||||
--bs-form-valid-color: var(--positive);
|
||||
--bs-form-invalid-color: var(--negative);
|
||||
}
|
||||
|
||||
html[data-theme] .card,
|
||||
html[data-theme] .dropdown-menu,
|
||||
html[data-theme] .modal-content,
|
||||
html[data-theme] .list-group-item,
|
||||
html[data-theme] .accordion-item {
|
||||
--bs-card-bg: var(--surface);
|
||||
--bs-card-color: var(--text);
|
||||
background-color: var(--surface);
|
||||
color: var(--text);
|
||||
border-color: var(--border);
|
||||
}
|
||||
|
||||
html[data-theme] .card-header,
|
||||
html[data-theme] .card-footer,
|
||||
html[data-theme] .accordion-button {
|
||||
background-color: var(--surface-secondary);
|
||||
color: var(--text);
|
||||
border-color: var(--border);
|
||||
}
|
||||
|
||||
html[data-theme] .form-control,
|
||||
html[data-theme] .form-select,
|
||||
html[data-theme] select,
|
||||
html[data-theme] textarea,
|
||||
html[data-theme] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
|
||||
background-color: var(--surface);
|
||||
color: var(--text);
|
||||
border-color: var(--border);
|
||||
}
|
||||
|
||||
html[data-theme] main form p label {
|
||||
display: block;
|
||||
margin-bottom: .3rem;
|
||||
color: var(--text-secondary);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
html[data-theme] main form p input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="color"]),
|
||||
html[data-theme] main form p textarea,
|
||||
html[data-theme] main form p select {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
padding: .5rem .75rem;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: .5rem;
|
||||
}
|
||||
|
||||
html[data-theme] .form-control::placeholder,
|
||||
html[data-theme] textarea::placeholder,
|
||||
html[data-theme] input::placeholder {
|
||||
color: var(--text-muted);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
html[data-theme] .form-control:focus,
|
||||
html[data-theme] .form-select:focus,
|
||||
html[data-theme] select:focus,
|
||||
html[data-theme] textarea:focus,
|
||||
html[data-theme] input:focus:not([type="checkbox"]):not([type="radio"]) {
|
||||
background-color: var(--surface);
|
||||
color: var(--text);
|
||||
border-color: var(--focus);
|
||||
box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--focus) 25%, transparent);
|
||||
}
|
||||
|
||||
html[data-theme] .form-control:disabled,
|
||||
html[data-theme] .form-select:disabled,
|
||||
html[data-theme] select:disabled,
|
||||
html[data-theme] input:disabled {
|
||||
background-color: var(--surface-secondary);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
html[data-theme] option {
|
||||
background-color: var(--surface);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
html[data-theme] .form-check-input {
|
||||
background-color: var(--surface);
|
||||
border-color: var(--text-muted);
|
||||
}
|
||||
|
||||
html[data-theme] .form-check-input:checked {
|
||||
background-color: var(--positive);
|
||||
border-color: var(--positive);
|
||||
}
|
||||
|
||||
html[data-theme] .text-bg-light,
|
||||
html[data-theme] .bg-light {
|
||||
background-color: var(--surface-secondary) !important;
|
||||
color: var(--text) !important;
|
||||
}
|
||||
|
||||
html[data-theme] .text-muted,
|
||||
html[data-theme] .text-secondary {
|
||||
color: var(--text-secondary) !important;
|
||||
}
|
||||
|
||||
html[data-theme] .btn-outline-secondary {
|
||||
--bs-btn-color: var(--text-secondary);
|
||||
--bs-btn-border-color: var(--border);
|
||||
--bs-btn-hover-color: var(--text);
|
||||
--bs-btn-hover-bg: var(--surface-secondary);
|
||||
--bs-btn-hover-border-color: var(--text-muted);
|
||||
--bs-btn-active-color: var(--text);
|
||||
--bs-btn-active-bg: var(--surface-secondary);
|
||||
--bs-btn-active-border-color: var(--text-muted);
|
||||
}
|
||||
|
||||
html[data-theme] .btn-outline-danger {
|
||||
--bs-btn-color: var(--negative);
|
||||
--bs-btn-border-color: var(--negative);
|
||||
--bs-btn-hover-color: var(--page-bg);
|
||||
--bs-btn-hover-bg: var(--negative);
|
||||
--bs-btn-hover-border-color: var(--negative);
|
||||
}
|
||||
|
||||
html[data-theme] .btn-success {
|
||||
--bs-btn-bg: var(--positive);
|
||||
--bs-btn-border-color: var(--positive);
|
||||
--bs-btn-color: var(--page-bg);
|
||||
--bs-btn-hover-bg: var(--accent);
|
||||
--bs-btn-hover-border-color: var(--accent);
|
||||
--bs-btn-hover-color: var(--page-bg);
|
||||
}
|
||||
|
||||
html[data-theme] .table {
|
||||
--bs-table-bg: var(--surface);
|
||||
--bs-table-color: var(--text);
|
||||
--bs-table-border-color: var(--border);
|
||||
--bs-table-striped-bg: var(--surface-secondary);
|
||||
--bs-table-striped-color: var(--text);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .form-select {
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b5c4b9' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
html[data-theme="system"] .form-select {
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b5c4b9' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
|
||||
}
|
||||
}
|
||||
@@ -11,22 +11,19 @@
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css">
|
||||
{% vite_assets %}
|
||||
<link rel="stylesheet" href="{% static 'core/theme-bridge.css' %}">
|
||||
</head>
|
||||
<body>
|
||||
<a class="skip-link" href="#main">Skip to content</a>
|
||||
<div class="app-shell">
|
||||
<aside class="sidebar" aria-label="Main navigation">
|
||||
<a class="brand" href="{% url 'today' %}" aria-label="Common Ground home"><span class="brand-mark"><i class="bi bi-grid-1x2-fill"></i></span><span>common<span class="brand-light">ground</span><small>PERSONAL OVERVIEW</small></span></a>
|
||||
<a class="brand" href="{% url 'dashboard:index' %}" aria-label="Common Ground home"><span class="brand-mark"><i class="bi bi-grid-1x2-fill"></i></span><span>common<span class="brand-light">ground</span><small>PERSONAL OVERVIEW</small></span></a>
|
||||
<div class="nav-label">WORKSPACE</div>
|
||||
<nav class="side-nav">
|
||||
<a href="{% url 'today' %}" {% if section == 'today' %}aria-current="page"{% endif %}><i class="bi bi-layout-text-window-reverse"></i><span>Today</span></a>
|
||||
<a href="{% url 'health' %}" {% if section == 'health' %}aria-current="page"{% endif %}><i class="bi bi-heart"></i><span>Health</span></a>
|
||||
<a href="{% url 'energy' %}" {% if section == 'energy' %}aria-current="page"{% endif %}><i class="bi bi-lightning-charge"></i><span>Energy</span></a>
|
||||
<a href="{% url 'home' %}" {% if section == 'home' %}aria-current="page"{% endif %}><i class="bi bi-house"></i><span>Home</span></a>
|
||||
</nav>
|
||||
<nav class="side-nav"><a href="{% url 'dashboard:index' %}" {% if section == 'dashboard' %}aria-current="page"{% endif %}><i class="bi bi-grid-1x2"></i><span>Dashboard</span></a></nav>
|
||||
<details class="nav-submenu" {% if section == 'today' or section == 'health' or section == 'energy' or section == 'home' or section == 'showcase' %}open{% endif %}><summary><i class="bi bi-palette"></i> Design examples</summary><nav class="side-nav" aria-label="Design examples"><a href="{% url 'today' %}" {% if section == 'today' %}aria-current="page"{% endif %}>Today</a><a href="{% url 'health' %}" {% if section == 'health' %}aria-current="page"{% endif %}>Health</a><a href="{% url 'energy' %}" {% if section == 'energy' %}aria-current="page"{% endif %}>Energy</a><a href="{% url 'home' %}" {% if section == 'home' %}aria-current="page"{% endif %}>Home</a><a href="{% url 'showcase' %}" {% if section == 'showcase' %}aria-current="page"{% endif %}>Showcase</a></nav></details>
|
||||
{% if user.is_authenticated %}<div class="nav-label">PROJECTS</div><nav class="side-nav"><a href="{% url 'projects:list' %}" {% if section == 'projects' %}aria-current="page"{% endif %}><i class="bi bi-kanban"></i><span>All Projects</span></a>{% for nav_project in nav_projects %}<a href="{% url 'projects:board' nav_project.id %}"><i class="bi bi-folder"></i><span>{{ nav_project.name }}</span></a>{% endfor %}</nav><div class="nav-label">ACCOUNT</div><nav class="side-nav"><a href="{% url 'projects:profile' %}" {% if section == 'profile' %}aria-current="page"{% endif %}><i class="bi bi-person-circle"></i><span>Profile</span></a></nav>{% endif %}
|
||||
<div class="nav-label secondary-label">EXPLORE</div>
|
||||
<nav class="side-nav secondary-nav"><a href="{% url 'showcase' %}" {% if section == 'showcase' %}aria-current="page"{% endif %}><i class="bi bi-palette"></i><span>Showcase</span></a><span class="nav-disabled"><i class="bi bi-stars"></i>Insights <small>SOON</small></span><span class="nav-disabled"><i class="bi bi-gear"></i>Settings <small>SOON</small></span></nav>
|
||||
<nav class="side-nav secondary-nav"><span class="nav-disabled"><i class="bi bi-stars"></i>Insights <small>SOON</small></span><span class="nav-disabled"><i class="bi bi-gear"></i>Settings <small>SOON</small></span></nav>
|
||||
<div class="sidebar-bottom"><span class="demo-dot"></span><div><strong>{{ user.get_username }}</strong><small>Dashboard</small></div></div>
|
||||
</aside>
|
||||
<div class="main-column">
|
||||
@@ -34,5 +31,5 @@
|
||||
<main id="main" class="page-content">{% block content %}{% endblock %}</main>
|
||||
</div>
|
||||
</div>
|
||||
<nav class="mobile-nav" aria-label="Mobile navigation"><a href="{% url 'today' %}" {% if section == 'today' %}aria-current="page"{% endif %}><i class="bi bi-layout-text-window-reverse"></i><span>Dashboard</span></a><a href="{% url 'projects:list' %}" {% if section == 'projects' %}aria-current="page"{% endif %}><i class="bi bi-kanban"></i><span>Projects</span></a><a href="{% url 'projects:profile' %}" {% if section == 'profile' %}aria-current="page"{% endif %}><i class="bi bi-person"></i><span>Profile</span></a><a href="{% url 'health' %}"><i class="bi bi-heart"></i><span>Health</span></a><a href="{% url 'home' %}"><i class="bi bi-house"></i><span>Home</span></a></nav>
|
||||
<nav class="mobile-nav" aria-label="Mobile navigation"><a href="{% url 'dashboard:index' %}" {% if section == 'dashboard' %}aria-current="page"{% endif %}><i class="bi bi-layout-text-window-reverse"></i><span>Dashboard</span></a><a href="{% url 'projects:list' %}" {% if section == 'projects' %}aria-current="page"{% endif %}><i class="bi bi-kanban"></i><span>Projects</span></a><a href="{% url 'projects:profile' %}" {% if section == 'profile' %}aria-current="page"{% endif %}><i class="bi bi-person"></i><span>Profile</span></a><a href="{% url 'today' %}"><i class="bi bi-palette"></i><span>Examples</span></a></nav>
|
||||
</body></html>
|
||||
|
||||
Reference in New Issue
Block a user