Advertisement
Tyler_Elric

Untitled

Jul 30th, 2014
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 KB | None | 0 0
  1. <!doctype html>
  2.  
  3. <html>
  4. <head>
  5. <title>Material Example</title>
  6. <style type='text/css'>
  7. body,html{
  8. padding:0;
  9. margin:0;
  10. background:url('noise.png');
  11. font-family: Helvetica, Arial, sans-serif;
  12. font-size: 16px;
  13. font-style: normal;
  14. font-weight: bold;
  15. text-transform: normal;
  16. letter-spacing: normal;
  17. line-height: 1.4em;
  18. }
  19. #wrapper {
  20. width: 80%;
  21. max-width: 500px;
  22. margin:0 auto;
  23. }
  24. .card {
  25. margin-top:1em;
  26. border-radius:5px;
  27. color:#444;
  28. background:white;
  29. border:1px solid #ccc;
  30. box-shadow: #bbb 0 2px 5px;
  31. }
  32. .header {
  33. background:#29b6f6;
  34. color:#e1f5fe;
  35. font-weight:bold;
  36. padding:.1em .5em;
  37. border-radius:3px 3px 0 0;
  38. }
  39. .content {
  40. padding:1em .5em;
  41. }
  42. .footer {
  43. color:#444;
  44. padding:1em .5em;
  45. border-radius:0 0 3px 3px;
  46. display: flex;
  47. align-items:stretch;
  48. align-content:stretch;
  49. }
  50. .footer > * {
  51. flex-grow:1;
  52. }
  53. .select-response {
  54. position: relative;
  55. }
  56. .select-response:after {
  57. content: "Multi-choice";
  58. }
  59. .select-response items {
  60. background: #e1f5fe;
  61. position: absolute;
  62. top:0;
  63. left:0;
  64. right:0;
  65. width:100%;
  66. padding:0 0;
  67. max-height: 0;
  68. overflow: hidden;
  69. -webkit-transition: all 500ms ease-out;
  70. -moz-transition: all 500ms ease-out;
  71. -ms-transition: all 500ms ease-out;
  72. -o-transition: all 500ms ease-out;
  73. transition: all 500ms ease-out;
  74. box-shadow:#AAA 0 0 4px;
  75. }
  76. .select-response:hover items {
  77. max-height:99em;
  78. padding:.25em 0;
  79. color:#01579b;
  80. }
  81. .select-response items item {
  82. display: block;
  83. padding:.1em .5em;
  84. }
  85. .select-response items item:hover {
  86. background:#29b6f6;
  87. color:#e1f5fe;
  88. }
  89. .text-response {
  90. text-align: right;
  91. padding:1.75em .25em .25em .25em;
  92. }
  93. .text-response input[type='text'] {
  94. border:none;
  95. border-bottom:1px solid #455a64;
  96. background:transparent;
  97. -webkit-font-smoothing: antialiased;
  98. outline:none;
  99. width:100%;
  100. padding:5px 0 9px 0;
  101. font-family: Helvetica, Arial, sans-serif;
  102. font-size: 14px;
  103. font-style: normal;
  104. font-weight: normal;
  105. text-transform: uppercase;
  106. letter-spacing: normal;
  107. line-height: 1.5em;
  108. }
  109. .action, .response {
  110. padding:1em .5em;
  111. text-align: center;
  112. position: relative;
  113. font-weight: bold;
  114. }
  115. .action .icon {
  116. max-width:0;
  117. padding:0;
  118. overflow:hidden;
  119. height:100%;
  120. -webkit-transition: all 500ms ease-out;
  121. -moz-transition: all 500ms ease-out;
  122. -ms-transition: all 500ms ease-out;
  123. -o-transition: all 500ms ease-out;
  124. transition: all 500ms ease-out;
  125. position: absolute;
  126. top:0;
  127. left:0;
  128. bottom:0;
  129. display: inline-block;
  130. }
  131. .action:hover .icon {
  132. max-width: 99em;
  133. padding:0 1em;
  134. }
  135. .response {
  136. color:#e1f5fe;
  137. background: #29b6f6;
  138. }
  139. .action-accept {
  140. background:#2baf2b;
  141. color:#f1f8e9;
  142. }
  143. </style>
  144. </head>
  145. <body>
  146. <div id='wrapper'>
  147. <div class='card'>
  148. <div class='header'>Sample Question <span>1</span></div>
  149. <div class='content'>
  150. But do you know the <strong>Muffin Man</strong>?
  151. </div>
  152. <div class='footer'>
  153. <div class='select-response response'>
  154. <items>
  155. <item>A</item>
  156. <item>B</item>
  157. <item>C</item>
  158. <item>D</item>
  159. </items>
  160. </div>
  161. <div class='action action-accept'>
  162. <img class='icon' src='checkmark.png' />Accept
  163. </div>
  164. </div>
  165. </div>
  166. <div class='card'>
  167. <div class='header'>
  168. Inline Text Response
  169. </div>
  170. <div class='content'>
  171. What's your favorite color?
  172. </div>
  173. <div class='footer'>
  174. <div class='text-response response'>
  175. <input type='text' />
  176. </div>
  177. <div class='action action-accept'>
  178. <img class='icon' src='checkmark.png' />Accept
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. </body>
  184. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement