rtl.scss 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. $module: #{$prefix}-timeline;
  2. .#{$prefix}-rtl,
  3. .#{$prefix}-portal-rtl {
  4. .#{$module} {
  5. direction: rtl;
  6. &-item {
  7. &-tail {
  8. left: auto;
  9. right: $spacing-timeline_tail-left;
  10. border-left: 0;
  11. border-right: $width-timeline_tail-border solid $color-timeline_tail-border;
  12. }
  13. &-head-custom {
  14. left: auto;
  15. right: $spacing-timeline_head_custom-left;
  16. transform: $motion-timeline_head_custom-transform-rtl;
  17. }
  18. &-content {
  19. margin: $spacing-none $spacing-timeline_content-marginLeft $spacing-none $spacing-none;
  20. }
  21. &:last-child {
  22. .#{$module}-item-tail {
  23. border-right: none;
  24. }
  25. }
  26. }
  27. &-alternate,
  28. &-right,
  29. &-center {
  30. .#{$module}-item {
  31. &-tail,
  32. &-head,
  33. &-head-custom {
  34. left: auto;
  35. right: $spacing-timeline_item_head_custom-left;
  36. }
  37. &-head {
  38. margin-left: 0;
  39. margin-right: $spacing-timeline_item_head-marginLeft;
  40. }
  41. &-left {
  42. .#{$module}-item-content {
  43. left: auto;
  44. right: $spacing-timeline_item_left_item_content-left;
  45. text-align: right;
  46. }
  47. }
  48. &-right {
  49. .#{$module}-item-content {
  50. text-align: left;
  51. }
  52. }
  53. }
  54. }
  55. &-center {
  56. .#{$module}-item {
  57. &-content-time {
  58. margin-left: 0;
  59. margin-right: $spacing-timeline_item_content_time-marginLeft;
  60. text-align: left;
  61. }
  62. }
  63. }
  64. &-right {
  65. .#{$module}-item-right {
  66. .#{$module}-item {
  67. &-tail,
  68. &-head,
  69. &-head-custom {
  70. left: 0;
  71. right: $spacing-timeline_item_right_item-left;
  72. }
  73. }
  74. }
  75. }
  76. }
  77. }