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

109 lines
2.0 KiB

  1. @charset "UTF-8";
  2. .cover {
  3. position: relative;
  4. padding: calc(1.5vw + 30px) 0 calc(1vw + 40px);
  5. min-height: calc(24vw + 220px);
  6. margin: 0;
  7. overflow: hidden;
  8. display: flex;
  9. align-items: center;
  10. justify-content: center;
  11. + section {
  12. margin-top: 0;
  13. }
  14. .container {
  15. margin: 0;
  16. }
  17. &[data-type="artwork"] {
  18. .image-box {
  19. display: none;
  20. }
  21. }
  22. &[data-type="background-color"],
  23. &[data-type="background-image"] {
  24. color: white;
  25. .artwork {
  26. display: none;
  27. }
  28. .btn {
  29. @extend .btn.white;
  30. }
  31. }
  32. &[data-type="background-color"] {
  33. background: linear-gradient(120deg, rgba($color-primary, 0.6) 0%, $color-primary 100%);
  34. background: linear-gradient(120deg, rgba(var(--theme-color-primary-rgb, $color-primary-rgb), 0.6) 0%, rgba(var(--theme-color-primary-rgb, $color-primary-rgb), 1) 100%);
  35. .image-box {
  36. display: none;
  37. }
  38. }
  39. &[data-type="background-image"] {
  40. .image-box {
  41. @include fullsize;
  42. &:after {
  43. content: "";
  44. @include fullsize;
  45. background: linear-gradient(120deg, rgba($color-primary, 1) 0%, rgba($color-primary, 0.2) 100%);
  46. background: linear-gradient(120deg, rgba(var(--theme-color-primary-rgb, $color-primary-rgb), 1) 0%, rgba(var(--theme-color-primary-rgb, $color-primary-rgb), 0.2) 100%);
  47. }
  48. img {
  49. position: relative;
  50. display: block;
  51. width: 100%;
  52. height: 100%;
  53. object-fit: cover;
  54. }
  55. }
  56. }
  57. &[data-type="image"] {
  58. padding: 0;
  59. min-height: 0;
  60. display: block;
  61. .image-box {
  62. position: relative;
  63. display: block;
  64. img {
  65. display: block;
  66. width: 100%;
  67. }
  68. }
  69. .text-box, .artwork, .container {
  70. display: none;
  71. }
  72. }
  73. .text-box {
  74. position: relative;
  75. width: 60%;
  76. max-width: 580px;
  77. }
  78. .btn {
  79. margin-left: -1px;
  80. margin-top: 10px;
  81. }
  82. }
  83. [data-browser="ie"] .cover:before {
  84. content: "";
  85. position: relative;
  86. display: block;
  87. width: 0;
  88. height: calc(21.5vw + 150px);
  89. }