mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
fix: style lint issues
This commit is contained in:
parent
f1da2c5ca8
commit
ac4b4e3157
6 changed files with 24 additions and 14 deletions
|
@ -81,7 +81,7 @@ a.summary-link {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card .card-image.hover-overlay:before {
|
.card .card-image.hover-overlay::before {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -94,7 +94,7 @@ a.summary-link {
|
||||||
transition: all 0.2s ease-out;
|
transition: all 0.2s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card .card-image.hover-overlay:after {
|
.card .card-image.hover-overlay::after {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -115,10 +115,10 @@ a.summary-link {
|
||||||
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
|
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.card:hover .card-image.hover-overlay:before {
|
.card:hover .card-image.hover-overlay::before {
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card:hover .card-image.hover-overlay:after {
|
.card:hover .card-image.hover-overlay::after {
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
.svg-icon {
|
.svg-icon {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
|
||||||
.svg-icon {
|
|
||||||
height: 0.9em;
|
height: 0.9em;
|
||||||
width: 0.9em;
|
width: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,6 +122,7 @@
|
||||||
.theme-dropdown .dropdown-menu {
|
.theme-dropdown .dropdown-menu {
|
||||||
/* Use style from uncollapsable dropdowns to prevent dropdown going off page. */
|
/* Use style from uncollapsable dropdowns to prevent dropdown going off page. */
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
||||||
/* Below style from .dropdown-menu-right to prevent dropdown going off page. */
|
/* Below style from .dropdown-menu-right to prevent dropdown going off page. */
|
||||||
right: 0;
|
right: 0;
|
||||||
left: auto;
|
left: auto;
|
||||||
|
@ -130,6 +131,7 @@
|
||||||
// Allow user to horizontally scroll.
|
// Allow user to horizontally scroll.
|
||||||
// Commented out this feature as it causes dropdowns to appear within the menu bar.
|
// Commented out this feature as it causes dropdowns to appear within the menu bar.
|
||||||
// TODO: re-enable in a way that doesn't break dropdowns.
|
// TODO: re-enable in a way that doesn't break dropdowns.
|
||||||
|
|
||||||
/*
|
/*
|
||||||
.navbar .collapse {
|
.navbar .collapse {
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
|
|
@ -245,7 +245,7 @@ figcaption {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
figcaption.numbered:before {
|
figcaption.numbered::before {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
content: attr(data-pre) counter(captions) attr(data-post);
|
content: attr(data-pre) counter(captions) attr(data-post);
|
||||||
|
@ -259,12 +259,14 @@ pre,
|
||||||
code {
|
code {
|
||||||
font-family: $sta-font-mono, monospace;
|
font-family: $sta-font-mono, monospace;
|
||||||
color: #c7254e;
|
color: #c7254e;
|
||||||
|
|
||||||
/* Match bg of default highlight theme. */
|
/* Match bg of default highlight theme. */
|
||||||
background-color: rgb(248, 248, 248);
|
background-color: rgb(248, 248, 248);
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
margin: 0 0 1rem 0;
|
margin: 0 0 1rem 0;
|
||||||
|
|
||||||
/* Match bg of default highlight theme. */
|
/* Match bg of default highlight theme. */
|
||||||
border-color: rgb(248, 248, 248);
|
border-color: rgb(248, 248, 248);
|
||||||
font-size: 0.7rem;
|
font-size: 0.7rem;
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
.cta-group {
|
.cta-group {
|
||||||
--button-group-margin: 0.75em;
|
--button-group-margin: 0.75em;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
|
@ -59,7 +59,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Big underline style for links in dark sections */
|
/* Big underline style for links in dark sections */
|
||||||
|
|
||||||
/* Disabled as it's an experimental style that requires CSS NOT Selector Level 4 (only in Safari) */
|
/* Disabled as it's an experimental style that requires CSS NOT Selector Level 4 (only in Safari) */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
.home-section.dark.big-underline a:not(.btn):not(.hero-cta-alt):not(.alert a) {
|
.home-section.dark.big-underline a:not(.btn):not(.hero-cta-alt):not(.alert a) {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
@ -73,7 +75,7 @@
|
||||||
right: 0;
|
right: 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
}*/
|
} */
|
||||||
|
|
||||||
// Fill padding of `.home-section` parent
|
// Fill padding of `.home-section` parent
|
||||||
.home-section-bg {
|
.home-section-bg {
|
||||||
|
@ -160,6 +162,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Reset code highlighting style in Alerts when Alert is child of a `.dark` widget, but Alert should be light.` */
|
/* Reset code highlighting style in Alerts when Alert is child of a `.dark` widget, but Alert should be light.` */
|
||||||
|
|
||||||
/* But will this affect page which should have dark Alert? */
|
/* But will this affect page which should have dark Alert? */
|
||||||
.dark .alert pre,
|
.dark .alert pre,
|
||||||
.dark .alert code {
|
.dark .alert code {
|
||||||
|
@ -191,7 +194,10 @@
|
||||||
.wg-hero.dark .hero-cta-alt,
|
.wg-hero.dark .hero-cta-alt,
|
||||||
.wg-hero.dark .hero-note > * {
|
.wg-hero.dark .hero-note > * {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
/*text-shadow: 1px 1px 4px rgba(0,0,0,0.5);*/ /* Uncomment to standout on complicated backgrounds. */
|
|
||||||
|
/* text-shadow: 1px 1px 4px rgba(0,0,0,0.5); */
|
||||||
|
|
||||||
|
/* Uncomment to standout on complicated backgrounds. */
|
||||||
}
|
}
|
||||||
|
|
||||||
.wg-hero.dark a:not(.wg-hero .btn) {
|
.wg-hero.dark a:not(.wg-hero .btn) {
|
||||||
|
@ -331,7 +337,7 @@ a.hero-cta-alt:hover {
|
||||||
.portrait-title h2 {
|
.portrait-title h2 {
|
||||||
font-size: 1.75em;
|
font-size: 1.75em;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
color: #000000;
|
color: #000;
|
||||||
margin: 20px 0 10px 0;
|
margin: 20px 0 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -339,7 +345,7 @@ a.hero-cta-alt:hover {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
color: rgba(0, 0, 0, 0.54);
|
color: rgba(0, 0, 0, 0.54);
|
||||||
margin: 0px 0 10px 0;
|
margin: 0 0 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.network-icon {
|
ul.network-icon {
|
||||||
|
@ -382,7 +388,7 @@ ul.ul-edu {
|
||||||
|
|
||||||
ul.ul-edu li {
|
ul.ul-edu li {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 0px 15px 4px 3px;
|
padding: 0 15px 4px 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.ul-edu li .description p {
|
ul.ul-edu li .description p {
|
||||||
|
@ -433,7 +439,7 @@ ul.ul-edu li .description p.institution {
|
||||||
// For a UL after P, remove the spacing between (P margin-bottom) without affecting any nested lists.
|
// For a UL after P, remove the spacing between (P margin-bottom) without affecting any nested lists.
|
||||||
.card .card-text p + ul {
|
.card .card-text p + ul {
|
||||||
margin-top: -1rem;
|
margin-top: -1rem;
|
||||||
margin-bottom: 0rem;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.experience .m-2 .border,
|
.experience .m-2 .border,
|
||||||
|
@ -478,7 +484,8 @@ ul.ul-edu li .description p.institution {
|
||||||
.projects-container {
|
.projects-container {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
/*margin-top: 5rem;*/
|
|
||||||
|
/* margin-top: 5rem; */
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue