Fix search on mobile
This commit is contained in:
parent
35d52c3404
commit
3248aca041
5 changed files with 22 additions and 3 deletions
|
@ -47,7 +47,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: ($tablet / 2)) {
|
||||
@media screen and (max-width: ($mobile)) {
|
||||
width: calc(100% - 1em);
|
||||
|
||||
&:nth-child(1n) {
|
||||
|
|
|
@ -126,4 +126,19 @@
|
|||
.filters input {
|
||||
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%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ $lists-per-row: 5;
|
|||
.button.new-namespace {
|
||||
float: right;
|
||||
|
||||
@media screen and (max-width: $tablet / 2) {
|
||||
@media screen and (max-width: $mobile) {
|
||||
float: none;
|
||||
width: 100%;
|
||||
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;
|
||||
& {
|
||||
width: 100%;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
@import '../../../node_modules/bulma/bulma';
|
||||
|
||||
@import 'variables-derived';
|
||||
|
||||
*, *:hover, *:active, *:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
|
2
src/styles/theme/variables-derived.scss
Normal file
2
src/styles/theme/variables-derived.scss
Normal file
|
@ -0,0 +1,2 @@
|
|||
// Variables that are derived from bulma variables need to be included after them
|
||||
$mobile: $tablet / 2;
|
Loading…
Reference in a new issue