Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

120 rader
2.5 KiB

  1. @use '../../_global/styles/mixins' as *;
  2. @use '../../_global/styles/vars' as *;
  3. .global-message {
  4. position: sticky;
  5. display: flex;
  6. align-items: flex-end;
  7. top: var(--header-height);
  8. background-color: var(--color-background);
  9. box-shadow: 0 -1px 0 0 var(--color-background);
  10. font-size: var(--font-size-small);
  11. z-index: 99;
  12. transition: top 0.25s $easeOutQuad, max-height 0.4s $easeOutQuad;
  13. max-height: 0;
  14. overflow: hidden;
  15. margin-bottom: 10px;
  16. margin-top: 0;
  17. @media(max-width: 767px) {
  18. --font-size-small: 14px;
  19. &.light .close {
  20. //background-color: rgba(var(--swatches-primary-500-rgb), 0.1);
  21. }
  22. }
  23. &.bold {
  24. background-color: var(--color-button-primary-background);
  25. box-shadow: 0 -1px 0 0 var(--color-button-primary-background);
  26. color: var(--color-button-primary-text);
  27. a {
  28. color: var(--color-button-primary-text);
  29. &:hover {
  30. color: var(--color-decoration);
  31. }
  32. }
  33. }
  34. &.alarming {
  35. background-color: var(--feedback-error);
  36. box-shadow: 0 -1px 0 0 var(--feedback-error);
  37. color: var(--swatches-neutrals-white);
  38. a {
  39. color: var(--swatches-neutrals-white);
  40. &:hover {
  41. color: var(--swatches-neutrals-white);
  42. }
  43. }
  44. }
  45. &.open {
  46. max-height: none;
  47. }
  48. .inner {
  49. position: relative;
  50. display: flex;
  51. flex: 1 1 100%;
  52. align-items: center;
  53. min-height: 50px;
  54. padding: 0 40px;
  55. @media (max-width: 767px) {
  56. padding: 0 0 0 12px;
  57. }
  58. &::before {
  59. font-family: 'Icons', sans-serif;
  60. font-size: var(--icon-size);
  61. line-height: 1;
  62. margin-right: 0.3em;
  63. align-self: flex-start;
  64. margin-top: 10px;
  65. }
  66. }
  67. p, div {
  68. margin: 13px 20px 13px 0;
  69. line-height: 1.3;
  70. @media(max-width: 767px) {
  71. margin-right: 12px;
  72. }
  73. }
  74. .close {
  75. position: relative;
  76. display: block;
  77. width: var(--icon-size);
  78. border: 0;
  79. padding: 0;
  80. background-color: transparent;
  81. margin: 0 -0.2em 0 auto;
  82. font-family: 'Icons', sans-serif;
  83. font-size: var(--icon-size);
  84. line-height: 1;
  85. color: inherit;
  86. cursor: pointer;
  87. &::before {
  88. @include icon-schliessen;
  89. }
  90. @media(max-width: 767px) {
  91. min-width: calc(var(--icon-size) * 1.8);
  92. align-items: center;
  93. justify-content: center;
  94. margin-right: 0;
  95. background-color: rgba(#fff, 0.1);
  96. align-self: stretch;
  97. }
  98. }
  99. }
  100. .header-scrolled .global-message {
  101. @media(min-width: 1200px) {
  102. --header-height: 100px;
  103. }
  104. }