Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
188 changes: 188 additions & 0 deletions src/css/tabs/osd.css
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,194 @@
vertical-align: top;
}

/* Custom Element cards */
.ce-card {
border: 1px solid #ddd;
border-radius: 4px;
margin-bottom: 6px;
background: #fff;
border-left: 3px solid #ddd;
}

.ce-card-configured {
border-left-color: #37a8db;
}

.ce-card-collapsed {
border-left-color: #ccc;
}

.ce-card-header {
display: flex;
align-items: center;
padding: 6px 10px;
cursor: pointer;
gap: 8px;
user-select: none;
}

.ce-card-header:hover {
background: #f5f5f5;
}

.ce-card-header .ios7-switch {
flex-shrink: 0;
}

.ce-card-name {
font-weight: bold;
font-size: 12px;
white-space: nowrap;
}

.ce-card-preview {
color: #888;
font-size: 11px;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: right;
}

.ce-card-chevron {
font-size: 14px;
color: #888;
flex-shrink: 0;
width: 16px;
text-align: center;
}

.ce-card-body {
padding: 8px 10px;
border-top: 1px solid #eee;
}

.ce-slot-row {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 4px;
}

.ce-slot-row:last-child {
margin-bottom: 0;
}

.ce-source-select {
width: auto !important;
flex-shrink: 0;
}

.ce-format-select {
width: auto !important;
flex-shrink: 0;
}

.ce-slot-value {
flex: 1;
min-width: 0;
}

.ce-slot-value input,
.ce-slot-value select {
width: 100% !important;
}

/* Icon picker popup */
.ce-icon-picker-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
}

.ce-icon-picker-popup {
background: #fff;
border-radius: 6px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
padding: 12px;
max-width: 520px;
max-height: 80vh;
overflow-y: auto;
}

.ce-icon-picker-title {
font-weight: bold;
margin-bottom: 8px;
font-size: 13px;
}

.ce-icon-picker-grid {
display: grid;
grid-template-columns: repeat(16, 1fr);
gap: 2px;
}

.ce-icon-picker-tile {
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #ddd;
border-radius: 3px;
cursor: pointer;
background: #fafafa;
}

.ce-icon-picker-tile:hover {
border-color: #37a8db;
background: #e8f4fd;
}

.ce-icon-picker-tile.ce-icon-picker-selected {
border-color: #37a8db;
background: #d0ecfa;
box-shadow: 0 0 0 1px #37a8db;
}

.ce-icon-picker-tile img {
max-width: 20px;
max-height: 20px;
image-rendering: pixelated;
}

/* Icon picker inline button */
.ce-ico-picker-btn {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
border: 1px solid silver !important;
border-radius: 3px;
cursor: pointer;
background: #fafafa;
min-height: 24px;
}

.ce-ico-picker-btn:hover {
border-color: #37a8db !important;
background: #e8f4fd;
}

.ce-ico-preview {
width: 16px;
height: 16px;
image-rendering: pixelated;
}

.ce-ico-label {
font-size: 11px;
color: #666;
}

.osdCustomElement_main_table {
width: 100%;
table-layout: fixed;
Expand Down
Loading
Loading