pater.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. .pater {
  2. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
  3. position: fixed;
  4. z-index: 1000;
  5. right: 0;
  6. bottom: 0;
  7. display: grid;
  8. width: 100%;
  9. padding: 1em 0;
  10. text-align: left;
  11. color: white;
  12. background: #000;
  13. grid-template-columns: auto;
  14. grid-template-rows: auto auto auto;
  15. }
  16. .pater:hover {
  17. color: #333;
  18. }
  19. .pater::before {
  20. content: 'Our Sponsor';
  21. font-size: 0.75em;
  22. display: inline-block;
  23. padding: 0 0 5px 10px;
  24. vertical-align: middle;
  25. grid-area: 1 / 1 / 2 / 2;
  26. }
  27. .pater__img {
  28. display: none;
  29. background-image: url(hotjar.png);
  30. background-size: cover;
  31. grid-area: 2 / 1 / 3 / 2;
  32. }
  33. .pater__title {
  34. font-size: 0.85em;
  35. font-weight: normal;
  36. font-weight: bold;
  37. align-self: end;
  38. margin: 0;
  39. }
  40. .pater__title,
  41. .pater__description {
  42. align-self: start;
  43. padding: 10px 0 0 10px;
  44. grid-area: 2 / 1 / 3 / 3;
  45. }
  46. .pater__description {
  47. font-size: 0.85em;
  48. display: none;
  49. margin: 0;
  50. opacity: 0;
  51. }
  52. .pater__description strong {
  53. display: block;
  54. padding-top: 5px;
  55. color: #e53f3e;
  56. }
  57. @media screen and (min-width: 60em) {
  58. .pater {
  59. top: 0;
  60. right: 0;
  61. bottom: auto;
  62. width: calc(180px + 2em);
  63. margin: 0 1.5em 0 0;
  64. padding: 0;
  65. padding: 1em;
  66. background: #fff;
  67. color: #000;
  68. }
  69. .pater__img {
  70. display: flex;
  71. width: 100%;
  72. height: 86px;
  73. transition: transform 0.5s;
  74. }
  75. .pater:hover .pater__img {
  76. transform: translate3d(0,-10px,0);
  77. }
  78. .pater::before {
  79. display: block;
  80. text-align: left;
  81. padding: 0 0 10px 0;
  82. }
  83. .pater:hover .pater__title {
  84. opacity: 0;
  85. }
  86. .pater__title::before {
  87. display: none;
  88. }
  89. .pater:hover .pater__description {
  90. opacity: 1;
  91. }
  92. .pater__description {
  93. display: block;
  94. }
  95. .pater__title {
  96. font-size: 1em;
  97. padding: 20px 10px 0 10px;
  98. }
  99. .pater__title,
  100. .pater__description {
  101. padding-left: 0;
  102. transition: opacity 0.5s;
  103. grid-area: 3 / 1 / 4 / 2;
  104. }
  105. }