index.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /*base*/
  2. body {
  3. background: #fff;
  4. }
  5. .btn {
  6. display: inline-block;
  7. padding: 4px 12px;
  8. margin-bottom: 0;
  9. font-size: 14px;
  10. line-height: 20px;
  11. text-align: center;
  12. vertical-align: middle;
  13. cursor: pointer;
  14. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  15. border-radius: 4px;
  16. }
  17. .btn-danger {
  18. color: #fff;
  19. background-color: #da4f49;
  20. border: 1px solid #bd362f;
  21. }
  22. .btn-danger:hover {
  23. color: #fff;
  24. background-color: #bd362f;
  25. }
  26. .btn:focus {
  27. outline: none;
  28. }
  29. /*app*/
  30. .todo-container {
  31. width: 600px;
  32. margin: 0 auto;
  33. }
  34. .todo-container .todo-wrap {
  35. padding: 10px;
  36. border: 1px solid #ddd;
  37. border-radius: 5px;
  38. }
  39. /*header*/
  40. .todo-header input {
  41. width: 560px;
  42. height: 28px;
  43. font-size: 14px;
  44. border: 1px solid #ccc;
  45. border-radius: 4px;
  46. padding: 4px 7px;
  47. }
  48. .todo-header input:focus {
  49. outline: none;
  50. border-color: rgba(82, 168, 236, 0.8);
  51. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  52. }
  53. /*main*/
  54. .todo-main {
  55. margin-left: 0px;
  56. border: 1px solid #ddd;
  57. border-radius: 2px;
  58. padding: 0px;
  59. }
  60. .todo-empty {
  61. height: 40px;
  62. line-height: 40px;
  63. border: 1px solid #ddd;
  64. border-radius: 2px;
  65. padding-left: 5px;
  66. margin-top: 10px;
  67. }
  68. /*item*/
  69. li {
  70. list-style: none;
  71. height: 36px;
  72. line-height: 36px;
  73. padding: 0 5px;
  74. border-bottom: 1px solid #ddd;
  75. }
  76. li label {
  77. float: left;
  78. cursor: pointer;
  79. }
  80. li label li input {
  81. vertical-align: middle;
  82. margin-right: 6px;
  83. position: relative;
  84. top: -1px;
  85. }
  86. li button {
  87. float: right;
  88. display: none;
  89. margin-top: 3px;
  90. }
  91. li:before {
  92. content: initial;
  93. }
  94. li:last-child {
  95. border-bottom: none;
  96. }
  97. /*footer*/
  98. .todo-footer {
  99. height: 40px;
  100. line-height: 40px;
  101. padding-left: 6px;
  102. margin-top: 5px;
  103. }
  104. .todo-footer label {
  105. display: inline-block;
  106. margin-right: 20px;
  107. cursor: pointer;
  108. }
  109. .todo-footer label input {
  110. position: relative;
  111. top: -1px;
  112. vertical-align: middle;
  113. margin-right: 5px;
  114. }
  115. .todo-footer button {
  116. float: right;
  117. margin-top: 5px;
  118. }