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.

style.css 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. html, body {
  2. margin: 0px;
  3. height: 100%;
  4. overflow: hidden;
  5. }
  6. * {
  7. box-sizing: border-box;
  8. }
  9. #container {
  10. position: relative;
  11. overflow: hidden;
  12. margin: auto;
  13. text-align: center;
  14. width: 100%;
  15. max-width: 500px;
  16. height: 100%;
  17. }
  18. #add {
  19. margin-top: 12px;
  20. }
  21. #add .name,
  22. #add .submit {
  23. box-sizing: content-box;
  24. -webkit-appearance: none;
  25. font-size: 16px;
  26. border: 1px solid #aaa;
  27. border-radius: 5px;
  28. background-color: #fff;
  29. height: 20px;
  30. padding: 6px;
  31. line-height: 0px;
  32. }
  33. #add .name {
  34. width: 78%;
  35. border-top-right-radius: 0px;
  36. border-bottom-right-radius: 0px;
  37. }
  38. #add .submit {
  39. width: 8%;
  40. background-color: #eee;
  41. border-top-left-radius: 0px;
  42. border-bottom-left-radius: 0px;
  43. }
  44. #add .submit:hover {
  45. background-color: #ddd;
  46. }
  47. #add .suggestions {
  48. transition: opacity 0.2s;
  49. z-index: 2;
  50. background: white;
  51. box-shadow: 0px 0px 10px 1px #ccc;
  52. position: absolute;
  53. width: 90%;
  54. margin: auto;
  55. left: 0px;
  56. right: 0px;
  57. margin-top: 15px;
  58. padding-top: 6px;
  59. padding-bottom: 6px;
  60. max-height: 80%;
  61. overflow-y: auto;
  62. }
  63. #add .suggestions.hidden {
  64. opacity: 0;
  65. }
  66. #add .suggestions .suggestion:last-child {
  67. border-bottom: none;
  68. }
  69. #add .suggestions .suggestion {
  70. padding: 12px;
  71. cursor: pointer;
  72. border-bottom: 1px solid #ccc;
  73. }
  74. #list {
  75. margin-top: 24px;
  76. }
  77. #list .elem {
  78. transition: padding 0.3s, height 0.3s;
  79. padding-left: 12px;
  80. padding-top: 42px;
  81. position: relative;
  82. margin: auto;
  83. text-align: left;
  84. width: 100%;
  85. height: 70px;
  86. overflow: hidden;
  87. border-bottom: 1px solid #ccc;
  88. }
  89. #list .elem.hidden {
  90. transition: transform 0.3s ease-in,
  91. padding 0.2s 0.1s ease-in,
  92. height 0.2s 0.1s ease-in;
  93. transform: translateX(-150%);
  94. height: 0px;
  95. padding: 0px;
  96. }
  97. #list .elem .name {
  98. position: relative;
  99. }
  100. #list .elem .ok {
  101. position: relative;
  102. display: inline-block;
  103. float: right;
  104. margin-right: 6px;
  105. height: 50px;
  106. width: 50px;
  107. bottom: 33px;
  108. background-image: url(/icon-check.svg);
  109. background-size: 24px 24px;
  110. background-repeat: no-repeat;
  111. background-position: center;
  112. cursor: pointer;
  113. border-radius: 100px;
  114. background-color: #eee;
  115. }
  116. #list .elem .ok:hover {
  117. background-color: #ddd;
  118. }