main.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  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-img-top {
  12. max-width: 150px;
  13. width: 100%;
  14. border-top-left-radius: calc(.25rem - 1px);
  15. border-top-right-radius: calc(.25rem - 1px);
  16. margin: 10px auto;
  17. }
  18. #sketchs .btn-dark {
  19. color: #fff;
  20. background-color: #272b2f;
  21. border-color: #343a40;
  22. }
  23. /* liste des sketchs */
  24. #sketchs li{
  25. display: inline-block;
  26. margin:0;
  27. vertical-align: top;
  28. padding:5px;
  29. list-style-type: none;
  30. border:0;
  31. }
  32. /* fiche sketch */
  33. .page-sheet-sketch,.page-sheet-sketch body,.page-sheet-sketch .container-fluid{
  34. height: 100%;
  35. min-height: 100%;
  36. overflow: hidden;
  37. box-sizing: border-box;
  38. }
  39. .page-sheet-sketch .cm-s-monokai.CodeMirror {
  40. background: #2e363e;
  41. }
  42. .page-sheet-sketch .container-fluid{
  43. padding: 50px 0px 0 0px;
  44. }
  45. #sketch-form{
  46. display: flex;
  47. width: 100%;
  48. height: 100%;
  49. }
  50. #resources-toolbar,#sketch-workspace{
  51. height: 100%;
  52. }
  53. #sketch-workspace .form-control-plaintext{
  54. color: #8e8e8e;
  55. }
  56. #resources-toolbar{
  57. width:120px;
  58. background-color: #2b2f35;
  59. color:#fefefe;
  60. height:100%;
  61. min-height: 100%;
  62. position:relative;
  63. }
  64. #sketch-workspace{
  65. flex: 1;
  66. padding:15px;
  67. box-sizing: border-box;
  68. }
  69. #resources-toolbar ul li{
  70. padding:10px;
  71. cursor: pointer;
  72. text-align: center;
  73. border-bottom: 1px solid #21252b;
  74. transition: background 0.15s ease-in-out,transform 0.15s ease-in-out;
  75. position: relative;
  76. }
  77. #resources-toolbar ul li .delete-resource{
  78. position: absolute;
  79. right: 10px;
  80. top:10px;
  81. cursor:pointer;
  82. font-size: 12px;
  83. opacity:0;
  84. transition: opacity 0.2s ease-in-out;
  85. }
  86. #resources-toolbar ul li.active{
  87. background:#212223;
  88. }
  89. #resources-toolbar ul li:hover{
  90. background: #222222;
  91. }
  92. #resources-toolbar ul li:hover i{
  93. transform: scale(1.1);
  94. color:#cecece;
  95. }
  96. #resources-toolbar ul li:hover h3{
  97. color:#ffffff;
  98. }
  99. #resources-toolbar ul li:hover .delete-resource{
  100. opacity:0.7;
  101. }
  102. #resources-toolbar ul li h3{
  103. text-transform: uppercase;
  104. font-size: 11px;
  105. font-weight: bold;
  106. margin:5px 0;
  107. padding:0;
  108. color:#dedede;
  109. }
  110. #resources-toolbar ul li h3 input{
  111. text-align: center;
  112. width: 100%;
  113. text-transform: uppercase;
  114. font-size: 11px;
  115. font-weight: bold;
  116. margin: 0;
  117. padding: 0;
  118. background-color: transparent;
  119. border: 0;
  120. color: #dedede;
  121. }
  122. #resources-toolbar ul li i{
  123. font-size: 30px;
  124. color: #7b7b7b;
  125. transition: transform 0.1s ease-in-out;
  126. }
  127. #resources-toolbar ul li > small{
  128. color:#ffffff;
  129. border-radius: 3px;
  130. padding: 0 3px;
  131. font-size: 10px;
  132. }
  133. #resources-toolbar .btn-add-resource{
  134. margin: auto;
  135. display: block;
  136. }
  137. .fast-spin {
  138. -webkit-animation: fa-spin 0.5s infinite linear;
  139. animation: fa-spin 0.5s infinite linear;
  140. }
  141. .sketch-preloader{
  142. display: none;
  143. }
  144. .resource-dropdown{
  145. position: absolute;
  146. bottom: 0;
  147. }
  148. .resource-dropdown.dropright .dropdown-menu{
  149. border-radius: 0;
  150. background: #333;
  151. top: 0;
  152. max-width: 550px;
  153. min-width: 350px;
  154. right: auto;
  155. left: 100%;
  156. margin-top: 0;
  157. margin-left: 0;
  158. color: #fefefe;
  159. }
  160. .resource-dropdown.dropright .dropdown-menu .dropdown-item:focus,.resource-dropdown.dropright .dropdown-menu .dropdown-item:hover{
  161. background-color: #131313;
  162. }
  163. .resource-dropdown.dropright .dropdown-menu,.resource-dropdown.dropright .dropdown-menu a{
  164. white-space: normal;
  165. }
  166. #sketch-workspace [data-type="dropzone"]{
  167. background:transparent;
  168. color:#cecece;
  169. border:0;
  170. }
  171. div.hackpoint-type-image[data-type="dropzone"] > div{
  172. padding: 15px;
  173. text-align: center;
  174. margin: auto auto 10px auto;
  175. width: 50%;
  176. background: #444e58;
  177. }
  178. #sketch-editor{
  179. overflow: auto;
  180. height: 100%;
  181. box-sizing: border-box;
  182. }
  183. .hackpoint-type-image img{
  184. max-width: 100%!important;
  185. max-height: 100%!important;
  186. margin:5px 0!important;
  187. box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
  188. }
  189. .hackpoint-type-image li > a{
  190. display: none;
  191. }
  192. div.hackpoint-type-image[data-type="dropzone"] > ul > li {
  193. vertical-align: top;
  194. display: inline-block;
  195. position: relative;
  196. padding: 5px;
  197. border-bottom: 0;
  198. background: transparent;
  199. }
  200. div.hackpoint-type-image[data-type="dropzone"] > ul > li > i.pointer{
  201. top:15px;
  202. right:5px;
  203. background-color: #333333;
  204. display: inline-block;
  205. padding:5px;
  206. width: 20px;
  207. height: 20px;
  208. font-size: 10px;
  209. text-align: center;
  210. box-sizing: border-box;
  211. border-radius: 100%;
  212. transform: translateY(0px);
  213. }
  214. #parts{
  215. margin:0;
  216. padding:0;
  217. }
  218. #parts li{
  219. width:15%;
  220. min-width: 250px;
  221. display: inline-block;
  222. padding:0px;
  223. margin:5px 5px 5px 0;
  224. transition: transform 0.2s ease-in-out;
  225. }
  226. #parts li .part{
  227. background-color: #2b2f35;
  228. border-radius: 3px;
  229. padding: 15px;
  230. color:#cecece;
  231. min-height: 250px;
  232. position: relative;
  233. }
  234. #sketch-workspace .part .part-image{
  235. border:2px dashed #3e4750;
  236. height:200px;
  237. background: url(../img/default-part.png) center center no-repeat;
  238. text-align: center;
  239. text-transform: uppercase;
  240. font-weight: bold;
  241. color:#5e6671;
  242. margin-top:10px;
  243. }
  244. #parts li .part .btn-delete{
  245. color:#cecece;
  246. position: absolute;
  247. bottom: 0;
  248. right: 0;
  249. opacity:0.4;
  250. transition:all 0.2s ease-in-out;
  251. }
  252. #parts li .part .btn-delete:hover{
  253. opacity:0.9;
  254. }
  255. #parts li .part .price{
  256. font-weight: bold;
  257. }
  258. #parts li .part .link{
  259. color:#cecece;
  260. position: absolute;
  261. bottom: 0;
  262. left: 0;
  263. padding:5px 10px;
  264. opacity:0.4;
  265. transition:all 0.2s ease-in-out;
  266. }
  267. #parts li .part .brand{
  268. font-size: 10px;
  269. float:right;
  270. margin-top: 5px;
  271. color:#4c7cad;
  272. }
  273. #parts li .part .link:hover{
  274. opacity:0.9;
  275. transform: rotate(180deg);
  276. }