main.css 9.1 KB

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