k-theme-primary.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. /*
  2. * @module k-default-style.css / k-theme-primary.css
  3. * @project Karibsen Studio
  4. * @description Styles et thèmes pour le module de navigateur de fichiers
  5. * @author Corentin / Karibsen
  6. * @copyright Copyright (c) 2023-2025 Karibsen Studio
  7. * @license MIT
  8. * @website https://karibsen.fr
  9. */
  10. /*======================
  11. = THEMING =
  12. ======================*/
  13. .k-theme-primary {
  14. --theme-color: #007bff;
  15. }
  16. /*======================
  17. = CONTAINERS / BASE =
  18. ======================*/
  19. .kcontainer {
  20. width: 800px;
  21. margin: 0 auto;
  22. height: 530px;
  23. background: #ededed;
  24. border: 1px solid #dddddd;
  25. border-radius: 10px;
  26. padding: 1rem;
  27. font-family: Inter;
  28. position: relative;
  29. cursor: default;
  30. }
  31. .kfile-tree {
  32. height: calc(500px - 90px);
  33. overflow-y: scroll;
  34. max-height: calc(500px - 90px);
  35. scrollbar-width: none;
  36. -ms-overflow-style: none;
  37. }
  38. .kfile-tree::-webkit-scrollbar {
  39. display: none;
  40. }
  41. ul.kfile-tree {
  42. list-style: none;
  43. padding: 0;
  44. margin: 0;
  45. display: grid;
  46. grid-template-columns: repeat(5, 1fr);
  47. row-gap: 0.5rem;
  48. cursor: default;
  49. }
  50. .kheader {
  51. padding: 2px;
  52. font-size: 14px;
  53. margin-bottom: 5px;
  54. }
  55. .kheader .k-breadcrumb .k-breadcrumb-item:last-of-type {
  56. font-weight: 600;
  57. }
  58. /*======================
  59. = FILES =
  60. ======================*/
  61. .kfile, .kfolder {
  62. display: flex;
  63. flex-direction: column;
  64. gap: 0.5rem;
  65. cursor: pointer;
  66. width: fit-content;
  67. height: fit-content;
  68. }
  69. .kfile p, .kfolder p {
  70. font-size: 14px;
  71. max-width: 147.2px;
  72. margin: 0;
  73. overflow: hidden;
  74. white-space: nowrap;
  75. position: relative;
  76. }
  77. .kfile p.scroll, .kfolder p.scroll {
  78. animation: scrollText 6s linear infinite;
  79. }
  80. @keyframes scrollText {
  81. 0% {
  82. transform: translateX(0%);
  83. }
  84. 100% {
  85. transform: translateX(-100%);
  86. }
  87. }
  88. .kfolder span, .kfile span {
  89. font-size: 30px;
  90. background: #e3e3e3;
  91. width: 147.2px;
  92. height: 147.2px;
  93. display: flex;
  94. align-items: center;
  95. justify-content: center;
  96. border-radius: 4px;
  97. }
  98. .kfile.selected {
  99. box-shadow: 0px 0px 0px #ffffff00 !important;
  100. }
  101. .kfile.selected span {
  102. background-color: #d0e4ff;
  103. }
  104. .kfile-thumb {
  105. width: 90%;
  106. height: 90%;
  107. object-fit: cover;
  108. }
  109. .k-thumb-img {
  110. max-width: 48px;
  111. max-height: 48px;
  112. border-radius: 4px;
  113. margin-left: auto;
  114. margin-right: 4px;
  115. }
  116. li.kfolder > ul {
  117. display: none;
  118. margin-left: 1em;
  119. }
  120. li.kfolder.open > ul {
  121. display: block;
  122. }
  123. /*======================
  124. = MODAL =
  125. ======================*/
  126. .k-modal {
  127. position: absolute;
  128. width: 100%;
  129. height: 100%;
  130. top: 0;
  131. left: 0;
  132. background: rgba(0, 0, 0, 0.48);
  133. border-radius: 10px;
  134. display: flex;
  135. justify-content: center;
  136. align-items: center;
  137. }
  138. .k-modal-content {
  139. display: flex;
  140. justify-content: center;
  141. align-items: center;
  142. }
  143. .k-modal-img {
  144. max-width: 65%;
  145. max-height: 65%;
  146. display: flex;
  147. justify-content: center;
  148. align-items: center;
  149. }
  150. /*======================
  151. = BUTTONS =
  152. ======================*/
  153. .k-back-btn, .k-validate-btn, .k-preview-btn, .k-modal-close {
  154. color: #fff;
  155. font-size: 14px;
  156. line-height: 1;
  157. padding: 15px 20px;
  158. border: none;
  159. width: fit-content;
  160. border-radius: 4px;
  161. cursor: pointer;
  162. }
  163. .k-back-btn, .k-modal-close {
  164. background-color: #ff1b1b;
  165. position: absolute;
  166. bottom: 1rem;
  167. left: 1rem;
  168. }
  169. .k-preview-btn {
  170. position: absolute;
  171. background-color: #00d105;
  172. right: 7.2rem;
  173. bottom: 1rem;
  174. }
  175. .k-validate-btn {
  176. background-color: #0059ff;
  177. position: absolute;
  178. bottom: 1rem;
  179. right: 1rem;
  180. }
  181. .k-validate-btn:disabled {
  182. background-color: #b6b6b6;
  183. cursor: not-allowed;
  184. }
  185. /*======================
  186. = FOOTER =
  187. ======================*/
  188. .kfooter {
  189. margin-top: 1rem;
  190. display: flex;
  191. justify-content: flex-end;
  192. gap: 8px;
  193. }
  194. /*======================
  195. = STATE CLASSES =
  196. ======================*/
  197. .k-disabled {
  198. opacity: 0.5;
  199. pointer-events: none;
  200. }
  201. .kfile.k-disabled {
  202. color: #888;
  203. }