main.css 7.8 KB

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