Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update with new colors #94

Merged
merged 4 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pages/images/DelegationModel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion pages/images/ParachainModel-Dark.svg
Copy link
Contributor Author

@shannonwells shannonwells Oct 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a lot of the "cream" color from a previous update. This was converted to white.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion pages/images/ParachainModel.svg
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here but it's more obvious from the picture.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 15 additions & 4 deletions theme/css/chrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ html {
scrollbar-color: var(--scrollbar) var(--bg);
}

.content h2 a:link
{
color: var(--warning-border)
}


#searchresults a,
.content a:link,
a:visited,
a > .hljs {
color: var(--links);
}
Expand Down Expand Up @@ -138,8 +142,6 @@ a > .hljs {
.menu-bar:visited,
.nav-chapters,
.nav-chapters:visited,
.mobile-nav-chapters,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two being here was making it impossible to see button links and some links within text. The style was/is applied regardless of whether it's actually mobile size. I didn't correct that part, just made it visible.

.mobile-nav-chapters:visited,
.menu-bar .icon-button,
.menu-bar a:link,
.menu-bar a:visited {
Expand Down Expand Up @@ -198,6 +200,15 @@ a > .hljs {
padding: 10px 20px;
border-radius: 5px;
background-color: var(--page-nav-bg);
color: var(--links);
}

.mobile-nav-chapters:hover {
color: var(--links-hover);
}

.mobile-nav-chapters:active {
color: var(--links);
}

/* Only Firefox supports flow-relative values */
Expand Down
2 changes: 2 additions & 0 deletions theme/css/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,11 @@ h6:target::before {
}
.content a {
text-decoration: none;
color: var(--links)
}
.content a:hover {
text-decoration: underline;
color: var(--links-hover);
}
.content img,
.content video {
Expand Down
8 changes: 5 additions & 3 deletions theme/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,13 @@
}

.light {
--bg: #fefaf3;
--bg: #fff;
--fg: #000;
--headers: #19455e;
--headers-alt: #f77c47;

--sidebar-bg: #f4ecde;
--sidebar-fg: #000;
--sidebar-bg: #19455E;
--sidebar-fg: #fff;
--sidebar-non-existant: var(--sidebar-fg);
--sidebar-active: #4ba0a5;
--sidebar-spacer: var(--sidebar-bg);
Expand All @@ -82,6 +83,7 @@
--icons-hover: #4ba0a5;

--links: var(--sidebar-active);
--links-hover: var(--headers-alt);

--inline-code-color: #301900;

Expand Down