main.css 9.2 KB

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