mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-20 03:38:06 +02:00
Remove is-focused class to prevent squared outline on Safari
This commit is contained in:
parent
03e09ac579
commit
8cbdf9946b
@ -11,12 +11,12 @@
|
|||||||
<div class="column is-full quick-uploader-button" >
|
<div class="column is-full quick-uploader-button" >
|
||||||
<div class="quick-uploader-centerer">
|
<div class="quick-uploader-centerer">
|
||||||
<!-- upload a qr code (with basic file field and backend decoding) -->
|
<!-- upload a qr code (with basic file field and backend decoding) -->
|
||||||
<label role="button" tabindex="0" v-if="$root.appSettings.useBasicQrcodeReader" class="button is-link is-medium is-rounded is-focused" ref="qrcodeInputLabel" @keyup.enter="$refs.qrcodeInputLabel.click()">
|
<label role="button" tabindex="0" v-if="$root.appSettings.useBasicQrcodeReader" class="button is-link is-medium is-rounded is-main" ref="qrcodeInputLabel" @keyup.enter="$refs.qrcodeInputLabel.click()">
|
||||||
<input aria-hidden="true" tabindex="-1" class="file-input" type="file" accept="image/*" v-on:change="submitQrCode" ref="qrcodeInput">
|
<input aria-hidden="true" tabindex="-1" class="file-input" type="file" accept="image/*" v-on:change="submitQrCode" ref="qrcodeInput">
|
||||||
{{ $t('twofaccounts.forms.upload_qrcode') }}
|
{{ $t('twofaccounts.forms.upload_qrcode') }}
|
||||||
</label>
|
</label>
|
||||||
<!-- scan button that launch camera stream -->
|
<!-- scan button that launch camera stream -->
|
||||||
<button v-else class="button is-link is-medium is-rounded is-focused is-double-focused" @click="capture()">
|
<button v-else class="button is-link is-medium is-rounded is-main" @click="capture()">
|
||||||
{{ $t('twofaccounts.forms.scan_qrcode') }}
|
{{ $t('twofaccounts.forms.scan_qrcode') }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
11
resources/sass/app.scss
vendored
11
resources/sass/app.scss
vendored
@ -430,10 +430,8 @@ figure.no-icon {
|
|||||||
.button.is-like-text:focus-within {
|
.button.is-like-text:focus-within {
|
||||||
background: inherit;
|
background: inherit;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
// box-shadow: inherit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.button:focus-visible, .button.is-focused,
|
.button:focus-visible, .button.is-focused,
|
||||||
.file[role=button]:focus-visible {
|
.file[role=button]:focus-visible {
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
@ -513,14 +511,9 @@ figure.no-icon {
|
|||||||
outline-color: $danger;
|
outline-color: $danger;
|
||||||
}
|
}
|
||||||
|
|
||||||
button.is-double-focused:focus-visible
|
button.is-main
|
||||||
{
|
{
|
||||||
outline-style: double !important;
|
box-shadow: $button-focus-box-shadow-size $button-focus-box-shadow-color;
|
||||||
outline-width: 6px !important;
|
|
||||||
}
|
|
||||||
button.is-double-focused:focus:not(:focus-visible)
|
|
||||||
{
|
|
||||||
outline: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.file[role=button]:focus-visible {
|
.file[role=button]:focus-visible {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user