You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

279 lines
4.7 KiB

  1. @charset "UTF-8";
  2. /* CSS Document * Varun Dewan 2019 */
  3. html, body {
  4. padding: 0px;
  5. margin: 0px;
  6. font-family: 'Raleway', sans-serif;
  7. }
  8. body * {
  9. box-sizing: border-box;
  10. margin: 0px;
  11. padding: 0px;
  12. }
  13. body section {
  14. margin-bottom: 10px;
  15. }
  16. .container {
  17. max-width: 600px;
  18. margin: 40px auto;
  19. background: #cdcdcd;
  20. min-height: 330px;
  21. height: 400px;
  22. padding: 20px 20px;
  23. }
  24. .drop {
  25. position: relative;
  26. -webkit-user-select: none;
  27. -moz-user-select: none;
  28. -ms-user-select: none;
  29. user-select: none;
  30. width: 100%;
  31. }
  32. .drop.open {
  33. z-index: 100;
  34. }
  35. .drop.open .drop-screen {
  36. z-index: 100;
  37. display: block;
  38. }
  39. .drop.open .drop-options {
  40. z-index: 200;
  41. max-height: 200px;
  42. }
  43. .drop.open .drop-display {
  44. z-index: 200;
  45. border-color: #465;
  46. }
  47. .drop select {
  48. display: none;
  49. }
  50. .drop .drop-screen {
  51. position: fixed;
  52. width: 100%;
  53. height: 100%;
  54. background: #000;
  55. top: 0px;
  56. left: 0px;
  57. opacity: 0;
  58. display: none;
  59. z-index: 1;
  60. }
  61. .link {
  62. text-align: center;
  63. margin: 20px 0px;
  64. color:#8CACD7;
  65. }
  66. .drop .drop-display {
  67. position: relative;
  68. padding: 0px 20px 5px 5px;
  69. border: 4px solid #444;
  70. width: 100%;
  71. background: #FFF;
  72. z-index: 1;
  73. margin: 0px;
  74. font-size: 16px;
  75. min-height: 58px;
  76. }
  77. .drop .drop-display:hover:after {
  78. opacity: 0.75;
  79. }
  80. .drop .drop-display:after {
  81. font-family: 'Material Icons';
  82. content: "\e5c6";
  83. position: absolute;
  84. right: 10px;
  85. top: 12px;
  86. font-size: 24px;
  87. color: #444;
  88. }
  89. .drop .drop-display .item {
  90. position: relative;
  91. display: inline-block;
  92. border: 2px solid #333;
  93. margin: 5px 5px -4px 0px;
  94. padding: 0px 25px 0px 10px;
  95. overflow: hidden;
  96. height: 40px;
  97. line-height: 36px;
  98. }
  99. .drop .drop-display .item .btnclose {
  100. color: #444;
  101. position: absolute;
  102. font-size: 16px;
  103. right: 5px;
  104. top: 10px;
  105. cursor: pointer;
  106. }
  107. .drop .drop-display .item .btnclose:hover {
  108. opacity: 0.75;
  109. }
  110. .drop .drop-display .item.remove {
  111. -webkit-animation: removeSelected 0.2s, hide 1s infinite;
  112. animation: removeSelected 0.2s, hide 1s infinite;
  113. -webkit-animation-delay: 0s, 0.2s;
  114. animation-delay: 0s, 0.2s;
  115. }
  116. .drop .drop-display .item.add {
  117. -webkit-animation: addSelected 0.2s;
  118. animation: addSelected 0.2s;
  119. }
  120. .drop .drop-display .item.hide {
  121. display: none;
  122. }
  123. .drop .drop-options {
  124. background: #444;
  125. box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
  126. position: absolute;
  127. width: 100%;
  128. max-height: 0px;
  129. overflow-y: auto;
  130. transition: all 0.25s linear;
  131. z-index: 1;
  132. }
  133. .drop .drop-options a {
  134. display: block;
  135. height: 40px;
  136. line-height: 40px;
  137. padding: 0px 20px;
  138. color: white;
  139. position: relative;
  140. max-height: 40px;
  141. transition: all 1s;
  142. overflow: hidden;
  143. }
  144. .drop .drop-options a:hover {
  145. background: #465;
  146. cursor: pointer;
  147. }
  148. .drop .drop-options a.remove {
  149. -webkit-animation: removeOption 0.2s;
  150. animation: removeOption 0.2s;
  151. max-height: 0px;
  152. }
  153. .drop .drop-options a.add {
  154. -webkit-animation: addOption 0.2s;
  155. animation: addOption 0.2s;
  156. }
  157. .drop .drop-options a.hide {
  158. display: none;
  159. }
  160. @-webkit-keyframes pop {
  161. from {
  162. -webkit-transform: scale(0);
  163. transform: scale(0);
  164. }
  165. to {
  166. -webkit-transform: scale(1);
  167. transform: scale(1);
  168. }
  169. }
  170. @keyframes pop {
  171. from {
  172. -webkit-transform: scale(0);
  173. transform: scale(0);
  174. }
  175. to {
  176. -webkit-transform: scale(1);
  177. transform: scale(1);
  178. }
  179. }
  180. @-webkit-keyframes removeOption {
  181. from {
  182. max-height: 40px;
  183. }
  184. to {
  185. max-height: 0px;
  186. }
  187. }
  188. @keyframes removeOption {
  189. from {
  190. max-height: 40px;
  191. }
  192. to {
  193. max-height: 0px;
  194. }
  195. }
  196. @-webkit-keyframes addOption {
  197. from {
  198. max-height: 0px;
  199. }
  200. to {
  201. max-height: 40px;
  202. }
  203. }
  204. @keyframes addOption {
  205. from {
  206. max-height: 0px;
  207. }
  208. to {
  209. max-height: 40px;
  210. }
  211. }
  212. @-webkit-keyframes removeSelected {
  213. from {
  214. -webkit-transform: scale(1);
  215. transform: scale(1);
  216. }
  217. to {
  218. -webkit-transform: scale(0);
  219. transform: scale(0);
  220. }
  221. }
  222. @keyframes removeSelected {
  223. from {
  224. -webkit-transform: scale(1);
  225. transform: scale(1);
  226. }
  227. to {
  228. -webkit-transform: scale(0);
  229. transform: scale(0);
  230. }
  231. }
  232. @-webkit-keyframes addSelected {
  233. from {
  234. -webkit-transform: scale(0);
  235. transform: scale(0);
  236. }
  237. to {
  238. -webkit-transform: scale(1);
  239. transform: scale(1);
  240. }
  241. }
  242. @keyframes addSelected {
  243. from {
  244. -webkit-transform: scale(0);
  245. transform: scale(0);
  246. }
  247. to {
  248. -webkit-transform: scale(1);
  249. transform: scale(1);
  250. }
  251. }
  252. @-webkit-keyframes hide {
  253. from, to {
  254. max-height: 0px;
  255. max-width: 0px;
  256. padding: 0px;
  257. margin: 0px;
  258. border-width: 0px;
  259. }
  260. }
  261. @keyframes hide {
  262. from, to {
  263. max-height: 0px;
  264. max-width: 0px;
  265. padding: 0px;
  266. margin: 0px;
  267. border-width: 0px;
  268. }
  269. }