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

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