Fix search on mobile

This commit is contained in:
kolaente 2020-06-17 21:44:44 +02:00
parent 35d52c3404
commit 3248aca041
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
5 changed files with 22 additions and 3 deletions

View file

@ -47,7 +47,7 @@
} }
} }
@media screen and (max-width: ($tablet / 2)) { @media screen and (max-width: ($mobile)) {
width: calc(100% - 1em); width: calc(100% - 1em);
&:nth-child(1n) { &:nth-child(1n) {

View file

@ -126,4 +126,19 @@
.filters input { .filters input {
font-size: .9em; font-size: .9em;
} }
@media screen and (max-width: $tablet) {
position: static;
margin: 1rem 0;
max-width: 100%;
min-width: auto;
.search {
width: 100%;
.control:first-child {
width: 100%;
}
}
}
} }

View file

@ -4,7 +4,7 @@ $lists-per-row: 5;
.button.new-namespace { .button.new-namespace {
float: right; float: right;
@media screen and (max-width: $tablet / 2) { @media screen and (max-width: $mobile) {
float: none; float: none;
width: 100%; width: 100%;
margin-bottom: 1rem; margin-bottom: 1rem;
@ -84,7 +84,7 @@ $lists-per-row: 5;
} }
} }
@media screen and (max-width: $tablet / 2) { @media screen and (max-width: $mobile) {
$lists-per-row: 1; $lists-per-row: 1;
& { & {
width: 100%; width: 100%;

View file

@ -1,5 +1,7 @@
@import '../../../node_modules/bulma/bulma'; @import '../../../node_modules/bulma/bulma';
@import 'variables-derived';
*, *:hover, *:active, *:focus { *, *:hover, *:active, *:focus {
outline: none; outline: none;
} }

View file

@ -0,0 +1,2 @@
// Variables that are derived from bulma variables need to be included after them
$mobile: $tablet / 2;