1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
|
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
.og-card {
--og-main-font-size: 1.4rem;
background-color: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.05));
font-size: 1.2em;
}
.og-card-img {
border-radius: var(--border-radius-small);
height: 100px;
object-fit: cover;
width: 100%;
}
.og-card-content {
background-color: var(--panel-background);
border-bottom: 1px solid var(--panel-border-color);
color: var(--text-color-deemphasized);
display: flex;
flex-direction: column;
gap: var(--space-large);
padding: var(--og-padding);
}
.og-card-title {
color: var(--panel-color);
font-size: var(--og-main-font-size);
font-weight: var(--font-weight-bold);
margin: 0;
overflow: hidden;
-webkit-line-clamp: 3;
}
.og-card-description {
color: var(--panel-color);
font-size: var(--og-main-font-size);
margin: 0;
overflow: hidden;
-webkit-line-clamp: 3;
}
.og-error-message {
font-size: var(--og-main-font-size);
margin-block: 0 var(--space-medium);
}
.ai-content {
position: relative;
padding: var(--og-padding);
.og-error-message-container {
font-size: var(--og-main-font-size);
margin: 0;
.og-error-message {
color: var(--text-color-deemphasized);
}
a {
color: var(--text-color-deemphasized);
}
}
.keypoints-header {
display: flex;
font-size: var(--og-main-font-size);
font-weight: var(--font-weight-bold);
gap: var(--space-xs);
margin: 0;
user-select: none;
/* TODO: this could have been handled with just ::before with { content: '', icon stuff }*/
.chevron-icon {
background-image: url("chrome://global/skin/icons/arrow-down.svg");
background-position: center;
background-repeat: no-repeat;
background-size: contain;
display: inline-block;
fill: currentColor;
height: 16px;
margin-inline-end: 8px;
-moz-context-properties: fill;
transform: rotateZ(0deg);
transition: transform 0.3s ease;
width: 16px;
}
}
.keypoints-header:has(+ .keypoints-content:not(.hidden)) .chevron-icon {
transform: rotateZ(180deg);
}
img.icon {
fill: currentColor;
height: var(--icon-size-default);
margin-inline-start: var(--space-xlarge);
-moz-context-properties: fill;
pointer-events: none;
width: var(--icon-size-default);
}
.keypoints-content {
max-height: 1000px;
overflow: hidden;
padding-inline-start: 0.05rem; /* custom adjustment to align with chevron icon */
transition: max-height 0.3s ease;
&.hidden {
max-height: 0;
overflow: hidden;
}
> ul {
font-size: var(--og-main-font-size);
line-height: 1.15; /* Design requires 18px line-height */
list-style-type: square;
padding-inline-start: var(--space-xlarge);
}
li {
margin-block: var(--space-medium);
padding-inline-start: 5px;
&::marker {
color: var(--border-color-deemphasized);
}
}
.visit-link-container {
align-items: center;
display: flex;
justify-content: flex-end;
margin-top: var(--space-xlarge);
.visit-link {
align-items: center;
display: flex;
font-size: var(--og-main-font-size);
font-weight: var(--font-weight-bold);
gap: var(--space-xs);
}
}
> hr {
border-color: var(--border-color-card);
margin-block: var(--space-xlarge);
}
> p {
margin-block: var(--space-medium) 0;
}
}
}
/**
* Defines the animation for the loading state of link preview keypoints
* Creates a smooth gradient animation that moves from right to left
* to indicate content is being loaded
*/
@keyframes link-preview-keypoints-loading {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
.keypoints-list {
.content-item {
margin-bottom: var(--space-xlarge);
width: 100%;
&.loading {
div {
--skeleton-loader-background-color: var(--tab-group-suggestions-loading-animation-color-1);
--skeleton-loader-motion-element-color: var(--tab-group-suggestions-loading-animation-color-2);
animation: link-preview-keypoints-loading 3s infinite;
background: linear-gradient(
100deg,
var(--skeleton-loader-background-color) 30%,
var(--skeleton-loader-motion-element-color) 50%,
var(--skeleton-loader-background-color) 70%
);
background-size: 200% 100%;
border-radius: 5px;
height: var(--og-main-font-size);
margin-bottom: 4px;
width: 100%;
/* Add non-impactful references to the CSS variables to satisfy the test browser_parsable_css */
outline-color: var(--skeleton-loader-background-color);
border-color: var(--skeleton-loader-motion-element-color);
}
&.static div {
animation: none;
background: var(--skeleton-loader-background-color);
}
div:nth-of-type(1) {
max-width: 95%;
}
div:nth-of-type(2) {
max-width: 98%;
}
div:nth-of-type(3) {
max-width: 90%;
}
}
}
}
.reading-time-settings-container {
align-items: center;
display: flex;
justify-content: space-between;
}
model-optin {
--font-size-xxlarge: var(--og-main-font-size);
--optin-wrapper-box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
inset-inline: 0;
margin-inline: auto;
position: absolute;
top: 60px;
width: 75%;
z-index: 10;
}
|