/* * @module k-default-style.css / k-theme-primary.css * @project Karibsen Studio * @description Styles et thèmes pour le module de navigateur de fichiers * @author Corentin / Karibsen * @copyright Copyright (c) 2023-2025 Karibsen Studio * @license MIT * @website https://karibsen.fr */ /*====================== = THEMING = ======================*/ .k-theme-primary { --theme-color: #007bff; } /*====================== = CONTAINERS / BASE = ======================*/ .kcontainer { width: 800px; margin: 0 auto; height: 530px; background: #ededed; border: 1px solid #dddddd; border-radius: 10px; padding: 1rem; font-family: Inter; position: relative; cursor: default; } .kfile-tree { height: calc(500px - 90px); overflow-y: scroll; max-height: calc(500px - 90px); scrollbar-width: none; -ms-overflow-style: none; } .kfile-tree::-webkit-scrollbar { display: none; } ul.kfile-tree { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); row-gap: 0.5rem; cursor: default; } .kheader { padding: 2px; font-size: 14px; margin-bottom: 5px; } .kheader .k-breadcrumb .k-breadcrumb-item:last-of-type { font-weight: 600; } /*====================== = FILES = ======================*/ .kfile, .kfolder { display: flex; flex-direction: column; gap: 0.5rem; cursor: pointer; width: fit-content; height: fit-content; } .kfile p, .kfolder p { font-size: 14px; max-width: 147.2px; margin: 0; overflow: hidden; white-space: nowrap; position: relative; } .kfile p.scroll, .kfolder p.scroll { animation: scrollText 6s linear infinite; } @keyframes scrollText { 0% { transform: translateX(0%); } 100% { transform: translateX(-100%); } } .kfolder span, .kfile span { font-size: 30px; background: #e3e3e3; width: 147.2px; height: 147.2px; display: flex; align-items: center; justify-content: center; border-radius: 4px; } .kfile.selected { box-shadow: 0px 0px 0px #ffffff00 !important; } .kfile.selected span { background-color: #d0e4ff; } .kfile-thumb { width: 90%; height: 90%; object-fit: cover; } .k-thumb-img { max-width: 48px; max-height: 48px; border-radius: 4px; margin-left: auto; margin-right: 4px; } li.kfolder > ul { display: none; margin-left: 1em; } li.kfolder.open > ul { display: block; } /*====================== = MODAL = ======================*/ .k-modal { position: absolute; width: 100%; height: 100%; top: 0; left: 0; background: rgba(0, 0, 0, 0.48); border-radius: 10px; display: flex; justify-content: center; align-items: center; } .k-modal-content { display: flex; justify-content: center; align-items: center; } .k-modal-img { max-width: 65%; max-height: 65%; display: flex; justify-content: center; align-items: center; } /*====================== = BUTTONS = ======================*/ .k-back-btn, .k-validate-btn, .k-preview-btn, .k-modal-close { color: #fff; font-size: 14px; line-height: 1; padding: 15px 20px; border: none; width: fit-content; border-radius: 4px; cursor: pointer; } .k-back-btn, .k-modal-close { background-color: #ff1b1b; position: absolute; bottom: 1rem; left: 1rem; } .k-preview-btn { position: absolute; background-color: #00d105; right: 7.2rem; bottom: 1rem; } .k-validate-btn { background-color: #0059ff; position: absolute; bottom: 1rem; right: 1rem; } .k-validate-btn:disabled { background-color: #b6b6b6; cursor: not-allowed; } /*====================== = FOOTER = ======================*/ .kfooter { margin-top: 1rem; display: flex; justify-content: flex-end; gap: 8px; } /*====================== = STATE CLASSES = ======================*/ .k-disabled { opacity: 0.5; pointer-events: none; } .kfile.k-disabled { color: #888; }