Skip to content

Commit

Permalink
Merge pull request #7 from duckduckgo/release/pm
Browse files Browse the repository at this point in the history
Release/pm
  • Loading branch information
GioSensation authored Jul 2, 2021
2 parents 0dc1db7 + c3366f7 commit 3f8b4d6
Show file tree
Hide file tree
Showing 27 changed files with 1,752 additions and 701 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["@babel/plugin-proposal-class-properties"]
}
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": "standard",
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2020
},
Expand Down
6 changes: 3 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ module.exports = function (grunt) {
target: 'src/**/*.js'
},
exec: {
copyAutofillStylesToCSS: 'cp src/styles/DDGAutofill-styles.js dist/autofill.css && sed -i "" \'/`/d\' dist/autofill.css',
copyHostStyles: 'cp src/styles/autofill-host-styles.css dist/autofill-host-styles_chrome.css && cp src/styles/autofill-host-styles.css dist/autofill-host-styles_firefox.css',
copyAutofillStylesToCSS: 'cp src/UI/styles/autofill-tooltip-styles.js dist/autofill.css && sed -i "" \'/`/d\' dist/autofill.css',
copyHostStyles: 'cp src/UI/styles/autofill-host-styles.css dist/autofill-host-styles_chrome.css && cp src/UI/styles/autofill-host-styles.css dist/autofill-host-styles_firefox.css',
// Firefox and Chrome treat relative url differently in injected scripts. This fixes it.
updateFirefoxRelativeUrl: `sed -i "" "s/chrome-extension:\\/\\/__MSG_@@extension_id__\\/public/../g" dist/autofill-host-styles_firefox.css`,
updateFirefoxRelativeUrl: `sed -i "" "s/chrome-extension:\\/\\/__MSG_@@extension_id__\\/public/../g" dist/autofill-host-styles_firefox.css`
},
/**
* Run predefined tasks whenever watched files are added,
Expand Down
87 changes: 75 additions & 12 deletions dist/autofill.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,45 @@
transform: translate(-1000px);
z-index: 2147483647;
}
.wrapper--credentials {
font-family: 'SF Pro Text', -apple-system,
BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}
.tooltip {
position: absolute;
top: calc(100% + 6px);
right: calc(100% - 46px);
width: 300px;
max-width: calc(100vw - 25px);
z-index: 2147483647;
}
.tooltip--credentials {
top: 100%;
left: 100%;
padding: 6px;
border: 0.5px solid rgba(0, 0, 0, 0.2);
border-radius: 6px;
background-color: rgba(242, 240, 240, 0.9);
-webkit-backdrop-filter: blur(40px);
backdrop-filter: blur(40px);
font-size: 13px;
line-height: 15px;
color: #222222;
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
.tooltip--email {
top: calc(100% + 6px);
right: calc(100% - 46px);
padding: 8px;
border: 1px solid #D0D0D0;
border-radius: 10px;
background-color: #FFFFFF;
font-size: 14px;
color: #333333;
line-height: 1.3;
color: #333333;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
z-index: 2147483647;
}
.tooltip::before,
.tooltip::after {
.tooltip--email::before,
.tooltip--email::after {
content: "";
width: 0;
height: 0;
Expand All @@ -42,23 +63,21 @@
position: absolute;
right: 20px;
}
.tooltip::before {
.tooltip--email::before {
border-bottom-color: #D0D0D0;
top: -9px;
}
.tooltip::after {
.tooltip--email::after {
border-bottom-color: #FFFFFF;
top: -8px;
}

/* Buttons */
.tooltip__button {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
width: 100%;
padding: 4px 8px 7px;
font-family: inherit;
font-size: 14px;
background: transparent;
border: none;
border-radius: 6px;
Expand All @@ -67,6 +86,50 @@
background-color: #3969EF;
color: #FFFFFF;
}

/* Credentials tooltip specific */
.tooltip__button--credentials {
flex-direction: row;
justify-content: flex-start;
align-items: center;
font-size: inherit;
font-weight: 500;
text-align: left;
letter-spacing: -0.25px;
}
.tooltip__button--credentials:first-child {
margin-top: 0;
}
.tooltip__button--credentials:last-child {
margin-bottom: 0;
}
.tooltip__button--credentials::before {
content: '';
display: block;
width: 36px;
height: 36px;
margin: auto 6px auto 0;
background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+ZGRnLXBhc3N3b3JkLWljb24tYmFzZTwvdGl0bGU+CiAgICA8ZyBpZD0iZGRnLXBhc3N3b3JkLWljb24tYmFzZSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IlVuaW9uIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0LjAwMDAwMCwgNC4wMDAwMDApIiBmaWxsPSIjMDAwMDAwIj4KICAgICAgICAgICAgPHBhdGggZD0iTTExLjMzMzMsMi42NjY2NyBDMTAuMjI4OCwyLjY2NjY3IDkuMzMzMzMsMy41NjIxIDkuMzMzMzMsNC42NjY2NyBDOS4zMzMzMyw1Ljc3MTI0IDEwLjIyODgsNi42NjY2NyAxMS4zMzMzLDYuNjY2NjcgQzEyLjQzNzksNi42NjY2NyAxMy4zMzMzLDUuNzcxMjQgMTMuMzMzMyw0LjY2NjY3IEMxMy4zMzMzLDMuNTYyMSAxMi40Mzc5LDIuNjY2NjcgMTEuMzMzMywyLjY2NjY3IFogTTEwLjY2NjcsNC42NjY2NyBDMTAuNjY2Nyw0LjI5ODQ4IDEwLjk2NTEsNCAxMS4zMzMzLDQgQzExLjcwMTU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MzMzMgMTQuNjY2NywzLjEyNDE5IDE0LjY2NjcsNS4zMzMzMyBDMTQuNjY2Nyw3LjU0MjQ3IDEyLjg3NTgsOS4zMzMzMyAxMC42NjY3LDkuMzMzMzMgQzEwLjE1NTgsOS4zMzMzMyA5LjY2ODg2LDkuMjM3OSA5LjIyMTUyLDkuMDY0NSBDOC45NzUyOCw4Ljk2OTA1IDguNjk1OTEsOS4wMjc5NSA4LjUwOTE2LDkuMjE0NjkgTDcuNzIzODYsMTAgTDYsMTAgQzUuNjMxODEsMTAgNS4zMzMzMywxMC4yOTg1IDUuMzMzMzMsMTAuNjY2NyBMNS4zMzMzMywxMi42NjY3IEw0LDEyLjY2NjcgQzMuNjMxODEsMTIuNjY2NyAzLjMzMzMzLDEyLjk2NTEgMy4zMzMzMywxMy4zMzMzIEwzLjMzMzMzLDE0LjY2NjcgTDEuMzMzMzMsMTQuNjY2NyBMMS4zMzMzMywxMi42MDk1IEw2LjY5Nzg3LDcuMjQ0OTQgQzYuODc1MDIsNy4wNjc3OSA2LjkzNzksNi44MDYyOSA2Ljg2MDY1LDYuNTY3OTggQzYuNzM0ODksNi4xNzk5NyA2LjY2NjY3LDUuNzY1MjcgNi42NjY2Nyw1LjMzMzMzIFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+');
background-size: cover;
}
.tooltip__button--credentials:hover::before {
background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+ZGRnLXBhc3N3b3JkLWljb24tYmFzZS13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zMzLDEyLjk2NTEgMy4zMzMzMywxMy4zMzMzIEwzLjMzMzMzLDE0LjY2NjcgTDEuMzMzMzMsMTQuNjY2NyBMMS4zMzMzMywxMi42MDk1IEw2LjY5Nzg3LDcuMjQ0OTQgQzYuODc1MDIsNy4wNjc3OSA2LjkzNzksNi44MDYyOSA2Ljg2MDY1LDYuNTY3OTggQzYuNzM0ODksNi4xNzk5NyA2LjY2NjY3LDUuNzY1MjcgNi42NjY2Nyw1LjMzMzMzIFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+');
}
.tooltip__button__password {
font-size: 11px;
color: rgba(0,0,0,0.6);
}
.tooltip__button:hover .tooltip__button__password {
color: #FFFFFF;
}

/* Email tooltip specific */
.tooltip__button--email {
flex-direction: column;
justify-content: center;
align-items: flex-start;
font-size: 14px;
}
.tooltip__button__primary-text {
font-weight: bold;
}
Expand Down
Loading

0 comments on commit 3f8b4d6

Please sign in to comment.