Skip to content

Commit 432be9f

Browse files
committed
Support dark mode
1 parent cddb340 commit 432be9f

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

src/components/Tooling/Content/AdditionalInfo/AdditionalInfo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const AdditionalInfo = ({ data, selectedTool, onClose }) => {
3131
fill-rule="evenodd"
3232
clip-rule="evenodd"
3333
d="M17.731 1.56775C18.0897 1.20911 18.0897 0.627628 17.731 0.268984C17.3724 -0.0896612 16.7909 -0.0896612 16.4322 0.268984L9 7.70123L1.56775 0.268984C1.20911 -0.0896611 0.627629 -0.0896611 0.268984 0.268984C-0.0896607 0.627628 -0.0896607 1.20911 0.268984 1.56775L7.70123 9L0.268984 16.4323C-0.0896612 16.7909 -0.0896612 17.3724 0.268984 17.731C0.627628 18.0897 1.20911 18.0897 1.56775 17.731L17.731 1.56775ZM12.0065 10.7078C11.6479 10.3491 11.0664 10.3491 10.7078 10.7078C10.3491 11.0664 10.3491 11.6479 10.7078 12.0065L16.4322 17.731C16.7909 18.0897 17.3724 18.0897 17.731 17.731C18.0897 17.3724 18.0897 16.7909 17.731 16.4322L12.0065 10.7078Z"
34-
fill="black"
34+
fill="currentColor"
3535
/>
3636
</svg>
3737
</div>

src/components/Tooling/Content/Content.module.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
border-radius: 27px;
33
/* background: #fff8f3; */
44
padding: 30px;
5+
margin-bottom: 30px;
56
}
67

78
.toolsList {
89
display: grid;
9-
grid-template-columns: 1fr 1fr;
10+
grid-template-columns: 1fr minmax(424px, 1fr);
11+
/* grid-template-columns: 8fr 2fr; */
1012
gap: 30px;
1113
margin-top: 30px;
1214
}

src/layouts/MainLayout.astro

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,20 @@ changeLanguage(content.lang)
137137
margin-right: 20px;
138138
}
139139

140-
.wider-content {
141-
grid-template-columns: minmax(230px, 2fr) 8fr 2fr;
142-
}
143-
144140
#grid-right {
145141
grid-column: 3;
146142
display: flex;
147143
}
148144
}
145+
146+
@media screen and (max-width: 90em) and (min-width: 72em) {
147+
.wider-content {
148+
grid-template-columns: 1fr minmax(0, 68vw);
149+
}
150+
.wider-content #grid-right {
151+
display: none;
152+
}
153+
}
149154
</style>
150155
<style is:global>
151156
.layout > * {

0 commit comments

Comments
 (0)