Skip to content

Commit

Permalink
UI: refactor tabs (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjdominguez authored Apr 22, 2024
1 parent 05c10cf commit ae0ff60
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
--next-prev-border-color: #e5e7eb;
--search-dark-bg-color: #28334f;
--ifm-color-info-dark: #c6d6ff;
--purple-pill: #8c49fa;
--ifm-menu-link-sublist-icon: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15,12.5,L10,7.5L5,12.5" stroke="gray" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

Expand Down Expand Up @@ -373,7 +374,9 @@ ol li {
background-color: var(--base-neutral-0);
padding: 0;
padding: 4px 8px 4px 16px;
box-shadow: 0px 1px 2px 0px rgba(28, 38, 63, 0.06), 0px 1px 3px 0px rgba(28, 38, 63, 0.1);
box-shadow:
0px 1px 2px 0px rgba(28, 38, 63, 0.06),
0px 1px 3px 0px rgba(28, 38, 63, 0.1);
width: 120px;
}

Expand Down Expand Up @@ -404,7 +407,9 @@ ol li {
top: calc(100% - var(--ifm-navbar-item-padding-vertical) + 0.6rem);
width: 120px;
min-width: 120px;
box-shadow: 0px 1px 2px 0px rgba(28, 38, 63, 0.06), 0px 1px 3px 0px rgba(28, 38, 63, 0.1);
box-shadow:
0px 1px 2px 0px rgba(28, 38, 63, 0.06),
0px 1px 3px 0px rgba(28, 38, 63, 0.1);
margin-top: -6px;
}

Expand Down Expand Up @@ -439,7 +444,9 @@ ol li {
max-width: 370px;
width: 100%;
padding: 8px 20px 8px 16px;
box-shadow: 0px 1px 2px 0px rgba(28, 38, 63, 0.06), 0px 1px 3px 0px rgba(28, 38, 63, 0.1);
box-shadow:
0px 1px 2px 0px rgba(28, 38, 63, 0.06),
0px 1px 3px 0px rgba(28, 38, 63, 0.1);
background-color: var(--base-neutral-0);
border: 1px solid transparent;
}
Expand All @@ -456,7 +463,9 @@ div:has(> .DocSearch.DocSearch-Button) {
.DocSearch-Button:focus,
.DocSearch-Button:hover {
border: 1px solid var(--primary-blue-600);
box-shadow: 0px 1px 2px 0px rgba(28, 38, 63, 0.06), 0px 1px 3px 0px rgba(28, 38, 63, 0.1) !important;
box-shadow:
0px 1px 2px 0px rgba(28, 38, 63, 0.06),
0px 1px 3px 0px rgba(28, 38, 63, 0.1) !important;
}

.DocSearch-Button-Keys {
Expand Down Expand Up @@ -726,7 +735,7 @@ iframe {
.tabs__item--active,
.tabs__item--active:hover {
border-bottom-color: var(--primary-blue-600);
background-color: #8c49fa;
background-color: var(--purple-pill);
color: var(--base-neutral-0) !important;
box-shadow: 0px 1px 2px 0px rgba(28, 38, 63, 0.05);
}
Expand Down Expand Up @@ -1447,3 +1456,20 @@ table td {
box-shadow: var(--ifm-global-shadow-md);
cursor: pointer;
}

/* Additional styling for .tabs-container */
.tabs-container {
padding: 1rem;
padding-bottom: 1rem;
border-radius: 0.5rem;
border: solid 1px var(--purple-pill);
box-shadow: var(--ifm-global-shadow-md);
}

[data-theme='dark'] .tabs-container {
background: var(--color-gray-82);
}

.tabs-container code {
background: var(--color-gray-74);
}

0 comments on commit ae0ff60

Please sign in to comment.