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

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. display: none;
  32. z-index: 2;
  33. display: inline;
  34. background: white;
  35. box-shadow: 0px 0px 10px 1px black;
  36. position: absolute;
  37. width: 90%;
  38. margin: auto;
  39. left: 0px;
  40. right: 0px;
  41. margin-top: 45px;
  42. padding-top: 12px;
  43. padding-bottom: 12px;
  44. max-height: 80%;
  45. overflow-y: auto;
  46. }
  47. #add .suggestions.hidden {
  48. opacity: 0;
  49. }
  50. #add .suggestions .suggestion:last-child {
  51. border-bottom: none;
  52. }
  53. #add .suggestions .suggestion {
  54. padding: 12px;
  55. cursor: pointer;
  56. border-bottom: 1px solid #666;
  57. }
  58. #list {
  59. margin-top: 24px;
  60. }
  61. #list .elem {
  62. transition: padding 0.3s, height 0.3s;
  63. padding-left: 12px;
  64. padding-top: 32px;
  65. padding-bottom: 3px;
  66. position: relative;
  67. margin: auto;
  68. text-align: left;
  69. width: 100%;
  70. height: 50px;
  71. overflow: hidden;
  72. border-bottom: 1px solid #666;
  73. }
  74. #list .elem.hidden {
  75. transition: transform 0.3s ease-in,
  76. padding 0.2s 0.1s ease-in,
  77. height 0.2s 0.1s ease-in;
  78. transform: translateX(-150%);
  79. height: 0px;
  80. padding: 0px;
  81. }
  82. #list .elem .ok {
  83. position: relative;
  84. display: inline-block;
  85. float: right;
  86. margin-right: 6px;
  87. height: 40px;
  88. width: 40px;
  89. bottom: 25px;
  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. }