|
1 | 1 | // assets/scss/components/_community-partners.scss |
2 | 2 | .community-partners-section { |
| 3 | + position: relative; |
| 4 | + overflow: hidden; |
| 5 | + background-color: #ffffff; |
| 6 | + |
| 7 | + > * { |
| 8 | + position: relative; |
| 9 | + z-index: 2; |
| 10 | + } |
| 11 | + |
| 12 | + &::after { |
| 13 | + content: ''; |
| 14 | + position: absolute; |
| 15 | + top: 0; |
| 16 | + left: 0; |
| 17 | + width: 100%; |
| 18 | + height: 100%; |
| 19 | + z-index: 0; |
| 20 | + background-image: |
| 21 | + linear-gradient(45deg, theme('colors.body') 25%, transparent 105%), |
| 22 | + linear-gradient(-45deg, theme('colors.body') 25%, transparent 25%), |
| 23 | + linear-gradient(45deg, transparent 75%, theme('colors.body') 75%), |
| 24 | + linear-gradient(-45deg, transparent 75%, theme('colors.body') 75%); |
| 25 | + background-size: 10px 10px; |
| 26 | + } |
| 27 | + |
| 28 | + .dark & { |
| 29 | + background-color: theme('colors.darkmode.theme-dark'); |
| 30 | + |
| 31 | + &::after { |
| 32 | + background-image: |
| 33 | + linear-gradient(45deg, theme('colors.darkmode.body') 25%, transparent 105%), |
| 34 | + linear-gradient(-45deg, theme('colors.darkmode.body') 25%, transparent 25%), |
| 35 | + linear-gradient(45deg, transparent 75%, theme('colors.darkmode.body') 75%), |
| 36 | + linear-gradient(-45deg, transparent 75%, theme('colors.darkmode.body') 75%); |
| 37 | + } |
| 38 | + } |
| 39 | + |
3 | 40 | .partners-slider-wrapper { |
4 | 41 | overflow: hidden; |
5 | 42 | -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent); |
6 | 43 | mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent); |
7 | 44 | } |
8 | 45 |
|
9 | 46 | .partners-track { |
| 47 | + @apply bg-white dark:bg-black; |
10 | 48 | animation: scroll 40s linear infinite; |
11 | 49 | &:hover { |
12 | 50 | animation-play-state: paused; |
13 | 51 | } |
| 52 | + padding-bottom: 30px; |
14 | 53 | } |
15 | 54 |
|
16 | 55 | .partner-logo { |
|
19 | 58 | transition: all 0.3s ease-in-out; |
20 | 59 | } |
21 | 60 |
|
22 | | - .partner-logo-link:hover .partner-logo { |
| 61 | + .partner-logo-link:hover .partner-logo, |
| 62 | + .partner-logo-link.is-highlighted .partner-logo { |
23 | 63 | filter: grayscale(0%); |
24 | 64 | opacity: 1; |
25 | 65 | transform: scale(1.05); |
|
42 | 82 | } |
43 | 83 |
|
44 | 84 | .contribution-bubble { |
45 | | - @apply absolute top-0 left-0 bg-dark dark:bg-darkmode-theme-dark text-white dark:text-darkmode-text text-xs font-semibold p-2 rounded-lg shadow-lg z-20 dark:border-2 dark:border-darkmode-border; |
46 | | - @apply opacity-0 invisible transition-opacity duration-300 ease-in-out; |
| 85 | + @apply absolute top-0 left-0 dark:bg-darkmode-theme-dark text-white dark:text-darkmode-text rounded-lg shadow-lg z-40 dark:border-2 dark:border-darkmode-border; |
| 86 | + background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary-new) 40%, black) 0%, color-mix(in srgb, var(--color-secondary-new) 40%, black) 100%); |
| 87 | + @apply opacity-0 invisible transition-opacity ease-in-out; |
| 88 | + transition-duration: 300ms; |
47 | 89 | will-change: opacity, transform; |
| 90 | + max-width: 280px; |
| 91 | + padding: 0.75rem; |
| 92 | + text-align: left; |
| 93 | + font-weight: 400; |
48 | 94 |
|
49 | 95 | &.visible { |
50 | 96 | @apply opacity-100; |
|
56 | 102 | content: ''; |
57 | 103 | @apply absolute top-full left-1/2 -translate-x-1/2; |
58 | 104 | @apply w-0 h-0 border-x-8 border-x-transparent border-t-8; |
59 | | - border-top-color: theme('colors.dark'); |
| 105 | + border-top-color: color-mix(in srgb, var(--color-secondary-new) 40%, black); |
60 | 106 | } |
61 | 107 | } |
62 | 108 |
|
| 109 | +.bubble-title { |
| 110 | + @apply font-bold text-sm mb-1 text-white; |
| 111 | +} |
| 112 | + |
| 113 | +.bubble-description { |
| 114 | + @apply text-xs text-gray-300 dark:text-white leading-snug; |
| 115 | + display: -webkit-box; |
| 116 | + -webkit-line-clamp: 3; |
| 117 | + -webkit-box-orient: vertical; |
| 118 | + overflow: hidden; |
| 119 | +} |
| 120 | + |
| 121 | +.bubble-separator { |
| 122 | + @apply h-px bg-gray-600 dark:bg-gray-500 my-2; |
| 123 | +} |
| 124 | + |
| 125 | +.bubble-contributions { |
| 126 | + @apply text-xs font-semibold; |
| 127 | +} |
| 128 | + |
| 129 | + |
63 | 130 | // Dark mode styles for the bubble's tail to add a border |
64 | 131 | .dark .contribution-bubble { |
65 | 132 | // Border for the tail |
|
78 | 145 | margin-top: -2px; |
79 | 146 | } |
80 | 147 | } |
| 148 | + |
| 149 | +.byline-paragraph { |
| 150 | + @apply inline-flex items-center rounded-bl-lg rounded-br-lg px-4 py-2; |
| 151 | + |
| 152 | + &::before, &::after { |
| 153 | + content: ''; |
| 154 | + display: inline-block; |
| 155 | + width: 30px; |
| 156 | + height: 16px; |
| 157 | + flex-shrink: 0; |
| 158 | + background-size: 8px 8px; |
| 159 | + background-color: var(--color-secondary-new); |
| 160 | + } |
| 161 | + |
| 162 | + &::before { |
| 163 | + margin-right: 0.75rem; |
| 164 | + background-image: |
| 165 | + linear-gradient(45deg, theme('colors.body') 25%, transparent 25%), |
| 166 | + linear-gradient(-45deg, theme('colors.body') 25%, transparent 25%), |
| 167 | + linear-gradient(45deg, transparent 75%, theme('colors.body') 75%), |
| 168 | + linear-gradient(-45deg, transparent 75%, theme('colors.body') 75%); |
| 169 | + } |
| 170 | + &::after { |
| 171 | + margin-left: 0.75rem; |
| 172 | + background-image: |
| 173 | + linear-gradient(45deg, theme('colors.body') 25%, transparent 25%), |
| 174 | + linear-gradient(-45deg, theme('colors.body') 25%, transparent 25%), |
| 175 | + linear-gradient(45deg, transparent 75%, theme('colors.body') 75%), |
| 176 | + linear-gradient(-45deg, transparent 75%, theme('colors.body') 75%); |
| 177 | + } |
| 178 | + |
| 179 | + .dark & { |
| 180 | + &::before, &::after { |
| 181 | + background-color: var(--color-primary-new); |
| 182 | + background-image: |
| 183 | + linear-gradient(45deg, theme('colors.darkmode.body') 25%, transparent 25%), |
| 184 | + linear-gradient(-45deg, theme('colors.darkmode.body') 25%, transparent 25%), |
| 185 | + linear-gradient(45deg, transparent 75%, theme('colors.darkmode.body') 75%), |
| 186 | + linear-gradient(-45deg, transparent 75%, theme('colors.darkmode.body') 75%); |
| 187 | + } |
| 188 | + } |
| 189 | +} |
0 commit comments