Skip to content

Commit 8bd1d06

Browse files
committed
fix: Fix minor CSS issues
1 parent d1fb9de commit 8bd1d06

File tree

1 file changed

+25
-3
lines changed
  • site/themes/arangodb-docs-theme/static/css

1 file changed

+25
-3
lines changed

site/themes/arangodb-docs-theme/static/css/theme.css

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,24 @@ ul ul, ul ol, ol ul, ol ol {
209209
color: var(--gray-950);
210210
}
211211

212+
.link-internal:has(code) {
213+
border-bottom: 2px solid var(--green-600);
214+
font-size: 14px;
215+
overflow: auto;
216+
word-wrap: break-word;
217+
margin: 0;
218+
padding: 4px;
219+
word-break: break-word;
220+
border-radius: 0px;
221+
background: var(--gray-100);
222+
box-shadow: none;
223+
color: var(--gray-950);
224+
}
225+
.link-internal > code {
226+
background-color: transparent;
227+
border: none;
228+
}
229+
212230
.link-internal > i {
213231
color: var(--gray-950);
214232
text-decoration: none;
@@ -1229,7 +1247,7 @@ header .logo {
12291247
font-weight: bold;
12301248
--tw-bg-opacity: 0.2;
12311249
background-color: var(--gray-100);
1232-
border-radius: 0.75rem;
1250+
border-radius: 4px;
12331251
}
12341252

12351253
#TableOfContents .is-active {
@@ -1422,7 +1440,6 @@ li > code {
14221440
.copy-to-clipboard-button {
14231441
position: absolute;
14241442
right: 16px;
1425-
display: flex;
14261443
align-items: center;
14271444
justify-content: center;
14281445
position: absolute;
@@ -1433,6 +1450,7 @@ li > code {
14331450
margin: 4px;
14341451
border-radius: 1px;
14351452
opacity: 0.7;
1453+
display: none;
14361454
}
14371455

14381456
.copy-to-clipboard-button:hover{
@@ -1474,12 +1492,16 @@ li > code {
14741492
white-space: break-spaces;
14751493
color: var(--CODEBLOCK-TEXT-COLOR);
14761494
font-family: Consolas,liberation mono,Menlo,Courier,monospace;
1477-
padding: 44px 16px;
1495+
padding: 1.8rem;
14781496
font-size: 1rem;
14791497
max-height: calc(17 * 1.8rem);
14801498
overflow: hidden;
14811499
}
14821500

1501+
.copy-to-clipboard:hover > .copy-to-clipboard-button {
1502+
display: flex;
1503+
}
1504+
14831505
.copy-to-clipboard > .copy-to-clipboard-code.expanded {
14841506
max-height: 100%;
14851507
}

0 commit comments

Comments
 (0)