AvanzaCast/packages/broadcast-panel/src/components/TransmissionsTable.module.css

232 lines
4.1 KiB
CSS

.transmissionsSection {
margin-bottom: 40px;
}
.tabContainer {
display: flex;
gap: 16px;
margin-bottom: 20px;
border-bottom: 2px solid var(--border-light);
}
.tabButton {
background-color: transparent;
border: none;
padding: 12px 0;
font-size: 14px;
font-weight: 500;
color: var(--text-secondary);
cursor: pointer;
border-bottom: 2px solid transparent;
margin-bottom: -2px;
transition: all 0.2s ease;
}
.tabButton:hover {
color: var(--primary-blue);
}
.tabButton.activeTab {
color: var(--primary-blue);
border-bottom-color: var(--primary-blue);
}
.tableWrapper {
background-color: var(--surface-color);
border: 1px solid var(--border-light);
border-radius: 8px;
/* allow dropdowns to overflow the table wrapper so menus aren't clipped */
overflow: visible;
}
.transmissionsTable {
width: 100%;
border-collapse: collapse;
}
.tableHeader {
background: var(--bg-muted);
text-align: left;
padding: 14px 16px;
font-size: 13px;
font-weight: 600;
color: var(--text-secondary);
border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.tableRow {
transition: background-color 0.2s ease;
}
.tableRow:hover {
border-bottom: 1px solid var(--muted-200);
}
.tableCell {
padding: 14px 16px;
font-size: 14px;
color: var(--text-primary);
border-bottom: 1px solid var(--border-light);
}
.dangerLabel {
color: var(--danger-600);
}
.enterButton {
background: var(--brand-600);
color: white;
padding: 0.6rem 1rem;
border-radius: 8px;
font-weight: 600;
}
.tableRow:last-child .tableCell {
border-bottom: none;
}
.titleCellContent {
display: flex;
align-items: center;
gap: 12px;
}
.platformAvatar {
width: 36px;
height: 36px;
border-radius: 8px;
background-color: var(--active-bg-light);
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.transmissionTitle {
font-weight: 500;
color: var(--text-primary);
display: flex;
align-items: center;
gap: 8px;
}
.platformIcon {
display: flex;
align-items: center;
justify-content: center;
}
.actionsCell {
white-space: nowrap;
display: flex;
justify-content: flex-end;
align-items: center;
gap: 8px;
}
.tableCard {
background: var(--surface-color);
border: 1px solid var(--border-light);
border-radius: 12px;
padding: 12px 16px;
/* subtle elevation to match mock */
box-shadow: 0 6px 18px rgba(2, 6, 23, 0.04);
/* constrain width to visually match the Create cards and center */
max-width: 980px;
margin: 0 auto;
}
.enterStudioButton {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 8px 16px;
min-height: 40px;
background-color: transparent;
border: 1px solid var(--primary-blue);
color: var(--primary-blue);
border-radius: 6px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
margin-right: 12px;
transition: all 0.18s ease;
}
.enterStudioButton:hover {
background-color: var(--primary-blue);
color: white;
}
.moreOptionsButton {
padding: 8px;
background-color: transparent;
border: none;
color: var(--text-secondary);
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.2s ease;
}
.moreOptionsButton:hover {
background-color: var(--border-light);
}
.noDataCell {
text-align: center;
padding: 48px 20px;
color: var(--text-secondary);
font-style: italic;
}
.deleteItem {
color: var(--danger-600);
}
@media (max-width: 768px) {
.tableWrapper {
overflow-x: auto;
}
.tableCell {
padding: 12px;
font-size: 13px;
}
.enterStudioButton {
padding: 6px 12px;
font-size: 13px;
}
}
/* Spinner used in the Entrar button */
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.toast {
position: fixed;
right: 20px;
bottom: 20px;
background: rgba(0, 0, 0, 0.8);
color: #fff;
padding: 10px 14px;
border-radius: 8px;
z-index: 9999;
box-shadow: 0 6px 20px rgba(2, 6, 23, 0.2);
}
.toast.error {
background: rgba(160, 40, 40, 0.95);
}
.toast.info {
background: rgba(30, 120, 255, 0.95);
}