11import { css } from 'lit' ;
2- import { srOnly } from '../shared/components/styles/lit/a11y.css' ;
3- import { linkBase , scrollableBase } from '../shared/components/styles/lit/base.css' ;
42
5- export const homeStyles = css `
3+ export const homeBaseStyles = css `
64 * {
75 box-sizing : border-box;
86 }
@@ -15,18 +13,12 @@ export const homeStyles = css`
1513 display : none !important ;
1614 }
1715
18- ${ scrollableBase }
19-
2016 /* roll into shared focus style */
2117 : focus-visible {
2218 outline : 1px solid var (--vscode-focusBorder );
2319 outline-offset : -1px ;
2420 }
2521
26- ${ srOnly }
27-
28- ${ linkBase }
29-
3022 b {
3123 font-weight : 600 ;
3224 }
@@ -39,16 +31,9 @@ export const homeStyles = css`
3931 margin-top : 0 ;
4032 padding-left : 1.2em ;
4133 }
34+ ` ;
4235
43- .promo-banner {
44- text-align : center;
45- margin-bottom : 1rem ;
46- }
47- .promo-banner--eyebrow {
48- color : var (--color-foreground--50 );
49- margin-bottom : 0.2rem ;
50- }
51-
36+ export const homeStyles = css `
5237 .home {
5338 padding : 0 ;
5439 height : 100vh ;
@@ -79,44 +64,6 @@ export const homeStyles = css`
7964 flex : none;
8065 }
8166
82- .centered {
83- text-align : center;
84- }
85-
86- .one-line {
87- white-space : nowrap;
88- }
89-
90- .foreground {
91- color : var (--color-view-foreground );
92- }
93-
94- gl-button .is-basic {
95- max-width : 300px ;
96- width : 100% ;
97- }
98- gl-button .is-basic + gl-button .is-basic {
99- margin-top : 1rem ;
100- }
101-
102- .mb-0 {
103- margin-bottom : 0 ;
104- }
105-
106- @media (max-width : 280px ) {
107- .not-small {
108- display : none;
109- }
110- }
111- @media (min-width : 281px ) {
112- .only-small {
113- display : none;
114- }
115- }
116- .t-subtle {
117- color : var (--color-foreground--50 );
118- }
119-
12067 gl-home-account-content {
12168 margin-bottom : 0 ;
12269 }
@@ -148,10 +95,10 @@ export const inlineNavStyles = css`
14895 color : inherit;
14996 text-decoration : none;
15097 }
151- .vscode-dark .inline-nav__link : hover {
98+ : host-context ( .vscode-dark ) .inline-nav__link : hover {
15299 background-color : var (--color-background--lighten-10 );
153100 }
154- .vscode-light .inline-nav__link : hover {
101+ : host-context ( .vscode-light ) .inline-nav__link : hover {
155102 background-color : var (--color-background--darken-10 );
156103 }
157104 @media (max-width : 370px ) {
@@ -172,6 +119,15 @@ export const inlineNavStyles = css`
172119 margin-left : 0.2rem ;
173120 }
174121 }
122+
123+ .promo-banner {
124+ text-align : center;
125+ margin-bottom : 1rem ;
126+ }
127+ .promo-banner--eyebrow {
128+ color : var (--color-foreground--50 );
129+ margin-bottom : 0.2rem ;
130+ }
175131` ;
176132
177133export const buttonStyles = css `
@@ -270,14 +226,6 @@ export const alertStyles = css`
270226 background-color : var (--color-alert-errorBackground );
271227 border-left-color : var (--color-alert-errorBorder );
272228 }
273-
274- gl-button .is-basic {
275- max-width : 300px ;
276- width : 100% ;
277- }
278- gl-button .is-basic + gl-button .is-basic {
279- margin-top : 1rem ;
280- }
281229` ;
282230
283231export const navListStyles = css `
0 commit comments