feat: adopt ep-design 1.4.0 in admin
This commit is contained in:
1 parent
21b00e3bd6
commit
fd3d88209c
4 files changed
+20
-10
No files matched your search
@@ -1,9 +1,9 @@
|
||||
import { Controller } from '@hotwired/stimulus'
|
||||
|
||||
/*
|
||||
* The sidebar as a drawer on small screens: a modal <dialog> (target "dialog"), so focus stays inside
|
||||
* and Escape closes it. A click on the dimmed page beside it closes it too, and so does widening the
|
||||
* window until the sidebar shows (lg).
|
||||
* The navigation (sidebar or header tabs) as a drawer on small screens: a modal <dialog> (target
|
||||
* "dialog"), so focus stays inside and Escape closes it. A click on the dimmed page beside it closes it
|
||||
* too, and so does widening the window until the navigation shows (lg).
|
||||
*/
|
||||
export default class extends Controller {
|
||||
static targets = ['dialog']
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* The admin in the E&P corporate design; shares nothing with app.css, so the frontend stays as it is */
|
||||
@import "tailwindcss" source(none);
|
||||
@import "toastify-js/src/toastify.css";
|
||||
@import "tippy.js/dist/tippy.css";
|
||||
@import "toastify-js/src/toastify.css" layer(base);
|
||||
@import "tippy.js/dist/tippy.css" layer(base);
|
||||
@import "./ep-design.css";
|
||||
@import "./_admin.css";
|
||||
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
* Status colours (green, red, amber) always come with text, never alone.
|
||||
*
|
||||
* Import after Tailwind: @import "tailwindcss"; @import "./ep-design.css"; @plugin "@tailwindcss/forms";
|
||||
* The toast styles expect toastify-js (@import "toastify-js/src/toastify.css" before this file).
|
||||
* The toast styles expect toastify-js, imported into the base layer before this file:
|
||||
* @import "toastify-js/src/toastify.css" layer(base); unlayered (or through its own <link>), its
|
||||
* colours and gradient beat these layered styles whatever their specificity.
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -245,7 +247,7 @@
|
||||
@apply -rotate-135;
|
||||
}
|
||||
|
||||
/* the sidebar as a drawer from the left on small screens (drawer_controller.js) */
|
||||
/* the navigation (sidebar or header tabs) as a drawer from the left on small screens (drawer_controller.js) */
|
||||
dialog.drawer {
|
||||
@apply m-0 h-dvh max-h-none w-80 max-w-[calc(100vw-4rem)] bg-page p-0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user