main.css 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  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: 425x;
  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. height: 0.8rem;
  144. width: 100%;
  145. overflow: hidden;
  146. font-size: .7rem;
  147. background-color: #272b2f;
  148. border-radius: 0;
  149. }
  150. /* fiche sketch */
  151. .page-sheet-sketch,.page-sheet-sketch body,.page-sheet-sketch .container-fluid{
  152. height: 100%;
  153. min-height: 100%;
  154. overflow: hidden;
  155. box-sizing: border-box;
  156. }
  157. .page-sheet-sketch .cm-s-monokai.CodeMirror {
  158. background: #2e363e;
  159. }
  160. .page-sheet-sketch .CodeMirror {
  161. height: auto;
  162. }
  163. .page-sheet-sketch .container-fluid{
  164. padding: 50px 0px 0 0px;
  165. }
  166. #sketch-form{
  167. display: flex;
  168. width: 100%;
  169. height: 100%;
  170. }
  171. #resources-toolbar,#sketch-workspace{
  172. height: 100%;
  173. }
  174. #sketch-workspace{
  175. height: 90%;
  176. }
  177. #sketch-workspace .form-control-plaintext{
  178. color: #8e8e8e;
  179. }
  180. #resources-toolbar{
  181. width:120px;
  182. background-color: #2b2f35;
  183. color:#fefefe;
  184. height:100%;
  185. min-height: 100%;
  186. position:relative;
  187. }
  188. #resources-toolbar .resources-menu-container{
  189. width:120px;
  190. padding-bottom: 40px;
  191. height: 100%;
  192. overflow: auto;
  193. }
  194. /* width */
  195. #resources-toolbar .resources-menu-container::-webkit-scrollbar,#sketch-editor::-webkit-scrollbar {
  196. width: 8px;
  197. }
  198. /* Track */
  199. #resources-toolbar .resources-menu-container::-webkit-scrollbar-track,#sketch-editor::-webkit-scrollbar-track {
  200. background: #2b2f35;
  201. }
  202. /* Handle */
  203. #resources-toolbar .resources-menu-container::-webkit-scrollbar-thumb,#sketch-editor::-webkit-scrollbar-thumb {
  204. background: #101317;
  205. }
  206. /* Handle on hover */
  207. #resources-toolbar .resources-menu-container::-webkit-scrollbar-thumb:hover,#sketch-editor::-webkit-scrollbar-thumb:hover {
  208. background: #14181d;
  209. }
  210. /* width */
  211. .CodeMirror-vscrollbar::-webkit-scrollbar {
  212. width: 8px;
  213. }
  214. .CodeMirror-hscrollbar::-webkit-scrollbar {
  215. height: 8px;
  216. }
  217. /* Track */
  218. .CodeMirror-vscrollbar::-webkit-scrollbar-track,.CodeMirror-hscrollbar::-webkit-scrollbar-track {
  219. background: #2b2f35;
  220. }
  221. /* Handle */
  222. .CodeMirror-vscrollbar::-webkit-scrollbar-thumb,.CodeMirror-hscrollbar::-webkit-scrollbar-thumb {
  223. background: #101317;
  224. }
  225. /* Handle on hover */
  226. .CodeMirror-vscrollbar::-webkit-scrollbar-thumb:hover,.CodeMirror-hscrollbar::-webkit-scrollbar-thumb:hover {
  227. background: #14181d;
  228. }
  229. .CodeMirror-scrollbar-filler {
  230. height: 8px!important;
  231. background: #14181d!important;
  232. width: 8px!important;
  233. }
  234. #sketch-workspace{
  235. flex: 1;
  236. padding:15px;
  237. box-sizing: border-box;
  238. }
  239. #resources-toolbar ul li{
  240. padding:10px;
  241. cursor: pointer;
  242. text-align: center;
  243. border-bottom: 1px solid #21252b;
  244. transition: background 0.15s ease-in-out,transform 0.15s ease-in-out;
  245. position: relative;
  246. }
  247. #resources-toolbar ul li .delete-resource{
  248. position: absolute;
  249. right: 10px;
  250. top:10px;
  251. cursor:pointer;
  252. font-size: 12px;
  253. opacity:0;
  254. transition: opacity 0.2s ease-in-out;
  255. }
  256. #resources-toolbar ul li.active{
  257. background:#212223;
  258. }
  259. #resources-toolbar ul li:hover{
  260. background: #222222;
  261. }
  262. #resources-toolbar ul li:hover i{
  263. transform: scale(1.1);
  264. color:#cecece;
  265. }
  266. #resources-toolbar ul li:hover h3{
  267. color:#ffffff;
  268. }
  269. #resources-toolbar ul li:hover .delete-resource{
  270. opacity:0.7;
  271. }
  272. #resources-toolbar ul li h3{
  273. text-transform: uppercase;
  274. font-size: 11px;
  275. word-break: break-word;
  276. font-weight: bold;
  277. margin:5px 0;
  278. padding:0;
  279. color:#dedede;
  280. }
  281. #resources-toolbar ul li h3 input{
  282. text-align: center;
  283. width: 100%;
  284. text-transform: uppercase;
  285. font-size: 11px;
  286. font-weight: bold;
  287. margin: 0;
  288. padding: 0;
  289. background-color: transparent;
  290. border: 0;
  291. color: #dedede;
  292. }
  293. #resources-toolbar ul li i{
  294. font-size: 30px;
  295. color: #7b7b7b;
  296. transition: transform 0.1s ease-in-out;
  297. }
  298. #resources-toolbar ul li > small{
  299. color:#ffffff;
  300. border-radius: 3px;
  301. text-shadow: 0 0 4px rgba(0,0,0,1);
  302. padding: 0 3px;
  303. font-size: 10px;
  304. }
  305. #resources-toolbar .btn-add-resource{
  306. margin: auto;
  307. display: block;
  308. }
  309. .fast-spin {
  310. -webkit-animation: fa-spin 0.5s infinite linear;
  311. animation: fa-spin 0.5s infinite linear;
  312. }
  313. .sketch-preloader{
  314. display: none;
  315. }
  316. #sketch-editor.resource-readme{
  317. display: flex;
  318. }
  319. #sketch-editor.resource-readme > textarea{
  320. width: 50%;
  321. }
  322. #sketch-editor.resource-readme > div{
  323. width: 50%;
  324. padding-left: 15px;
  325. box-sizing: border-box;
  326. }
  327. .resource-dropdown{
  328. position: absolute;
  329. bottom: 0;
  330. }
  331. .resource-dropdown.dropright .dropdown-menu{
  332. border-radius: 0;
  333. background: #333;
  334. top: 0;
  335. max-width: 550px;
  336. min-width: 350px;
  337. right: auto;
  338. left: 100%;
  339. margin-top: 0;
  340. margin-left: 0;
  341. color: #fefefe;
  342. }
  343. .resource-dropdown.dropright .dropdown-menu .dropdown-item:focus,.resource-dropdown.dropright .dropdown-menu .dropdown-item:hover{
  344. background-color: #131313;
  345. }
  346. .resource-dropdown.dropright .dropdown-menu,.resource-dropdown.dropright .dropdown-menu a{
  347. white-space: normal;
  348. }
  349. #sketch-workspace [data-type="dropzone"]{
  350. background:transparent;
  351. color:#cecece;
  352. border:0;
  353. }
  354. div.hackpoint-type-image[data-type="dropzone"] > div{
  355. padding: 15px;
  356. text-align: center;
  357. margin: auto auto 10px auto;
  358. width: 50%;
  359. background: #444e58;
  360. }
  361. #sketch-editor{
  362. overflow: auto;
  363. padding-bottom: 80px;
  364. height: 100%;
  365. box-sizing: border-box;
  366. }
  367. .hackpoint-type-image img{
  368. max-width: 100%!important;
  369. max-height: 100%!important;
  370. margin:5px 0!important;
  371. box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
  372. }
  373. .hackpoint-type-image li > a{
  374. display: none;
  375. }
  376. div.hackpoint-type-image[data-type="dropzone"] > ul > li {
  377. vertical-align: top;
  378. display: inline-block;
  379. position: relative;
  380. padding: 5px;
  381. border-bottom: 0;
  382. background: transparent;
  383. }
  384. div.hackpoint-type-image[data-type="dropzone"] > ul > li > i.pointer{
  385. top:15px;
  386. right:5px;
  387. background-color: #333333;
  388. display: inline-block;
  389. padding:5px;
  390. width: 20px;
  391. height: 20px;
  392. font-size: 10px;
  393. text-align: center;
  394. box-sizing: border-box;
  395. border-radius: 100%;
  396. transform: translateY(0px);
  397. }
  398. /* readonly mode */
  399. .hackpoint.readonly #resources-toolbar .btn-add-resource,
  400. .hackpoint.readonly .btn-delete-sketch,
  401. .hackpoint.readonly #resources .delete-resource,
  402. .hackpoint.readonly .resource-image .fas.fa-times,
  403. .hackpoint.readonly .hackpoint-type-image > div{
  404. display:none;
  405. }
  406. .hackpoint.readonly .editable-input{
  407. outline: none;
  408. }
  409. #sketchs .card .progress-bar{
  410. }
  411. #htmlcontent ul li{
  412. padding-left: 5px;
  413. }
  414. #htmlcontent ul li{
  415. list-style-type: disc;
  416. list-style-position: inside;
  417. color:#a7c4e2;
  418. }