Skip to content

Commit

Permalink
Adding tab borders
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewshaver committed Dec 5, 2024
1 parent ce8679b commit d65b95a
Showing 1 changed file with 63 additions and 1 deletion.
64 changes: 63 additions & 1 deletion website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -2143,4 +2143,66 @@ table th {
[data-theme='dark'] table th {
color: #000000; /* Black text on darker background */
font-weight: bold;
}
}

.tabs {
background-color: transparent;
padding: 10px;
}

/* Default color and border for tabs */
.tabs__item {
background-color: #f9fbfc; /* Sets the tab color the same as the file borders */
border: 2px solid #ccc;
padding: 5px 10px;
margin-right: 5px;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s;
}

/* Default color and border for tabs in dark mode */
[data-theme='dark'] .tabs__item {
background-color: #000000;
border: 1px solid #ccc;
padding: 5px 10px;
margin-right: 5px;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s;
}

/*Color when hovering over tabs */
.tabs__item:hover {
background-color: #D95B3B;
}

/* Color when the tab is clicked*/
.tabs__item--active {
background-color: #D95B3B;
color: rgb(0, 0, 0);
border-color: #D95B3B;
}

[data-theme='dark'] .tabs__item--active {
background-color: #D95B3B;
color: white;
border-color: #D95B3B;
}

/* Sets the tab content border and background color */
[data-theme='dark'] .tabs-container{
border: 1px solid #ccc;
padding: 15px;
border-radius: 10px;
margin-top: 10px;
background-color: transparent;
}

[data-theme='light'] .tabs-container{
border: 1px solid #000000;
padding: 15px;
border-radius: 10px;
margin-top: 10px;
background-color: transparent;
}

0 comments on commit d65b95a

Please sign in to comment.