Skip to content

Commit 6965264

Browse files
fix: improve scss imports and legacy compiler
1 parent 76b88bc commit 6965264

File tree

33 files changed

+218
-236
lines changed

33 files changed

+218
-236
lines changed

src/lib/animations/Products/Products.svelte

-5
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@
158158
import { postController } from './post';
159159
import Post from './post/post.svelte';
160160
import { anyify } from '$lib/utils/anyify';
161-
import Badge from '$lib/components/ui/Badge.svelte';
162161
163162
/* Basic Animation setup */
164163
let scrollInfo = {
@@ -508,10 +507,6 @@
508507
display: flex;
509508
align-items: center;
510509
gap: 0.75rem;
511-
512-
.web-label {
513-
margin-block-start: 0.25rem;
514-
}
515510
}
516511
517512
h4 {

src/lib/animations/Products/ProductsMobile.svelte

-4
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@
108108
display: flex;
109109
align-items: center;
110110
gap: 0.75rem;
111-
112-
.web-label {
113-
margin-block-start: 0.25rem;
114-
}
115111
}
116112
117113
h4 {

src/lib/animations/Products/functions/phone.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import { flip } from '$lib/utils/flip';
3-
import { crossfade, scale, slide } from 'svelte/transition';
3+
import { scale, slide } from 'svelte/transition';
44
import { functionsController } from '.';
55
66
const { state } = functionsController;

src/lib/animations/Products/post/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { safeAnimate, sleep } from '$lib/animations';
1+
import { safeAnimate } from '$lib/animations';
22
import { createResettable } from '$lib/utils/resettable';
33
import { animate } from 'motion';
44
import { getElSelector } from '../Products.svelte';

src/lib/components/IsLoggedIn.svelte

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script lang="ts">
2-
import Button from './ui/Button.svelte';
32
import { PUBLIC_APPWRITE_DASHBOARD } from '$env/static/public';
43
import { classNames } from '$lib/utils/classnames';
54
import { trackEvent } from '$lib/actions/analytics';

src/lib/components/LogoList.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
<ul
8888
class="web-u-padding-block-start-80 grid grid-cols-3 text-center md:grid-cols-6 md:gap-10"
8989
>
90-
{#each logos as { src, alt, width, height }, i}
90+
{#each logos as { src, alt, width, height }}
9191
<li class="grid place-content-center">
9292
<img {src} {alt} {width} {height} />
9393
</li>

src/lib/components/carousel/CarouselSlide.svelte

+7-9
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,19 @@
55
</li>
66

77
<style lang="scss">
8-
@use '$scss/abstract' as *;
8+
@use '$scss/abstract/functions' as f;
99
1010
.slide {
1111
cursor: grab;
12-
13-
&:active {
14-
cursor: grabbing;
15-
}
12+
flex: 0 0 50%;
13+
min-width: 0;
14+
margin-right: f.pxToRem(16);
1615
1716
@media (max-width: 768px) {
1817
flex: 0 0 100%;
1918
}
20-
21-
flex: 0 0 50%;
22-
min-width: 0;
23-
margin-right: pxToRem(16);
19+
&:active {
20+
cursor: grabbing;
21+
}
2422
}
2523
</style>

src/lib/layouts/Main.svelte

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import { PUBLIC_APPWRITE_DASHBOARD } from '$env/static/public';
2626
import AnnouncementBanner from '$lib/components/AnnouncementBanner.svelte';
2727
import InitBanner from '$lib/components/InitBanner.svelte';
28-
import Button from '$lib/components/ui/Button.svelte';
2928
import { trackEvent } from '$lib/actions/analytics';
3029
3130
export let omitMainId = false;

src/markdoc/layouts/Integration.svelte

+5-20
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import { Root, Slide } from '$lib/components/carousel';
33
import FooterNav from '$lib/components/FooterNav.svelte';
44
import MainFooter from '$lib/components/MainFooter.svelte';
5-
import ProductsGrid from '$lib/components/ProductsGrid.svelte';
65
import { Main } from '$lib/layouts';
76
import { DEFAULT_HOST } from '$lib/utils/metadata';
87
import type { Integration } from '$routes/integrations/+page';
@@ -181,13 +180,8 @@
181180
</Main>
182181

183182
<style lang="scss">
184-
@use '$scss/abstract' as *;
185-
186-
.cta {
187-
min-height: pxToRem(560);
188-
display: flex;
189-
align-items: center;
190-
}
183+
@use '$scss/abstract/functions' as f;
184+
@use '$scss/abstract/variables/devices';
191185
192186
.web-pre-footer-bg {
193187
position: absolute;
@@ -199,24 +193,15 @@
199193
max-inline-size: unset;
200194
max-block-size: unset;
201195
}
202-
/* more tha 9 items */
203-
204-
.l-side-column {
205-
display: flex;
206-
gap: pxToRem(16);
207-
@media #{$break1} {
208-
flex-direction: column;
209-
}
210-
}
211196
212197
.l-grid-2-1 {
213-
@media #{$break1} {
198+
@media #{devices.$break1} {
214199
display: flex;
215200
flex-direction: column;
216201
}
217-
@media #{$break2open} {
202+
@media #{devices.$break2open} {
218203
display: grid;
219-
gap: pxToRem(64);
204+
gap: f.pxToRem(64);
220205
grid-template-columns: repeat(12, 1fr);
221206
}
222207

src/routes/+page.svelte

+1-3
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,7 @@
129129
<span class="web-icon-star shrink-0" aria-hidden="true" />
130130
<span class="text-caption shrink-0 font-medium">New</span>
131131
<div class="web-hero-banner-button-sep" />
132-
<span class="text-caption web-u-trim-1"
133-
>Introducing Database Backups</span
134-
>
132+
<span class="text-caption web-u-trim-1">Introducing Database Backups</span>
135133

136134
<span class="web-icon-arrow-right shrink-0" aria-hidden="true" />
137135
</a>

src/routes/contact-us/enterprise/+page.svelte

+2-6
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,11 @@
7777
<Main>
7878
<div class="web-big-padding-section">
7979
<div id="form" class="web-big-padding-section-level-1 u-padding-0 u-overflow-hidden">
80-
<div
81-
class="web-big-padding-section-level-2 is-margin-replace-padding relative"
82-
>
80+
<div class="web-big-padding-section-level-2 is-margin-replace-padding relative">
8381
<div class="relative">
8482
<div class="web-container relative">
8583
<!-- before submit -->
86-
<div
87-
class="relative u-z-index-1 web-grid-1-1-opt-2 u-gap-32 e-u-row-gap-0"
88-
>
84+
<div class="u-z-index-1 web-grid-1-1-opt-2 u-gap-32 e-u-row-gap-0 relative">
8985
<div>
9086
<div
9187
class="web-u-max-inline-size-none-mobile"

src/routes/docs/+page.svelte

-4
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,6 @@
385385
}
386386
}
387387
388-
.bg-blur {
389-
inset-block-start: -100px;
390-
}
391-
392388
.tech-hero {
393389
@include gradients.border-block-gradient;
394390

src/routes/heroes/+page.svelte

+2-1
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@
355355
</Main>
356356

357357
<style lang="scss">
358+
@use '$scss/abstract/functions' as f;
358359
@use '$scss/abstract/mixins/border-gradient' as gradients;
359360
360361
.hero {
@@ -456,7 +457,7 @@
456457
padding-inline: 4rem;
457458
458459
display: flex;
459-
gap: pxToRem(32);
460+
gap: f.pxToRem(32);
460461
flex-shrink: 0;
461462
462463
> * {

src/routes/init-0/(components)/CountdownCard.svelte

-8
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,4 @@
3434
justify-content: center;
3535
align-items: center;
3636
}
37-
38-
.text-title font-aeonik-pro {
39-
margin-block-start: 0.75rem;
40-
}
41-
42-
.text-sub-body font-medium {
43-
margin-block-start: 0.5rem;
44-
}
4537
</style>

src/routes/init-0/(components)/Ticket.svelte

-6
Original file line numberDiff line numberDiff line change
@@ -413,12 +413,6 @@
413413
z-index: -1;
414414
}
415415
416-
.text-title font-aeonik-pro {
417-
font-size: adjusted(2.5);
418-
line-height: #{math.div(44, 40)}em;
419-
overflow-wrap: break-word;
420-
}
421-
422416
.text-label {
423417
font-size: adjusted(1.5);
424418
line-height: #{math.div(28, 24)}em;

src/routes/init/(components)/CountdownCard.svelte

-8
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,4 @@
3333
align-items: center;
3434
background-color: hsl(var(--web-color-subtle));
3535
}
36-
37-
.text-title font-aeonik-pro {
38-
margin-block-start: 0.75rem;
39-
}
40-
41-
.text-sub-body font-medium {
42-
margin-block-start: 0.5rem;
43-
}
4436
</style>

src/routes/init/(components)/TicketScroll.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@
5858
</div>
5959

6060
<style lang="scss">
61-
@use '$scss/abstract' as *;
61+
@use '$scss/abstract/functions' as f;
6262
6363
.col {
6464
display: flex;
6565
flex-direction: column;
66-
gap: pxToRem(32);
66+
gap: f.pxToRem(32);
6767
6868
@keyframes scroll {
6969
0% {

src/routes/init/(components)/VideoDialog.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
pointer-events: none;
5757
transition: 200ms ease;
5858
59-
&[data-state='open'] {
59+
:global(&[data-state='open']) {
6060
opacity: 1;
6161
pointer-events: all;
6262
}
@@ -82,7 +82,7 @@
8282
pointer-events: none;
8383
transition: 200ms ease;
8484
85-
&[data-state='open'] {
85+
:global(&[data-state='open']) {
8686
opacity: 1;
8787
transform: scale(1);
8888
pointer-events: all;

src/routes/init/(components)/grid/Cell.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
</div>
99

1010
<style lang="scss">
11-
@use '$scss/abstract' as *;
11+
@use '$scss/abstract/functions' as f;
1212
1313
.cell {
1414
display: flex;
1515
flex-direction: column;
16-
gap: pxToRem(32);
16+
gap: f.pxToRem(32);
1717
height: 100%;
1818
1919
@media screen and (min-width: 768px) {

src/routes/init/(components)/grid/Root.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
</div>
99

1010
<style lang="scss">
11-
@use '$scss/abstract' as *;
11+
@use '$scss/abstract/functions' as f;
1212
1313
.grid {
1414
display: flex;
15-
gap: pxToRem(32);
15+
gap: f.pxToRem(32);
1616
flex-direction: column;
1717
1818
@media screen and (min-width: 768px) {

0 commit comments

Comments
 (0)