You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

129 lines
2.6 KiB

  1. @import '../../_global/styles/mixins';
  2. @import '../../_global/styles/vars';
  3. .infobox,
  4. .richtext div.strong,
  5. article.col div.strong {
  6. position: relative;
  7. display: flex;
  8. justify-content: space-between;
  9. align-items: flex-start;
  10. gap: 60px;
  11. margin: calc(3% + 26px) 0;
  12. background-color: var(--theme-color-secondary-dimmed);
  13. padding: var(--content-box-padding);
  14. border-top-left-radius: calc(4 * (var(--border-radius-xs)));
  15. border-top-right-radius: calc(4 * (var(--border-radius-xs)));
  16. @media (max-width: 767px) {
  17. padding-top: calc(2 * var(--content-box-padding));
  18. padding-bottom: calc(2 * var(--content-box-padding));
  19. }
  20. &:after {
  21. content: "";
  22. display: block;
  23. width: 100%;
  24. height: var(--border-width);
  25. background: var(--theme-color-secondary);
  26. position: absolute;
  27. left: 0;
  28. bottom: calc(-1 * var(--border-width));
  29. border-bottom-left-radius: calc(4 * (var(--border-radius-xs)));
  30. border-bottom-right-radius: calc(4 * (var(--border-radius-xs)));
  31. }
  32. &.success {
  33. background-color: var(--theme-color-success-dimmed);
  34. &:after {
  35. background: var(--theme-color-success);
  36. }
  37. }
  38. &.error {
  39. background-color: var(--theme-color-error-dimmed);
  40. &:after {
  41. background: var(--theme-color-error);
  42. }
  43. }
  44. &.warning {
  45. background-color: var(--theme-color-warning-dimmed);
  46. &:after {
  47. background: var(--theme-color-warning);
  48. }
  49. }
  50. &.secondary {
  51. background-color: var(--theme-color-primary-dimmed-04);
  52. &:after {
  53. background: var(--theme-color-primary);
  54. }
  55. blockquote {
  56. border-left-color: var(--theme-color-primary);
  57. }
  58. }
  59. > *:first-child {
  60. margin-top: -0.4em;
  61. }
  62. > *:last-child {
  63. margin-bottom: -0.4em;
  64. }
  65. &:first-child {
  66. margin-top: 0;
  67. }
  68. &:last-child {
  69. margin-bottom: 0;
  70. }
  71. .infobox--content {
  72. flex: 1;
  73. }
  74. img {
  75. flex-shrink: 0;
  76. width: 70px;
  77. height: 70px;
  78. @media (max-width: 767px) {
  79. position: absolute;
  80. right: 15px;
  81. top: 15px;
  82. }
  83. }
  84. h2, .like-h2 {
  85. @media (max-width: 767px) {
  86. padding-right: 90px;
  87. }
  88. }
  89. p.kicker {
  90. @media (max-width: 767px) {
  91. padding-right: 90px;
  92. }
  93. }
  94. }
  95. .snippingTool {
  96. margin: calc(3% + 26px) 50px;
  97. background-color: var(--theme-color-secondary-dimmed);
  98. padding: var(--content-box-padding);
  99. width: 652px;
  100. .topicSnippingTool {
  101. margin: 10px 0;
  102. }
  103. .snippingToolLink {
  104. font-size: var(--font-size-xs);
  105. margin: 5px 0 0;
  106. }
  107. .snippingToolTitle {
  108. margin: 0;
  109. }
  110. .snippingToolDescription {
  111. font-size: var(--font-size-xs);
  112. }
  113. }