Improve "Centre was created..." position on the main page
Improve the underlined image links fix
This commit is contained in:
parent
6f6960f8b8
commit
1756f0d6b1
@ -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 */
|
||||
|
@ -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);
|
||||
|
15
data/home/assets/sass/custom/_home_creationinfo.scss
Normal file
15
data/home/assets/sass/custom/_home_creationinfo.scss
Normal 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;
|
||||
}
|
||||
}
|
@ -74,3 +74,6 @@
|
||||
@import 'layout/footer';
|
||||
@import 'layout/wrapper';
|
||||
@import 'layout/menu';
|
||||
|
||||
// Custom modifications.
|
||||
@import 'custom/home_creationinfo';
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user