Merge pull request #180 from CeduDev/master
Add support for customizable link text color
This commit is contained in:
@@ -89,6 +89,7 @@ params:
|
|||||||
# color:
|
# color:
|
||||||
# textColor: "#343a40"
|
# textColor: "#343a40"
|
||||||
# secondaryTextColor: "#6c757d"
|
# secondaryTextColor: "#6c757d"
|
||||||
|
# textLinkColor: "#007bff"
|
||||||
# backgroundColor: "#eaedf0"
|
# backgroundColor: "#eaedf0"
|
||||||
# secondaryBackgroundColor: "#64ffda1a"
|
# secondaryBackgroundColor: "#64ffda1a"
|
||||||
# primaryColor: "#007bff"
|
# primaryColor: "#007bff"
|
||||||
@@ -97,6 +98,7 @@ params:
|
|||||||
# darkmode:
|
# darkmode:
|
||||||
# textColor: "#e4e6eb"
|
# textColor: "#e4e6eb"
|
||||||
# secondaryTextColor: "#b0b3b8"
|
# secondaryTextColor: "#b0b3b8"
|
||||||
|
# textLinkColor: "#ffffff"
|
||||||
# backgroundColor: "#18191a"
|
# backgroundColor: "#18191a"
|
||||||
# secondaryBackgroundColor: "#212529"
|
# secondaryBackgroundColor: "#212529"
|
||||||
# primaryColor: "#ffffff"
|
# primaryColor: "#ffffff"
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
:root {
|
:root {
|
||||||
--text-color: {{ .Site.Params.color.textColor | default "#343a40" }};
|
--text-color: {{ .Site.Params.color.textColor | default "#343a40" }};
|
||||||
--text-secondary-color: {{ .Site.Params.color.secondaryTextColor | default "#6c757d" }};
|
--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" }};
|
--background-color: {{ .Site.Params.color.backgroundColor | default "#eaedf0" }};
|
||||||
--secondary-background-color: {{ .Site.Params.color.secondaryBackgroundColor | default "#64ffda1a" }};
|
--secondary-background-color: {{ .Site.Params.color.secondaryBackgroundColor | default "#64ffda1a" }};
|
||||||
--primary-color: {{ .Site.Params.color.primaryColor | default "#007bff" }};
|
--primary-color: {{ .Site.Params.color.primaryColor | default "#007bff" }};
|
||||||
@@ -52,6 +53,7 @@
|
|||||||
/* dark mode colors */
|
/* dark mode colors */
|
||||||
--text-color-dark: {{ .Site.Params.color.darkmode.textColor | default "#e4e6eb" }};
|
--text-color-dark: {{ .Site.Params.color.darkmode.textColor | default "#e4e6eb" }};
|
||||||
--text-secondary-color-dark: {{ .Site.Params.color.darkmode.secondaryTextColor | default "#b0b3b8" }};
|
--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" }};
|
--background-color-dark: {{ .Site.Params.color.darkmode.backgroundColor | default "#18191a" }};
|
||||||
--secondary-background-color-dark: {{ .Site.Params.color.darkmode.secondaryBackgroundColor | default "#212529" }};
|
--secondary-background-color-dark: {{ .Site.Params.color.darkmode.secondaryBackgroundColor | default "#212529" }};
|
||||||
--primary-color-dark: {{ .Site.Params.color.darkmode.primaryColor | default "#ffffff" }};
|
--primary-color-dark: {{ .Site.Params.color.darkmode.primaryColor | default "#ffffff" }};
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
#single .page-content a {
|
#single .page-content a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--primary-color) !important;
|
color: var(--text-link-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#single .page-content a::after {
|
#single .page-content a::after {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ footer a h5 {
|
|||||||
|
|
||||||
footer a {
|
footer a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--text-secondary-color) !important;
|
color: var(--text-link-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer a:hover {
|
footer a:hover {
|
||||||
@@ -35,7 +35,7 @@ footer .card-footer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
footer .card-footer a {
|
footer .card-footer a {
|
||||||
color: var(--text-secondary-color) !important;
|
color: var(--text-link-color) !important;
|
||||||
border-color: var(--primary-color) !important;
|
border-color: var(--primary-color) !important;
|
||||||
transition: none;
|
transition: none;
|
||||||
background-color: var(--background-color) !important;
|
background-color: var(--background-color) !important;
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ header .navbar.animate {
|
|||||||
#hero .hero-content > a {
|
#hero .hero-content > a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--primary-color) !important;
|
color: var(--text-link-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#hero .hero-content > a::after {
|
#hero .hero-content > a::after {
|
||||||
@@ -243,7 +243,7 @@ header .navbar.animate {
|
|||||||
#about a {
|
#about a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--primary-color) !important;
|
color: var(--text-link-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#about a::after {
|
#about a::after {
|
||||||
@@ -322,7 +322,7 @@ header .navbar.animate {
|
|||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--primary-color) !important;
|
color: var(--text-link-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#experience a::after {
|
#experience a::after {
|
||||||
@@ -432,7 +432,7 @@ header .navbar.animate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#education .card .card-body .education-content a {
|
#education .card .card-body .education-content a {
|
||||||
color: var(--primary-color) !important;
|
color: var(--text-link-color) !important;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
}
|
}
|
||||||
@@ -440,7 +440,7 @@ header .navbar.animate {
|
|||||||
#education .card .card-body > a h6 {
|
#education .card .card-body > a h6 {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--primary-color) !important;
|
color: var(--text-link-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#education .card .card-body > a h6::after {
|
#education .card .card-body > a h6::after {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#projects a {
|
#projects a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--text-color) !important;
|
color: var(--text-link-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#projects .badge {
|
#projects .badge {
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
#single .page-content a {
|
#single .page-content a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--primary-color) !important;
|
color: var(--text-link-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#single .page-content a::after {
|
#single .page-content a::after {
|
||||||
@@ -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 {
|
#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;
|
margin-bottom: 0.7em;
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
}
|
}
|
||||||
@@ -188,7 +188,7 @@
|
|||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--text-color);
|
color: var(--text-link-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#single aside.tags ul.tags-ul li {
|
#single aside.tags ul.tags-ul li {
|
||||||
@@ -223,7 +223,7 @@
|
|||||||
#single aside.toc .toc-content ol li a, #single aside.toc .toc-content ul li a {
|
#single aside.toc .toc-content ol li a, #single aside.toc .toc-content ul li a {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--text-color);
|
color: var(--text-link-color) !important;
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -261,7 +261,7 @@
|
|||||||
#single aside.social .social-content ul li a {
|
#single aside.social .social-content ul li a {
|
||||||
border: 1px solid var(--primary-color);
|
border: 1px solid var(--primary-color);
|
||||||
padding: .7rem;
|
padding: .7rem;
|
||||||
color: var(--text-color);
|
color: var(--text-link-color) !important;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
@@ -273,7 +273,7 @@
|
|||||||
|
|
||||||
#single aside.social .social-content ul li:hover a {
|
#single aside.social .social-content ul li:hover a {
|
||||||
opacity: .8;
|
opacity: .8;
|
||||||
color: var(--primary-color);
|
color: var(--text-link-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Top scroll */
|
/* Top scroll */
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
--secondary-background-color: var(--secondary-background-color-dark) !important;
|
--secondary-background-color: var(--secondary-background-color-dark) !important;
|
||||||
--text-color: var(--text-color-dark) !important;
|
--text-color: var(--text-color-dark) !important;
|
||||||
--text-secondary-color: var(--text-secondary-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);
|
--primary-color: var(--primary-color-dark);
|
||||||
--secondary-color: var(--secondary-color-dark);
|
--secondary-color: var(--secondary-color-dark);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user