mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 09:42:21 +00:00
Vue kit: compact styles the action variant only, tone is accent or danger, a disabled icon button dims; pin the inherited type
Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
1 parent
4114ea1a05
commit
0d3c3325d4
7 files changed
+87
-27
No files matched your search
@@ -24,7 +24,8 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* A pressed kit action looks as a hovered one does. */
|
||||
/* A pressed kit action looks as a hovered regular one does (a compact one
|
||||
too: its quieter hover below is for an unpressed button). */
|
||||
.ui-button--action:hover:not(:disabled),
|
||||
.ui-button--primary:hover:not(:disabled),
|
||||
.ui-button--action.ui-button--pressed:not(:disabled),
|
||||
@@ -65,8 +66,9 @@
|
||||
}
|
||||
|
||||
/* Shot-row actions retain their smaller footprint and quieter hover treatment
|
||||
(size="compact"). */
|
||||
.ui-button--compact,
|
||||
(size="compact", on the action variant only: :where keeps the kit
|
||||
selector at one class's weight). */
|
||||
.ui-button--compact:where(.ui-button--action),
|
||||
.gev-action-button--compact {
|
||||
border-radius: 6px;
|
||||
font-size: 8px;
|
||||
@@ -75,14 +77,18 @@
|
||||
}
|
||||
|
||||
/* A pressed compact action keeps its pressed look under the pointer. */
|
||||
.ui-button--compact:hover:not(:disabled):not(.ui-button--pressed),
|
||||
.ui-button--compact:where(.ui-button--action):hover:not(:disabled):not(
|
||||
.ui-button--pressed
|
||||
),
|
||||
.gev-action-button--compact:hover:not(:disabled) {
|
||||
color: var(--text-primary);
|
||||
border-color: var(--glass-border-hover);
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.ui-button--compact.ui-button--danger:hover:not(:disabled),
|
||||
.ui-button--compact.ui-button--danger:where(.ui-button--action):hover:not(
|
||||
:disabled
|
||||
),
|
||||
.gev-action-button--compact.gev-action-button--danger:hover:not(:disabled) {
|
||||
color: #ff7e7e;
|
||||
border-color: #ff7e7e;
|
||||
|
||||
@@ -209,14 +209,19 @@ html:not([lang='en']):not(:lang(zh)):not(:lang(ja))
|
||||
}
|
||||
|
||||
/* A pressed kit icon button looks as a hovered one does. */
|
||||
.ui-button--icon:hover,
|
||||
.ui-button--icon.ui-button--pressed,
|
||||
.ui-button--icon:hover:not(:disabled),
|
||||
.ui-button--icon.ui-button--pressed:not(:disabled),
|
||||
.panel-collapse-btn:hover {
|
||||
border-color: var(--glass-border-hover);
|
||||
color: var(--text-primary);
|
||||
background: rgba(255, 255, 255, 0.07);
|
||||
}
|
||||
|
||||
.ui-button--icon:disabled {
|
||||
opacity: 0.45;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* A side panel answers the pointer as the command dock's trays do: a
|
||||
brighter edge and an accent title and toggle. Touch screens have no hover,
|
||||
so a tap must not leave a panel lit. */
|
||||
|
||||
Reference in new issue
Block a user