Improve "Centre was created..." position on the main page

Improve the underlined image links fix
This commit is contained in:
GregTheMadMonk 2022-09-27 02:30:47 +03:00
parent 6f6960f8b8
commit 1756f0d6b1
5 changed files with 36 additions and 5 deletions

View File

@ -2491,4 +2491,14 @@ body.is-menu-visible #menu {
opacity: 1;
visibility: visible; }
#main div.inner.home_creationinfo {
display: flex;
justify-content: center;
align-items: center;
padding-top: 2.25em; }
#main div.inner.home_creationinfo a > span {
display: block; }
#main div.inner.home_creationinfo p {
margin: 0 0 0 1em; }
/*# sourceMappingURL=main.css.map */

View File

@ -585,8 +585,11 @@
};
// Remove `border-bottom` from all `<a>` elements that also contain an `<img>`
document.querySelectorAll("a > img").forEach(
imgEl => { imgEl.parentElement.style.borderBottom = "none" }
document.querySelectorAll("a > img, a > span > img").forEach(
imgEl => {
while (imgEl.tagName != "A") imgEl = imgEl.parentElement;
imgEl.style.borderBottom = "none";
}
);
})(jQuery);

View File

@ -0,0 +1,15 @@
// A custom style for main page block with SPC creation info
#main div.inner.home_creationinfo {
display: flex;
justify-content: center;
align-items: center;
padding-top: 2.25em;
a > span {
display: block;
}
p {
margin: 0 0 0 1em;
}
}

View File

@ -74,3 +74,6 @@
@import 'layout/footer';
@import 'layout/wrapper';
@import 'layout/menu';
// Custom modifications.
@import 'custom/home_creationinfo';

View File

@ -98,9 +98,9 @@ context(WebPage) private fun HTML.spcHome() {
div {
id = "main"
section {
div("inner") {
div("inner home_creationinfo") {
a(href = "https://mipt.ru/education/departments/fpmi/") {
span("image left") {
span("image") {
img {
src = "images/FPMI.jpg"
alt = "FPMI"