Skip to content

Commit

Permalink
Merge pull request #180 from CeduDev/master
Browse files Browse the repository at this point in the history
Add support for customizable link text color
  • Loading branch information
gurusabarish committed Aug 11, 2024
2 parents 1781e0d + c2000ea commit df24b51
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 15 deletions.
2 changes: 2 additions & 0 deletions exampleSite/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ params:
# color:
# textColor: "#343a40"
# secondaryTextColor: "#6c757d"
# textLinkColor: "#007bff"
# backgroundColor: "#eaedf0"
# secondaryBackgroundColor: "#64ffda1a"
# primaryColor: "#007bff"
Expand All @@ -97,6 +98,7 @@ params:
# darkmode:
# textColor: "#e4e6eb"
# secondaryTextColor: "#b0b3b8"
# textLinkColor: "#ffffff"
# backgroundColor: "#18191a"
# secondaryBackgroundColor: "#212529"
# primaryColor: "#ffffff"
Expand Down
2 changes: 2 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
:root {
--text-color: {{ .Site.Params.color.textColor | default "#343a40" }};
--text-secondary-color: {{ .Site.Params.color.secondaryTextColor | default "#6c757d" }};
--text-link-color: {{ .Site.Params.color.textLinkColor | default (.Site.Params.color.primaryColor | default "#007bff") }};
--background-color: {{ .Site.Params.color.backgroundColor | default "#eaedf0" }};
--secondary-background-color: {{ .Site.Params.color.secondaryBackgroundColor | default "#64ffda1a" }};
--primary-color: {{ .Site.Params.color.primaryColor | default "#007bff" }};
Expand All @@ -52,6 +53,7 @@
/* dark mode colors */
--text-color-dark: {{ .Site.Params.color.darkmode.textColor | default "#e4e6eb" }};
--text-secondary-color-dark: {{ .Site.Params.color.darkmode.secondaryTextColor | default "#b0b3b8" }};
--text-link-color-dark: {{ .Site.Params.color.darkmode.textLinkColor | default (.Site.Params.color.darkmode.primaryColor | default "#ffffff") }};
--background-color-dark: {{ .Site.Params.color.darkmode.backgroundColor | default "#18191a" }};
--secondary-background-color-dark: {{ .Site.Params.color.darkmode.secondaryBackgroundColor | default "#212529" }};
--primary-color-dark: {{ .Site.Params.color.darkmode.primaryColor | default "#ffffff" }};
Expand Down
2 changes: 1 addition & 1 deletion static/css/about.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#single .page-content a {
display: inline-block;
text-decoration: none;
color: var(--primary-color) !important;
color: var(--text-link-color) !important;
}

#single .page-content a::after {
Expand Down
4 changes: 2 additions & 2 deletions static/css/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ footer a h5 {

footer a {
text-decoration: none;
color: var(--text-secondary-color) !important;
color: var(--text-link-color) !important;
}

footer a:hover {
Expand Down Expand Up @@ -35,7 +35,7 @@ footer .card-footer {
}

footer .card-footer a {
color: var(--text-secondary-color) !important;
color: var(--text-link-color) !important;
border-color: var(--primary-color) !important;
transition: none;
background-color: var(--background-color) !important;
Expand Down
10 changes: 5 additions & 5 deletions static/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ header .navbar.animate {
#hero .hero-content > a {
display: inline-block;
text-decoration: none;
color: var(--primary-color) !important;
color: var(--text-link-color) !important;
}

#hero .hero-content > a::after {
Expand Down Expand Up @@ -243,7 +243,7 @@ header .navbar.animate {
#about a {
display: inline-block;
text-decoration: none;
color: var(--primary-color) !important;
color: var(--text-link-color) !important;
}

#about a::after {
Expand Down Expand Up @@ -322,7 +322,7 @@ header .navbar.animate {
opacity: 0.9;
display: inline-block;
text-decoration: none;
color: var(--primary-color) !important;
color: var(--text-link-color) !important;
}

#experience a::after {
Expand Down Expand Up @@ -432,15 +432,15 @@ header .navbar.animate {
}

#education .card .card-body .education-content a {
color: var(--primary-color) !important;
color: var(--text-link-color) !important;
text-decoration: none;
opacity: 0.9;
}

#education .card .card-body > a h6 {
display: inline-block;
text-decoration: none;
color: var(--primary-color) !important;
color: var(--text-link-color) !important;
}

#education .card .card-body > a h6::after {
Expand Down
2 changes: 1 addition & 1 deletion static/css/projects.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#projects a {
text-decoration: none;
color: var(--text-color) !important;
color: var(--text-link-color) !important;
}

#projects .badge {
Expand Down
12 changes: 6 additions & 6 deletions static/css/single.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#single .page-content a {
display: inline-block;
text-decoration: none;
color: var(--primary-color) !important;
color: var(--text-link-color) !important;
}

#single .page-content a::after {
Expand All @@ -52,7 +52,7 @@
}

#single .page-content h1, #single .page-content h2, #single .page-content h3, #single .page-content h4, #single .page-content h5, #single .page-content h6 {
color: var(--primary-color) !important;
color: var(--text-link-color) !important;
margin-bottom: 0.7em;
opacity: 0.9;
}
Expand Down Expand Up @@ -188,7 +188,7 @@
border-radius: 10px;
background-color: var(--background-color);
text-decoration: none;
color: var(--text-color);
color: var(--text-link-color) !important;
}

#single aside.tags ul.tags-ul li {
Expand Down Expand Up @@ -223,7 +223,7 @@
#single aside.toc .toc-content ol li a, #single aside.toc .toc-content ul li a {
font-size: 16px;
text-decoration: none;
color: var(--text-color);
color: var(--text-link-color) !important;
opacity: 0.9;
}

Expand Down Expand Up @@ -261,7 +261,7 @@
#single aside.social .social-content ul li a {
border: 1px solid var(--primary-color);
padding: .7rem;
color: var(--text-color);
color: var(--text-link-color) !important;
border-radius: 10px;
overflow: hidden;
}
Expand All @@ -273,7 +273,7 @@

#single aside.social .social-content ul li:hover a {
opacity: .8;
color: var(--primary-color);
color: var(--text-link-color) !important;
}

/* Top scroll */
Expand Down
1 change: 1 addition & 0 deletions static/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
--secondary-background-color: var(--secondary-background-color-dark) !important;
--text-color: var(--text-color-dark) !important;
--text-secondary-color: var(--text-secondary-color-dark) !important;
--text-link-color: var(--text-link-color-dark) !important;
--primary-color: var(--primary-color-dark);
--secondary-color: var(--secondary-color-dark);
}
Expand Down

0 comments on commit df24b51

Please sign in to comment.