mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 09:42:21 +00:00
Vue kit: UiCloseButton for every close button in the views
UiCloseButton is a UiButton with a fixed glyph (× or the Material close symbol through UiIcon), a required accessible label and no tip unless the site passes a title. Attributes and classes pass through, so each site keeps its id, feature class, data and aria attributes, and its look. Its kit class, ui-close-button (close-button.css, loaded before the feature stylesheets), is Core's common look: a bare glyph with no padding, border or background of its own, and a pointer. The guide's close button shares the rule, and the copies of those declarations leave the feature rules. `bare` leaves the look off for Street Level's and the space mission's close buttons, whose skins keep the browser's padding. UiIcon takes size null to leave the glyph's size to the stylesheet. The sixteen hand-written close, dismiss and clear buttons in the SFCs are now UiCloseButtons; closeButtons.test.mjs pins that none remain. Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
1 parent
c58f9fbdc6
commit
1711b4b456
32 files changed
+317
-69
No files matched your search
@@ -361,18 +361,17 @@ html:not([lang='en']) .bhote-embedded-callout footer a {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* A UiCloseButton (close-button.css). */
|
||||
.bhote-event-icon-btn {
|
||||
flex: 0 0 30px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
padding: 0;
|
||||
border: 1px solid rgba(151, 211, 224, 0.26);
|
||||
border-radius: 4px;
|
||||
color: var(--text-primary);
|
||||
background: var(--accent-dim);
|
||||
font: inherit;
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.bhote-event-status-row {
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* Core's close, dismiss and clear buttons draw a bare glyph: no padding,
|
||||
* border or background of their own, and a pointer. The kit's
|
||||
* UiCloseButton wears it as .ui-close-button; the guide's close button,
|
||||
* built in script, shares the rule. It selects one class and loads before
|
||||
* the feature stylesheets, so each feature rule still sets its size, colour,
|
||||
* hover and any surface (a border, a chip, a tinted square). */
|
||||
.ui-close-button,
|
||||
.gev-guide-close {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -148,18 +148,15 @@ body.mobile-shell .context-dock-btn {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* A UiCloseButton (close-button.css). */
|
||||
.context-search__clear {
|
||||
display: grid;
|
||||
flex: none;
|
||||
place-items: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
padding: 0;
|
||||
color: rgba(199, 214, 222, 0.65);
|
||||
background: transparent;
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.context-search__clear:hover,
|
||||
|
||||
@@ -83,18 +83,15 @@
|
||||
color: #ff9f43;
|
||||
}
|
||||
|
||||
/* A UiCloseButton: close-button.css draws no padding, border or background. */
|
||||
.entity-card__close {
|
||||
display: grid;
|
||||
flex: none;
|
||||
place-items: center;
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
padding: 0;
|
||||
color: rgba(199, 214, 222, 0.6);
|
||||
background: none;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.entity-card__close:hover,
|
||||
@@ -1119,18 +1116,16 @@
|
||||
color: #ff5c6c;
|
||||
}
|
||||
|
||||
/* A UiCloseButton (close-button.css). */
|
||||
.view-context__live-off {
|
||||
display: grid;
|
||||
flex: none;
|
||||
place-items: center;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
padding: 0;
|
||||
color: rgba(199, 214, 222, 0.5);
|
||||
background: none;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.view-context__live-off .material-symbols-outlined {
|
||||
@@ -1314,18 +1309,16 @@
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
/* A UiCloseButton (close-button.css). */
|
||||
.cctv-popup__close {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin-inline-start: auto;
|
||||
padding: 0;
|
||||
color: rgba(236, 244, 248, 0.8);
|
||||
background: none;
|
||||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.cctv-popup__close:hover {
|
||||
|
||||
@@ -190,20 +190,17 @@
|
||||
letter-spacing: 0.06rem;
|
||||
}
|
||||
|
||||
/* Shares close-button.css: no padding, border or background, a pointer. */
|
||||
.gev-guide-close {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin: -2px -4px 0 0;
|
||||
padding: 0;
|
||||
color: rgba(214, 220, 226, 0.55);
|
||||
font-size: 0.95rem;
|
||||
line-height: 1;
|
||||
background: none;
|
||||
border: 0;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.gev-guide-close:hover,
|
||||
|
||||
@@ -129,15 +129,14 @@
|
||||
color: rgba(54, 220, 255, 0.86);
|
||||
}
|
||||
|
||||
/* A UiCloseButton (close-button.css). */
|
||||
.key-setup-close {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 0.15rem;
|
||||
color: rgba(171, 210, 220, 0.6);
|
||||
background: none;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 0.3rem;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
color var(--transition-fast),
|
||||
border-color var(--transition-fast);
|
||||
|
||||
@@ -94,18 +94,17 @@
|
||||
color: #ffc46b;
|
||||
}
|
||||
|
||||
/* A UiCloseButton (close-button.css). */
|
||||
.gev-voice-card-dismiss {
|
||||
margin-inline-start: auto;
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
padding: 0;
|
||||
color: var(--text-secondary);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border: 1px solid rgba(54, 220, 255, 0.24);
|
||||
border-radius: 0.2rem;
|
||||
font-size: 0.72rem;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
color var(--transition-fast),
|
||||
border-color var(--transition-fast);
|
||||
|
||||
Reference in new issue
Block a user