123 lines
2.5 KiB
CSS
123 lines
2.5 KiB
CSS
/* BrowserHintOverlay 浏览器提示样式 */
|
|
|
|
.overlay {
|
|
position: absolute;
|
|
top: var(--spacing-2, 8px);
|
|
right: var(--spacing-2, 8px);
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr);
|
|
align-items: center;
|
|
gap: 8px;
|
|
z-index: 20;
|
|
width: fit-content;
|
|
max-width: min(74vw, 260px);
|
|
min-height: 48px;
|
|
padding: 8px 10px;
|
|
border: 1px solid rgba(255, 255, 255, 0.18);
|
|
border-radius: 18px;
|
|
background:
|
|
linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
|
|
var(--color-blur-background, rgba(13, 11, 20, 0.86));
|
|
box-shadow:
|
|
0 12px 28px rgba(0, 0, 0, 0.24),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.16);
|
|
color: #fff;
|
|
cursor: pointer;
|
|
pointer-events: auto;
|
|
backdrop-filter: blur(12px);
|
|
transition: border-color 0.16s ease, box-shadow 0.16s ease,
|
|
opacity 0.16s ease, padding 0.18s ease, transform 0.16s ease;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.expanded {
|
|
width: fit-content;
|
|
}
|
|
|
|
.collapsed {
|
|
display: inline-flex;
|
|
width: 42px;
|
|
height: 42px;
|
|
min-width: 42px;
|
|
min-height: 42px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 5px;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.iconWrap {
|
|
display: inline-flex;
|
|
width: 30px;
|
|
height: 30px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.15);
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
|
|
color: #fff;
|
|
transition: background 0.18s ease, transform 0.18s ease;
|
|
}
|
|
|
|
.collapsed .iconWrap {
|
|
width: 30px;
|
|
height: 30px;
|
|
}
|
|
|
|
.copy {
|
|
display: flex;
|
|
min-width: 0;
|
|
max-width: 190px;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
text-align: left;
|
|
opacity: 1;
|
|
overflow: hidden;
|
|
transform: translateX(0);
|
|
transition: max-width 0.2s ease, opacity 0.14s ease,
|
|
transform 0.18s ease;
|
|
white-space: normal;
|
|
}
|
|
|
|
.collapsed .copy {
|
|
display: none;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transform: translateX(6px);
|
|
}
|
|
|
|
.title {
|
|
color: #fff;
|
|
font-size: var(--font-size-sm, 12px);
|
|
font-weight: 800;
|
|
line-height: 1.25;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.description {
|
|
color: rgba(255, 255, 255, 0.72);
|
|
font-size: 11px;
|
|
font-weight: 650;
|
|
line-height: 1.2;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.overlay:hover {
|
|
border-color: rgba(255, 255, 255, 0.28);
|
|
box-shadow:
|
|
0 14px 32px rgba(0, 0, 0, 0.28),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.18);
|
|
opacity: 0.94;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.overlay:active {
|
|
opacity: 0.88;
|
|
transform: translateY(1px) scale(0.99);
|
|
}
|
|
|
|
.overlay:focus-visible {
|
|
outline: 2px solid rgba(255, 255, 255, 0.88);
|
|
outline-offset: 4px;
|
|
}
|