main.css 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. /** HACKPOINT **/
  2. .hackpoint-preloader {
  3. color: #7bafe2;
  4. font-size: 19px;
  5. text-align: center;
  6. border-radius: 100%;
  7. z-index: 10001;
  8. background-color: #272c31;
  9. padding: 6px 5px 5px 5px;
  10. position: absolute;
  11. top: 15px;
  12. left: 50%;
  13. width: 40px;
  14. height: 40px;
  15. box-shadow: 1px 0px 2px rgba(0,0,0,0.5);
  16. transform: translateY(-40px);
  17. transition: all 0.1s ease-in-out;
  18. opacity:0;
  19. }
  20. .hackpoint-preloader.show {
  21. opacity:1;
  22. transform: translateY(0px);
  23. }
  24. /* Conteneur principal du plugin hackpoint */
  25. .hackpoint {
  26. height: 100%;
  27. }
  28. #sketchs {
  29. margin:0;
  30. padding:0;
  31. margin-left:-5px;
  32. }
  33. #sketchs .card .sketch-number {
  34. border-radius: 0 0 520px 0;
  35. position: absolute;
  36. top: 0;
  37. left: 0;
  38. padding: 5px 20px 7px 7px;
  39. background-color: rgba(0,0,0,0.5);
  40. color: #ffffff;
  41. font-weight: bold;
  42. }
  43. #sketchs .card .progress{
  44. cursor: pointer;
  45. }
  46. #sketchs .card-img-top {
  47. max-height: 170px;
  48. width: 100%;
  49. border-top-left-radius: calc(.25rem - 1px);
  50. border-top-right-radius: calc(.25rem - 1px);
  51. margin: 0 auto;
  52. }
  53. #sketchs .btn-dark {
  54. color: #fff;
  55. background-color: #272b2f;
  56. border-color: #343a40;
  57. }
  58. /* liste des sketchs */
  59. #sketchs li{
  60. display: inline-block;
  61. float:left;
  62. margin:0;
  63. vertical-align: top;
  64. padding:5px;
  65. list-style-type: none;
  66. border:0;
  67. }
  68. #sketchs li .card {
  69. height: 400px;
  70. background-color: #343a40;
  71. overflow: hidden;
  72. }
  73. #sketchs li .card p{
  74. overflow: hidden;
  75. height: 48px;
  76. text-overflow: ellipsis;
  77. }
  78. #sketchs li .card .card-title {
  79. overflow: hidden;
  80. height: 22px;
  81. font-size: 1.15rem;
  82. font-weight: bold;
  83. text-overflow: ellipsis;
  84. }
  85. #sketchs li .progress {
  86. display: -ms-flexbox;
  87. display: flex;
  88. height: 0.7rem;
  89. left:0;
  90. width: 100%;
  91. position: absolute;
  92. bottom: 0;
  93. overflow: hidden;
  94. font-size: .50rem;
  95. background-color: #272b2f;
  96. border-radius: 0 0 .25rem .25rem;
  97. }
  98. /* fiche sketch */
  99. .page-sheet-sketch,.page-sheet-sketch body,.page-sheet-sketch .container-fluid{
  100. height: 100%;
  101. min-height: 100%;
  102. overflow: hidden;
  103. box-sizing: border-box;
  104. }
  105. .page-sheet-sketch .cm-s-monokai.CodeMirror {
  106. background: #2e363e;
  107. }
  108. .page-sheet-sketch .CodeMirror {
  109. height: auto;
  110. }
  111. .page-sheet-sketch .container-fluid{
  112. padding: 50px 0px 0 0px;
  113. }
  114. #sketch-form{
  115. display: flex;
  116. width: 100%;
  117. height: 100%;
  118. }
  119. #resources-toolbar,#sketch-workspace{
  120. height: 100%;
  121. }
  122. #sketch-workspace{
  123. height: 90%;
  124. }
  125. #sketch-workspace .form-control-plaintext{
  126. color: #8e8e8e;
  127. }
  128. #resources-toolbar{
  129. width:120px;
  130. background-color: #2b2f35;
  131. color:#fefefe;
  132. height:100%;
  133. min-height: 100%;
  134. position:relative;
  135. }
  136. #resources-toolbar .resources-menu-container{
  137. width:120px;
  138. padding-bottom: 40px;
  139. height: 100%;
  140. overflow: auto;
  141. }
  142. /* width */
  143. #resources-toolbar .resources-menu-container::-webkit-scrollbar,#sketch-editor::-webkit-scrollbar {
  144. width: 8px;
  145. }
  146. /* Track */
  147. #resources-toolbar .resources-menu-container::-webkit-scrollbar-track,#sketch-editor::-webkit-scrollbar-track {
  148. background: #2b2f35;
  149. }
  150. /* Handle */
  151. #resources-toolbar .resources-menu-container::-webkit-scrollbar-thumb,#sketch-editor::-webkit-scrollbar-thumb {
  152. background: #101317;
  153. }
  154. /* Handle on hover */
  155. #resources-toolbar .resources-menu-container::-webkit-scrollbar-thumb:hover,#sketch-editor::-webkit-scrollbar-thumb:hover {
  156. background: #14181d;
  157. }
  158. #sketch-workspace{
  159. flex: 1;
  160. padding:15px;
  161. box-sizing: border-box;
  162. }
  163. #resources-toolbar ul li{
  164. padding:10px;
  165. cursor: pointer;
  166. text-align: center;
  167. border-bottom: 1px solid #21252b;
  168. transition: background 0.15s ease-in-out,transform 0.15s ease-in-out;
  169. position: relative;
  170. }
  171. #resources-toolbar ul li .delete-resource{
  172. position: absolute;
  173. right: 10px;
  174. top:10px;
  175. cursor:pointer;
  176. font-size: 12px;
  177. opacity:0;
  178. transition: opacity 0.2s ease-in-out;
  179. }
  180. #resources-toolbar ul li.active{
  181. background:#212223;
  182. }
  183. #resources-toolbar ul li:hover{
  184. background: #222222;
  185. }
  186. #resources-toolbar ul li:hover i{
  187. transform: scale(1.1);
  188. color:#cecece;
  189. }
  190. #resources-toolbar ul li:hover h3{
  191. color:#ffffff;
  192. }
  193. #resources-toolbar ul li:hover .delete-resource{
  194. opacity:0.7;
  195. }
  196. #resources-toolbar ul li h3{
  197. text-transform: uppercase;
  198. font-size: 11px;
  199. word-break: break-word;
  200. font-weight: bold;
  201. margin:5px 0;
  202. padding:0;
  203. color:#dedede;
  204. }
  205. #resources-toolbar ul li h3 input{
  206. text-align: center;
  207. width: 100%;
  208. text-transform: uppercase;
  209. font-size: 11px;
  210. font-weight: bold;
  211. margin: 0;
  212. padding: 0;
  213. background-color: transparent;
  214. border: 0;
  215. color: #dedede;
  216. }
  217. #resources-toolbar ul li i{
  218. font-size: 30px;
  219. color: #7b7b7b;
  220. transition: transform 0.1s ease-in-out;
  221. }
  222. #resources-toolbar ul li > small{
  223. color:#ffffff;
  224. border-radius: 3px;
  225. padding: 0 3px;
  226. font-size: 10px;
  227. }
  228. #resources-toolbar .btn-add-resource{
  229. margin: auto;
  230. display: block;
  231. }
  232. .fast-spin {
  233. -webkit-animation: fa-spin 0.5s infinite linear;
  234. animation: fa-spin 0.5s infinite linear;
  235. }
  236. .sketch-preloader{
  237. display: none;
  238. }
  239. .resource-dropdown{
  240. position: absolute;
  241. bottom: 0;
  242. }
  243. .resource-dropdown.dropright .dropdown-menu{
  244. border-radius: 0;
  245. background: #333;
  246. top: 0;
  247. max-width: 550px;
  248. min-width: 350px;
  249. right: auto;
  250. left: 100%;
  251. margin-top: 0;
  252. margin-left: 0;
  253. color: #fefefe;
  254. }
  255. .resource-dropdown.dropright .dropdown-menu .dropdown-item:focus,.resource-dropdown.dropright .dropdown-menu .dropdown-item:hover{
  256. background-color: #131313;
  257. }
  258. .resource-dropdown.dropright .dropdown-menu,.resource-dropdown.dropright .dropdown-menu a{
  259. white-space: normal;
  260. }
  261. #sketch-workspace [data-type="dropzone"]{
  262. background:transparent;
  263. color:#cecece;
  264. border:0;
  265. }
  266. div.hackpoint-type-image[data-type="dropzone"] > div{
  267. padding: 15px;
  268. text-align: center;
  269. margin: auto auto 10px auto;
  270. width: 50%;
  271. background: #444e58;
  272. }
  273. #sketch-editor{
  274. overflow: auto;
  275. padding-bottom: 80px;
  276. height: 100%;
  277. box-sizing: border-box;
  278. }
  279. .hackpoint-type-image img{
  280. max-width: 100%!important;
  281. max-height: 100%!important;
  282. margin:5px 0!important;
  283. box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
  284. }
  285. .hackpoint-type-image li > a{
  286. display: none;
  287. }
  288. div.hackpoint-type-image[data-type="dropzone"] > ul > li {
  289. vertical-align: top;
  290. display: inline-block;
  291. position: relative;
  292. padding: 5px;
  293. border-bottom: 0;
  294. background: transparent;
  295. }
  296. div.hackpoint-type-image[data-type="dropzone"] > ul > li > i.pointer{
  297. top:15px;
  298. right:5px;
  299. background-color: #333333;
  300. display: inline-block;
  301. padding:5px;
  302. width: 20px;
  303. height: 20px;
  304. font-size: 10px;
  305. text-align: center;
  306. box-sizing: border-box;
  307. border-radius: 100%;
  308. transform: translateY(0px);
  309. }
  310. /* readonly mode */
  311. .hackpoint.readonly #resources-toolbar .btn-add-resource,
  312. .hackpoint.readonly .btn-delete-sketch,
  313. .hackpoint.readonly #resources .delete-resource,
  314. .hackpoint.readonly .resource-image .fas.fa-times,
  315. .hackpoint.readonly .hackpoint-type-image > div,
  316. .hackpoint.readonly .resource-part .btn-add-part,
  317. .hackpoint.readonly .resource-part .btn-save-part,
  318. .hackpoint.readonly .resource-part .btn-delete{
  319. display:none;
  320. }
  321. .hackpoint.readonly .editable-input{
  322. outline: none;
  323. }
  324. /**/
  325. #parts{
  326. margin:0;
  327. padding:0;
  328. }
  329. #parts li{
  330. width:15%;
  331. min-width: 250px;
  332. display: inline-block;
  333. padding:0px;
  334. margin:5px 5px 5px 0;
  335. transition: transform 0.2s ease-in-out;
  336. }
  337. #parts li .part{
  338. background-color: #2b2f35;
  339. border-radius: 3px;
  340. padding: 15px;
  341. color:#cecece;
  342. min-height: 250px;
  343. position: relative;
  344. }
  345. #sketch-workspace .part .part-image{
  346. border:2px dashed #3e4750;
  347. height:200px;
  348. background: url(../img/default-part.png) center center no-repeat;
  349. text-align: center;
  350. text-transform: uppercase;
  351. font-weight: bold;
  352. color:#5e6671;
  353. margin-top:10px;
  354. }
  355. #parts li .part .btn-delete{
  356. color:#cecece;
  357. position: absolute;
  358. bottom: 0;
  359. right: 0;
  360. opacity:0.4;
  361. transition:all 0.2s ease-in-out;
  362. }
  363. #parts li .part .btn-delete:hover{
  364. opacity:0.9;
  365. }
  366. #parts li .part .price{
  367. font-weight: bold;
  368. }
  369. #parts li .part .link{
  370. color:#cecece;
  371. position: absolute;
  372. bottom: 0;
  373. left: 0;
  374. padding:5px 10px;
  375. opacity:0.4;
  376. transition:all 0.2s ease-in-out;
  377. }
  378. #parts li .part .brand{
  379. font-size: 10px;
  380. float:right;
  381. margin-top: 5px;
  382. color:#4c7cad;
  383. }
  384. #parts li .part .link:hover{
  385. opacity:0.9;
  386. transform: rotate(180deg);
  387. }
  388. .part-list .picture{
  389. width: 150px;
  390. height: 150px;
  391. border-radius: 3px;
  392. }