search.scss 605 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .cl-search {
  2. display: flex;
  3. align-items: center;
  4. background-color: #fff;
  5. padding: 15rpx 20rpx;
  6. box-sizing: border-box;
  7. padding-top: calc(env(safe-area-inset-top) + 15rpx);
  8. &__input {
  9. flex: 1;
  10. position: relative;
  11. .cl-input {
  12. border-radius: 70rpx !important;
  13. overflow: hidden;
  14. }
  15. .cl-button {
  16. height: 70rpx;
  17. line-height: 70rpx;
  18. position: absolute;
  19. right: 0;
  20. top: 0;
  21. z-index: 9;
  22. }
  23. }
  24. &__prepend,
  25. &__append {
  26. display: flex;
  27. justify-content: center;
  28. align-items: center;
  29. }
  30. &__prepend {
  31. margin-right: 20rpx;
  32. }
  33. &__append {
  34. margin-left: 20rpx;
  35. }
  36. }