mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-18 14:33:01 +08:00
77 lines
2.5 KiB
CSS
77 lines
2.5 KiB
CSS
/* ==========================================================================
|
|
14. Spinner, file browser, misc LuCI pieces
|
|
========================================================================== */
|
|
|
|
#view > div.spinning:first-child,
|
|
#view > .spinning:only-child {
|
|
display: table;
|
|
margin: 18vh auto;
|
|
color: var(--cb-text-2);
|
|
}
|
|
.spinning {
|
|
position: relative;
|
|
padding-left: 30px !important;
|
|
}
|
|
.spinning::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: calc(50% - 9px);
|
|
left: 6px;
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
border: 2px solid currentColor;
|
|
border-right-color: transparent;
|
|
opacity: .7;
|
|
animation: cb-spin .8s linear infinite;
|
|
}
|
|
@keyframes cb-spin { to { transform: rotate(360deg); } }
|
|
|
|
.flash { animation: cb-flash .35s; }
|
|
@keyframes cb-flash { 50% { opacity: .5; } }
|
|
|
|
#syslog,
|
|
textarea#syslog {
|
|
width: 100%;
|
|
min-height: 60vh;
|
|
padding: 14px;
|
|
border-radius: var(--cb-radius);
|
|
background: var(--cb-card);
|
|
box-shadow: var(--cb-shadow);
|
|
border: 0;
|
|
font-size: 12px;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.cbi-filebrowser {
|
|
min-width: 260px;
|
|
max-width: 100%;
|
|
padding: 0;
|
|
border-radius: var(--cb-radius-md);
|
|
background: var(--cb-card);
|
|
box-shadow: var(--cb-shadow);
|
|
display: none;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
.cbi-filebrowser.open { display: flex; }
|
|
.cbi-filebrowser > * { padding: 6px 10px; border-bottom: .5px solid var(--cb-sep); }
|
|
.cbi-filebrowser > ul { margin: 0; list-style: none; max-height: 300px; overflow: auto; padding: 4px; }
|
|
.cbi-filebrowser > ul > li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px; border-radius: 6px; }
|
|
.cbi-filebrowser > ul > li:hover { background: var(--cb-hover); }
|
|
.cbi-filebrowser > ul > li > div:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.cbi-filebrowser > ul > li > div:last-child { flex: none; }
|
|
.cbi-filebrowser > ul > li > div:last-child > button { min-height: 24px; padding: 0 8px; font-size: 12px; }
|
|
.cbi-filebrowser .upload { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
|
|
.cbi-filebrowser .upload > div { display: flex; flex: 1; gap: 6px; }
|
|
.cbi-filebrowser .upload > div > input { flex: 1; }
|
|
.cbi-filebrowser > div:last-child { border-bottom: 0; display: flex; justify-content: flex-end; gap: 6px; }
|
|
|
|
#cbi-network-switch_vlan .td { text-align: center; }
|
|
|
|
/* overview page (LuCI status widgets) */
|
|
[data-page="admin-status-overview"] .cbi-section > h3,
|
|
[data-page="admin-status"] .cbi-section > h3,
|
|
[data-page="admin"] .cbi-section > h3 { margin-top: 4px; }
|
|
|