2
0

k-theme-primary.css 4.2 KB

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