index.wxss 716 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* pages/tables/index.wxss */
  2. .list-back {
  3. display: flex;
  4. flex-wrap: wrap;
  5. justify-content: space-around;
  6. }
  7. .list-back .table {
  8. margin-top: 30rpx;
  9. width: 45%;
  10. height: 200rpx;
  11. background-color: #f3f4f5;
  12. border-radius: 8rpx;
  13. display: flex;
  14. position: relative;
  15. align-items: center;
  16. justify-content: center;
  17. }
  18. .table .name {
  19. font-size: 40rpx;
  20. color: #333333;
  21. }
  22. .table .status {
  23. position: absolute;
  24. top: 0;
  25. right: 0;
  26. width: 50rpx;
  27. height: 50rpx;
  28. font-size: 20rpx;
  29. color: white;
  30. text-align: center;
  31. line-height: 50rpx;
  32. }
  33. .table .status.free {
  34. background-color: greenyellow;
  35. }
  36. .table .status.busy {
  37. background-color: red;
  38. }