Skip to content

Commit 3ddf4ec

Browse files
committed
remove dead CSS, dead code and unused exports
1 parent 6bf5389 commit 3ddf4ec

17 files changed

Lines changed: 5 additions & 222 deletions

src/components/Button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import * as css from './Button.module.css';
2020
* @param {ButtonProps & React.HTMLAttributes<HTMLElement>} props
2121
* @returns {React.ReactElement}
2222
*/
23-
export const Button = ({
23+
const Button = ({
2424
className,
2525
to,
2626
href,

src/components/Footer.module.css

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -95,21 +95,6 @@
9595
}
9696
}
9797

98-
.bottom {
99-
display: flex;
100-
font-size: var(--maru-medium);
101-
font-family: var(--maru-mono);
102-
justify-content: space-between;
103-
border-left: var(--border);
104-
border-bottom: var(--border);
105-
106-
& span {
107-
line-height: var(--baseline);
108-
display: block;
109-
font-weight: 600;
110-
}
111-
}
112-
11398
.socialLinks,
11499
.navBox {
115100
padding-top: var(--spacing-small);
@@ -175,10 +160,6 @@
175160
border-bottom: var(--border);
176161
}
177162

178-
.image {
179-
opacity: 0.75;
180-
}
181-
182163
.copyright {
183164
font-family: var(--maru-mono);
184165
font-size: var(--maru-small);

src/components/HomepageScene.module.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,6 @@
289289
height: var(--baseline-1of5);
290290
}
291291

292-
.subheader {
293-
overflow: hidden;
294-
}
295-
296292
.paragraph {
297293
overflow: hidden;
298294
}

src/components/PassengerShowcaseForm.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
font-size: var(--maru-small);
1818
line-height: 17px;
1919

20-
&.radio-label {
20+
&.radioLabel {
2121
/* display: inline; */
2222
margin-right: var(--spacing-small);
2323
color: var(--text-color);

src/components/Select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import cn from 'classnames';
44

55
import * as css from './Select.module.css';
66

7-
export const Select = ({
7+
const Select = ({
88
title,
99
options,
1010
selected,

src/components/ShareButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Button from './Button';
55

66
import * as css from './ShareButton.module.css';
77

8-
export const ShareButton = ({ className, variant, wrapped, text }) => {
8+
const ShareButton = ({ className, variant, wrapped, text }) => {
99
const [isCopied, setIsCopied] = useState(false);
1010

1111
const handleCopy = async () => {

src/components/Tabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import ShareButton from './ShareButton';
55

66
import * as css from './Tabs.module.css';
77

8-
export const Tabs = ({ className, variant, labels, children }) => {
8+
const Tabs = ({ className, variant, labels, children }) => {
99
const [activeIndex, setActiveIndex] = useState(0);
1010
const [wrapShareButton, setWrapShareButton] = useState(false);
1111
const isFirstRender = useRef(true);

src/components/Tags.module.css

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,6 @@
2828
}
2929
}
3030

31-
.tags.singleLine {
32-
margin-top: 0;
33-
}
34-
35-
@media (--reduced) {
36-
.tags {
37-
display: none;
38-
}
39-
}
40-
4131
.showButton {
4232
cursor: pointer;
4333
font-size: inherit;

src/components/challenges/Card.module.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.root {
2-
font-family: var(--maru-mono);
3-
}
4-
51
.challenge {
62
width: 48%;
73
display: flex;

src/components/challenges/VideoSection.module.css

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,6 @@
8080
padding-bottom: var(--baseline-box-11x);
8181
}
8282

83-
.youtube {
84-
position: absolute;
85-
top: 0;
86-
left: 0;
87-
width: 100%;
88-
height: 100%;
89-
}
90-
9183
/* Timeline section */
9284

9385
.timelineContainer {
@@ -306,10 +298,6 @@
306298
top: calc(50% - 3px);
307299
}
308300

309-
.unCollapsed .progress {
310-
display: none;
311-
}
312-
313301
.unCollapsed .tabs,
314302
.unCollapsed .timeline {
315303
border-right: var(--border-cyan);

0 commit comments

Comments
 (0)