styles.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. /**
  2. * Pack d'icônes
  3. */
  4. @font-face {
  5. font-family: 'icomoon';
  6. src: url('fonts/icomoon.eot?xjk54g');
  7. src: url('fonts/icomoon.eot?xjk54g#iefix') format('embedded-opentype'),
  8. url('fonts/icomoon.ttf?xjk54g') format('truetype'),
  9. url('fonts/icomoon.woff?xjk54g') format('woff'),
  10. url('fonts/icomoon.svg?xjk54g#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-cloud-upload:before {
  28. content: "\e9c3";
  29. }
  30. .icon-plus:before {
  31. content: "\ea0a";
  32. }
  33. .icon-cross:before {
  34. content: "\ea0f";
  35. }
  36. .icon-checkmark:before {
  37. content: "\ea10";
  38. }
  39. /**
  40. * Styles généraux
  41. */
  42. /**
  43. * Grosse font pour le vidéo-proj
  44. */
  45. body {
  46. font-size: 130%;
  47. }
  48. /**
  49. * Styles des panneaux gauche-droite
  50. */
  51. /*#left-panel,
  52. #right-panel {
  53. font-family: Arial, Helvetica;
  54. position: absolute;
  55. top: 0;
  56. bottom: 0;
  57. }
  58. #left-panel {
  59. background: #fff;
  60. border-right: 1px solid #aaa;
  61. right: 39%;
  62. left: 0;
  63. }
  64. #right-panel {
  65. background: #f4f4f4;
  66. left: 59%;
  67. right: 0;
  68. }*/
  69. /* jQuery resizable: https://codepen.io/rstrahl/pen/eJZQej */
  70. /* horizontal panel*/
  71. .panel-container {
  72. display: flex;
  73. flex-direction: row;
  74. border: 1px solid silver;
  75. overflow: hidden;
  76. height: 100%;
  77. /* avoid browser level touch actions */
  78. xtouch-action: none;
  79. }
  80. .panel-left {
  81. flex: 0 0 auto;
  82. /* only manually resize */
  83. padding: 10px;
  84. width: 50%;
  85. /*min-height: 200px;*/
  86. height: 100%;
  87. min-width: 150px;
  88. white-space: nowrap;
  89. background: #fff;
  90. color: white;
  91. }
  92. .splitter {
  93. flex: 0 0 auto;
  94. width: 18px;
  95. background: url(../img/vsizegrip.png) center center no-repeat #ddd;
  96. min-height: 200px;
  97. cursor: col-resize;
  98. }
  99. .panel-right {
  100. flex: 1 1 auto;
  101. /* resizable */
  102. padding: 10px;
  103. width: 100%;
  104. height: 100%;
  105. overflow-y: scroll;
  106. border: none;
  107. min-width: 200px;
  108. background: #eee;
  109. }
  110. .panel-inner {
  111. padding: 10px;
  112. }
  113. .panel-left nav,
  114. #add-example-form {
  115. display: inline-block;
  116. }
  117. .panel-left nav ul {
  118. padding-left: 0;
  119. margin: 0;
  120. }
  121. .panel-left nav ul li {
  122. display: inline-block;
  123. }
  124. #notification {
  125. color: black;
  126. position: absolute;
  127. top: -100px;
  128. right: 10px;
  129. transition: top 1s;
  130. border-radius: 3px;
  131. padding: 3px;
  132. }
  133. #notification.active {
  134. top: 5px;
  135. }
  136. #notification.error {
  137. border: 1px solid #d42;
  138. background: #ffe8e0;
  139. }
  140. #notification.success {
  141. border: 1px solid #2d4;
  142. background: #e0ffe8;
  143. }
  144. /**
  145. * Styles généraux: liens, boutons, ...
  146. */
  147. a {
  148. text-decoration: none;
  149. color: #59d;
  150. }
  151. a:hover {
  152. text-decoration: none;
  153. color: #37b;
  154. }
  155. button a {
  156. color: #fff;
  157. }
  158. button.active {
  159. background: #9ad;
  160. }
  161. button:hover {
  162. opacity: 0.6;
  163. }
  164. #editor-js,
  165. #editor-html,
  166. #editor-css {
  167. /*display: none;*/
  168. position: absolute;
  169. top: 510px;
  170. }
  171. /**
  172. * Styles pour l'éditeur Ace
  173. */
  174. #editor {
  175. font-size: 90%;
  176. position: absolute;
  177. top: 90px;
  178. right: 500px;
  179. bottom: 0;
  180. left: 0;
  181. border-top: 1px solid #aaa;
  182. border-bottom: 1px solid #aaa;
  183. }
  184. .container {
  185. margin: 20px auto;
  186. background: #fff;
  187. border: 1px solid #ddd;
  188. padding: 30px;
  189. width: 96%;
  190. border-radius: 4px;
  191. box-sizing: border-box;
  192. /*max-width: 600px;*/
  193. }
  194. input[type="submit"],
  195. button {
  196. padding: 10px;
  197. color: white;
  198. border: none;
  199. border-radius: 3px;
  200. }
  201. .blue {
  202. background: #24d;
  203. }
  204. .red {
  205. background: #d42;
  206. }
  207. .green {
  208. background: #4b2;
  209. }
  210. .gray {
  211. background: #888;
  212. }
  213. textarea,
  214. select,
  215. input {
  216. border: 1px solid #ddd;
  217. padding: 12px;
  218. border-radius: 3px;
  219. }
  220. input.input-sm {
  221. padding: 6px;
  222. font-size: 70%;
  223. }
  224. select {
  225. background: #fcfcfc;
  226. }
  227. a,
  228. button {
  229. margin: 5px;
  230. box-sizing: border-box;
  231. }
  232. .bordure-flashy {
  233. border: 2px solid red;
  234. }
  235. #html-content h5 {
  236. margin: 20px 0 5px 0;
  237. }
  238. #html-content p {
  239. margin: 10px 0;
  240. }
  241. button.d {
  242. padding: 0;
  243. width: 32px;
  244. height: 32px;
  245. border-radius: 16px;
  246. }
  247. /**
  248. * Styles communs pour les différents exemples
  249. */
  250. a.active {
  251. font-weight: bold;
  252. color: #48c;
  253. }
  254. .cyan {
  255. background: #6ff;
  256. }
  257. .magenta {
  258. background: #f6f;
  259. }
  260. .yellow {
  261. background: #ff6;
  262. color: #444;
  263. }
  264. .orange {
  265. background: #eb6;
  266. }
  267. .bold-text {
  268. font-weight: bold;
  269. }
  270. .underlined-text {
  271. text-decoration: underline;
  272. }
  273. .text-green {
  274. color: #4b2;
  275. }
  276. .text-red {
  277. color: #b42;
  278. }
  279. .table {
  280. border-collapse: collapse;
  281. }
  282. .table tr td {
  283. border: 1px solid #aaa;
  284. padding: 2px;
  285. }
  286. ul.tab-nav {
  287. padding-left: 5px;
  288. padding-bottom: 4px;
  289. border-bottom: 1px solid #eee;
  290. }
  291. ul.tab-nav li {
  292. display:inline;
  293. padding: 6px 10px;
  294. margin-right: 5px;
  295. border-top:1px solid #ccc;
  296. border-left:1px solid #ccc;
  297. border-right:1px solid #ccc;
  298. }
  299. #qunit-header,
  300. #qunit-testrunner-toolbar {
  301. display: none;
  302. }
  303. #revert-editor {
  304. background: none;
  305. border: none;
  306. position: absolute;
  307. padding: 0 3px;
  308. top: 0;
  309. left: 0;
  310. color: red;
  311. font-size: 11px;
  312. }