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

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