Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit f9591b4

Browse files
authored
Add more kapa config (prisma#6004)
Delete custom kapa css
1 parent a90e749 commit f9591b4

File tree

2 files changed

+8
-62
lines changed

2 files changed

+8
-62
lines changed

docusaurus.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,15 @@ const config: Config = {
4444
"data-modal-example-questions":
4545
"How can I setup relations in my schema file?,What is the difference between the 'migrate dev' and 'db push' commands?,Which cache strategy should I use for my query with Prisma Accelerate?,How can I subscribe to database events with Prisma Pulse?",
4646
"data-button-image": "https://www.prisma.io/docs/ai_button.svg",
47+
"data-button-width": "64px",
48+
"data-button-height": "64px",
49+
"data-button-border-radius": "8px",
50+
"data-button-border": "2px solid #71e8df",
4751
"data-button-text-color": "#71E8DF",
4852
"data-button-bg-color": "#2D3748",
49-
"data-button-border": "2px",
5053
"data-button-border-color": "#71e8df",
5154
"data-button-border-style": "solid",
55+
"data-button-text-font-size": "1rem",
5256
"data-button-box-shadow":
5357
"drop-shadow(0px 0.724px 1.251px rgba(14, 18, 28, 0.02)) drop-shadow(0px 1.608px 2.909px rgba(14, 18, 28, 0.04)) drop-shadow(0px 2.793px 5.225px rgba(14, 18, 28, 0.06)) drop-shadow(0px 4.55px 8.671px rgba(14, 18, 28, 0.07)) drop-shadow(0px 7.485px 14.285px rgba(14, 18, 28, 0.08)) drop-shadow(0px 13.358px 24.966px rgba(14, 18, 28, 0.09)) drop-shadow(0px 33px 54px rgba(14, 18, 28, 0.07))",
5458
},

src/css/custom.css

Lines changed: 3 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ h6 code {
365365
-moz-osx-font-smoothing: grayscale;
366366
}
367367

368-
img {
368+
img:not(.mantine-Image-image){
369369
max-width: 100%;
370370
margin-left: 0;
371371
margin-right: 0;
@@ -1037,44 +1037,8 @@ hr {
10371037
}
10381038
}
10391039

1040-
.mantine-Modal-header .mantine-Text-root {
1041-
-webkit-tap-highlight-color: transparent;
1042-
overflow: hidden;
1043-
text-overflow: ellipsis;
1044-
white-space: nowrap;
1045-
color: inherit;
1046-
text-decoration: none;
1047-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
1048-
Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
1049-
font-weight: 700;
1050-
font-size: 1.375rem !important;
1051-
line-height: 1.4;
1052-
margin: 0px;
1053-
}
1054-
1055-
.mantine-Modal-header .mantine-Image-image {
1056-
margin-bottom: 0 !important;
1057-
margin-top: 0 !important;
1058-
width: revert !important;
1059-
height: revert !important;
1060-
}
1061-
1062-
.mantine-Modal-body > div:last-child .mantine-Text-root {
1063-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
1064-
Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
1065-
-webkit-tap-highlight-color: transparent;
1066-
color: rgb(134, 142, 150);
1067-
font-size: 0.75rem !important;
1068-
line-height: 1.55;
1069-
text-decoration: none;
1070-
font-weight: 500;
1071-
}
1072-
1073-
.mantine-Image-image {
1074-
width: 40px !important;
1075-
height: 40px !important;
1076-
margin-bottom: -8px !important;
1077-
margin-top: -3px !important;
1040+
.mantine-Stack-root {
1041+
gap: 0;
10781042
}
10791043

10801044
.preview-badge ::after {
@@ -1311,28 +1275,6 @@ article h6 {
13111275
text-decoration: none;
13121276
}
13131277

1314-
#kapa-widget-container {
1315-
position: fixed;
1316-
bottom: 20px;
1317-
right: 20px;
1318-
padding: 0px;
1319-
border: 2px;
1320-
z-index: 199;
1321-
}
1322-
.mantine-Text-root {
1323-
font-size: 1rem !important;
1324-
}
1325-
#kapa-widget-container .mantine-Button-root {
1326-
border: 2px solid #71e8df !important;
1327-
border-radius: 8px;
1328-
height: 4rem !important;
1329-
width: 4rem !important;
1330-
}
1331-
1332-
.mantine-Image-root img {
1333-
object-fit: contain !important;
1334-
}
1335-
13361278
[data-collapsed] {
13371279
background: transparent;
13381280
padding: 0;

0 commit comments

Comments
 (0)