templates-v2.scss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. .gallery.gallery-tagged {
  2. .gallery-title {
  3. display: block;
  4. text-align: left;
  5. }
  6. .gallery-summary {
  7. text-align: left;
  8. max-width: 828px;
  9. }
  10. .gallery-filters {
  11. @include media-breakpoint-down(lg) {
  12. margin-top: var(--spacing-06);
  13. }
  14. }
  15. h2 {
  16. margin-top: 0;
  17. }
  18. }
  19. .gallery {
  20. margin-top: var(--spacing-10);
  21. .gallery-tagged-tags-container-spacing {
  22. padding: 0 var(--spacing-09);
  23. margin-bottom: var(--spacing-16);
  24. h2 {
  25. margin-bottom: var(--spacing-09);
  26. }
  27. }
  28. .gallery-filters {
  29. float: right;
  30. margin-bottom: var(--spacing-11);
  31. display: flex;
  32. flex-wrap: wrap;
  33. gap: var(--spacing-04);
  34. @include media-breakpoint-down(lg) {
  35. float: none;
  36. }
  37. a {
  38. text-decoration: none;
  39. &:visited {
  40. color: var(--green-50);
  41. }
  42. &:hover {
  43. color: var(--green-60);
  44. }
  45. &.active {
  46. font-weight: 600;
  47. text-decoration: underline;
  48. }
  49. }
  50. }
  51. .gallery-header {
  52. margin-bottom: var(--spacing-09);
  53. @include media-breakpoint-up(lg) {
  54. max-width: $templates-search-max-width;
  55. display: flex;
  56. flex-direction: column;
  57. align-items: center;
  58. margin-left: auto;
  59. margin-right: auto;
  60. }
  61. }
  62. .gallery-title {
  63. display: flex;
  64. flex-direction: column;
  65. align-items: center;
  66. justify-content: center;
  67. margin-bottom: var(--spacing-06);
  68. text-align: center;
  69. }
  70. .gallery-summary {
  71. @include body-lg;
  72. text-align: center;
  73. margin-bottom: 0;
  74. }
  75. .tagged-header-container {
  76. margin-bottom: var(--spacing-16);
  77. }
  78. .top-picks-banner {
  79. padding: 0;
  80. margin: 0 auto var(--spacing-16) auto;
  81. h2 {
  82. @include heading-xl;
  83. }
  84. .doc-rows-container {
  85. margin-top: var(--spacing-09);
  86. }
  87. }
  88. .recent-templates-container {
  89. padding: 0 var(--spacing-09);
  90. margin-bottom: var(--spacing-16);
  91. h2 {
  92. margin-bottom: var(--spacing-09);
  93. @include heading-xl;
  94. }
  95. }
  96. .no-articles-matching {
  97. color: var(--neutral-90);
  98. font-weight: 600;
  99. @include heading-lg;
  100. }
  101. .template-summary {
  102. margin-top: var(--spacing-02);
  103. margin-bottom: var(--spacing-09);
  104. @include body-lg;
  105. }
  106. @mixin line-clamp {
  107. display: -webkit-box;
  108. -webkit-box-orient: vertical;
  109. -webkit-line-clamp: 2;
  110. line-clamp: 2;
  111. overflow: hidden;
  112. }
  113. .popular-tags-list,
  114. .gallery-container {
  115. --bs-gutter-x: var(--spacing-09);
  116. row-gap: var(--spacing-11);
  117. }
  118. .gallery-container {
  119. align-items: baseline;
  120. }
  121. .gallery-thumbnail {
  122. a {
  123. @extend .link-black-text;
  124. display: inline-block;
  125. width: 100%;
  126. .thumbnail,
  127. .thumbnail-tag {
  128. position: relative;
  129. &::before {
  130. content: '';
  131. background: var(--neutral-90);
  132. opacity: 0;
  133. position: absolute;
  134. top: 0;
  135. left: 0;
  136. width: 100%;
  137. height: 100%;
  138. transition: opacity 0.15s ease-in-out;
  139. }
  140. }
  141. .thumbnail-tag {
  142. &::before {
  143. border-radius: var(--border-radius-medium);
  144. }
  145. }
  146. .thumbnail {
  147. &::before {
  148. border-radius: var(--border-radius-base);
  149. }
  150. }
  151. &:hover {
  152. .thumbnail,
  153. .thumbnail-tag {
  154. &::before {
  155. transition: opacity 0.15s ease-in-out;
  156. opacity: 0.08;
  157. }
  158. }
  159. }
  160. }
  161. .thumbnail,
  162. .thumbnail-tag {
  163. margin: 0 0 var(--spacing-08) 0;
  164. img {
  165. width: 100%;
  166. display: inline-block;
  167. }
  168. }
  169. .thumbnail {
  170. img {
  171. @include shadow-lg;
  172. border-radius: var(--border-radius-base);
  173. }
  174. }
  175. .caption {
  176. // Override Server Pro template styles
  177. background: none;
  178. border: none;
  179. margin-top: var(--spacing-04);
  180. }
  181. .caption-description {
  182. color: var(--neutral-70);
  183. margin-bottom: 0;
  184. @include line-clamp;
  185. }
  186. .author-name {
  187. margin-top: var(--spacing-04);
  188. color: var(--neutral-70);
  189. font-weight: 600;
  190. }
  191. .gallery-list-item-title {
  192. display: flex;
  193. align-items: center;
  194. justify-content: space-between;
  195. gap: var(--spacing-04);
  196. .badge-container {
  197. display: inline-block;
  198. text-wrap: nowrap;
  199. .badge:not(:first-child) {
  200. margin-left: var(--spacing-04);
  201. }
  202. }
  203. * {
  204. flex-basis: content;
  205. cursor: inherit;
  206. }
  207. }
  208. .caption-title {
  209. color: var(--neutral-90);
  210. font-weight: 600;
  211. @include heading-md;
  212. @include line-clamp;
  213. }
  214. }
  215. .related-tags-top-spacing {
  216. margin-top: var(--spacing-16);
  217. }
  218. .gallery-tagged-template-tags-container {
  219. display: flex;
  220. flex-wrap: wrap;
  221. gap: var(--spacing-05);
  222. .badge-content {
  223. padding-left: var(--spacing-02);
  224. padding-right: var(--spacing-02);
  225. }
  226. }
  227. .pagination {
  228. margin-top: var(--spacing-13);
  229. }
  230. .popular-tags {
  231. margin-top: 0;
  232. margin-bottom: var(--spacing-16);
  233. a {
  234. width: 100%;
  235. }
  236. }
  237. .popular-tags,
  238. .recent-docs,
  239. .featured-docs {
  240. h2 {
  241. margin-bottom: var(--spacing-09);
  242. }
  243. }
  244. .recent-docs + .featured-docs {
  245. margin-top: var(--spacing-16);
  246. }
  247. .gallery-item-title {
  248. display: inline-flex;
  249. gap: var(--spacing-06);
  250. h1 {
  251. margin: unset;
  252. }
  253. .gallery-item-title-badge-container {
  254. display: flex;
  255. justify-content: center;
  256. align-items: center;
  257. gap: var(--spacing-04);
  258. .badge-content {
  259. font-size: var(--font-size-02);
  260. line-height: var(--line-height-02);
  261. }
  262. }
  263. }
  264. .template-details-container {
  265. display: flex;
  266. flex-direction: column;
  267. gap: var(--spacing-04);
  268. }
  269. .gallery-abstract {
  270. word-break: break-word;
  271. hyphens: auto;
  272. a {
  273. hyphens: none;
  274. }
  275. }
  276. .field-title {
  277. color: var(--neutral-70);
  278. font-weight: 600;
  279. @include heading-xs;
  280. }
  281. .field-description {
  282. @include heading-xs;
  283. }
  284. .cta-links-container {
  285. margin: var(--spacing-09) 0;
  286. .cta-links {
  287. display: inline-flex;
  288. gap: var(--spacing-04);
  289. padding: unset;
  290. flex-wrap: wrap;
  291. }
  292. }
  293. .gallery-large-pdf-preview {
  294. img {
  295. width: 100%;
  296. }
  297. @include shadow-md;
  298. }
  299. .related-tags-header {
  300. margin-top: var(--spacing-16);
  301. }
  302. .related-tags {
  303. margin-top: var(--spacing-09);
  304. max-height: 61px;
  305. overflow: hidden;
  306. &.all-tags {
  307. max-height: none;
  308. // min-height prevents elements below the tags from moving upwards
  309. // when Show More is clicked
  310. min-height: 102px;
  311. }
  312. .badge-link {
  313. max-width: 200px;
  314. }
  315. }
  316. .show-more-tags {
  317. margin-top: var(--spacing-06);
  318. }
  319. @include media-breakpoint-up(lg) {
  320. .template-item-left-section {
  321. padding-right: var(--spacing-10);
  322. }
  323. .template-item-right-section {
  324. padding-left: var(--spacing-10);
  325. }
  326. }
  327. @include media-breakpoint-down(md) {
  328. .template-item-left-section {
  329. .badge-link-list {
  330. margin-top: var(--spacing-04);
  331. }
  332. }
  333. .template-item-right-section {
  334. margin-top: var(--spacing-11);
  335. }
  336. }
  337. }