From 1c61915b534872f73a502f51d17cde190c80259c Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Wed, 13 Feb 2019 11:14:53 -0800 Subject: [PATCH] styled selectbox --- app/main.css | 14 ++++++++++---- app/ui/archiveTile.js | 2 +- app/ui/copyDialog.js | 4 ++-- app/ui/selectbox.js | 2 +- app/ui/signupDialog.js | 4 ++-- assets/select-arrow.svg | 22 ++++++++++++++++++++++ 6 files changed, 38 insertions(+), 10 deletions(-) create mode 100644 assets/select-arrow.svg diff --git a/app/main.css b/app/main.css index 7248f7c2..4210a27f 100644 --- a/app/main.css +++ b/app/main.css @@ -231,6 +231,12 @@ progress::-moz-progress-bar { } } +select { + background-image: url('../assets/select-arrow.svg'); + background-position: calc(100% - 0.75rem); + background-repeat: no-repeat; +} + @screen md { .header-logo { background-image: url('../assets/logo.svg'); @@ -251,10 +257,6 @@ progress::-moz-progress-bar { @tailwind utilities; -.word-break-all { - word-break: break-all; -} - @responsive { .shadow-light { box-shadow: 0 0 8px 0 rgba(12, 12, 13, 0.1); @@ -265,3 +267,7 @@ progress::-moz-progress-bar { 0 2px 16px 0 rgba(12, 12, 13, 0.05); } } + +.word-break-all { + word-break: break-all; +} diff --git a/app/ui/archiveTile.js b/app/ui/archiveTile.js index b8852608..6ef712cd 100644 --- a/app/ui/archiveTile.js +++ b/app/ui/archiveTile.js @@ -46,7 +46,7 @@ function password(state) { id="password-input" class="${state.archive.password ? '' - : 'invisible'} border rounded-sm focus:border-blue-dark leading-normal my-1 py-1 px-2 h-8" + : 'invisible'} border rounded focus:border-blue-dark leading-normal my-1 py-1 px-2 h-8" autocomplete="off" maxlength="${MAX_LENGTH}" type="password" diff --git a/app/ui/copyDialog.js b/app/ui/copyDialog.js index 1f8c9465..3281c0ef 100644 --- a/app/ui/copyDialog.js +++ b/app/ui/copyDialog.js @@ -14,7 +14,7 @@ module.exports = function(name, url) { @@ -22,7 +22,7 @@ module.exports = function(name, url) { ${state.translate('copyUrlFormButton')} ${state.translate('okButton')} diff --git a/app/ui/selectbox.js b/app/ui/selectbox.js index 6b488224..d44fdb19 100644 --- a/app/ui/selectbox.js +++ b/app/ui/selectbox.js @@ -6,7 +6,7 @@ module.exports = function(selected, options, translate, changed, htmlId) { return html` diff --git a/assets/select-arrow.svg b/assets/select-arrow.svg new file mode 100644 index 00000000..a4d823c6 --- /dev/null +++ b/assets/select-arrow.svg @@ -0,0 +1,22 @@ + + + + 37845F0A-2932-4C2D-98E1-89BE1B168092 + Created with sketchtool. + + + + + + + + + + + + + + + + + \ No newline at end of file