25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

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