546 lines
10 KiB
CSS
546 lines
10 KiB
CSS
|
|
.toolbar-customize-backdrop {
|
||
|
|
position: fixed;
|
||
|
|
inset: 0;
|
||
|
|
z-index: 120;
|
||
|
|
display: grid;
|
||
|
|
place-items: center;
|
||
|
|
padding: 20px;
|
||
|
|
background: rgba(18, 24, 32, 0.18);
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-dialog {
|
||
|
|
width: min(calc(100vw - 32px), 720px);
|
||
|
|
max-height: calc(100vh - 40px);
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
overflow: hidden;
|
||
|
|
border: 1px solid rgba(221, 225, 232, 0.96);
|
||
|
|
border-radius: 16px;
|
||
|
|
background: #fff;
|
||
|
|
box-shadow: 0 26px 72px rgba(17, 24, 39, 0.22);
|
||
|
|
outline: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-dialog-header {
|
||
|
|
display: flex;
|
||
|
|
align-items: flex-start;
|
||
|
|
justify-content: space-between;
|
||
|
|
gap: 18px;
|
||
|
|
padding: 24px 24px 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-dialog-header h3 {
|
||
|
|
margin: 0;
|
||
|
|
color: #191c22;
|
||
|
|
font-size: 20px;
|
||
|
|
font-weight: 780;
|
||
|
|
line-height: 1.25;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-dialog-header p {
|
||
|
|
margin: 6px 0 0;
|
||
|
|
color: rgba(25, 28, 34, 0.88);
|
||
|
|
font-size: 16px;
|
||
|
|
line-height: 1.35;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-dialog-actions {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-dialog-actions button {
|
||
|
|
width: 30px;
|
||
|
|
height: 30px;
|
||
|
|
display: inline-grid;
|
||
|
|
place-items: center;
|
||
|
|
border-radius: 8px;
|
||
|
|
color: #262b33;
|
||
|
|
background: transparent;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-dialog-actions button:hover,
|
||
|
|
.toolbar-customize-dialog-actions button:focus-visible {
|
||
|
|
background: #f3f4f6;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview {
|
||
|
|
margin: 28px 24px 24px;
|
||
|
|
height: 180px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
overflow: hidden;
|
||
|
|
border-radius: 10px;
|
||
|
|
background-color: #f4f7f7;
|
||
|
|
background-image:
|
||
|
|
linear-gradient(90deg, rgba(148, 163, 184, 0.2) 1px, transparent 1px),
|
||
|
|
linear-gradient(rgba(148, 163, 184, 0.2) 1px, transparent 1px);
|
||
|
|
background-position: center;
|
||
|
|
background-size: 24px 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-scroll {
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
overflow-x: auto;
|
||
|
|
overflow-y: hidden;
|
||
|
|
box-sizing: border-box;
|
||
|
|
padding: 0 18px;
|
||
|
|
cursor: grab;
|
||
|
|
scrollbar-color: rgba(126, 137, 143, 0.64) transparent;
|
||
|
|
scrollbar-width: thin;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-scroll.is-scrolling {
|
||
|
|
cursor: grabbing;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-scroll::-webkit-scrollbar {
|
||
|
|
height: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-scroll::-webkit-scrollbar-track {
|
||
|
|
margin: 0 120px;
|
||
|
|
background: transparent;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-scroll::-webkit-scrollbar-thumb {
|
||
|
|
border-radius: 999px;
|
||
|
|
background: rgba(126, 137, 143, 0.64);
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-bar {
|
||
|
|
width: fit-content;
|
||
|
|
min-width: 0;
|
||
|
|
flex: 0 0 auto;
|
||
|
|
height: 44px;
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 4px;
|
||
|
|
margin: 0 auto;
|
||
|
|
padding: 0 6px;
|
||
|
|
border: 1px solid rgba(222, 226, 233, 0.95);
|
||
|
|
border-radius: 14px;
|
||
|
|
background: rgba(255, 255, 255, 0.98);
|
||
|
|
box-shadow: 0 12px 30px rgba(17, 24, 39, 0.13);
|
||
|
|
transition: width 180ms ease, max-width 180ms ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-slot {
|
||
|
|
display: inline-flex;
|
||
|
|
flex: 0 0 auto;
|
||
|
|
align-items: center;
|
||
|
|
align-self: stretch;
|
||
|
|
gap: 4px;
|
||
|
|
max-width: 320px;
|
||
|
|
overflow: visible;
|
||
|
|
opacity: 1;
|
||
|
|
transform: scale(1);
|
||
|
|
transition:
|
||
|
|
max-width 180ms ease,
|
||
|
|
opacity 160ms ease,
|
||
|
|
transform 180ms ease;
|
||
|
|
user-select: none;
|
||
|
|
animation: toolbar-customize-tag-enter 180ms ease-out both;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-slot.is-exiting {
|
||
|
|
max-width: 0;
|
||
|
|
overflow: hidden;
|
||
|
|
opacity: 0;
|
||
|
|
transform: scale(0.94);
|
||
|
|
pointer-events: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-sortable {
|
||
|
|
position: relative;
|
||
|
|
display: inline-flex;
|
||
|
|
flex: 0 0 auto;
|
||
|
|
cursor: grab;
|
||
|
|
touch-action: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-sortable:active {
|
||
|
|
cursor: grabbing;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-sortable.is-fixed {
|
||
|
|
cursor: default;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-sortable.is-dragging {
|
||
|
|
opacity: 0.48;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-item {
|
||
|
|
position: relative;
|
||
|
|
z-index: 0;
|
||
|
|
display: inline-flex;
|
||
|
|
animation: 0.7s ease-in-out var(--wiggle-delay, -0.365693s) infinite normal none running lo-wiggle;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-item.is-fixed {
|
||
|
|
animation: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-tag {
|
||
|
|
position: relative;
|
||
|
|
height: 32px;
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
padding: 0 10px;
|
||
|
|
border-radius: 8px;
|
||
|
|
color: #242932;
|
||
|
|
background: rgba(244, 245, 247, 0.94);
|
||
|
|
font-size: 14px;
|
||
|
|
font-weight: 720;
|
||
|
|
outline-offset: -1px;
|
||
|
|
white-space: nowrap;
|
||
|
|
cursor: inherit;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-tag::after {
|
||
|
|
position: absolute;
|
||
|
|
inset: 0;
|
||
|
|
z-index: -1;
|
||
|
|
border-radius: 8px;
|
||
|
|
background: #fff;
|
||
|
|
content: "";
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-tag:hover,
|
||
|
|
.toolbar-customize-preview-tag:focus-visible,
|
||
|
|
.toolbar-customize-preview-item:hover .toolbar-customize-preview-tag {
|
||
|
|
background: #fff;
|
||
|
|
outline: 1px solid #dde1e8;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-tag-inner {
|
||
|
|
min-width: 0;
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 6px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-icon {
|
||
|
|
width: 20px;
|
||
|
|
height: 20px;
|
||
|
|
display: inline-flex;
|
||
|
|
flex: 0 0 auto;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
color: #2d323a;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-icon svg {
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-label {
|
||
|
|
min-width: 0;
|
||
|
|
flex: 1;
|
||
|
|
overflow: hidden;
|
||
|
|
color: #242932;
|
||
|
|
text-overflow: ellipsis;
|
||
|
|
white-space: nowrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-item.is-fixed .toolbar-customize-preview-tag {
|
||
|
|
cursor: default;
|
||
|
|
background: transparent;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-label em {
|
||
|
|
margin-left: 4px;
|
||
|
|
color: rgba(36, 41, 50, 0.42);
|
||
|
|
font-style: normal;
|
||
|
|
font-weight: 620;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-divider {
|
||
|
|
align-self: stretch;
|
||
|
|
width: 1px;
|
||
|
|
margin: 0 2px;
|
||
|
|
background: rgba(222, 226, 233, 0.95);
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-static-actions {
|
||
|
|
display: inline-flex;
|
||
|
|
flex: 0 0 auto;
|
||
|
|
align-items: center;
|
||
|
|
align-self: stretch;
|
||
|
|
gap: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview-static-action {
|
||
|
|
width: 44px;
|
||
|
|
height: 100%;
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
color: #242932;
|
||
|
|
background: transparent;
|
||
|
|
pointer-events: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-remove {
|
||
|
|
position: absolute;
|
||
|
|
right: -12px;
|
||
|
|
top: -12px;
|
||
|
|
z-index: 2;
|
||
|
|
width: 32px;
|
||
|
|
height: 32px;
|
||
|
|
display: inline-flex;
|
||
|
|
place-items: center;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
color: #8b929f;
|
||
|
|
background: transparent;
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-remove span {
|
||
|
|
width: 16px;
|
||
|
|
height: 16px;
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
border: 1px solid #dde1e8;
|
||
|
|
border-radius: 999px;
|
||
|
|
background: rgba(255, 255, 255, 0.94);
|
||
|
|
box-shadow: 0 3px 10px rgba(17, 24, 39, 0.12);
|
||
|
|
backdrop-filter: blur(12px);
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-remove:hover,
|
||
|
|
.toolbar-customize-remove:focus-visible {
|
||
|
|
color: #20242c;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-remove:hover span,
|
||
|
|
.toolbar-customize-remove:focus-visible span {
|
||
|
|
background: #f5f6f8;
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes lo-wiggle {
|
||
|
|
0%,
|
||
|
|
100% {
|
||
|
|
transform: translateX(var(--wiggle-from, -0.8px));
|
||
|
|
}
|
||
|
|
|
||
|
|
50% {
|
||
|
|
transform: translateX(var(--wiggle-to, 0.8px));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes toolbar-customize-tag-enter {
|
||
|
|
from {
|
||
|
|
opacity: 0;
|
||
|
|
transform: scale(0.96) translateY(2px);
|
||
|
|
}
|
||
|
|
|
||
|
|
to {
|
||
|
|
opacity: 1;
|
||
|
|
transform: scale(1) translateY(0);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-grid {
|
||
|
|
min-height: 0;
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||
|
|
gap: 8px;
|
||
|
|
overflow: auto;
|
||
|
|
padding: 0 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-card {
|
||
|
|
height: 36px;
|
||
|
|
min-width: 0;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
gap: 10px;
|
||
|
|
padding: 0 12px;
|
||
|
|
border: 1px solid #dde1e8;
|
||
|
|
border-radius: 9px;
|
||
|
|
color: #242932;
|
||
|
|
background: #fff;
|
||
|
|
font-size: 14px;
|
||
|
|
font-weight: 720;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-card:hover,
|
||
|
|
.toolbar-customize-card:focus-visible {
|
||
|
|
background: #f7f8fa;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-card > svg {
|
||
|
|
flex: 0 0 auto;
|
||
|
|
color: #2d323a;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-card-label {
|
||
|
|
min-width: 0;
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-card-label svg {
|
||
|
|
flex: 0 0 auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-card-label span {
|
||
|
|
overflow: hidden;
|
||
|
|
text-overflow: ellipsis;
|
||
|
|
white-space: nowrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-card:not(.is-pinned) > svg {
|
||
|
|
color: #343941;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-footer {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
gap: 18px;
|
||
|
|
padding: 32px 24px 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-switch {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 10px;
|
||
|
|
color: #242932;
|
||
|
|
font-size: 15px;
|
||
|
|
font-weight: 660;
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-switch .ui-switch {
|
||
|
|
width: 32px;
|
||
|
|
height: 18px;
|
||
|
|
background: #d8dde5;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-switch .ui-switch[data-state="checked"] {
|
||
|
|
background: #303030;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-switch .ui-switch-thumb {
|
||
|
|
width: 14px;
|
||
|
|
height: 14px;
|
||
|
|
transform: translateX(2px);
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-switch .ui-switch[data-state="checked"] .ui-switch-thumb {
|
||
|
|
transform: translateX(16px);
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-footer-actions {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-cancel,
|
||
|
|
.toolbar-customize-save {
|
||
|
|
min-width: 80px;
|
||
|
|
height: 36px;
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
border-radius: 8px;
|
||
|
|
padding: 0 16px;
|
||
|
|
font-size: 15px;
|
||
|
|
font-weight: 700;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-cancel {
|
||
|
|
border: 1px solid #dde1e8;
|
||
|
|
color: #242932;
|
||
|
|
background: #fff;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-cancel:hover,
|
||
|
|
.toolbar-customize-cancel:focus-visible {
|
||
|
|
background: #f7f8fa;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-save {
|
||
|
|
color: #fff;
|
||
|
|
background: #303030;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-save:hover,
|
||
|
|
.toolbar-customize-save:focus-visible {
|
||
|
|
background: #111;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-menu-button {
|
||
|
|
width: 100%;
|
||
|
|
height: 38px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 8px;
|
||
|
|
border-radius: 9px;
|
||
|
|
color: #252a32;
|
||
|
|
background: #f0f0f0;
|
||
|
|
font-size: 14px;
|
||
|
|
font-weight: 720;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-menu-button:hover,
|
||
|
|
.toolbar-customize-menu-button:focus-visible {
|
||
|
|
background: #e8e9eb;
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 720px) {
|
||
|
|
.toolbar-customize-grid {
|
||
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 520px) {
|
||
|
|
.toolbar-customize-backdrop {
|
||
|
|
padding: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-dialog {
|
||
|
|
width: calc(100vw - 24px);
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-dialog-header,
|
||
|
|
.toolbar-customize-footer {
|
||
|
|
padding-left: 16px;
|
||
|
|
padding-right: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-preview {
|
||
|
|
margin-left: 16px;
|
||
|
|
margin-right: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-grid {
|
||
|
|
grid-template-columns: 1fr;
|
||
|
|
padding: 0 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-footer {
|
||
|
|
align-items: stretch;
|
||
|
|
flex-direction: column;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-customize-footer-actions {
|
||
|
|
justify-content: flex-end;
|
||
|
|
}
|
||
|
|
}
|