2
0

_footer.scss 3.1 KB

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