footer.scss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. .footer {
  2. position: relative;
  3. width: 100%;
  4. height: var(--footer-height);
  5. margin: 0;
  6. padding: 0;
  7. background-color:var(--footer-background);
  8. font-size: 0;
  9. display: grid;
  10. grid-template-rows: 100%;
  11. grid-template-columns: 201px 1fr 210px;
  12. .footerLeft {
  13. display: grid;
  14. grid-column: 1;
  15. grid-row: 1;
  16. padding-left: 40px;
  17. align-content: center;
  18. overflow: hidden;
  19. #logoImg {
  20. height: var(--footer-height);
  21. width: 161px;
  22. }
  23. }
  24. .button {
  25. float: left; /* Float links side by side */
  26. width: var(--footer-height);
  27. height: var(--footer-height);
  28. margin: 0px;
  29. padding: 0;
  30. transition: all 0.3s ease; /* Add transition for hover effects */
  31. display: grid;
  32. align-content: center;
  33. justify-content: center;
  34. cursor: pointer;
  35. &.long {
  36. width: 200px;
  37. grid-template-columns: var(--footer-height) calc(200px - var(--footer-height));
  38. .button-icon {
  39. grid-row: 1;
  40. grid-column: 1;
  41. }
  42. .button-text {
  43. grid-row: 1;
  44. grid-column: 2;
  45. align-self: center;
  46. justify-self: left;
  47. overflow: hidden;
  48. text-overflow: ellipsis;
  49. white-space: nowrap;
  50. font-size: var(--font-size)
  51. }
  52. }
  53. &.active {
  54. background-color: var(--button-hover-color);
  55. }
  56. img {
  57. width: var(--footer-height);
  58. height: var(--footer-height);
  59. }
  60. &:hover {
  61. background-color: var(--button-hover-color);
  62. }
  63. &:active {
  64. background-color: var(--button-hover-background);
  65. }
  66. }
  67. .dropup {
  68. position: relative;
  69. .dropup-content {
  70. position: absolute;
  71. bottom: var(--footer-height);
  72. left: 0px;
  73. z-index: 100;
  74. width: calc(2 * var(--footer-height));
  75. &.long-mode {
  76. width: 200px;
  77. }
  78. div {
  79. background-color: var(--button-hover-color);
  80. overflow: hidden;
  81. text-overflow: ellipsis;
  82. white-space: nowrap;
  83. font-size: var(--font-size);
  84. width: 100%;
  85. color: white;
  86. cursor: pointer;
  87. height: 40px;
  88. box-sizing: border-box;
  89. padding: 0;
  90. margin: 0;
  91. display: grid;
  92. align-content: center;
  93. justify-content: center;
  94. &:hover {
  95. background-color: var(--button-hover-hover);
  96. transition: all 0.3s ease;
  97. }
  98. &:active {
  99. background-color: var(--button-hover-background);
  100. transition: all 0.3s ease;
  101. }
  102. }
  103. }
  104. }
  105. .footerRight {
  106. display: flex;
  107. flex-direction: row-reverse;
  108. grid-column: 3;
  109. grid-row: 1;
  110. .custom-upload {
  111. position: relative;
  112. background-position: center right;
  113. background-repeat: no-repeat;
  114. width: var(--footer-height);
  115. height: var(--footer-height);
  116. cursor: pointer;
  117. display: grid;
  118. img {
  119. grid-row: 1;
  120. grid-column: 1;
  121. width: var(--footer-height);
  122. height: var(--footer-height);
  123. pointer-events: none;
  124. }
  125. &:hover {
  126. background-color: var(--button-hover-color);
  127. }
  128. &:active {
  129. background-color: var(--button-hover-background);
  130. }
  131. input[type=file] {
  132. grid-row: 1;
  133. grid-column: 1;
  134. outline:none;
  135. position: relative;
  136. text-align: right;
  137. -moz-opacity:0 ;
  138. opacity: 0;
  139. z-index: 2;
  140. width:100%;
  141. height:100%;
  142. filter:alpha(opacity=0);
  143. }
  144. }
  145. }
  146. }
  147. @media (max-width: 768px) {
  148. .footer {
  149. grid-template-columns: 0px 1fr 150px;
  150. .dropup {
  151. .dropup-content {
  152. width: 100px;
  153. }
  154. }
  155. .button {
  156. &.long {
  157. width: 100px;
  158. grid-template-columns: var(--footer-height) calc(100px - var(--footer-height));
  159. }
  160. }
  161. }
  162. }