_footer.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. @use 'sass:math';
  2. .footer {
  3. @include transition(bottom 0.5s ease 1s);
  4. @include row();
  5. margin-top: $mobile-nice-padding;
  6. margin-inline-start: $mobile-nice-padding;
  7. margin-inline-end: $mobile-nice-padding;
  8. z-index: 20;
  9. @include media-breakpoint-up(sm) {
  10. margin-top: 0;
  11. margin-inline-start: calc(#{$desktop-nice-padding} - 0.75em);
  12. margin-inline-end: $desktop-nice-padding;
  13. width: auto;
  14. position: fixed;
  15. bottom: 0;
  16. }
  17. &__emphasise-span-tags span {
  18. color: theme('colors.warning.100');
  19. }
  20. // Don't apply horizontal margins if nice-padding is applied in the parent
  21. .nice-padding & {
  22. margin-inline: 0;
  23. }
  24. }
  25. .footer__container {
  26. border-radius: theme('borderRadius.sm') theme('borderRadius.sm') 0 0;
  27. background: theme('colors.surface-menus');
  28. color: theme('colors.text-label-menus-default');
  29. transition: transform 1s;
  30. @include media-breakpoint-down(xs) {
  31. width: 100%;
  32. &:not(:first-child) {
  33. border-radius: 0;
  34. }
  35. }
  36. @include media-breakpoint-up(sm) {
  37. padding: theme('spacing.[2.5]');
  38. margin-inline-end: 0;
  39. &:not(:first-child) {
  40. margin-inline-start: calc(-1 * theme('borderRadius.sm'));
  41. }
  42. }
  43. &.footer__container--hidden {
  44. transform: translateY(100%);
  45. @include media-breakpoint-down(xs) {
  46. display: none;
  47. }
  48. }
  49. }
  50. .footer__save-warning {
  51. font-size: 0.95em;
  52. display: flex;
  53. flex-direction: row;
  54. justify-content: center;
  55. .icon {
  56. font-size: 1.2em;
  57. margin-inline-end: 0.5em;
  58. }
  59. p {
  60. margin: -0.2em 0 0 0;
  61. }
  62. @include media-breakpoint-up(sm) {
  63. margin-inline-end: 50px;
  64. align-items: center;
  65. }
  66. }
  67. // Footer control bar for performing actions on the page
  68. .actions {
  69. width: 100%;
  70. @include media-breakpoint-up(sm) {
  71. width: 250px;
  72. }
  73. &--primary {
  74. @include media-breakpoint-up(sm) {
  75. width: 310px;
  76. }
  77. }
  78. .button {
  79. @apply w-leading-none w-inline-flex w-items-center;
  80. font-weight: 600;
  81. padding: 0 theme('spacing.3');
  82. white-space: initial;
  83. .icon {
  84. width: theme('spacing.4');
  85. margin-inline-end: theme('spacing.2');
  86. flex-shrink: 0;
  87. }
  88. }
  89. }
  90. .actions .w-dropdown-button {
  91. width: 100%;
  92. > .button {
  93. flex-grow: 1;
  94. }
  95. }