styles.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  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. /* Better Font Rendering =========== */
  24. -webkit-font-smoothing: antialiased;
  25. -moz-osx-font-smoothing: grayscale;
  26. }
  27. .icon-menu:before {
  28. content: "\e9bd";
  29. }
  30. .icon-cloud-upload:before {
  31. content: "\e9c3";
  32. }
  33. .icon-plus:before {
  34. content: "\ea0a";
  35. }
  36. .icon-cross:before {
  37. content: "\ea0f";
  38. }
  39. .icon-checkmark:before {
  40. content: "\ea10";
  41. }
  42. /**
  43. * Styles généraux
  44. */
  45. /**
  46. * Grosse font pour le vidéo-proj
  47. */
  48. body {
  49. font-size: 100%;
  50. font-family: Arial, Helvetica;
  51. }
  52. /**
  53. * Styles des panneaux gauche-droite
  54. */
  55. /*#left-panel,
  56. #right-panel {
  57. font-family: Arial, Helvetica;
  58. position: absolute;
  59. top: 0;
  60. bottom: 0;
  61. }
  62. #left-panel {
  63. background: #fff;
  64. border-right: 1px solid #aaa;
  65. right: 39%;
  66. left: 0;
  67. }
  68. #right-panel {
  69. background: #f4f4f4;
  70. left: 59%;
  71. right: 0;
  72. }*/
  73. /* jQuery resizable: https://codepen.io/rstrahl/pen/eJZQej */
  74. /* horizontal panel*/
  75. html, body {
  76. height: 100%;
  77. }
  78. .panel-container {
  79. display: flex;
  80. flex-direction: row;
  81. border: 1px solid silver;
  82. overflow: hidden;
  83. height: 100%;
  84. /* avoid browser level touch actions */
  85. xtouch-action: none;
  86. }
  87. .panel-left {
  88. position: relative;
  89. flex: 0 0 auto;
  90. /* only manually resize */
  91. /*padding: 10px;*/
  92. width: 50%;
  93. /*min-height: 200px;*/
  94. height: 100%;
  95. min-width: 150px;
  96. white-space: nowrap;
  97. background: #fff;
  98. color: #555;
  99. }
  100. .splitter {
  101. flex: 0 0 auto;
  102. width: 18px;
  103. background: url(../img/vsizegrip.png) center center no-repeat #ddd;
  104. min-height: 200px;
  105. cursor: col-resize;
  106. }
  107. .panel-right {
  108. flex: 1 1 auto;
  109. /* resizable */
  110. padding: 10px;
  111. width: 100%;
  112. height: 100%;
  113. overflow-y: scroll;
  114. min-width: 200px;
  115. background: #eee;
  116. }
  117. #sandbox-iframe {
  118. border: none;
  119. width: 100%;
  120. }
  121. #sandbox-iframe.test-mode {
  122. max-height: 300px;
  123. margin-bottom: 10px;
  124. }
  125. .panel-inner {
  126. padding: 10px;
  127. }
  128. #site-menu{ position: fixed;top:0;right:0; }
  129. /*.panel-left nav,
  130. #add-example-form {
  131. display: inline-block;
  132. }
  133. .panel-left nav ul {
  134. padding-left: 0;
  135. margin: 0;
  136. }
  137. .panel-left nav ul li {
  138. display: inline-block;
  139. }*/
  140. #notification {
  141. color: #333;
  142. position: absolute;
  143. top: -100px;
  144. right: 10px;
  145. transition: top 1s;
  146. }
  147. .alert-box {
  148. text-align: center;
  149. border-radius: 3px;
  150. padding: 5px 10px;
  151. }
  152. #notification.active {
  153. top: 5px;
  154. }
  155. .alert-box.error {
  156. border: 1px solid #d42;
  157. background: #ffe8e0;
  158. }
  159. .alert-box.success {
  160. border: 1px solid #2d4;
  161. background: #e0ffe8;
  162. }
  163. /**
  164. * Styles généraux: liens, boutons, ...
  165. */
  166. a {
  167. text-decoration: none;
  168. color: #59d;
  169. }
  170. a:hover {
  171. text-decoration: none;
  172. color: #37b;
  173. }
  174. button {
  175. padding: 10px;
  176. border: none;
  177. border-radius: 3px;
  178. background: #fff;
  179. color: #555;
  180. }
  181. button a {
  182. color: #fff;
  183. }
  184. button.active {
  185. background: #9ad;
  186. }
  187. button:hover {
  188. opacity: 0.6;
  189. }
  190. button.btn-lg {
  191. font-size: 120%;
  192. }
  193. textarea,
  194. select,
  195. input {
  196. border: 1px solid #ddd;
  197. padding: 8px;
  198. border-radius: 3px;
  199. }
  200. .blue {
  201. background: #24d;
  202. color: #fff;
  203. }
  204. .red {
  205. background: #d42;
  206. color: #fff;
  207. }
  208. .green {
  209. background: #4b2;
  210. color: #fff;
  211. }
  212. #editor-js,
  213. #editor-html,
  214. #editor-css {
  215. /*display: none;*/
  216. position: absolute;
  217. top: 510px;
  218. }
  219. /**
  220. * Styles pour l'éditeur Ace
  221. */
  222. #editor-wrapper,
  223. #editor {
  224. position: absolute;
  225. bottom: 0;
  226. width: 100%;
  227. }
  228. #editor-wrapper {
  229. top: 140px;
  230. }
  231. #editor {
  232. font-size: 90%;
  233. border-top: 3px solid #ddd;
  234. top: 22px;
  235. left: 0;
  236. }
  237. #navbar {
  238. height: 49px;
  239. border-bottom: 1px solid #ddd;
  240. font-size: 26px;
  241. }
  242. #navbar a {
  243. color: #555;
  244. }
  245. #navbar a:hover,
  246. #navbar button:hover {
  247. color: #777;
  248. }
  249. #nav-menus {
  250. position: absolute;
  251. top: 50px;
  252. bottom: 0;
  253. left: 0;
  254. width: 0;
  255. overflow: hidden;
  256. transition: all 0.2s;
  257. z-index: 100;
  258. color: #000;
  259. background: rgba(248, 248, 248, 1);
  260. padding: 10px 0;
  261. }
  262. .cat-title {
  263. text-transform: uppercase;
  264. }
  265. #nav-menus.in {
  266. width: 540px;
  267. padding: 10px;
  268. }
  269. #nav-menus .pure-u-1 {
  270. padding: 10px;
  271. box-sizing: border-box;
  272. }
  273. #nav-menus ul {
  274. padding-left: 0;
  275. margin-top: 5px;
  276. }
  277. #menu-btn:focus {
  278. outline: none;
  279. }
  280. /* Menus de nav */
  281. #nav-menus {
  282. }
  283. #nav-menus li {
  284. list-style-type: none;
  285. }
  286. #menu-example {
  287. overflow:
  288. }
  289. #menu-example > li {
  290. display: block;
  291. float:left;
  292. vertical-align: top;
  293. width: 50%;
  294. }
  295. .nav-menu a {
  296. color: #58c;
  297. }
  298. .nav-menu a:hover {
  299. color: #7af;
  300. }
  301. #tabs {
  302. /*font-size: 16px;*/
  303. position: relative;
  304. vertical-align: bottom;
  305. margin: 0;
  306. padding-left: 10px;
  307. }
  308. #tabs li {
  309. border-top: 1px solid #ddd;
  310. border-left: 1px solid #ddd;
  311. border-right: 1px solid #ddd;
  312. display: inline;
  313. box-sizing: border-box;
  314. padding: 4px 8px;
  315. }
  316. .tab-html {
  317. background: #cef;
  318. }
  319. .tab-js {
  320. background: #ffb;
  321. }
  322. .tab-css {
  323. background: #fce;
  324. }
  325. .inline-block {
  326. display: inline-block;
  327. vertical-align: top;
  328. }
  329. .hidden {
  330. display: none;
  331. }
  332. .h-collapsed {
  333. box-sizing: border-box;
  334. max-width: 0;
  335. padding-left: 0;
  336. padding-right: 0;
  337. transition: 0.3s;
  338. overflow: hidden;
  339. }
  340. .h-collapsed.fast {
  341. transition: 0.2s;
  342. }
  343. .h-collapsed.in {
  344. padding-left: 15px;
  345. padding-right: 15px;
  346. max-width: 350px;
  347. }
  348. .h-collapsed input[type="text"] {
  349. margin: 2px;
  350. padding-left: 10px;
  351. }
  352. #details-repo {
  353. vertical-align: middle;
  354. }