Créé dans le cadre du projet de fin d'année de la promo 2018 de CIR2 de l'ISEN Brest/Rennes, le Burger Quizz est une adaptation numérique du jeu télévisé éponyme, plus précisément d'une épreuve spécifique de ce jeu : le "Sel ou Poivre".

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. @-webkit-keyframes timebar
  2. {
  3. 0%{width: 100%;background-color: #57cc6b;}
  4. 30%{background-color: #57cc6b;}
  5. 40%{background-color: #e3a55c;}
  6. 60%{background-color: #e3a55c;}
  7. 70%{background-color: #cc5757;}
  8. 100%{width: 0;background-color: #cc5757;}
  9. }
  10. @keyframes timebar
  11. {
  12. 0%{width: 100%;background-color: #57cc6b;}
  13. 30%{background-color: #57cc6b;}
  14. 40%{background-color: #e3a55c;}
  15. 60%{background-color: #e3a55c;}
  16. 70%{background-color: #cc5757;}
  17. 100%{width: 0;background-color: #cc5757;}
  18. }
  19. #timer {
  20. height: 20px;
  21. display: block;
  22. margin: auto;
  23. }
  24. .timer
  25. {
  26. -webkit-animation: timebar 5s linear;
  27. animation: timebar 5s linear;
  28. }
  29. .pause {
  30. -webkit-animation-play-state: paused;
  31. animation-play-state: paused;
  32. }
  33. .clearTimer {
  34. -webkit-animation: none;
  35. animation: none;
  36. }
  37. #navbar li.current:last-child #score {
  38. display:inline;
  39. padding-top:17px;
  40. padding-left:30px;
  41. padding-right:30px;
  42. padding-bottom:18px;
  43. background: #ffab19;
  44. }
  45. #game input[type="submit"]#play {
  46. border:none;
  47. background-color:#09b22b;
  48. color:white;
  49. padding:20px;
  50. font-size:170%;
  51. cursor:pointer;
  52. }
  53. #game {
  54. text-align:center;
  55. }
  56. div#category {
  57. font-size:170%;
  58. font-family:'Lato';
  59. font-weight:300;
  60. margin-top:20px;
  61. }
  62. p#question {
  63. font-size:120%;
  64. }
  65. ul#answers {
  66. padding-left:0px;
  67. }
  68. ul#answers li {
  69. display:inline-block;
  70. background: #b087ff;
  71. width:16%;
  72. padding:20px;
  73. padding-top:38px;
  74. height:42px;
  75. font-size:110%;
  76. color:white;
  77. font-weight:bold;
  78. margin-right:20px;
  79. line-height: 20px;
  80. vertical-align: middle;
  81. cursor: pointer;
  82. }
  83. ul#answers li.good-answer {
  84. background: #57cc6b;
  85. }
  86. ul#answers li.wrong-answer {
  87. background: #cc5757;
  88. }
  89. h2#score {
  90. margin-top: 100px;
  91. font-size:220%;
  92. margin-bottom:10px;
  93. }
  94. p#registerScore, p#conDenied {
  95. width: 40%;
  96. margin: auto;
  97. }
  98. p.success {
  99. padding-top: 30px;
  100. background:#57cc6b;
  101. padding-bottom: 30px;
  102. }
  103. p.error {
  104. padding-top: 30px;
  105. background:#cc5757;
  106. padding-bottom: 30px;
  107. color:white;
  108. }
  109. p#conDenied {
  110. margin-top:70px;
  111. }
  112. @media all and (max-width: 799px) {
  113. ul#answers li {
  114. display:block;
  115. margin:auto;
  116. margin-bottom:10px;
  117. width:80%;
  118. padding-top:15px;
  119. height: 20px;
  120. }
  121. .error, .success, p#registerScore, p#conDenied {
  122. width:80%;
  123. }
  124. }
  125. @media all and (min-width: 800px) {
  126. ul#answers li:last-child {
  127. margin-right:0px;
  128. }
  129. }