File tree Expand file tree Collapse file tree 1 file changed +29
-6
lines changed
apps/svelte.dev/src/routes/_home Expand file tree Collapse file tree 1 file changed +29
-6
lines changed Original file line number Diff line number Diff line change 88 <enhanced:img src =" ./companies/light/ikea.svg" alt =" Ikea logo" />
99 <enhanced:img src =" ./companies/light/mullvad.svg" alt =" Mullvad logo" />
1010 <enhanced:img src =" ./companies/light/stack-overflow.svg" alt =" Mullvad logo" />
11+ <enhanced:img src =" ./companies/light/yelp.svg" alt =" New York Times logo" />
1112 <enhanced:img src =" ./companies/light/square.svg" alt =" Mullvad logo" />
1213 <enhanced:img src =" ./companies/light/apple.svg" alt =" Apple logo" />
1314 </div >
1617 <div class =" wing" >
1718 <div class =" logos" >
1819 <enhanced:img src =" ./companies/light/spotify.svg" alt =" Spotify logo" />
19- <enhanced:img src =" ./companies/light/yelp.svg" alt =" New York Times logo" />
2020 <enhanced:img src =" ./companies/light/nyt.svg" alt =" New York Times logo" />
2121 <enhanced:img src =" ./companies/light/logitech.svg" alt =" Logitech logo" />
2222 <enhanced:img src =" ./companies/light/decathlon.svg" alt =" Decathlon logo" />
2929 .companies {
3030 --h2-width : 12em ;
3131 display : grid ;
32- grid-template-columns : 1 fr auto 1 fr ;
32+ gap : 1 rem ;
3333 align-items : center ;
34- margin : 6rem 0 ;
34+ margin : 15rem 0 5rem 0 ;
35+ mask-size : 100% ;
36+ mask-image : radial-gradient (ellipse 110rem 500% , white , white 70% , transparent );
3537 }
3638
3739 h2 {
38- width : var (--h2-width );
40+ /* width: var(--h2-width); */
41+ width : 100% ;
3942 text-align : center ;
4043 margin : 0 auto ;
44+ position : absolute ;
45+ z-index : 2 ;
46+ filter : drop-shadow (0 0 1rem var (--sk-back-1 )) drop-shadow (0 0 1rem var (--sk-back-1 ));
47+ padding : 0 var (--sk-page-padding-side );
4148 }
4249
4350 .wing {
4653 }
4754
4855 .logos {
49- position : absolute ;
56+ /* position: absolute; */
5057 display : flex ;
5158 height : 100% ;
5259 align-items : center ;
5360 top : 0 ;
54- gap : 2 rem ;
61+ gap : 4 rem ;
5562 opacity : 0.5 ;
5663
5764 .wing :first-child & {
6774 width : auto ;
6875 }
6976 }
77+
78+ @media (min-width : 800px ) {
79+ .companies {
80+ grid-template-columns : 1fr auto 1fr ;
81+ align-items : center ;
82+ }
83+
84+ h2 {
85+ position : relative ;
86+ width : var (--h2-width );
87+ }
88+
89+ .logos {
90+ position : absolute ;
91+ }
92+ }
7093 </style >
You can’t perform that action at this time.
0 commit comments