mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-04 05:48:11 +00:00
Poprawki dostępności searchboxów
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="filter-card" v-click-outside="closeCard">
|
<section class="filter-card" v-click-outside="closeCard" @keydown.esc="closeCard" >
|
||||||
<div class="card_btn">
|
<div class="card_btn">
|
||||||
<button class="btn--image" @click="toggleCard">
|
<button class="btn--image" @click="toggleCard">
|
||||||
<img class="button_icon" :src="getIcon('filter2')" alt="filter icon" />
|
<img class="button_icon" :src="getIcon('filter2')" alt="filter icon" />
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<transition name="card-anim">
|
<transition name="card-anim">
|
||||||
<div class="card" v-if="isVisible">
|
<div class="card" v-if="isVisible" >
|
||||||
<div class="card_content">
|
<div class="card_content">
|
||||||
<div class="card_title flex">{{ $t('filters.title') }}</div>
|
<div class="card_title flex">{{ $t('filters.title') }}</div>
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export default defineComponent({
|
|||||||
onKeyDownFunction() {},
|
onKeyDownFunction() {},
|
||||||
|
|
||||||
handleKeyDown(e: KeyboardEvent) {
|
handleKeyDown(e: KeyboardEvent) {
|
||||||
if (e.key.toLowerCase() == 'f' && !this.preventKeyDown) this.onKeyDownFunction();
|
if (e.key.toLowerCase() == 'f' && !this.preventKeyDown && !e.ctrlKey && !e.altKey) this.onKeyDownFunction();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -99,24 +99,32 @@ h1.option-title {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.search_content > .search {
|
.search_content {
|
||||||
margin: 0.5em auto;
|
.search {
|
||||||
}
|
margin: 0.5em auto;
|
||||||
|
}
|
||||||
|
|
||||||
.search_content > button {
|
.search_actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
margin: 1em 0 0.5em 0;
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search_content > .search_actions {
|
button {
|
||||||
display: flex;
|
margin: 0.25em 0.5em;
|
||||||
margin: 1em 0 0.5em 0;
|
background-color: #424242;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
button {
|
.search-box {
|
||||||
margin: 0.25em 0.5em;
|
.search_input {
|
||||||
background-color: #424242;
|
}
|
||||||
color: white;
|
|
||||||
|
.search-exit {
|
||||||
|
position: absolute;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
top: 50%;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
&-input {
|
&-input {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0.5em 0 0 0.5em;
|
|
||||||
background-color: #424242;
|
background-color: #424242;
|
||||||
|
|
||||||
padding: 0.35em 0.5em;
|
padding: 0.35em 0.5em;
|
||||||
@@ -28,8 +27,6 @@
|
|||||||
|
|
||||||
&-exit {
|
&-exit {
|
||||||
background-color: #424242;
|
background-color: #424242;
|
||||||
padding: 0 0.5em;
|
|
||||||
border-radius: 0 0.5em 0.5em 0;
|
|
||||||
|
|
||||||
img {
|
img {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|||||||
Reference in New Issue
Block a user