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 1.6KB

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