Path: blob/main/src/vs/sessions/contrib/welcome/browser/media/sessionsWalkthrough.css
13405 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45/* ---- Multi-step Walkthrough Overlay ---- */67.sessions-walkthrough-overlay {8position: absolute;9inset: 0;10z-index: 200;11display: flex;12align-items: center;13justify-content: center;14background: var(--vscode-editor-background);15opacity: 1;16transition: opacity 200ms ease-out, background-color 200ms ease-out;17}1819.sessions-walkthrough-overlay .hidden {20display: none;21}2223/* Hide titlebar right actions during sign-in */24.monaco-workbench:has(.sessions-walkthrough-overlay) .part.titlebar .titlebar-right {25visibility: hidden;26}2728.sessions-walkthrough-overlay.sessions-walkthrough-dismissed {29opacity: 0;30pointer-events: none;31}3233/* ---- Card ---- */3435.sessions-walkthrough-card {36display: flex;37flex-direction: column;38width: 1000px;39max-width: calc(100vw - 64px);40max-height: calc(100vh - 80px);41text-align: left;42gap: 24px;43}4445/* ---- Content area (scrollable middle) ---- */4647.sessions-walkthrough-content {48display: flex;49flex-direction: column;50align-items: center;51gap: 24px;52width: 100%;53flex: 1;54overflow-y: auto;55overflow-x: hidden;56min-height: 0;57padding: 4px 4px 8px;58box-sizing: border-box;59opacity: 1;60transition: opacity 200ms ease-out;61}6263.sessions-walkthrough-content.sessions-walkthrough-fade-out {64opacity: 0;65}6667.sessions-walkthrough-content.sessions-walkthrough-fade-in {68opacity: 1;69}7071/* Progress bar (replaces provider buttons during setup) */72.sessions-walkthrough-progress-bar {73width: 100%;74height: 3px;75background: color-mix(in srgb, var(--vscode-foreground) 10%, transparent);76border-radius: 2px;77overflow: hidden;78margin-top: 16px;79}8081.sessions-walkthrough-progress-bar-fill {82width: 30%;83height: 100%;84background: var(--vscode-progressBar-background, #0078d4);85border-radius: 2px;86animation: sessions-walkthrough-progress 2s ease-in-out infinite;87}8889@keyframes sessions-walkthrough-progress {900% {91transform: translateX(0%);92}939450% {95transform: translateX(233%);96}9798100% {99transform: translateX(0%);100}101}102103/* ---- Fixed footer (always at bottom) ---- */104105.sessions-walkthrough-footer {106display: flex;107flex-direction: column;108align-items: center;109gap: 12px;110width: 100%;111flex-shrink: 0;112}113114.sessions-walkthrough-success-actions {115display: flex;116flex-direction: row;117gap: 8px;118margin-top: 8px;119}120121/* ---- Sign-in provider buttons ---- */122123.sessions-walkthrough-provider-btn {124display: flex;125align-items: center;126justify-content: center;127gap: 10px;128padding: 10px 16px;129border-radius: 6px;130border: 1px solid color-mix(in srgb, var(--vscode-foreground) 15%, transparent);131background: transparent;132color: var(--vscode-foreground);133font-size: 13px;134font-weight: 500;135cursor: pointer;136transition: background 100ms, border-color 100ms;137white-space: nowrap;138}139140.sessions-walkthrough-provider-label {141line-height: 1;142}143144.sessions-walkthrough-provider-btn:hover {145background: color-mix(in srgb, var(--vscode-foreground) 8%, transparent);146border-color: color-mix(in srgb, var(--vscode-foreground) 25%, transparent);147}148149.sessions-walkthrough-provider-btn:disabled {150opacity: 0.5;151cursor: default;152}153154.sessions-walkthrough-provider-btn::before {155content: '';156width: 18px;157height: 18px;158background-size: contain;159background-repeat: no-repeat;160background-position: center;161flex-shrink: 0;162}163164.sessions-walkthrough-provider-btn.provider-github::before {165-webkit-mask-image: url('./github-mark.svg');166mask-image: url('./github-mark.svg');167-webkit-mask-repeat: no-repeat;168mask-repeat: no-repeat;169-webkit-mask-position: center;170mask-position: center;171-webkit-mask-size: contain;172mask-size: contain;173background-color: currentColor;174}175176.sessions-walkthrough-provider-btn.provider-google::before {177background-image: url('./google.svg');178}179180.sessions-walkthrough-provider-btn.provider-apple::before {181background-image: url('./apple-dark.svg');182}183184.monaco-workbench.hc-light .sessions-walkthrough-provider-btn.provider-apple::before,185.monaco-workbench.vs .sessions-walkthrough-provider-btn.provider-apple::before {186background-image: url('./apple-light.svg');187}188189/* ---- Provider button row ---- */190191.sessions-walkthrough-sign-in-actions {192display: flex;193flex-direction: column;194align-items: stretch;195gap: 0;196width: min(100%, 400px);197margin-top: 16px;198}199200.sessions-walkthrough-providers-row {201display: flex;202gap: 8px;203align-items: center;204justify-content: flex-start;205width: 100%;206flex-wrap: nowrap;207}208209.sessions-walkthrough-providers-row > .sessions-walkthrough-provider-btn {210flex: 0 0 auto;211}212213.sessions-walkthrough-provider-btn.sessions-walkthrough-provider-primary {214flex: 1 1 auto;215min-width: 0;216padding: 10px 12px;217gap: 8px;218}219220.sessions-walkthrough-provider-btn.sessions-walkthrough-provider-icon-only {221width: 40px;222height: 40px;223padding: 0;224border-radius: 8px;225justify-content: center;226flex: 0 0 40px;227}228229.sessions-walkthrough-provider-btn.sessions-walkthrough-provider-icon-only::before {230width: 18px;231height: 18px;232}233234.sessions-walkthrough-provider-btn.sessions-walkthrough-provider-compact {235min-height: 40px;236padding: 0 6px;237border-radius: 8px;238font-size: 11px;239gap: 0;240justify-content: center;241flex: 0 0 auto;242}243244.sessions-walkthrough-provider-btn.sessions-walkthrough-provider-compact::before {245display: none;246}247248/* ---- Hero layout (icon left, text right) ---- */249250.sessions-walkthrough-hero {251display: flex;252align-items: stretch;253gap: 24px;254}255256.sessions-walkthrough-hero .sessions-walkthrough-icon {257display: flex;258align-items: center;259}260261.sessions-walkthrough-hero-text {262display: flex;263flex-direction: column;264justify-content: center;265gap: 6px;266}267268.sessions-walkthrough-hero-text h2 {269margin: 0;270font-size: 22px;271font-weight: 600;272color: var(--vscode-foreground);273}274275.sessions-walkthrough-hero-text p {276margin: 0;277font-size: 13px;278color: var(--vscode-descriptionForeground);279line-height: 1.5;280}281282.sessions-walkthrough-icon .codicon {283font-size: 48px;284color: var(--vscode-descriptionForeground);285}286287.sessions-walkthrough-icon.sessions-walkthrough-icon-large .codicon {288font-size: 112px;289}290291/* Sessions logo for sign-in screen */292.sessions-walkthrough-logo {293width: 112px;294height: 112px;295background-image: url('../../../../browser/media/sessions-icon.svg');296background-size: contain;297background-repeat: no-repeat;298background-position: center;299flex-shrink: 0;300align-self: center;301}302303/* ---- Action area (used inside content for sign-in step spinner) ---- */304305.sessions-walkthrough-spinner {306display: flex;307align-items: center;308justify-content: center;309gap: 8px;310font-size: 13px;311color: var(--vscode-descriptionForeground);312}313314.sessions-walkthrough-spinner .codicon-loading {315animation: sessions-walkthrough-spin 1.5s linear infinite;316}317318@keyframes sessions-walkthrough-spin {319to {320transform: rotate(360deg);321}322}323324.sessions-walkthrough-error {325margin: 0;326font-size: 12px;327color: var(--vscode-errorForeground);328}329330.sessions-walkthrough-disclaimer {331position: absolute;332left: 50%;333bottom: 24px;334transform: translateX(-50%);335width: min(720px, calc(100vw - 64px));336margin: 0;337color: var(--vscode-descriptionForeground);338font-size: 11px;339line-height: 1.4;340text-align: center;341}342343.sessions-walkthrough-disclaimer > a,344.sessions-walkthrough-disclaimer > a:link,345.sessions-walkthrough-disclaimer > a:visited {346color: var(--vscode-textLink-foreground) !important;347-webkit-text-fill-color: var(--vscode-textLink-foreground) !important;348text-decoration: none !important;349outline: none !important;350}351352.sessions-walkthrough-disclaimer > a:hover,353.sessions-walkthrough-disclaimer > a:active {354color: var(--vscode-textLink-activeForeground) !important;355-webkit-text-fill-color: var(--vscode-textLink-activeForeground) !important;356text-decoration: underline !important;357}358359.sessions-walkthrough-disclaimer > a:focus-visible {360outline: none !important;361box-shadow: 0 0 0 1px var(--vscode-focusBorder) !important;362border-radius: 2px !important;363}364365/* ---- Welcome screen (first launch + signed in) ---- */366367.sessions-walkthrough-welcome-actions {368display: flex;369flex-direction: column;370align-items: flex-start;371gap: 12px;372margin-top: 16px;373}374375.sessions-walkthrough-get-started-btn {376padding: 8px 24px;377border-radius: 6px;378border: 1px solid var(--vscode-button-border, transparent);379background: var(--vscode-button-background);380color: var(--vscode-button-foreground);381font-size: 13px;382font-weight: 500;383cursor: pointer;384transition: background 100ms;385}386387.sessions-walkthrough-get-started-btn:hover {388background: var(--vscode-button-hoverBackground);389}390391.sessions-walkthrough-get-started-btn:focus-visible {392outline: 2px solid var(--vscode-focusBorder);393outline-offset: 2px;394}395396.sessions-walkthrough-loading-indicator {397display: flex;398align-items: center;399justify-content: center;400width: 100%;401min-height: 200px;402}403404.sessions-walkthrough-loading-icon {405animation: sessions-walkthrough-pulse 1.4s ease-in-out infinite;406}407408@keyframes sessions-walkthrough-pulse {4090%, 100% { opacity: 0.4; transform: scale(0.95); }41050% { opacity: 1; transform: scale(1.05); }411}412413.monaco-reduce-motion .sessions-walkthrough-loading-icon,414.agent-sessions-workbench.monaco-reduce-motion .sessions-walkthrough-loading-icon {415animation: none;416opacity: 0.7;417}418419.sessions-walkthrough-tagline {420font-style: italic;421opacity: 0.85;422margin-top: 4px;423}424425/* ---- Theme step ---- */426427.sessions-walkthrough-theme-header {428text-align: center;429margin-bottom: 8px;430}431432.sessions-walkthrough-theme-header h2 {433margin: 0;434font-size: 22px;435font-weight: 600;436color: var(--vscode-foreground);437}438439.sessions-walkthrough-theme-header p {440margin: 6px 0 0;441font-size: 13px;442color: var(--vscode-descriptionForeground);443line-height: 1.5;444}445446.sessions-walkthrough-theme-grid {447display: flex;448flex-wrap: wrap;449justify-content: center;450gap: 10px;451width: 100%;452}453454.sessions-walkthrough-theme-card {455border-radius: 8px;456border: 2px solid var(--vscode-widget-border, rgba(255, 255, 255, 0.1));457cursor: pointer;458touch-action: manipulation;459overflow: hidden;460transition: border-color 100ms, transform 100ms;461width: calc(33.333% - 7px);462max-width: 240px;463min-width: 180px;464box-sizing: border-box;465}466467.sessions-walkthrough-theme-card:hover {468border-color: var(--vscode-focusBorder, #007acc);469transform: translateY(-1px);470}471472.sessions-walkthrough-theme-card:focus-visible {473outline: 2px solid var(--vscode-focusBorder);474outline-offset: 2px;475}476477.sessions-walkthrough-theme-card.selected {478border-color: var(--vscode-focusBorder, #007acc);479box-shadow: 0 0 0 1px var(--vscode-focusBorder, #007acc);480}481482.monaco-workbench.hc-black .sessions-walkthrough-theme-card,483.monaco-workbench.hc-light .sessions-walkthrough-theme-card {484border-width: 2px;485border-style: solid;486border-color: var(--vscode-contrastBorder);487}488489.monaco-workbench.hc-black .sessions-walkthrough-theme-card:hover,490.monaco-workbench.hc-light .sessions-walkthrough-theme-card:hover {491border-color: var(--vscode-contrastActiveBorder, var(--vscode-focusBorder));492}493494.monaco-workbench.hc-black .sessions-walkthrough-theme-card:focus-visible,495.monaco-workbench.hc-light .sessions-walkthrough-theme-card:focus-visible {496outline: 2px solid var(--vscode-contrastActiveBorder, var(--vscode-focusBorder));497outline-offset: 2px;498}499500.monaco-workbench.hc-black .sessions-walkthrough-theme-card.selected,501.monaco-workbench.hc-light .sessions-walkthrough-theme-card.selected {502outline: 2px dashed var(--vscode-contrastActiveBorder, var(--vscode-focusBorder));503outline-offset: 2px;504}505506.monaco-workbench.hc-black .sessions-walkthrough-theme-card.selected:focus-visible,507.monaco-workbench.hc-light .sessions-walkthrough-theme-card.selected:focus-visible {508outline: 2px solid var(--vscode-contrastActiveBorder, var(--vscode-focusBorder));509outline-offset: 2px;510}511512.sessions-walkthrough-theme-preview {513overflow: hidden;514}515516.sessions-walkthrough-theme-preview-img {517display: block;518width: 100%;519height: auto;520}521522.sessions-walkthrough-vscode-theme-option {523display: flex;524justify-content: center;525width: 100%;526margin-top: 24px;527}528529.sessions-walkthrough-vscode-theme-radio {530min-width: 400px;531padding: 8px 20px;532border-radius: 8px;533border: 2px solid var(--vscode-radio-inactiveBorder, var(--vscode-widget-border, rgba(255, 255, 255, 0.1)));534background: var(--vscode-radio-inactiveBackground, transparent);535color: var(--vscode-radio-inactiveForeground, var(--vscode-foreground));536font-size: 13px;537font-weight: 500;538cursor: pointer;539touch-action: manipulation;540transition: border-color 100ms, background 100ms;541text-align: center;542}543544.sessions-walkthrough-vscode-theme-radio:hover {545background: var(--vscode-radio-inactiveHoverBackground, color-mix(in srgb, var(--vscode-foreground) 8%, transparent));546}547548.sessions-walkthrough-vscode-theme-radio.selected {549border-color: var(--vscode-focusBorder, #007acc);550box-shadow: 0 0 0 1px var(--vscode-focusBorder, #007acc);551background: var(--vscode-radio-activeBackground, transparent);552color: var(--vscode-radio-activeForeground, var(--vscode-foreground));553}554555.sessions-walkthrough-vscode-theme-radio:focus-visible {556outline: 2px solid var(--vscode-focusBorder);557outline-offset: 2px;558}559560.sessions-walkthrough-theme-label {561padding: 4px 6px;562font-size: 12px;563font-weight: 500;564text-align: center;565color: var(--vscode-foreground);566}567568.sessions-walkthrough-theme-footer {569display: flex;570justify-content: center;571margin-top: 16px;572}573574@media (max-width: 720px) {575.sessions-walkthrough-theme-card {576width: calc(50% - 5px);577}578}579580@media (max-width: 480px) {581.sessions-walkthrough-theme-card {582width: 100%;583}584}585586/* Reduced motion */587588.monaco-reduce-motion .sessions-walkthrough-overlay,589.monaco-reduce-motion .sessions-walkthrough-content,590.monaco-reduce-motion .sessions-walkthrough-provider-btn,591.monaco-reduce-motion .sessions-walkthrough-provider-secondary,592.agent-sessions-workbench.monaco-reduce-motion .sessions-walkthrough-overlay,593.agent-sessions-workbench.monaco-reduce-motion .sessions-walkthrough-content,594.agent-sessions-workbench.monaco-reduce-motion .sessions-walkthrough-provider-btn,595.agent-sessions-workbench.monaco-reduce-motion .sessions-walkthrough-provider-secondary {596transition-duration: 0ms !important;597}598599.monaco-reduce-motion .sessions-walkthrough-progress-bar-fill,600.agent-sessions-workbench.monaco-reduce-motion .sessions-walkthrough-progress-bar-fill {601animation: none !important;602}603604605