mirror of
https://github.com/gtsteffaniak/filebrowser.git
synced 2026-11-26 08:29:41 -05:00
337 lines
7.3 KiB
CSS
337 lines
7.3 KiB
CSS
@import url("./reset.css");
|
|
@import url("./_variables.css");
|
|
@import url("./_buttons.css");
|
|
@import url("./_fab.css");
|
|
@import url("./_inputs.css");
|
|
@import url("./_banners.css");
|
|
@import url("./_settings-items.css");
|
|
@import url("./fonts.css");
|
|
@import url("./base.css");
|
|
@import url("./header.css");
|
|
@import url("./listing.css");
|
|
@import url("./dashboard.css");
|
|
@import url("./mobile.css");
|
|
@import url("./halloween.css");
|
|
/* Loader / skeleton: single source in public/css/loadingSpinners.css (also inlined in index.html for first paint). */
|
|
@import url("../../public/css/loadingSpinners.css");
|
|
|
|
::selection {
|
|
background-color: color-mix(in srgb, var(--primaryColor), transparent 25%);
|
|
}
|
|
|
|
#main .spinner {
|
|
display: block;
|
|
text-align: center;
|
|
line-height: 0;
|
|
padding: 1em 0;
|
|
}
|
|
|
|
#main .spinner > div {
|
|
width: 0.8em;
|
|
height: 0.8em;
|
|
margin: 0 0.1em;
|
|
font-size: 1em;
|
|
background-color: rgb(0 0 0 / 30%);
|
|
border-radius: 100%;
|
|
display: inline-block;
|
|
}
|
|
|
|
.delayed {
|
|
animation: delayed linear 100ms;
|
|
}
|
|
|
|
@keyframes delayed {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
99% {
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* * * * * * * * * * * * * * * *
|
|
* ACTION *
|
|
* * * * * * * * * * * * * * * */
|
|
.action {
|
|
cursor: pointer;
|
|
transition:
|
|
transform 0.2s ease,
|
|
width 0.2s ease,
|
|
height 0.2s ease,
|
|
margin 0.2s ease;
|
|
border: 0;
|
|
margin: 0;
|
|
color: var(--textPrimary);
|
|
background: transparent;
|
|
padding: 0;
|
|
box-shadow: none;
|
|
vertical-align: middle;
|
|
text-align: left;
|
|
position: relative;
|
|
border-radius: var(--borderRadius);
|
|
}
|
|
|
|
/* Elements that are both an action and a button get flat button chrome.
|
|
.action would otherwise reset these after _buttons.css; every value is a
|
|
custom-property hook so themes restyle without fighting specificity. */
|
|
.action.button {
|
|
padding: var(--button-padding-y, 0.5em) var(--button-padding-x, 1em);
|
|
background: var(--button-background, transparent);
|
|
color: var(--button-color, var(--textPrimary));
|
|
box-shadow: var(--button-shadow, none);
|
|
transition:
|
|
transform 0.2s ease,
|
|
width 0.2s ease,
|
|
height 0.2s ease,
|
|
margin 0.2s ease,
|
|
opacity 0.1s ease,
|
|
background-color 0.1s ease,
|
|
box-shadow 0.2s ease;
|
|
}
|
|
|
|
/* Material Symbols resets display/transition after _buttons.css; when the
|
|
icon itself is the button, keep button layout and merge transitions. */
|
|
.material-symbols.button {
|
|
display: flex;
|
|
transition:
|
|
font-variation-settings 0.25s ease,
|
|
transform 0.2s ease,
|
|
width 0.2s ease,
|
|
height 0.2s ease,
|
|
margin 0.2s ease,
|
|
opacity 0.1s ease,
|
|
background-color 0.1s ease,
|
|
box-shadow 0.2s ease;
|
|
}
|
|
|
|
.action.disabled {
|
|
opacity: 0.2;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.action i {
|
|
padding: 0.5em;
|
|
border-radius: var(--borderRadius);
|
|
}
|
|
|
|
.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.clickable:hover,
|
|
.plyr .plyr__control:hover,
|
|
button:hover,
|
|
.action:hover,
|
|
.listing-item.drag-hover {
|
|
box-shadow: var(
|
|
--hover-shadow,
|
|
inset 0 -3em 3em var(--hoverOverlay)
|
|
) !important;
|
|
transform: var(--hover-transform, scale(1.02));
|
|
}
|
|
|
|
.action:not(:disabled):hover {
|
|
background-color: var(--action-hover-background, rgb(0 0 0 / 12%));
|
|
}
|
|
|
|
.action .counter {
|
|
display: block;
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
background: var(--primaryColor);
|
|
color: #fff;
|
|
border-radius: 50%;
|
|
font-size: 0.75em;
|
|
width: 1.8em;
|
|
height: 1.8em;
|
|
text-align: center;
|
|
line-height: 1.55em;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.expand-dropdown.form-compact .expand-dropdown-trigger i,
|
|
.expand-dropdown.form-compact .expand-dropdown-chevron {
|
|
padding: 0;
|
|
line-height: 1;
|
|
}
|
|
|
|
.rules button {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.icon-preview {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: var(--icon-size);
|
|
height: var(--icon-size);
|
|
flex: 0 0 var(--icon-size);
|
|
border: 1px solid var(--divider);
|
|
background: var(--surfaceSecondary);
|
|
color: var(--primaryColor);
|
|
}
|
|
|
|
.icon-preview .material-symbols,
|
|
.icon-preview .material-symbols-outlined {
|
|
font-size: 2em;
|
|
}
|
|
|
|
.icon-preview-placeholder {
|
|
color: var(--textSecondary);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.listing-item[aria-selected="true"] .material-symbols-outlined,
|
|
.listing-item:hover .material-symbols-outlined,
|
|
.listing-item.current-item .material-symbols-outlined,
|
|
.tree-node:hover .material-symbols-outlined,
|
|
.tree-node.current-item .material-symbols-outlined,
|
|
.tree-node.drag-over .material-symbols-outlined,
|
|
.tree-node.context-item .material-symbols-outlined,
|
|
.search-entry:hover .material-symbols-outlined,
|
|
.search-entry.current-item .material-symbols-outlined,
|
|
.queue-item:hover .material-symbols-outlined,
|
|
.listing-item.context-item .material-symbols-outlined {
|
|
font-variation-settings: "FILL" 1;
|
|
}
|
|
|
|
.flat-right,
|
|
.input.flat-right,
|
|
input.flat-right,
|
|
button.flat-right,
|
|
.button.flat-right {
|
|
border-top-right-radius: 0 !important;
|
|
border-bottom-right-radius: 0 !important;
|
|
}
|
|
|
|
.flat-left,
|
|
.input.flat-left,
|
|
input.flat-left,
|
|
button.flat-left,
|
|
.button.flat-left {
|
|
border-top-left-radius: 0 !important;
|
|
border-bottom-left-radius: 0 !important;
|
|
}
|
|
|
|
.flat-right.flat-left,
|
|
.input.flat-right.flat-left,
|
|
input.flat-right.flat-left,
|
|
button.flat-right.flat-left,
|
|
.button.flat-right.flat-left {
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
/* ExpandDropdown integration with adjacent inputs/buttons */
|
|
.expand-dropdown.form-compact {
|
|
width: auto;
|
|
min-width: max-content;
|
|
flex: 0 1 auto;
|
|
}
|
|
|
|
.expand-dropdown.form-compact .expand-dropdown-anchor {
|
|
padding: 0;
|
|
min-height: 2.5em;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.expand-dropdown.form-compact .expand-dropdown-trigger {
|
|
min-height: 2.5em;
|
|
padding: 0.5em 0.75em;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.expand-dropdown.flat-left .expand-dropdown-anchor {
|
|
border-top-left-radius: 0 !important;
|
|
border-bottom-left-radius: 0 !important;
|
|
border-left-width: 0;
|
|
}
|
|
|
|
.expand-dropdown.flat-right .expand-dropdown-anchor {
|
|
border-top-right-radius: 0 !important;
|
|
border-bottom-right-radius: 0 !important;
|
|
border-right-width: 0;
|
|
}
|
|
|
|
.expand-dropdown.flat-left .expand-dropdown-anchor,
|
|
.expand-dropdown.flat-right .expand-dropdown-anchor {
|
|
box-shadow: none;
|
|
}
|
|
|
|
.expand-dropdown.flat-left.flat-right .expand-dropdown-anchor {
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
.expand-dropdown.flat-left.expand-dropdown--open .expand-dropdown-anchor {
|
|
border-top-left-radius: 0 !important;
|
|
}
|
|
|
|
.expand-dropdown.flat-right.expand-dropdown--open .expand-dropdown-anchor {
|
|
border-top-right-radius: 0 !important;
|
|
}
|
|
|
|
/* Joined controls: input/button keeps full border; dropdown drops flat-side border */
|
|
.form-flex-group
|
|
> input.flat-right
|
|
+ .expand-dropdown.flat-left
|
|
.expand-dropdown-anchor,
|
|
.form-flex-group
|
|
> .input.flat-right
|
|
+ .expand-dropdown.flat-left
|
|
.expand-dropdown-anchor {
|
|
border-left-width: 0;
|
|
}
|
|
|
|
.form-flex-group > input.flat-right + .button.flat-left,
|
|
.form-flex-group > .input.flat-right + .button.flat-left,
|
|
.form-flex-group > input.flat-right + button.flat-left,
|
|
.form-flex-group > .input.flat-right + button.flat-left {
|
|
border-left-width: 0;
|
|
}
|
|
|
|
.form-grow {
|
|
flex-grow: 1;
|
|
width: inherit;
|
|
min-width: 1em;
|
|
}
|
|
|
|
.form-flex-group {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.form-compact {
|
|
padding: 0;
|
|
}
|
|
|
|
.form-flex-group > .form-compact {
|
|
min-height: 2em;
|
|
width: unset;
|
|
}
|
|
|
|
.form-button {
|
|
height: auto !important;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.form-invalid {
|
|
border-color: var(--red) !important;
|
|
}
|
|
|
|
.form-dropdown {
|
|
width: unset;
|
|
}
|
|
|
|
.divider {
|
|
border-color: var(--divider);
|
|
width: 90%;
|
|
}
|
|
|
|
.no-padding {
|
|
padding: 0;
|
|
}
|