Skip to content

Commit

Permalink
Feat: external link icon (#1540)
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran authored Jul 18, 2023
2 parents e60a4c9 + 228acc1 commit bc49146
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benefits/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ msgstr ""
"tool to support the Courtesy Card program. This benefit may need to be "
"renewed in the future based on the expiration date of the Courtesy Card. "
"Learn more at the <a href='https://mst.org/riders-guide/how-to-ride/courtesy-"
"card/' target =\"blank\" rel=\"noopener noreferrer\">MST Riders Guide</a>."
"card/' target=\"_blank\" rel=\"noopener noreferrer\">MST Riders Guide</a>."

msgid "core.pages.help.littlepay"
msgstr "What is Littlepay?"
Expand Down
2 changes: 1 addition & 1 deletion benefits/locale/es/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ msgstr ""
"Tarjeta de Cortesía. Es posible que este beneficio deba renovarse en el "
"futuro según la fecha de vencimiento de la Tarjeta de Cortesía. Obtenga más "
"información <a href='https://mst.org/riders-guide/how-to-ride/courtesy-"
"card/' target =\"blank\" rel=\"noopener noreferrer\">MST Riders Guide</a>."
"card/' target=\"_blank\" rel=\"noopener noreferrer\">MST Riders Guide</a>."

msgid "core.pages.help.littlepay"
msgstr "¿Qué es Littlepay?"
Expand Down
19 changes: 19 additions & 0 deletions benefits/static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,25 @@ a:visited:not(.btn) {
color: var(--selected-color);
}

a[target="_blank"]::after {
content: " ";
background-color: currentColor;

mask-image: url("/static/img/external-link.svg"),
linear-gradient(transparent, transparent);
mask-position: center center;
-webkit-mask-image: url("/static/img/external-link.svg"),
linear-gradient(transparent, transparent);
-webkit-mask-position: center center;

display: inline-block;
position: relative;
width: 24px;
height: 24px;
margin-left: 2px;
vertical-align: text-bottom;
}

/* Headlines */
/* All headlines */
/* All headlines share font-weight, letter-spacing, line-height and margin */
Expand Down
11 changes: 11 additions & 0 deletions benefits/static/img/external-link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bc49146

Please sign in to comment.