您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

112 行
2.4 KiB

  1. @import '../../_global/styles/mixins';
  2. @import '../../_global/styles/vars';
  3. .global-message {
  4. position: sticky;
  5. display: flex;
  6. align-items: flex-end;
  7. top: var(--header-height);
  8. background-color: var(--theme-color-primary-dimmed-04);
  9. box-shadow: 0 -1px 0 0 var(--theme-color-primary-dimmed-04);
  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(--theme-color-primary-rgb), 0.1);
  21. }
  22. }
  23. &.bold {
  24. --theme-color-link: var(--theme-color-white);
  25. --theme-color-link-hover: var(--theme-color-secondary);
  26. background-color: var(--theme-color-primary);
  27. box-shadow: 0 -1px 0 0 var(--theme-color-primary);
  28. color: var(--theme-color-background);
  29. }
  30. &.alarming {
  31. --theme-color-link: var(--theme-color-white);
  32. --theme-color-link-hover: var(--theme-color-white);
  33. background-color: var(--theme-color-error);
  34. box-shadow: 0 -1px 0 0 var(--theme-color-error);
  35. color: var(--theme-color-background);
  36. }
  37. &.open {
  38. max-height: none;
  39. }
  40. .inner {
  41. position: relative;
  42. display: flex;
  43. flex: 1 1 100%;
  44. align-items: center;
  45. min-height: 50px;
  46. padding: 0 40px;
  47. @media (max-width: 767px) {
  48. padding: 0 0 0 12px;
  49. }
  50. &::before {
  51. font-family: 'Icons', sans-serif;
  52. font-size: var(--icon-size);
  53. line-height: 1;
  54. margin-right: 0.3em;
  55. align-self: flex-start;
  56. margin-top: 10px;
  57. }
  58. }
  59. p, div {
  60. margin: 13px 20px 13px 0;
  61. line-height: 1.3;
  62. @media(max-width: 767px) {
  63. margin-right: 12px;
  64. }
  65. }
  66. .close {
  67. position: relative;
  68. display: block;
  69. width: var(--icon-size);
  70. border: 0;
  71. padding: 0;
  72. background-color: transparent;
  73. margin: 0 -0.2em 0 auto;
  74. font-family: 'Icons', sans-serif;
  75. font-size: var(--icon-size);
  76. line-height: 1;
  77. color: inherit;
  78. cursor: pointer;
  79. &::before {
  80. @include icon-schliessen;
  81. }
  82. @media(max-width: 767px) {
  83. min-width: calc(var(--icon-size) * 1.8);
  84. align-items: center;
  85. justify-content: center;
  86. margin-right: 0;
  87. background-color: rgba(#fff, 0.1);
  88. align-self: stretch;
  89. }
  90. }
  91. }
  92. .header-scrolled .global-message {
  93. @media(min-width: 1200px) {
  94. --header-height: 100px;
  95. }
  96. }