租房小程序前端代码
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.

69 lines
1.3 KiB

3 months ago
  1. @import '../mixin/flex.scss';
  2. .se {
  3. &-flex {
  4. @include flex;
  5. &-if {
  6. display: inline-flex !important;
  7. }
  8. &-ff {
  9. &-rw {
  10. flex-flow: row wrap !important;
  11. }
  12. &-cw {
  13. flex-flow: column wrap !important;
  14. }
  15. }
  16. @each $s in h, v {
  17. &-#{$s} {
  18. @include flex;
  19. @if $s == h {
  20. @include rn;
  21. } @else {
  22. @include cn;
  23. }
  24. @each $ss, $ll in fs flex-start, c center, fe flex-end, sb space-between, sa space-around {
  25. &-#{$ss} {
  26. @if $s == h {
  27. @include flex-rn;
  28. } @else {
  29. @include flex-cn;
  30. }
  31. justify-content: $ll;
  32. }
  33. }
  34. }
  35. }
  36. @for $i from 0 through 10 {
  37. &-#{$i} {
  38. flex: $i;
  39. }
  40. }
  41. @each $s, $l in fs flex-start, c center, fe flex-end, sb space-between, sa space-around, s stretch {
  42. &-ac-#{$s} {
  43. align-content: $l;
  44. }
  45. }
  46. @each $s, $l in fs flex-start, c center, fe flex-end, s stretch, b baseline {
  47. &-ai-#{$s} {
  48. align-items: $l;
  49. }
  50. }
  51. @each $s, $l in fs flex-start, c center, fe flex-end, s stretch, b baseline, a auto {
  52. &-as-#{$s} {
  53. align-self: $l;
  54. }
  55. }
  56. }
  57. }