Skip to content

Commit c83beda

Browse files
committed
chore: improve styles
1 parent a0e619c commit c83beda

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

docusaurus/docs/index.mdx

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@ Explore our guides and examples to integrate Knapsack Pro into your project.
1919

2020
If you have questions, feel free to [contact us](https://knapsackpro.com/contact) directly and we will be happy to help.
2121

22-
## Overview
22+
## Introduction
2323

24-
<div className="grid">
25-
<a href="/overview/" className="cell cell--fixed">
24+
<div className="grid-4">
25+
<a href="/overview/" className="cell">
2626
<span className="cell__image"><img width="70" height="70" src={knapsack}></img></span>
27-
<h2 className="cell__title">Knapsack Overview</h2>
27+
<h2 className="cell__title">Overview</h2>
2828
</a>
29+
30+
<div></div>
31+
32+
<div></div>
2933
</div>
3034

3135
## Libraries
@@ -63,23 +67,29 @@ Can't see your language/testing framework above? [Let us know](https://docs.goog
6367

6468
You can still use Knapsack Pro by writing your integration on top of the JavaScript SDK or using the Knapsack Pro API:
6569

66-
<div className="grid">
67-
<a href="https://docs.knapsackpro.com/2020/how-to-build-native-integration-with-knapsack-pro-api-to-run-tests-in-parallel-for-any-test-runner-testing-framework" target="_blank" rel="noopener noreferrer" className="cell cell--fixed">
70+
<div className="grid-4">
71+
<a href="https://docs.knapsackpro.com/2020/how-to-build-native-integration-with-knapsack-pro-api-to-run-tests-in-parallel-for-any-test-runner-testing-framework" target="_blank" rel="noopener noreferrer" className="cell">
6872
<div className="cell__image"><img width="70" height="70" src={javascript}></img></div>
6973
<h2 className="cell__title">JavaScript / TypeScript</h2>
7074
</a>
7175

72-
<a href="https://docs.knapsackpro.com/2021/how-to-build-knapsack-pro-api-client-from-scratch-in-any-programming-language" target="_blank" rel="noopener noreferrer" className="cell cell--fixed">
76+
<a href="https://docs.knapsackpro.com/2021/how-to-build-knapsack-pro-api-client-from-scratch-in-any-programming-language" target="_blank" rel="noopener noreferrer" className="cell">
7377
<div className="cell__image"><img width="70" height="70" src={api}></img></div>
7478
<h2 className="cell__title">Other Language</h2>
7579
</a>
80+
81+
<div></div>
7682
</div>
7783

7884
## Troubleshooting
7985

80-
<div className="grid">
81-
<a href="/troubleshooting/" className="cell cell--fixed" style={{width: 'auto'}}>
86+
<div className="grid-4">
87+
<a href="/troubleshooting/" className="cell" style={{width: 'auto'}}>
8288
<div className="cell__image"><img width="70" height="70" src={troubleshooting}></img></div>
83-
<h2 className="cell__title">Troubleshooting</h2>
89+
<h2 className="cell__title">Trouble<wbr/>shoot</h2>
8490
</a>
91+
92+
<div></div>
93+
94+
<div></div>
8595
</div>

docusaurus/src/css/custom.css

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,6 @@ li {
119119

120120
/* Welcome */
121121

122-
.grid {
123-
display: flex;
124-
flex-wrap: wrap;
125-
gap: 10px;
126-
margin-bottom: var(--ifm-paragraph-margin-bottom);
127-
}
128-
129122
.grid-4 {
130123
display: grid;
131124
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
@@ -145,10 +138,6 @@ li {
145138
padding: 10px 20px;
146139
}
147140

148-
.cell--fixed {
149-
width: 265px;
150-
}
151-
152141
.cell:hover {
153142
border-color: var(--ifm-pagination-nav-color-hover);
154143
color: var(--ifm-heading-color);
@@ -174,8 +163,9 @@ li {
174163
}
175164

176165
.cell__title {
177-
display: inline-block;
166+
font-size: 1.4rem;
178167
margin: 0;
168+
min-width: 0;
179169
}
180170

181171
/* Overview */

0 commit comments

Comments
 (0)