mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
6a3487f7b7
The cookie consent popup showed only text and two buttons. Add the Angie greeting pose to it so the first thing a new visitor sees carries the same mascot treatment already used across the docs (the 404 page, empty search results, the preview error state). The message and mascot sit in a flex header row; the two action buttons now share the row equally so they fill the card instead of leaving a trailing gap. Layout only, the consent behaviour is unchanged.
60 lines
1.0 KiB
SCSS
60 lines
1.0 KiB
SCSS
:host {
|
|
position: fixed;
|
|
bottom: 0.5rem;
|
|
right: 0.5rem;
|
|
z-index: var(--z-index-cookie-consent);
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
animation: 1s linear forwards 0.5s fadeIn;
|
|
}
|
|
|
|
.docs-cookies-popup {
|
|
padding: 1rem;
|
|
background-color: var(--page-background);
|
|
border: 1px solid var(--senary-contrast);
|
|
border-radius: 0.25rem;
|
|
font-size: 0.875rem;
|
|
max-width: 265px;
|
|
transition:
|
|
background-color 0.3s ease,
|
|
border-color 0.3s ease,
|
|
color 0.3s ease;
|
|
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
|
|
|
|
.docs-cookies-popup-header {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.docs-cookies-popup-angie {
|
|
flex-shrink: 0;
|
|
width: 52px;
|
|
height: auto;
|
|
}
|
|
|
|
.docs-cookies-popup-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
width: 100%;
|
|
margin-block-start: 1rem;
|
|
|
|
.docs-primary-btn {
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
p {
|
|
margin-block: 0;
|
|
color: var(--primary-contrast);
|
|
}
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
100% {
|
|
opacity: 100%;
|
|
visibility: visible;
|
|
}
|
|
}
|