lancaster.css 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. .grid {
  2. width: 100%;
  3. padding:5px;
  4. }
  5. .grid:after {
  6. content: "";
  7. display: table;
  8. clear: both;
  9. }
  10. body .col2,.col1 {
  11. width: 50%;
  12. float: left;
  13. margin-bottom:5px;
  14. }
  15. body .col1:after {
  16. width:5px;
  17. content:'';
  18. background:#999;
  19. display:block;
  20. height:100%;
  21. z-index:999;
  22. position:absolute;
  23. top:0px;
  24. right:0px;
  25. }
  26. body .card input[type='text']:focus
  27. { outline: none;
  28. border-bottom:1px solid #03a9f4;
  29. transition : border 200ms ease-out;
  30. -webkit-transition : border 200ms ease-out;
  31. }
  32. body .card {
  33. width:512px;
  34. border-radius:2px;
  35. margin:60px auto;
  36. margin-top:60px;
  37. padding:20px 16px;
  38. background:white !important;
  39. box-shadow: 0 2px 5px 0 rgba(0,0,0,.26);
  40. -webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,.26);
  41. max-height:580px;
  42. }
  43. body .card input[type='text'] {
  44. border:none;
  45. border-bottom:1px solid black;
  46. border-radius:0;
  47. padding:0;
  48. color:black;
  49. }
  50. body .card h3 {
  51. font-size:20px;
  52. color:#03a9f4;
  53. font-weight:normal;
  54. }
  55. body .panel .card h2 {
  56. color:#03a9f4;
  57. }
  58. #main {
  59. background:#eee;
  60. }
  61. #main .category {
  62. height:150px;
  63. color:#ccc;
  64. position: relative;
  65. font-size:12px;
  66. background-position: top center;
  67. }
  68. #main .category div {
  69. width:100%;
  70. position:absolute;
  71. bottom:0px;
  72. height:50px;
  73. padding:10px;
  74. background:red;
  75. line-height:30px;
  76. left:0px;
  77. color:white;
  78. font-size:18px;
  79. }
  80. .#main .category:nth-child(odd){
  81. }
  82. #main .category div:after {
  83. content:'>';
  84. position:absolute;
  85. right:20px;
  86. }
  87. /*.category:nth-child(odd) {
  88. background:#ff8a80;
  89. }
  90. .category:nth-child(even){
  91. background:yellow;
  92. }*/
  93. #question_view.animation-active {
  94. background:#ff8a80;
  95. }
  96. .stretch-in {
  97. -webkit-animation: stretchIn 300ms forwards;
  98. animation: stretchIn 300ms forwards;
  99. -webkit-transition-duration:300ms;
  100. transition-duration:300ms;
  101. }
  102. @-webkit-keyframes stretchIn {
  103. 100% { -webkit-transform:scale(1) translate3d(0,0,0);}
  104. }
  105. @keyframes stretchIn {
  106. 100% { transform:scale(1) translate3d(0,0,0);}
  107. }
  108. .stretch-out {
  109. -webkit-animation: noTransition 300ms forwards;
  110. animation: noTransition 300ms forwards;
  111. }
  112. .view header.main_header {
  113. height:60px;
  114. line-height:60px;
  115. padding:0 20px;
  116. font-size:22px;
  117. background:#03a9f4;
  118. }
  119. body .view footer {
  120. background:#03a9f4;
  121. border-color:#03a9f4;
  122. }
  123. .darkTheme {
  124. background: #01579b !important;
  125. }
  126. .lightTheme{
  127. background: #81d4fa !important;
  128. }
  129. @media handheld, only screen and (max-width: 768px) {
  130. body .card {
  131. width:100%;
  132. margin:0 0;
  133. }
  134. }
  135. /** quiz question stuff */
  136. #quiz h3 {
  137. z-index:2;
  138. }
  139. .questionTitle {
  140. padding: 15px 0px;
  141. font-size: 18px;
  142. font-weight: bold;
  143. border-top: 1px solid #999;
  144. z-index:2;
  145. }
  146. .answerList {
  147. list-style-type: none;
  148. overflow:hidden;
  149. position:relative;
  150. }
  151. .answerList li {
  152. padding:10px 10px;
  153. font-size:18px;
  154. margin:5px;
  155. z-index: 1;
  156. transform:translate3d(-10px,-200px,0) rotate(-45deg);
  157. -webkit-transform:translate3d(-10px,-200px,0) rotate(-45deg);
  158. visibility: hidden;
  159. }
  160. .answerList.active li {
  161. -webkit-animation: showListItem 500ms forwards;
  162. animation: showListItem 500ms forwards;
  163. animation-timing-function:cubic-bezier(0.265, 0.020, 0.775, 0.580);
  164. -webkit-animation-timing-function:cubic-bezier(0.265, 0.020, 0.775, 0.580);
  165. visibility: visible;
  166. }
  167. .answerList.active li:nth-of-type(2) {
  168. animation-delay:80ms;
  169. -webkit-animation-delay:80ms;
  170. transform:translate3d(-10px,-242px,0) rotate(-45deg);
  171. -webkit-transform:translate3d(-10px,-242px,0) rotate(-45deg);
  172. }
  173. .answerList.active li:nth-of-type(3) {
  174. animation-delay:160ms;
  175. -webkit-animation-delay:160ms;
  176. transform:translate3d(-10px,-284px,0) rotate(-45deg);
  177. -webkit-transform:translate3d(-10px,-284px,0) rotate(-45deg);
  178. }
  179. .answerList.active li:nth-of-type(4) {
  180. animation-delay:240ms;
  181. -webkit-animation-delay:240ms;
  182. transform:translate3d(-10px,-326px,0) rotate(-45deg);
  183. -webkit-transform:translate3d(-10px,-326px,0) rotate(-45deg);
  184. }
  185. .subtraction .answerList li {
  186. float: left;
  187. width: 46%;
  188. display: inline;
  189. height: 50%;
  190. text-align: center;
  191. border: 2px solid #ccc;
  192. transform:translate3d(0px,-100px,0);
  193. -webkit-transform:translate3d(0px,-100px,0);
  194. border-radius:0 !important;
  195. }
  196. .answerList.active li.response,.answerList.active li.pressed {
  197. background:#FFAE6B;
  198. -webkit-transition:background 200ms;
  199. transition:background 200ms;
  200. border-radius:10px;
  201. }
  202. .answerList.active li.wrong {
  203. background:#F94040;
  204. -webkit-transition:background 200ms;
  205. transition:background 200ms;
  206. }
  207. .answerList.active li.correct {
  208. background:#59D56E;
  209. -webkit-transition:background 200ms;
  210. transition:background 200ms;
  211. border-radius:10px;
  212. }
  213. @keyframes showListItem {
  214. to {transform:translate3d(0,0px,0)}
  215. }
  216. @-webkit-keyframes showListItem {
  217. to {-webkit-transform:translate3d(0,0px,0);}
  218. }
  219. .home,.home.pressed {
  220. background:url('images/home60.png') no-repeat !important;
  221. background-size:40px 40px !important;
  222. background-position: top center !important;
  223. line-height: 80px;
  224. }
  225. .transitionView {
  226. background:url('images/chalkboard.jpg') no-repeat;
  227. background-position:top center;
  228. width:100%;
  229. height:100%;
  230. background-size:100% 100% !important;
  231. position:absolute;
  232. top:0px;
  233. left:0px;
  234. display:none;
  235. z-index:50;
  236. }
  237. .addition {
  238. background:#fff url('images/plus.png') no-repeat;
  239. }
  240. .subtraction {
  241. background:#fff url('images/minus.png') no-repeat;
  242. }
  243. .division {
  244. background:#fff url('images/divide2.png') no-repeat;
  245. }
  246. .multiplication {
  247. background:#fff url('images/multiply2.png') no-repeat;
  248. }
  249. .shapes {
  250. background:#fff url('images/triangle_stroked.png') no-repeat;
  251. }
  252. .colors {
  253. background:#fff url('images/circle.png') no-repeat;
  254. }
  255. .transitionView.active {
  256. display:block;
  257. }
  258. .transitionView.active ~ div, .transitionView.active ~ footer {
  259. z-index:1 !important;
  260. }
  261. .answer {
  262. margin-top:10px;
  263. border-top: 1px solid #999;
  264. height:70px;
  265. }
  266. .answerArrow {
  267. background:white;
  268. width:50px;
  269. height:50px;
  270. border-radius:50px;
  271. border:1px solid #999;
  272. margin-top:16px;
  273. margin-right:10px;
  274. float:right;
  275. padding:22px 8px;
  276. line-height: 0px;
  277. font-weight:bold;
  278. -webkit-transition-duration:500ms;
  279. transition-duration:500ms;
  280. -webkit-transition-property:background rotate color opacity;
  281. transition-property:background rotate color opacity;
  282. opacity:0;
  283. font-size:30px;
  284. }
  285. .answerArrow.response {
  286. opacity:1;
  287. }
  288. .answerArrow.active {
  289. background:#03a9f4;
  290. color:white;
  291. }