| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- /*
- * @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 {
- max-width: 800px;
- width: 85vw;
- margin: 0 auto;
- max-height: 530px;
- height: 85vh;
- background: #ededed;
- border: 1px solid #dddddd;
- border-radius: 10px;
- padding: 1rem;
- font-family: Inter;
- position: relative;
- cursor: default;
- overflow: auto;
- }
- .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(auto-fit, minmax(140px, 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.8);
- 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: 100%;
- max-height: 100%;
- 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;
- }
|