Add filter css
parent
bb5f6d73c4
commit
133884e717
Binary file not shown.
|
@ -54,6 +54,7 @@ export interface PokemonTypesProps {
|
||||||
|
|
||||||
const PokemonTypes = ({ types }: PokemonTypesProps) => {
|
const PokemonTypes = ({ types }: PokemonTypesProps) => {
|
||||||
return (
|
return (
|
||||||
|
// TODO: fix static typed poke__type css
|
||||||
<div className="poke__type">
|
<div className="poke__type">
|
||||||
{types.map(type => (
|
{types.map(type => (
|
||||||
<Tooltip title={type} key={type} TransitionComponent={Zoom} arrow>
|
<Tooltip title={type} key={type} TransitionComponent={Zoom} arrow>
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
html {
|
||||||
|
--toggle: hsl(230deg 17% 85%);
|
||||||
|
--bgcolor: none;
|
||||||
|
--colorPrimary: #000;
|
||||||
|
--filterHeading: #000;
|
||||||
|
--selectBg : #fff;
|
||||||
|
--selectText : #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'barcadebrawl';
|
||||||
|
src: url('assets/fonts/BarcadeBrawl.ttf');
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter__container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
margin: 7vh 0 5vh 0;
|
||||||
|
gap: 0 2vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter__items {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
font-family: 'barcadebrawl';
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter__items>input {
|
||||||
|
width: 10vw;
|
||||||
|
margin-top: 5px;
|
||||||
|
background-color: var(--selectBg);
|
||||||
|
color: var(--selectText);
|
||||||
|
border: 1px solid var(--selectText);
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter__items>div, label {
|
||||||
|
color: var(--filterHeading);
|
||||||
|
}
|
|
@ -12,6 +12,7 @@ import {
|
||||||
} from 'features/Pokedex/pokedexSlice';
|
} from 'features/Pokedex/pokedexSlice';
|
||||||
import { RegionPokemonRange } from 'features/Pokedex/types/slice';
|
import { RegionPokemonRange } from 'features/Pokedex/types/slice';
|
||||||
import { useAppDispatch, useAppSelector } from 'app/hooks';
|
import { useAppDispatch, useAppSelector } from 'app/hooks';
|
||||||
|
import './Filters.css';
|
||||||
|
|
||||||
export const createRegionPokemonListOptionElements = (
|
export const createRegionPokemonListOptionElements = (
|
||||||
data: RegionPokemonRange[],
|
data: RegionPokemonRange[],
|
||||||
|
@ -89,7 +90,7 @@ const Filters = () => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="filter__container">
|
<div className="filter__container noselect">
|
||||||
<div className="filter__items">
|
<div className="filter__items">
|
||||||
<div>
|
<div>
|
||||||
<div>REGION</div>
|
<div>REGION</div>
|
||||||
|
|
Loading…
Reference in New Issue