Spaces:
Sleeping
Sleeping
Mohammed AL Sarraj commited on
Commit ·
5bbe1c1
1
Parent(s): 2741f14
fix: viewport height layout, inline back button, meeting distiller sidebar
Browse files- app/templates/base.html +15 -3
app/templates/base.html
CHANGED
|
@@ -77,7 +77,8 @@ tailwind.config = {
|
|
| 77 |
</script>
|
| 78 |
<style>
|
| 79 |
*, *::before, *::after { box-sizing: border-box; }
|
| 80 |
-
html
|
|
|
|
| 81 |
body { font-family: DM Sans, sans-serif; }
|
| 82 |
.material-symbols-outlined {
|
| 83 |
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
@@ -115,7 +116,7 @@ tailwind.config = {
|
|
| 115 |
transition: background .15s, transform .12s;
|
| 116 |
font-family: DM Sans, sans-serif; white-space: nowrap;
|
| 117 |
}
|
| 118 |
-
.hub-back-btn:hover { background: rgba(0,217,126, .18);
|
| 119 |
.hub-back-btn-icon { font-size: 14px !important; color: #00d97e; line-height: 1; vertical-align: middle; }
|
| 120 |
</style>
|
| 121 |
{% block extra_head %}{% endblock %}
|
|
@@ -139,7 +140,18 @@ tailwind.config = {
|
|
| 139 |
lbl.textContent = "DevKit";
|
| 140 |
btn.appendChild(icon);
|
| 141 |
btn.appendChild(lbl);
|
| 142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
}
|
| 144 |
})();
|
| 145 |
</script>
|
|
|
|
| 77 |
</script>
|
| 78 |
<style>
|
| 79 |
*, *::before, *::after { box-sizing: border-box; }
|
| 80 |
+
html { height: 100%; }
|
| 81 |
+
body { height: 100%; display: flex; flex-direction: column; }
|
| 82 |
body { font-family: DM Sans, sans-serif; }
|
| 83 |
.material-symbols-outlined {
|
| 84 |
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
|
|
| 116 |
transition: background .15s, transform .12s;
|
| 117 |
font-family: DM Sans, sans-serif; white-space: nowrap;
|
| 118 |
}
|
| 119 |
+
.hub-back-btn:hover { transform: none; background: rgba(0,217,126, .18); }
|
| 120 |
.hub-back-btn-icon { font-size: 14px !important; color: #00d97e; line-height: 1; vertical-align: middle; }
|
| 121 |
</style>
|
| 122 |
{% block extra_head %}{% endblock %}
|
|
|
|
| 140 |
lbl.textContent = "DevKit";
|
| 141 |
btn.appendChild(icon);
|
| 142 |
btn.appendChild(lbl);
|
| 143 |
+
// Inject into first nav/header element's left group
|
| 144 |
+
var navEl = document.querySelector('header, nav');
|
| 145 |
+
if (navEl) {
|
| 146 |
+
var leftDiv = navEl.querySelector('div');
|
| 147 |
+
if (leftDiv) {
|
| 148 |
+
leftDiv.insertBefore(btn, leftDiv.firstChild);
|
| 149 |
+
} else {
|
| 150 |
+
navEl.insertBefore(btn, navEl.firstChild);
|
| 151 |
+
}
|
| 152 |
+
} else {
|
| 153 |
+
document.body.insertBefore(btn, document.body.firstChild);
|
| 154 |
+
}
|
| 155 |
}
|
| 156 |
})();
|
| 157 |
</script>
|