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
|
/* 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/. */
@keyframes springUp {
from {
opacity: 0;
transform: translateY(40px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
#multi-stage-message-root {
--bg-white: light-dark(#fff, #fff);
--bg-transparent: transparent;
--tile-border-color: #f1e7f8;
--shadow-color: rgb(59 34 121);
.main-content,
.section-main,
.dialog-initial,
.onboardingContainer {
box-shadow: none;
}
.onboardingContainer .screen[pos="center"] {
background-color: var(--bg-transparent);
}
#mainContentHeader {
/* stylelint-disable-next-line -- using linear gradient for text effect */
background: linear-gradient(91deg, #7630c0 22.04%, #5c66ee 78.7%);
background-clip: text;
/* stylelint-disable-next-line -- transparent needed for gradient text effect */
color: var(--bg-transparent);
}
.screen.AI_WINDOW_INTRO {
#mainContentHeader {
opacity: 0;
animation: springUp 0.3s ease-in forwards;
animation-delay: 0.3s;
}
}
.screen.AI_WINDOW_CHOOSE_MODEL {
h2,
p {
letter-spacing: 0.3px;
line-height: normal;
}
.welcome-text h2 {
opacity: 0.8;
margin-top: var(--space-medium);
}
button.primary {
width: calc(var(--size-item-large) * 7);
height: var(--size-item-xlarge);
display: flex;
justify-content: center;
align-items: center;
gap: var(--space-small);
padding: var(--space-xsmall) var(--space-large);
margin: 0 auto;
border: var(--border-width) solid var(--border-color-transparent);
border-radius: var(--border-radius-medium);
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens -- gradient defined in ai-window-content.css */
background: var(--gradient-button);
color: var(--button-text-color-primary);
text-align: center;
font-size: var(--button-font-size);
font-weight: var(--button-font-weight);
letter-spacing: -0.3px;
cursor: pointer;
}
&:not(:has(.icon.selected)) button.primary {
opacity: 0.5;
pointer-events: none;
cursor: default;
}
}
.tiles-single-select-section.single-select {
gap: var(--space-large);
margin-top: calc(var(--space-xsmall) * 8);
margin-bottom: var(--space-xxlarge);
.select-item {
width: calc(var(--size-item-large) * 7);
height: calc(var(--size-item-medium) * 11);
padding-block: calc(var(--space-xsmall) * 9) 0;
/* stylelint-disable-next-line -- custom border color per Figma design */
border: var(--border-width) solid var(--tile-border-color);
display: flex;
flex-direction: column;
justify-content: start;
align-items: center;
gap: 0;
padding-inline: var(--space-medium);
box-sizing: border-box;
border-radius: var(--border-radius-large);
/* stylelint-disable-next-line -- using white for consistent background */
background: color-mix(in srgb, var(--bg-white) 60%, var(--bg-transparent));
.label-text {
margin-top: calc(var(--space-xsmall) * 5);
margin-bottom: 0;
letter-spacing: 0.5px;
opacity: 0.8;
line-height: normal;
}
.body-text {
opacity: 0.8;
line-height: normal;
}
.icon {
width: calc(var(--size-item-xlarge) * 2);
height: calc(var(--size-item-xlarge) * 2);
display: flex;
justify-content: center;
align-items: center;
flex-shrink: 0;
}
&:hover:not(:has(.selected)) {
/* stylelint-disable-next-line -- using white for hover state */
background: var(--bg-white);
cursor: pointer;
}
&:has(.selected) {
border: calc(var(--border-width) * 2) solid var(--border-color-transparent);
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens -- gradient defined in ai-window-content.css */
background:
linear-gradient(#fff, #fff) padding-box,
var(--gradient-selected-border) border-box;
/* stylelint-disable-next-line -- custom shadow color per Figma design */
box-shadow:
0 3px 16px 0 color-mix(in srgb, var(--shadow-color) 12%, var(--bg-transparent)),
0 1px 2px 0 color-mix(in srgb, var(--shadow-color) 20%, var(--bg-transparent));
}
}
}
}
|