_footer.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. @use 'sass:math';
  2. .footer {
  3. $border-curvature: 3px;
  4. @include transition(bottom 0.5s ease 1s);
  5. @include row();
  6. ul {
  7. @include unlist();
  8. }
  9. li {
  10. float: left;
  11. .dropdown li, // dropdown li
  12. &:last-child {
  13. margin-inline-end: 0;
  14. }
  15. }
  16. &__container {
  17. border-radius: $border-curvature $border-curvature 0 0;
  18. background: $color-grey-1;
  19. color: $color-white;
  20. margin-top: 0;
  21. margin-inline-end: 0;
  22. transition: transform 1s;
  23. &:first-child {
  24. margin-top: 0;
  25. box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
  26. }
  27. &.footer__container--hidden {
  28. transform: translateY(100%);
  29. }
  30. li {
  31. margin-inline-end: 1em;
  32. }
  33. }
  34. &__save-warning {
  35. font-size: 0.95em;
  36. display: flex;
  37. align-items: center;
  38. .icon {
  39. font-size: 1.2em;
  40. margin-inline-end: 0.5em;
  41. }
  42. p {
  43. margin: -0.2em 0 0 0;
  44. }
  45. }
  46. &__emphasise-span-tags span {
  47. color: $color-orange;
  48. }
  49. .actions {
  50. width: 250px;
  51. &--primary {
  52. width: 350px;
  53. }
  54. .dropdown {
  55. input[type='submit'],
  56. input[type='reset'],
  57. input[type='button'],
  58. button,
  59. .button {
  60. padding-inline-end: 2.6em;
  61. }
  62. }
  63. }
  64. .preview .dropdown {
  65. width: 250px;
  66. }
  67. .meta {
  68. float: right;
  69. text-align: end;
  70. padding: 7px math.div($grid-gutter-width, 2);
  71. font-size: 0.85em;
  72. p {
  73. margin: 0;
  74. margin-inline-end: $grid-gutter-width;
  75. white-space: nowrap;
  76. }
  77. a {
  78. color: inherit;
  79. &:hover {
  80. color: $color-link;
  81. }
  82. }
  83. }
  84. @include media-breakpoint-down(xs) {
  85. .actions,
  86. .preview,
  87. &__container,
  88. .preview .dropdown {
  89. width: 100%;
  90. }
  91. margin-top: $mobile-nice-padding;
  92. .meta {
  93. p {
  94. white-space: normal;
  95. width: 100%;
  96. }
  97. .avatar {
  98. // Remove once we drop support for Safari 13.
  99. // stylelint-disable-next-line property-disallowed-list
  100. left: auto;
  101. inset-inline-start: auto;
  102. }
  103. }
  104. &__container {
  105. &:not(:first-child) {
  106. border-radius: 0;
  107. }
  108. &--hidden {
  109. display: none;
  110. }
  111. }
  112. &__save-warning {
  113. display: flex;
  114. flex-direction: row;
  115. justify-content: center;
  116. }
  117. }
  118. @include media-breakpoint-up(sm) {
  119. margin-inline-start: calc(#{$desktop-nice-padding} - 0.75em);
  120. margin-inline-end: $desktop-nice-padding;
  121. width: auto;
  122. position: fixed;
  123. bottom: 0;
  124. > ul {
  125. display: flex;
  126. }
  127. &__container {
  128. padding: 0.75em;
  129. margin-inline-end: 0;
  130. &:not(:first-child) {
  131. margin-inline-start: -$border-curvature;
  132. }
  133. }
  134. &__save-warning {
  135. margin-inline-end: 50px;
  136. }
  137. }
  138. }