Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marius-wieschollek/passwords-webextension.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/vue
diff options
context:
space:
mode:
authorMarius David Wieschollek <passwords.public@mdns.eu>2020-12-30 16:00:18 +0300
committerMarius David Wieschollek <passwords.public@mdns.eu>2020-12-30 16:00:18 +0300
commitfba205bd9eb0c9124e5f5bf0dcff389883c053db (patch)
tree43cf68d83e2a0e9b8d89f8f6023faf3fa3c71a41 /src/vue
parentec88e01d82540578cddd77595a3f8f764aff80f3 (diff)
Improve mobile browser support
Signed-off-by: Marius David Wieschollek <passwords.public@mdns.eu>
Diffstat (limited to 'src/vue')
-rw-r--r--src/vue/Components/Firstrun/FirstRunWizard.vue10
-rw-r--r--src/vue/Components/Firstrun/Steps/ServerSetup.vue77
2 files changed, 56 insertions, 31 deletions
diff --git a/src/vue/Components/Firstrun/FirstRunWizard.vue b/src/vue/Components/Firstrun/FirstRunWizard.vue
index c00bfd5..44fb194 100644
--- a/src/vue/Components/Firstrun/FirstRunWizard.vue
+++ b/src/vue/Components/Firstrun/FirstRunWizard.vue
@@ -41,11 +41,19 @@
background-color : var(--element-active-hover-fg-color);
color : var(--element-active-hover-bg-color);
background-image : url("/img/background.png"), linear-gradient(40deg, #0082c9 0%, #30b6ff 100%);
- background-size : 300px, cover;
+ background-size : contain;
border-radius : var(--element-border-radius);
padding : .5rem;
box-sizing : border-box;
position : relative;
}
}
+
+body.mobile {
+ .first-run-wizard {
+ .first-run-wizard-content {
+ padding : 1rem;
+ }
+ }
+}
</style> \ No newline at end of file
diff --git a/src/vue/Components/Firstrun/Steps/ServerSetup.vue b/src/vue/Components/Firstrun/Steps/ServerSetup.vue
index 65ff070..740703f 100644
--- a/src/vue/Components/Firstrun/Steps/ServerSetup.vue
+++ b/src/vue/Components/Firstrun/Steps/ServerSetup.vue
@@ -5,7 +5,7 @@
<ul class="sever-setup-options">
<translate tag="li" say="FirstRunConnectLink" v-if="hasLinkHandler"/>
<translate tag="li" say="FirstRunConnectScan" v-if="hasLinkHandler"/>
- <translate tag="li" class="link" say="FirstRunConnectScanChrome" v-if="!hasLinkHandler" @click="scanQr" />
+ <translate tag="li" class="link" say="FirstRunConnectScanChrome" v-if="!hasLinkHandler" @click="scanQr"/>
<translate tag="li" class="link" say="FirstRunConnectManual" @click="openSettings"/>
</ul>
<button-field value="FirstRunConnectScanButton" @click="scanQr"/>
@@ -33,7 +33,7 @@
methods: {
scanQr() {
MessageService.send({type: 'passlink.open', payload: {action: 'scan-qr'}})
- .catch(ErrorManager.catch);
+ .catch(ErrorManager.catch);
window.close();
},
openSettings() {
@@ -44,43 +44,60 @@
</script>
<style lang="scss">
- .server-setup-wizard {
- h2 {
- text-align : center;
- }
+.server-setup-wizard {
+ h2 {
+ text-align : center;
+ }
- .sever-setup-options {
- padding-left : 1rem;
+ .sever-setup-options {
+ padding-left : 1rem;
- li {
- margin-bottom : .25rem;
+ li {
+ margin-bottom : .25rem;
- &.link {
- cursor: pointer;
+ &.link {
+ cursor : pointer;
- &:hover {
- text-decoration: underline;
- }
+ &:hover {
+ text-decoration : underline;
}
}
}
+ }
- button {
- background-color : var(--element-active-bg-color);
- color : var(--element-active-fg-color);
- text-align : center;
- position : absolute;
- bottom : .5rem;
- width : calc(100% - 1rem);
- line-height : 3rem;
- border-radius : var(--button-border-radius);
- border : none;
- cursor : pointer;
+ button {
+ background-color : var(--element-active-bg-color);
+ color : var(--element-active-fg-color);
+ text-align : center;
+ position : absolute;
+ bottom : .5rem;
+ width : calc(100% - 1rem);
+ line-height : 3rem;
+ border-radius : var(--button-border-radius);
+ border : none;
+ cursor : pointer;
- &:hover {
- background-color : var(--element-active-hover-bg-color);
- color : var(--element-active-hover-fg-color);
- }
+ &:hover {
+ background-color : var(--element-active-hover-bg-color);
+ color : var(--element-active-hover-fg-color);
+ }
+ }
+}
+
+body.mobile {
+ .server-setup-wizard {
+ font-size : 1.4rem;
+ line-height : 1.8rem;
+
+ .sever-setup-options {
+ padding-left : 1.5rem;
+ }
+
+ button {
+ font-size : 1.5rem;
+ line-height : 4rem;
+ width : calc(100% - 2rem);
}
}
+}
</style> \ No newline at end of file