styles.css 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. /**
  2. * Pack d'icônes
  3. */
  4. @font-face {
  5. font-family: 'icomoon';
  6. src: url('fonts/icomoon.eot?q7b5dg');
  7. src: url('fonts/icomoon.eot?q7b5dg#iefix') format('embedded-opentype'),
  8. url('fonts/icomoon.ttf?q7b5dg') format('truetype'),
  9. url('fonts/icomoon.woff?q7b5dg') format('woff'),
  10. url('fonts/icomoon.svg?q7b5dg#icomoon') format('svg');
  11. font-weight: normal;
  12. font-style: normal;
  13. }
  14. [class^="icon-"], [class*=" icon-"] {
  15. /* use !important to prevent issues with browser extensions that change fonts */
  16. font-family: 'icomoon' !important;
  17. speak: none;
  18. font-style: normal;
  19. font-weight: normal;
  20. font-variant: normal;
  21. text-transform: none;
  22. line-height: 1;
  23. /* Customized by Bibi */
  24. font-size: 80%;
  25. /* Better Font Rendering =========== */
  26. -webkit-font-smoothing: antialiased;
  27. -moz-osx-font-smoothing: grayscale;
  28. }
  29. .icon-menu:before {
  30. content: "\e9bd";
  31. }
  32. .icon-cloud-upload:before {
  33. content: "\e9c3";
  34. }
  35. .icon-plus:before {
  36. content: "\ea0a";
  37. }
  38. .icon-cross:before {
  39. content: "\ea0f";
  40. }
  41. .icon-checkmark:before {
  42. content: "\ea10";
  43. }
  44. .icon-loop2:before {
  45. content: "\ea2e";
  46. }
  47. /**
  48. * Styles généraux
  49. */
  50. /**
  51. * Grosse font pour le vidéo-proj
  52. */
  53. body {
  54. font-size: 100%;
  55. font-family: Arial, Helvetica;
  56. }
  57. /**
  58. * Styles des panneaux gauche-droite
  59. */
  60. /*#left-panel,
  61. #right-panel {
  62. font-family: Arial, Helvetica;
  63. position: absolute;
  64. top: 0;
  65. bottom: 0;
  66. }
  67. #left-panel {
  68. background: #fff;
  69. border-right: 1px solid #aaa;
  70. right: 39%;
  71. left: 0;
  72. }
  73. #right-panel {
  74. background: #f4f4f4;
  75. left: 59%;
  76. right: 0;
  77. }*/
  78. /* jQuery resizable: https://codepen.io/rstrahl/pen/eJZQej */
  79. /* horizontal panel*/
  80. html, body {
  81. height: 100%;
  82. }
  83. .panel-container {
  84. display: flex;
  85. flex-direction: row;
  86. border: 1px solid silver;
  87. overflow: hidden;
  88. height: 100%;
  89. /* avoid browser level touch actions */
  90. xtouch-action: none;
  91. }
  92. .panel-left {
  93. position: relative;
  94. flex: 0 0 auto;
  95. /* only manually resize */
  96. /*padding: 10px;*/
  97. width: 50%;
  98. /*min-height: 200px;*/
  99. height: 100%;
  100. min-width: 150px;
  101. white-space: nowrap;
  102. background: #fff;
  103. color: #555;
  104. }
  105. .splitter {
  106. flex: 0 0 auto;
  107. width: 18px;
  108. background: url(../img/vsizegrip.png) center center no-repeat #ddd;
  109. min-height: 200px;
  110. cursor: col-resize;
  111. }
  112. .panel-right {
  113. flex: 1 1 auto;
  114. /* resizable */
  115. padding: 10px;
  116. width: 100%;
  117. height: 100%;
  118. overflow-y: scroll;
  119. min-width: 200px;
  120. background: #eee;
  121. }
  122. #sandbox-iframe {
  123. border: none;
  124. width: 100%;
  125. height: 100%;
  126. }
  127. #sandbox-iframe.test-mode {
  128. max-height: 300px;
  129. margin-bottom: 10px;
  130. }
  131. .panel-inner {
  132. padding: 10px;
  133. }
  134. #site-menu{ position: fixed;top:0;right:0; }
  135. /*.panel-left nav,
  136. #add-example-form {
  137. display: inline-block;
  138. }
  139. .panel-left nav ul {
  140. padding-left: 0;
  141. margin: 0;
  142. }
  143. .panel-left nav ul li {
  144. display: inline-block;
  145. }*/
  146. #notification {
  147. color: #333;
  148. position: absolute;
  149. top: -100px;
  150. right: 10px;
  151. transition: top 1s;
  152. }
  153. .alert-box {
  154. text-align: center;
  155. border-radius: 3px;
  156. padding: 5px 10px;
  157. }
  158. #notification.active {
  159. top: 5px;
  160. }
  161. .alert-box.error {
  162. border: 1px solid #d42;
  163. background: #ffe8e0;
  164. }
  165. .alert-box.success {
  166. border: 1px solid #2d4;
  167. background: #e0ffe8;
  168. }
  169. /**
  170. * Styles généraux: liens, boutons, ...
  171. */
  172. a {
  173. text-decoration: none;
  174. color: #59d;
  175. }
  176. a:hover {
  177. text-decoration: none;
  178. color: #37b;
  179. }
  180. button {
  181. border: none;
  182. border-radius: 3px;
  183. background: #fff;
  184. color: #555;
  185. }
  186. .input,
  187. .btn {
  188. padding: 10px;
  189. }
  190. .input-sm,
  191. .btn-sm {
  192. padding: 3px;
  193. font-size: 90%;
  194. }
  195. .input-xs {
  196. padding: 1px;
  197. font-size: 80%;
  198. }
  199. .input-light-border {
  200. border: 1px solid #f8f8f8;
  201. }
  202. .input-warning {
  203. border: 1px solid #cc5;
  204. }
  205. .input-error {
  206. border: 1px solid #e65;
  207. }
  208. .input-success {
  209. border: 1px solid #4c2;
  210. }
  211. [class^="icon-"].rounded,
  212. [class*=" icon-"].rounded {
  213. border-radius: 10px;
  214. padding: 3px;
  215. }
  216. [class^="icon-"].rounded:hover,
  217. [class*=" icon-"].rounded:hover {
  218. background: #ddd;
  219. color: #222;
  220. }
  221. button a {
  222. color: #fff;
  223. }
  224. button.active {
  225. background: #9ad;
  226. }
  227. /*button:hover {
  228. opacity: 0.6;
  229. }*/
  230. button.btn-lg {
  231. font-size: 120%;
  232. }
  233. textarea,
  234. select,
  235. input {
  236. border: 1px solid #ddd;
  237. border-radius: 3px;
  238. }
  239. .light-gray {
  240. background: #f4f4f4;
  241. color: #555;
  242. }
  243. .light-gray:hover {
  244. background: #ddd;
  245. color: #222;
  246. }
  247. .blue {
  248. background: #24d;
  249. color: #fff;
  250. }
  251. .red {
  252. background: #d42;
  253. color: #fff;
  254. }
  255. .green {
  256. background: #4b2;
  257. color: #fff;
  258. }
  259. #editor-js,
  260. #editor-html,
  261. #editor-css {
  262. /*display: none;*/
  263. position: absolute;
  264. top: 510px;
  265. }
  266. /**
  267. * Styles pour l'éditeur Ace
  268. */
  269. #editor-wrapper,
  270. #editor {
  271. position: absolute;
  272. bottom: 0;
  273. width: 100%;
  274. }
  275. #editor-wrapper {
  276. top: 145px;
  277. }
  278. #editor {
  279. font-size: 90%;
  280. border-top: 3px solid #ddd;
  281. top: 22px;
  282. left: 0;
  283. }
  284. #navbar {
  285. height: 49px;
  286. border-bottom: 1px solid #ddd;
  287. font-size: 26px;
  288. }
  289. #navbar a {
  290. color: #555;
  291. }
  292. #navbar a:hover,
  293. #navbar button:hover {
  294. color: #777;
  295. }
  296. #nav-menus {
  297. position: absolute;
  298. top: 50px;
  299. bottom: 0;
  300. left: 0;
  301. width: 0;
  302. overflow: hidden;
  303. transition: all 0.2s;
  304. z-index: 100;
  305. color: #000;
  306. background: rgba(248, 248, 248, 1);
  307. padding: 10px 0;
  308. }
  309. #menu-example .cat-title {
  310. text-transform: uppercase;
  311. }
  312. #nav-menus.in {
  313. width: 540px;
  314. padding: 10px;
  315. }
  316. #nav-menus .pure-u-1 {
  317. padding: 10px;
  318. box-sizing: border-box;
  319. }
  320. #nav-menus ul {
  321. padding-left: 0;
  322. margin-top: 5px;
  323. }
  324. #menu-btn:focus {
  325. outline: none;
  326. }
  327. /* Menus de nav */
  328. #nav-menus {
  329. }
  330. #nav-menus li {
  331. list-style-type: none;
  332. }
  333. #menu-example {
  334. overflow:
  335. }
  336. #menu-example > li {
  337. display: block;
  338. float:left;
  339. vertical-align: top;
  340. width: 50%;
  341. }
  342. .nav-menu a {
  343. color: #58c;
  344. }
  345. .nav-menu a:hover {
  346. color: #7af;
  347. }
  348. #tabs, #add-file {
  349. display: inline-block;
  350. /*font-size: 16px;*/
  351. position: relative;
  352. vertical-align: bottom;
  353. margin: 0;
  354. }
  355. #tabs {
  356. padding-left: 10px;
  357. }
  358. #add-file {
  359. padding-left: 5px;
  360. }
  361. #tabs li,
  362. #add-file li {
  363. border-top: 1px solid #ddd;
  364. border-left: 1px solid #ddd;
  365. border-right: 1px solid #ddd;
  366. display: inline;
  367. box-sizing: border-box;
  368. padding: 4px 8px;
  369. }
  370. .tab-html {
  371. background: #cef;
  372. }
  373. .tab-js {
  374. background: #ffb;
  375. }
  376. .tab-css {
  377. background: #fce;
  378. }
  379. .inline-block {
  380. display: inline-block;
  381. vertical-align: top;
  382. }
  383. .hidden {
  384. display: none;
  385. }
  386. .h-collapsed {
  387. box-sizing: border-box;
  388. max-width: 0;
  389. padding-left: 0;
  390. padding-right: 0;
  391. transition: 0.3s;
  392. overflow: hidden;
  393. }
  394. .h-collapsed.fast {
  395. transition: 0.2s;
  396. }
  397. .h-collapsed.in {
  398. padding-left: 15px;
  399. padding-right: 15px;
  400. max-width: 350px;
  401. }
  402. .h-collapsed input[type="text"] {
  403. margin: 2px;
  404. padding-left: 10px;
  405. }
  406. .details-div section {
  407. vertical-align: middle;
  408. }
  409. .details-div button {
  410. margin-top: 3px;
  411. }
  412. #details-repo,
  413. #details-example,
  414. .details-div div.bold {
  415. margin: 10px 0;
  416. }
  417. .details-div .left {
  418. width: 310px;
  419. }
  420. .bold {
  421. font-weight: bold;
  422. }
  423. .dirty {
  424. color: #339;
  425. }
  426. #tabs .icon-cloud-upload {
  427. display: none;
  428. }
  429. #tabs .dirty .icon-cloud-upload {
  430. display: inline;
  431. color: #33c;
  432. }
  433. .details-div .btn-form {
  434. margin: 8px 0 10px 20px;
  435. }