mirror of https://github.com/istio/istio.io.git
A few infrastructure fixes
- Added some missing styling on the landing page. - Fixed extra margin values in the dropdown menu. - Improved popover positioning on small screens.
This commit is contained in:
parent
959da91043
commit
405ad98764
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -30,6 +30,8 @@ function closeActiveOverlay() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
|
// Attach a popper to the given anchor
|
||||||
function attachPopper(anchor, element) {
|
function attachPopper(anchor, element) {
|
||||||
if (popper !== null) {
|
if (popper !== null) {
|
||||||
popper.destroy();
|
popper.destroy();
|
||||||
|
@ -41,15 +43,16 @@ function attachPopper(anchor, element) {
|
||||||
preventOverflow: {
|
preventOverflow: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
},
|
},
|
||||||
|
shift: {
|
||||||
|
enabled: true,
|
||||||
|
},
|
||||||
flip: {
|
flip: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
behavior: ['left', 'right', 'top', 'bottom']
|
}
|
||||||
},
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
|
||||||
// Expand spans that define terms into appropriate popup markup
|
// Expand spans that define terms into appropriate popup markup
|
||||||
document.querySelectorAll('.term').forEach(term => {
|
document.querySelectorAll('.term').forEach(term => {
|
||||||
const i = document.createElement('i');
|
const i = document.createElement('i');
|
||||||
|
@ -93,3 +96,4 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener("click", closeActiveOverlay);
|
window.addEventListener("click", closeActiveOverlay);
|
||||||
|
window.addEventListener("resize", closeActiveOverlay);
|
||||||
|
|
|
@ -75,10 +75,11 @@
|
||||||
opacity: 0.1;
|
opacity: 0.1;
|
||||||
transition: opacity .25s linear;
|
transition: opacity .25s linear;
|
||||||
background-color: $landingPanelBackgroundColor;
|
background-color: $landingPanelBackgroundColor;
|
||||||
border-color: $landingPanelBorderColor;
|
|
||||||
width: 18rem;
|
width: 18rem;
|
||||||
box-shadow: 3px 3px 8px $landingPanelShadowColor;
|
box-shadow: 3px 3px 8px $landingPanelShadowColor;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
|
border: 1px solid $landingPanelBorderColor;
|
||||||
|
border-radius: 4px;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
font-weight: $linkWeight;
|
font-weight: $linkWeight;
|
||||||
color: $textColor;
|
color: $textColor;
|
||||||
padding: .25rem 1.5rem;
|
padding: .25rem 1.5rem;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: $textBrandColor;
|
color: $textBrandColor;
|
||||||
|
|
Loading…
Reference in New Issue