mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-19 00:10:00 +00:00
Icon draws a raster data: URI (PNG, JPEG, GIF or WebP, base64, at most 64 KiB) as an image of the icon's size, so plugin view items and buttons can show avatars and status badges the plugin fetched with its net grant; the UI never loads URLs for icons, and older hosts show the file icon. Documented in the views guide.
68 lines
1.3 KiB
CSS
68 lines
1.3 KiB
CSS
.icon {
|
|
flex: none;
|
|
display: block;
|
|
}
|
|
|
|
.image {
|
|
object-fit: cover;
|
|
border-radius: var(--radius-small);
|
|
}
|
|
|
|
.mono {
|
|
color: var(--icon-color, currentColor);
|
|
}
|
|
|
|
/* Coloured icons carry both variants; the light one shows only in the light theme. */
|
|
.light {
|
|
display: none;
|
|
}
|
|
|
|
:global(:root[data-theme="light"]) .light {
|
|
display: inline;
|
|
}
|
|
|
|
:global(:root[data-theme="light"]) .dark {
|
|
display: none;
|
|
}
|
|
|
|
.symbol {
|
|
flex: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 12px;
|
|
font-family: var(--font-mono);
|
|
font-size: var(--fs-ui);
|
|
line-height: 1;
|
|
color: var(--fg-subtle);
|
|
}
|
|
|
|
:global(:root[data-oi-icon-filter]) .icon {
|
|
filter: var(--oi-icon-filter);
|
|
}
|
|
|
|
:global(:root[data-oi-icon-opacity]) .icon {
|
|
opacity: var(--oi-icon-opacity);
|
|
}
|
|
|
|
.icon [data-themed="true"][fill] {
|
|
fill: var(--oi-icon-accent, var(--accent));
|
|
}
|
|
|
|
.icon [data-themed="true"][stroke] {
|
|
stroke: var(--oi-icon-accent, var(--accent));
|
|
}
|
|
|
|
:global(:root[data-oi-accent]) .icon [data-tint="true"][fill] {
|
|
fill: var(--oi-icon-accent);
|
|
}
|
|
|
|
:global(:root[data-oi-accent]) .icon [data-tint="true"][stroke] {
|
|
stroke: var(--oi-icon-accent);
|
|
}
|
|
|
|
:global(:root[data-oi-tree-icon-size]) :global([role="tree"]) .icon {
|
|
width: var(--oi-tree-icon-size);
|
|
height: var(--oi-tree-icon-size);
|
|
}
|