gitlink_help_center/src/components/ExportButton/index.module.css

130 lines
2.1 KiB
CSS

.wrapper {
margin: 1rem 0 0;
display: flex;
justify-content: flex-end;
}
.exportBtn {
position: relative;
}
.button {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
border: 1px solid #d1d5db;
border-radius: 6px;
background: #fff;
color: #374151;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
line-height: 1;
font-family: inherit;
}
.button:hover {
border-color: #466aff;
color: #466aff;
box-shadow: 0 2px 6px rgba(70, 106, 255, 0.15);
}
.button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
html[data-theme='dark'] .button {
background: rgba(255, 255, 255, 0.06);
border-color: rgba(255, 255, 255, 0.15);
color: #d1d5db;
}
html[data-theme='dark'] .button:hover {
border-color: #466aff;
color: #6b8cff;
box-shadow: 0 2px 6px rgba(70, 106, 255, 0.25);
}
.icon {
width: 16px;
height: 16px;
flex-shrink: 0;
}
.arrow {
font-size: 10px;
opacity: 0.6;
}
.dropdown {
position: absolute;
right: 0;
top: calc(100% + 6px);
min-width: 220px;
margin: 0;
padding: 6px 0;
list-style: none;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
z-index: 100;
}
html[data-theme='dark'] .dropdown {
background: #1e2535;
border-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.item {
display: flex;
align-items: baseline;
gap: 10px;
padding: 10px 16px;
cursor: pointer;
transition: background 0.15s;
}
.item:hover {
background: #f3f4f6;
}
html[data-theme='dark'] .item:hover {
background: rgba(255, 255, 255, 0.06);
}
.formatLabel {
font-size: 0.875rem;
font-weight: 600;
color: #1f2937;
white-space: nowrap;
}
html[data-theme='dark'] .formatLabel {
color: #e3e5e8;
}
.formatDesc {
font-size: 0.75rem;
color: #9ca3af;
white-space: nowrap;
}
html[data-theme='dark'] .formatDesc {
color: #6b7280;
}
@media (max-width: 480px) {
.wrapper {
justify-content: center;
}
.dropdown {
right: -30px;
}
}