main.css 7.7 KB

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