File tree Expand file tree Collapse file tree 1 file changed +29
-51
lines changed
packages/site-kit/src/lib/components Expand file tree Collapse file tree 1 file changed +29
-51
lines changed Original file line number Diff line number Diff line change 2222
2323{#if visible }
2424 <div class ="banner" transition:fade ={{ duration : 400 , easing : quintOut }}>
25- <div class =" main-area" >
26- <a href ={banner .href }>
27- {#if banner .content .lg }
28- <span class ="lg" >{banner .content .lg }</span >
29- {/if }
25+ <a href ={banner .href }>
26+ {#if banner .content .lg }
27+ <span class ="large" >{banner .content .lg }</span >
28+ {/if }
3029
31- {#if banner .content .sm }
32- <span class ="sm" >{banner .content .sm }</span >
33- {/if }
34- </a >
30+ {#if banner .content .sm }
31+ <span class ="small" >{banner .content .sm }</span >
32+ {/if }
3533
3634 {#if banner .arrow }
3735 <Icon name =" arrow-right" size =" 1.2em" />
3836 {/if }
39- </div >
37+ </a >
4038
4139 <button
4240 class =" close-button"
41+ aria-label =" Dismiss"
4342 onclick ={() => {
4443 $hidden [banner .id ] = true ;
4544 }}
5251<style >
5352 .banner {
5453 position : fixed ;
55- bottom : 0 ;
54+ top : 0 ;
5655 left : 0 ;
5756 right : 0 ;
5857 z-index : 80 ;
59-
6058 display : flex ;
6159 justify-content : center ;
6260 align-items : center ;
63-
6461 font : var (--sk-font-ui-medium );
65-
6662 overflow-y : auto ;
67-
6863 width : 100% ;
69- height : max-content ;
70- }
71-
72- .banner {
73- text-align : center ;
64+ height : var (--sk-banner-height );
7465 background : var (--sk-theme-1-variant );
7566 color : white ;
76- padding : 8px ;
77- }
78-
79- .banner a {
80- color : hsl (0 , 0% , 99% );
67+ padding : 0 3rem ;
8168 }
8269
8370 button {
8471 position : absolute ;
8572 top : 0 ;
8673 right : 1rem ;
87-
88- display : flex ;
89- align-items : center ;
90-
9174 height : 100% ;
9275 }
9376
94- .main-area {
95- display : flex ;
96- align-items : center ;
97- gap : 0.6rem ;
98- }
99-
100- .main-area :global(svg ) {
101- transition : transform 0.2s var (--quint-out );
77+ a {
78+ color : inherit ;
79+ width : 100% ;
80+ overflow : hidden ;
81+ text-overflow : ellipsis ;
82+ white-space : pre ;
83+ text-align : center ;
10284 }
10385
104- .main-area :hover :global( svg ) {
105- transform : translateX ( 40 % ) ;
86+ .large {
87+ display : none ;
10688 }
10789
108- a .lg {
90+ .small {
10991 display : initial ;
11092 }
11193
112- a .sm {
113- display : none ;
114- }
115-
116- @media screen and (max-width : 799px ) {
94+ @media (min-width : 800px ) {
11795 .banner {
118- bottom : initial ;
119- top : 0 ;
96+ top : initial ;
97+ bottom : 0 ;
12098 }
12199
122- a .lg {
123- display : none ;
100+ .large {
101+ display : initial ;
124102 }
125103
126- a .sm {
127- display : initial ;
104+ .small {
105+ display : none ;
128106 }
129107 }
130108 </style >
You can’t perform that action at this time.
0 commit comments