mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-06 16:15:51 +00:00
fix(css): contact widget style wasn't applied if widget was renamed
This commit is contained in:
1 parent
e79c1ee36a
commit
2f9d2ab80f
2 files changed
+6
-6
No files matched your search
@@ -1220,24 +1220,24 @@ article .article-metadata {
|
||||
* Contact
|
||||
**************************************************/
|
||||
|
||||
#contact.home-section .fa-ul {
|
||||
.contact-widget .fa-ul {
|
||||
margin-left: 3.14285714rem; /* Must be > `fa-2x` icon size. */
|
||||
}
|
||||
|
||||
#contact.home-section .fa-li {
|
||||
.contact-widget .fa-li {
|
||||
position: absolute;
|
||||
left: -3.14285714rem; /* Negative of `#contact.home-section .fa-ul` margin. */
|
||||
left: -3.14285714rem; /* Negative of `.contact-widget .fa-ul` margin. */
|
||||
width: 2rem; /* Match `fa-2x` icon size. */
|
||||
top: 0.14285714em; /* Default FA value. */
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#contact.home-section li {
|
||||
.contact-widget li {
|
||||
padding-top: 0.8rem; /* Align text with bottom of `fa-2x` icon. */
|
||||
margin-bottom: 0.3rem;
|
||||
}
|
||||
|
||||
#contact.home-section li:last-of-type {
|
||||
.contact-widget li:last-of-type {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{{ $autolink := default true $page.Params.autolink }}
|
||||
|
||||
<!-- Contact widget -->
|
||||
<div class="row">
|
||||
<div class="row contact-widget">
|
||||
<div class="col-12 col-lg-4 section-heading">
|
||||
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
|
||||
Reference in new issue
Block a user