Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
Move network explainer link after paragraph
Browse files Browse the repository at this point in the history
- Moved due to in paragraph translation differs from the text beimg translated in a singular context in some locales
- In order to not burden translators the link explainer is moved after paragraph for now
  • Loading branch information
zoracon committed Dec 12, 2019
1 parent 1254c87 commit f3ff4c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions chromium/pages/cancel/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,17 @@ h1 img {
}

button {
font-size: 12pt;
font-family: sans-serif;
line-height: 150%;
background-color: #ec1e1e;
border: 1px solid #ec1e1e;
border-radius: 4px;
color: #fff;
cursor: pointer;
padding: 0.5em 1em;
display: block;
float: left;
margin: 0 0.25em 0 0;
float: none;
font-size: 12pt;
margin: 8px 0;
line-height: 150%;
}

button:hover {
Expand All @@ -53,6 +52,6 @@ button:last-child {
@media screen and (max-width: 550px) {
button {
width: 100%;
margin: 0 0 0.25em 0;
margin: 8px 0;
}
}
2 changes: 1 addition & 1 deletion chromium/pages/cancel/ux.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function replaceLink(explainer) {
const link = document.createElement("a");
link.href = "https://en.wikipedia.org/wiki/Downgrade_attack";
link.innerText = linkText;
explainer.innerHTML = explainer.innerHTML.replace(linkText, link.outerHTML);
explainer.after(link);
}

function displayURL() {
Expand Down

0 comments on commit f3ff4c5

Please sign in to comment.