2021-03-20 21:10:15 +08:00
|
|
|
/*
|
|
|
|
Conditional elements display.
|
|
|
|
|
|
|
|
Verious hooks and callbacks dynamically set attributes
|
|
|
|
based on which we hide/show certain elements.
|
|
|
|
This way we don't have to engage the server in
|
|
|
|
solely client-side operations.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* === Global === */
|
|
|
|
|
2021-04-22 05:02:09 +08:00
|
|
|
[data-element="menu"]:not([data-js-open]) > [data-content] {
|
2021-03-20 21:10:15 +08:00
|
|
|
@apply hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* === Session === */
|
|
|
|
|
|
|
|
[data-element="session"]:not([data-js-insert-mode])
|
2021-04-01 18:56:19 +08:00
|
|
|
[data-element="insert-mode-indicator"] {
|
|
|
|
@apply invisible;
|
2021-03-20 21:10:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
[data-element="session"]
|
|
|
|
[data-element="cell"][data-type="markdown"]
|
|
|
|
[data-element="editor-box"] {
|
|
|
|
@apply hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
[data-element="session"][data-js-insert-mode]
|
|
|
|
[data-element="cell"][data-type="markdown"][data-js-focused]
|
|
|
|
[data-element="editor-box"] {
|
|
|
|
@apply block;
|
|
|
|
}
|
|
|
|
|
|
|
|
[data-element="session"][data-js-insert-mode]
|
|
|
|
[data-element="cell"][data-type="markdown"][data-js-focused]
|
|
|
|
[data-element="enable-insert-mode-button"] {
|
|
|
|
@apply hidden;
|
|
|
|
}
|
|
|
|
|
2021-04-05 00:55:51 +08:00
|
|
|
[data-element="session"]:not([data-js-insert-mode])
|
|
|
|
[data-element="cell"][data-type="markdown"][data-js-focused]
|
|
|
|
[data-element="insert-image-button"] {
|
|
|
|
@apply hidden;
|
|
|
|
}
|
|
|
|
|
2021-03-20 21:10:15 +08:00
|
|
|
[data-element="cell"][data-js-focused] {
|
|
|
|
@apply border-blue-300 border-opacity-100;
|
|
|
|
}
|
|
|
|
|
2021-03-23 21:10:34 +08:00
|
|
|
[data-element="cell"]:not([data-js-focused])
|
|
|
|
[data-element="actions"]:not(:focus-within) {
|
|
|
|
/* Note: using opacity, so the buttons are focusable (via tab navigation)
|
2021-06-18 22:14:20 +08:00
|
|
|
and when focused we show the actions back. */
|
|
|
|
@apply opacity-0;
|
|
|
|
}
|
|
|
|
|
|
|
|
[data-element="cell"]:not([data-js-focused])
|
|
|
|
[data-element="actions"]:not([data-primary]):not(:focus-within) {
|
|
|
|
@apply pointer-events-none;
|
2021-03-20 21:10:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
[data-element="cell"]:not([data-js-focused]):hover
|
2021-03-23 21:10:34 +08:00
|
|
|
[data-element="actions"][data-primary] {
|
|
|
|
@apply opacity-100 pointer-events-auto;
|
2021-03-20 21:10:15 +08:00
|
|
|
}
|
|
|
|
|
2021-06-10 20:54:55 +08:00
|
|
|
[data-element="cell"] [data-element="change-indicator"]:not([data-js-shown]) {
|
|
|
|
@apply invisible;
|
|
|
|
}
|
|
|
|
|
2021-05-07 22:41:37 +08:00
|
|
|
[data-element="sections-list-item"][data-js-is-viewed] {
|
2021-03-26 00:39:18 +08:00
|
|
|
@apply text-gray-900;
|
2021-03-20 21:10:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
[data-element="cell"]:not([data-js-focused]):hover
|
|
|
|
[data-element="cell-focus-indicator"] {
|
|
|
|
@apply bg-blue-200;
|
|
|
|
}
|
|
|
|
|
|
|
|
[data-element="cell"][data-js-focused] [data-element="cell-focus-indicator"] {
|
|
|
|
@apply bg-blue-300;
|
|
|
|
}
|
|
|
|
|
2021-05-04 02:03:19 +08:00
|
|
|
[data-element="session"]:not([data-js-side-panel-content])
|
|
|
|
[data-element="side-panel"] {
|
2021-03-20 21:10:15 +08:00
|
|
|
@apply hidden;
|
|
|
|
}
|
|
|
|
|
2021-05-04 02:03:19 +08:00
|
|
|
[data-element="session"]:not([data-js-side-panel-content="sections-list"])
|
|
|
|
[data-element="sections-list"] {
|
|
|
|
@apply hidden;
|
|
|
|
}
|
|
|
|
|
2021-05-07 22:41:37 +08:00
|
|
|
[data-element="session"]:not([data-js-side-panel-content="clients-list"])
|
|
|
|
[data-element="clients-list"] {
|
2021-05-04 02:03:19 +08:00
|
|
|
@apply hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
[data-element="session"][data-js-side-panel-content="sections-list"]
|
|
|
|
[data-element="sections-list-toggle"] {
|
|
|
|
@apply text-gray-50 bg-gray-700;
|
|
|
|
}
|
|
|
|
|
2021-05-07 22:41:37 +08:00
|
|
|
[data-element="session"][data-js-side-panel-content="clients-list"]
|
|
|
|
[data-element="clients-list-toggle"] {
|
2021-04-02 20:54:14 +08:00
|
|
|
@apply text-gray-50 bg-gray-700;
|
2021-03-20 21:10:15 +08:00
|
|
|
}
|
|
|
|
|
2021-03-21 23:44:48 +08:00
|
|
|
[data-element="section-headline"]:not(:hover)
|
|
|
|
[data-element="section-name"]:not(:focus)
|
|
|
|
+ [data-element="section-actions"] {
|
2021-03-20 21:10:15 +08:00
|
|
|
@apply hidden;
|
|
|
|
}
|
2021-05-07 22:41:37 +08:00
|
|
|
|
|
|
|
[data-element="clients-list-item"]:not([data-js-followed])
|
|
|
|
[data-meta="unfollow"] {
|
|
|
|
@apply hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
[data-element="clients-list-item"][data-js-followed] [data-meta="follow"] {
|
|
|
|
@apply hidden;
|
|
|
|
}
|