Skip to content

Commit 961e21d

Browse files
authored
Convert CSS module files to SCSS for consistency (#58158)
1 parent 3e8e7c0 commit 961e21d

File tree

8 files changed

+51
-24
lines changed

8 files changed

+51
-24
lines changed

src/landings/components/ArticleList.module.css renamed to src/landings/components/ArticleList.module.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
border-radius: 0;
66
}
77

8-
h3, span {
8+
h3,
9+
span {
910
user-select: text;
1011
color: var(--fgColor-accent, var(--color-accent-fg));
1112
}

src/landings/components/ArticleList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ArrowRightIcon } from '@primer/octicons-react'
55
import { ActionList } from '@primer/react'
66
import { clsx } from 'clsx'
77
import dayjs from 'dayjs'
8-
import styles from './ArticleList.module.css'
8+
import styles from './ArticleList.module.scss'
99

1010
export type ArticleListPropsT = {
1111
title?: string

src/landings/components/ProductArticlesList.module.css renamed to src/landings/components/ProductArticlesList.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
text-decoration: underline;
1313
}
1414
}
15-
}
15+
}

src/landings/components/ProductArticlesList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ActionList } from '@primer/react'
33
import { ProductTreeNode, useMainContext } from '@/frame/components/context/MainContext'
44
import { Link } from '@/frame/components/Link'
55
import clsx from 'clsx'
6-
import styles from './ProductArticlesList.module.css'
6+
import styles from './ProductArticlesList.module.scss'
77

88
export const ProductArticlesList = () => {
99
const { currentProductTree } = useMainContext()
File renamed without changes.

src/landings/components/SidebarProduct.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ProductTreeNode, useMainContext } from '@/frame/components/context/Main
77
import { useAutomatedPageContext } from '@/automated-pipelines/components/AutomatedPageContext'
88
import { nonAutomatedRestPaths } from '@/rest/lib/config'
99

10-
import styles from './SidebarProduct.module.css'
10+
import styles from './SidebarProduct.module.scss'
1111

1212
export const SidebarProduct = () => {
1313
const router = useRouter()

src/landings/components/journey/JourneyLearningTracks.module.css renamed to src/landings/components/journey/JourneyLearningTracks.module.scss

Lines changed: 44 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
.learningTracks {
2-
border: 1px solid var(--borderColor-default, var(--color-border-default, #d1d9e0));
2+
border: 1px solid
3+
var(--borderColor-default, var(--color-border-default, #d1d9e0));
34
border-radius: 12px;
45
padding: 1.5rem;
5-
padding-bottom: .75rem;
6+
padding-bottom: 0.75rem;
67
margin-bottom: 1rem;
78
margin-left: 1rem;
89
box-shadow:
910
0px 1px 3px 0px rgba(31, 35, 40, 0.08),
1011
0px 1px 0px 0px rgba(31, 35, 40, 0.06);
1112
position: relative;
1213
z-index: 1;
13-
background-color: var(--bgColor-default, var(--color-canvas-default, #ffffff));
14+
background-color: var(
15+
--bgColor-default,
16+
var(--color-canvas-default, #ffffff)
17+
);
1418
}
1519

1620
.trackHeader {
@@ -60,13 +64,14 @@
6064
width: 1.5rem;
6165
height: 1.5rem;
6266
background-color: transparent;
63-
border: 1px solid var(--borderColor-default, var(--color-border-default, #d0d7de));
67+
border: 1px solid
68+
var(--borderColor-default, var(--color-border-default, #d0d7de));
6469
color: var(--fgColor-muted, var(--color-fg-muted, #656d76));
6570
border-radius: 50%;
6671
display: flex;
6772
align-items: center;
6873
justify-content: center;
69-
font-size: 0.70rem;
74+
font-size: 0.7rem;
7075
font-weight: 600;
7176
line-height: 1;
7277
}
@@ -78,12 +83,19 @@
7883

7984
/* Hide only the timeline line that extends below the last badge, preserve everything else */
8085
.timelineContainer :global(.Timeline-Item:last-child::before) {
81-
background: linear-gradient(to bottom, var(--borderColor-muted, var(--color-border-muted)) 0%, var(--borderColor-muted, var(--color-border-muted)) 30%, transparent 30%, transparent 100%) !important;
86+
background: linear-gradient(
87+
to bottom,
88+
var(--borderColor-muted, var(--color-border-muted)) 0%,
89+
var(--borderColor-muted, var(--color-border-muted)) 30%,
90+
transparent 30%,
91+
transparent 100%
92+
) !important;
8293
}
8394

8495
.timelineBadge {
8596
background-color: var(--color-canvas-subtle, #f6f8fa) !important;
86-
border: 1px solid var(--borderColor-default, var(--color-border-default, #d1d9e0)) !important;
97+
border: 1px solid
98+
var(--borderColor-default, var(--color-border-default, #d1d9e0)) !important;
8799
}
88100

89101
/* Fix entire timeline component overlapping header */
@@ -118,7 +130,8 @@
118130
height: 2rem;
119131
background-color: var(--color-canvas-subtle, #f6f8fa);
120132
color: var(--fgColor-muted, var(--color-fg-muted));
121-
border: 1px solid var(--borderColor-default, var(--color-border-default, #d1d9e0));
133+
border: 1px solid
134+
var(--borderColor-default, var(--color-border-default, #d1d9e0));
122135
border-radius: 50%;
123136
display: inline-flex;
124137
align-items: center;
@@ -131,34 +144,43 @@
131144

132145
/* Add connecting line from badge downward */
133146
.mobileBadge::after {
134-
content: '';
147+
content: "";
135148
position: absolute;
136149
left: 50%;
137150
top: 100%;
138151
width: 1px;
139152
height: 2.5rem;
140-
background-color: var(--borderColor-default, var(--color-border-default, #d1d9e0));
153+
background-color: var(
154+
--borderColor-default,
155+
var(--color-border-default, #d1d9e0)
156+
);
141157
transform: translateX(-50%);
142158
z-index: 1;
143159
}
144160

145161
/* Add connecting line above badge (except first item) */
146162
.mobileItem:not(:first-child) .mobileBadge::before {
147-
content: '';
163+
content: "";
148164
position: absolute;
149165
left: 50%;
150166
bottom: 100%;
151167
width: 1px;
152168
height: 2.5rem;
153-
background-color: var(--borderColor-default, var(--color-border-default, #d1d9e0));
169+
background-color: var(
170+
--borderColor-default,
171+
var(--color-border-default, #d1d9e0)
172+
);
154173
transform: translateX(-50%);
155174
z-index: 1;
156175
}
157176

158177
.mobileConnector {
159178
width: 1px;
160179
height: 1rem;
161-
background-color: var(--borderColor-default, var(--color-border-default, #d1d9e0));
180+
background-color: var(
181+
--borderColor-default,
182+
var(--color-border-default, #d1d9e0)
183+
);
162184
margin: 0 auto;
163185
}
164186

@@ -167,7 +189,8 @@
167189
}
168190

169191
.mobileItem .mobileTile {
170-
border: 1px solid var(--borderColor-default, var(--color-border-default, #d1d9e0));
192+
border: 1px solid
193+
var(--borderColor-default, var(--color-border-default, #d1d9e0));
171194
border-radius: 12px;
172195
padding: 1rem;
173196
margin-top: 0.5rem;
@@ -177,15 +200,18 @@
177200
0px 1px 0px 0px rgba(31, 35, 40, 0.06);
178201
position: relative;
179202
z-index: 3;
180-
background-color: var(--bgColor-default, var(--color-canvas-default, #ffffff));
203+
background-color: var(
204+
--bgColor-default,
205+
var(--color-canvas-default, #ffffff)
206+
);
181207
}
182208

183209
/* Desktop: show Timeline component */
184210
@media (min-width: 768px) {
185211
.mobileLayout {
186212
display: none;
187213
}
188-
214+
189215
.timelineContainer {
190216
display: block;
191217
}
@@ -208,6 +234,6 @@
208234
}
209235

210236
.trackHeader h3 {
211-
margin-bottom: .50rem;
237+
margin-bottom: 0.5rem;
212238
}
213-
}
239+
}

src/landings/components/journey/JourneyLearningTracks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ChevronDownIcon, ChevronUpIcon } from '@primer/octicons-react'
33
import { Button, Details, Timeline, Token, useDetails } from '@primer/react'
44
import { Link } from '@/frame/components/Link'
55
import { JourneyTrack } from '@/journeys/lib/journey-path-resolver'
6-
import styles from './JourneyLearningTracks.module.css'
6+
import styles from './JourneyLearningTracks.module.scss'
77

88
type JourneyLearningTracksProps = {
99
tracks: JourneyTrack[]

0 commit comments

Comments
 (0)