Skip to content

Commit

Permalink
add text wrap to endpoint cards
Browse files Browse the repository at this point in the history
  • Loading branch information
Woozl committed Dec 6, 2023
1 parent 8dbf305 commit cabfd06
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
* work well for content-centric websites.
*/

.text--truncate {
overflow: unset !important;
text-overflow: unset !important;
white-space: unset !important;
}

/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #2e8555;
Expand All @@ -18,7 +24,7 @@
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
[data-theme="dark"] {
--ifm-color-primary: #25c2a0;
--ifm-color-primary-dark: #21af90;
--ifm-color-primary-darker: #1fa588;
Expand All @@ -30,12 +36,12 @@
}

/* Sidebar Method labels */
.api-method>.menu__link {
.api-method > .menu__link {
align-items: center;
justify-content: start;
}

.api-method>.menu__link::before {
.api-method > .menu__link::before {
width: 50px;
height: 20px;
font-size: 12px;
Expand All @@ -51,27 +57,27 @@
color: white;
}

.get>.menu__link::before {
.get > .menu__link::before {
content: "get";
background-color: var(--ifm-color-primary);
}

.put>.menu__link::before {
.put > .menu__link::before {
content: "put";
background-color: var(--openapi-code-blue);
}

.post>.menu__link::before {
.post > .menu__link::before {
content: "post";
background-color: var(--openapi-code-green);
}

.delete>.menu__link::before {
.delete > .menu__link::before {
content: "del";
background-color: var(--openapi-code-red);
}

.patch>.menu__link::before {
.patch > .menu__link::before {
content: "patch";
background-color: var(--openapi-code-orange);
}
}

0 comments on commit cabfd06

Please sign in to comment.