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.
 
 
 
 

113 line
2.1 KiB

  1. @import '../../_global/styles/mixins';
  2. @import '../../_global/styles/vars';
  3. .topic-teaser, .topics .tile {
  4. --topic-tile-padding: 24px;
  5. position: relative;
  6. display: flex;
  7. flex-direction: column;
  8. background-color: white;
  9. overflow: hidden;
  10. width: 100%;
  11. max-width: 420px;
  12. border-radius: var(--border-radius-lg);
  13. padding: var(--topic-tile-padding);
  14. transition: 0.25s ease;
  15. line-height: 1.2;
  16. text-align: center;
  17. text-decoration: none;
  18. @media(max-width: 999px) {
  19. --topic-tile-padding: 14px;
  20. }
  21. @media(max-width: 767px) {
  22. font-size: 16px;
  23. min-height: 84px;
  24. border-radius: 8px;
  25. }
  26. .icon-box {
  27. font-family: 'Pictograms', sans-serif;
  28. font-size: 72px;
  29. line-height: 1;
  30. color: var(--theme-color-secondary);
  31. margin-top: 6px;
  32. @media(max-width: 567px) {
  33. font-size: 50px;
  34. margin-top: 0;
  35. }
  36. }
  37. }
  38. .col {
  39. .topic-teaser, .topics .tile {
  40. max-width: none;
  41. }
  42. }
  43. a.topic-teaser, .topics:not([data-type="list"]) a.tile {
  44. @include focus-visible();
  45. &:before {
  46. content: "";
  47. position: absolute;
  48. display: block;
  49. bottom: 0;
  50. left: 0;
  51. right: 0;
  52. height: var(--border-width);
  53. background-color: var(--theme-color-secondary);
  54. transition: 0.2s ease;
  55. }
  56. &:hover:before {
  57. height: var(--border-width-hover);
  58. }
  59. .title {
  60. text-decoration: underline;
  61. margin: 12px 0;
  62. @media(max-width: 999px) {
  63. margin: 8px 0;
  64. }
  65. @media(max-width: 567px) {
  66. margin: 4px 0;
  67. }
  68. }
  69. .text-box {
  70. display: flex;
  71. align-items: center;
  72. justify-content: center;
  73. flex-grow: 1;
  74. }
  75. }
  76. div.topic-teaser, .topics[data-type="list"] .tile {
  77. padding: 0 var(--topic-tile-padding) 0.5em;
  78. .icon-box {
  79. background-color: var(--theme-color-primary);
  80. color: var(--theme-color-background);
  81. margin: 0 calc(var(--topic-tile-padding) * -1);
  82. padding: 10px 0;
  83. font-size: 60px;
  84. @media(max-width: 767px) {
  85. font-size: 46px;
  86. }
  87. }
  88. .text-box {
  89. display: block;
  90. text-align: left;
  91. }
  92. .title {
  93. text-decoration: none;
  94. margin: 0.8em 0;
  95. }
  96. }