styles.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  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. min-width: 200px;
  107. background: #eee;
  108. }
  109. .panel-inner {
  110. padding: 10px;
  111. }
  112. .panel-left nav,
  113. #add-example-form {
  114. display: inline-block;
  115. }
  116. .panel-left nav ul {
  117. padding-left: 0;
  118. margin: 0;
  119. }
  120. .panel-left nav ul li {
  121. display: inline-block;
  122. }
  123. #notification {
  124. color: black;
  125. position: absolute;
  126. top: -100px;
  127. right: 10px;
  128. transition: top 1s;
  129. border-radius: 3px;
  130. padding: 3px;
  131. }
  132. #notification.active {
  133. top: 5px;
  134. }
  135. #notification.error {
  136. border: 1px solid #d42;
  137. background: #ffe8e0;
  138. }
  139. #notification.success {
  140. border: 1px solid #2d4;
  141. background: #e0ffe8;
  142. }
  143. /**
  144. * Styles généraux: liens, boutons, ...
  145. */
  146. a {
  147. text-decoration: none;
  148. color: #59d;
  149. }
  150. a:hover {
  151. text-decoration: none;
  152. color: #37b;
  153. }
  154. button a {
  155. color: #fff;
  156. }
  157. button.active {
  158. background: #9ad;
  159. }
  160. button:hover {
  161. opacity: 0.6;
  162. }
  163. #editor-js,#editor-html {
  164. /*display: none;*/
  165. position: absolute;
  166. top: 510px;
  167. }
  168. /**
  169. * Styles pour l'éditeur Ace
  170. */
  171. #editor {
  172. font-size: 90%;
  173. position: absolute;
  174. top: 90px;
  175. right: 500px;
  176. bottom: 0;
  177. left: 0;
  178. border-top: 1px solid #aaa;
  179. border-bottom: 1px solid #aaa;
  180. }
  181. .container {
  182. margin: 20px auto;
  183. background: #fff;
  184. border: 1px solid #ddd;
  185. padding: 30px;
  186. width: 96%;
  187. border-radius: 4px;
  188. box-sizing: border-box;
  189. /*max-width: 600px;*/
  190. }
  191. input[type="submit"],
  192. button {
  193. padding: 10px;
  194. color: white;
  195. border: none;
  196. border-radius: 3px;
  197. }
  198. .blue {
  199. background: #24d;
  200. }
  201. .red {
  202. background: #d42;
  203. }
  204. .green {
  205. background: #4b2;
  206. }
  207. select,
  208. input {
  209. border: 1px solid #ddd;
  210. padding: 12px;
  211. border-radius: 3px;
  212. }
  213. input.input-sm {
  214. padding: 6px;
  215. font-size: 70%;
  216. }
  217. select {
  218. background: #fcfcfc;
  219. }
  220. a,
  221. button {
  222. margin: 5px;
  223. box-sizing: border-box;
  224. }
  225. .bordure-flashy {
  226. border: 2px solid red;
  227. }
  228. #html-content h5 {
  229. margin: 20px 0 5px 0;
  230. }
  231. #html-content p {
  232. margin: 10px 0;
  233. }
  234. button.d {
  235. padding: 0;
  236. width: 32px;
  237. height: 32px;
  238. border-radius: 16px;
  239. }
  240. /**
  241. * Styles communs pour les différents exemples
  242. */
  243. a.active {
  244. font-weight: bold;
  245. color: #48c;
  246. }
  247. .cyan {
  248. background: #6ff;
  249. }
  250. .magenta {
  251. background: #f6f;
  252. }
  253. .yellow {
  254. background: #ff6;
  255. color: #444;
  256. }
  257. .orange {
  258. background: #eb6;
  259. }
  260. .bold-text {
  261. font-weight: bold;
  262. }
  263. .underlined-text {
  264. text-decoration: underline;
  265. }
  266. .text-green {
  267. color: #4b2;
  268. }
  269. .text-red {
  270. color: #b42;
  271. }
  272. .table {
  273. border-collapse: collapse;
  274. }
  275. .table tr td {
  276. border: 1px solid #aaa;
  277. padding: 2px;
  278. }
  279. ul.tab-nav {
  280. padding-left: 5px;
  281. padding-bottom: 4px;
  282. border-bottom: 1px solid #eee;
  283. }
  284. ul.tab-nav li {
  285. display:inline;
  286. padding: 6px 10px;
  287. margin-right: 5px;
  288. border-top:1px solid #ccc;
  289. border-left:1px solid #ccc;
  290. border-right:1px solid #ccc;
  291. }
  292. #qunit-header,
  293. #qunit-testrunner-toolbar {
  294. display: none;
  295. }
  296. #revert-editor {
  297. background: none;
  298. border: none;
  299. position: absolute;
  300. padding: 0 3px;
  301. top: 0;
  302. left: 0;
  303. color: red;
  304. font-size: 11px;
  305. }