_carbon.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. // Carbon Ads
  2. // For Page Headings
  3. #carbonads {
  4. padding: 1rem;
  5. border-radius: $border-radius-lg;
  6. overflow: hidden;
  7. font-size: 0.8rem;
  8. line-height: 1rem;
  9. background-color: fade-out($gray-100, 0.85);
  10. box-shadow: 0 0 1rem 0.5rem fade-out($gray-900, 0.9);
  11. .carbon-wrap {
  12. .carbon-img {
  13. margin: 0;
  14. display: block;
  15. float: left;
  16. img {
  17. display: block;
  18. border-radius: 0.5rem;
  19. }
  20. }
  21. .carbon-text {
  22. display: block;
  23. margin-left: 145px;
  24. color: fade-out($white, 0.2);
  25. text-decoration: none;
  26. font-weight: 700;
  27. }
  28. }
  29. .carbon-poweredby {
  30. display: block;
  31. margin-left: 145px;
  32. margin-top: 0.5rem;
  33. color: fade-out($white, 0.4);
  34. text-decoration: none;
  35. font-weight: 700;
  36. }
  37. }
  38. .carbon-inverse {
  39. #carbonads {
  40. background-color: $primary;
  41. }
  42. }
  43. // Carbon Native Test
  44. .native-standard {
  45. position: relative;
  46. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  47. }
  48. .native-standard .native-banner {
  49. border-radius: $border-radius-lg;
  50. box-shadow: $box-shadow-lg;
  51. display: flex;
  52. padding: 20px;
  53. margin-bottom: 30px;
  54. text-decoration: none;
  55. flex-flow: row nowrap;
  56. justify-content: space-between;
  57. align-items: center;
  58. }
  59. .native-standard .native-banner .native-img {
  60. margin-right: 20px;
  61. max-height: 50px;
  62. line-height: 0;
  63. }
  64. .native-standard .native-banner .native-main {
  65. display: flex;
  66. margin: 0 auto;
  67. justify-content: center;
  68. flex-grow: 1;
  69. flex-flow: row nowrap;
  70. align-items: center;
  71. }
  72. .native-standard .native-banner .native-details {
  73. display: flex;
  74. margin-right: 20px;
  75. flex-flow: column nowrap;
  76. }
  77. .native-standard .native-banner .native-company {
  78. margin-bottom: 4px;
  79. text-transform: uppercase;
  80. letter-spacing: 2px;
  81. font-size: 10px;
  82. line-height: 1;
  83. }
  84. .native-standard .native-banner .native-desc {
  85. max-width: 600px;
  86. letter-spacing: 1px;
  87. font-weight: 300;
  88. line-height: 1.4;
  89. }
  90. .native-standard .native-banner .native-cta {
  91. padding: 10px 16px;
  92. border-radius: 3px;
  93. box-shadow: 0 6px 13px 0 hsla(0, 0%, 0%, .15);
  94. text-transform: uppercase;
  95. white-space: nowrap;
  96. letter-spacing: 1px;
  97. font-weight: 400;
  98. font-size: 12px;
  99. line-height: 1;
  100. transition: all 0.3s ease-in-out;
  101. transform: translateY(-1px);
  102. }
  103. .native-standard .native-banner .native-cta:hover {
  104. box-shadow: none;
  105. transform: translateY(1px);
  106. }
  107. .native-standard .native-via {
  108. position: absolute;
  109. right: 0;
  110. bottom: 0;
  111. padding: 5px 10px;
  112. border-top: 0;
  113. border-top-left-radius: 3px;
  114. background: repeating-linear-gradient(-45deg, transparent, transparent 5px, hsla(0, 0%, 0%, .025) 5px, hsla(0, 0%, 0%, .025) 10px) hsla(203, 11%, 95%, .4);
  115. color: #444;
  116. text-decoration: none;
  117. text-transform: uppercase;
  118. letter-spacing: 0.7px;
  119. font-weight: 600;
  120. font-size: 8px;
  121. line-height: 1;
  122. }
  123. @media only screen and (min-width: 320px) and (max-width: 759px) {
  124. .native-standard,
  125. .native-standard .native-main {
  126. flex-flow: column nowrap;
  127. }
  128. .native-standard .native-details,
  129. .native-standard .native-img {
  130. margin: 0;
  131. }
  132. .native-standard .native-img {
  133. display: none;
  134. }
  135. .native-standard .native-company {
  136. letter-spacing: 1px;
  137. }
  138. .native-standard .native-details {
  139. text-align: left;
  140. font-size: 14px;
  141. }
  142. .native-standard .native-cta {
  143. display: none;
  144. }
  145. }