Hover background in search, other fixes
This commit is contained in:
parent
a2b30133d4
commit
dac1ed917d
13 changed files with 68 additions and 73 deletions
|
|
@ -46,28 +46,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.Button {
|
||||
font-size: $font-regular;
|
||||
padding: ($unit * 1.5) ($unit * 2);
|
||||
margin-top: $unit * 2;
|
||||
width: 100%;
|
||||
|
||||
&.btn-disabled {
|
||||
background: $grey-90;
|
||||
color: $grey-70;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
&:not(.btn-disabled) {
|
||||
background: $grey-90;
|
||||
color: $grey-50;
|
||||
|
||||
&:hover {
|
||||
background: $grey-80;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.field {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
|
|
@ -89,12 +67,12 @@
|
|||
gap: calc($unit / 2);
|
||||
|
||||
label {
|
||||
color: $grey-15;
|
||||
color: var(--text-secondary);
|
||||
font-size: $font-regular;
|
||||
}
|
||||
|
||||
p {
|
||||
color: $grey-60;
|
||||
color: var(--text-secondary);
|
||||
font-size: $font-small;
|
||||
line-height: 1.1;
|
||||
max-width: 300px;
|
||||
|
|
|
|||
|
|
@ -243,7 +243,10 @@ const AccountModal = () => {
|
|||
</Switch.Root>
|
||||
</div>
|
||||
|
||||
<Button>{t('modals.settings.buttons.confirm')}</Button>
|
||||
<Button
|
||||
contained={true}
|
||||
text={t('modals.settings.buttons.confirm')}
|
||||
/>
|
||||
</form>
|
||||
</Dialog.Content>
|
||||
<Dialog.Overlay className="Overlay" />
|
||||
|
|
|
|||
|
|
@ -252,7 +252,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.text {
|
||||
.Text {
|
||||
color: inherit;
|
||||
display: block;
|
||||
width: 100%;
|
||||
|
|
|
|||
|
|
@ -5,12 +5,16 @@
|
|||
padding: $unit * 1.5;
|
||||
|
||||
&:hover {
|
||||
background: $grey-90;
|
||||
background: var(--button-contained-bg);
|
||||
cursor: pointer;
|
||||
|
||||
.Info h5 {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
background: $grey-80;
|
||||
background: var(--card-bg);
|
||||
border-radius: 6px;
|
||||
display: inline-block;
|
||||
height: 72px;
|
||||
|
|
@ -21,10 +25,10 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
gap: calc($unit / 2);
|
||||
gap: $unit-half;
|
||||
|
||||
h5 {
|
||||
color: #555;
|
||||
color: var(--text-secondary);
|
||||
display: inline-block;
|
||||
font-size: $font-medium;
|
||||
font-weight: $medium;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
gap: $unit * $multiplier;
|
||||
height: auto;
|
||||
min-width: $unit * 48;
|
||||
min-height: $unit * 12;
|
||||
min-height: $unit-12x;
|
||||
padding: $unit * $multiplier;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
}
|
||||
|
||||
.DialogTitle {
|
||||
color: var(--text-secondary);
|
||||
color: var(--text-primary);
|
||||
font-size: $font-xlarge;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
border-radius: 6px;
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
padding: ($unit * 1.5) $unit-2x;
|
||||
padding: $unit-2x;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,18 +6,18 @@
|
|||
align-items: center;
|
||||
|
||||
&:hover {
|
||||
background: $grey-90;
|
||||
background: var(--button-contained-bg);
|
||||
cursor: pointer;
|
||||
|
||||
.Info .skill.pill {
|
||||
background: $grey-80;
|
||||
.Info h5 {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.Info {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: calc($unit / 2);
|
||||
gap: $unit-half;
|
||||
width: 100%;
|
||||
|
||||
.skill.pill {
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
display: inline;
|
||||
font-size: $font-tiny;
|
||||
font-weight: $medium;
|
||||
padding: calc($unit / 2) $unit;
|
||||
padding: $unit-half $unit;
|
||||
|
||||
&.buffing {
|
||||
background-color: $light-bg-10;
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
}
|
||||
|
||||
h5 {
|
||||
color: #555;
|
||||
color: var(--text-secondary);
|
||||
display: inline-block;
|
||||
font-size: $font-medium;
|
||||
font-weight: $medium;
|
||||
|
|
@ -65,7 +65,7 @@
|
|||
}
|
||||
|
||||
img {
|
||||
width: $unit * 6;
|
||||
height: $unit * 6;
|
||||
width: $unit-6x;
|
||||
height: $unit-6x;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
.SearchFilterBar select {
|
||||
background-color: $grey-90;
|
||||
.SearchFilterBar .SelectTrigger {
|
||||
width: 100%;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import React, { useEffect, useState } from 'react'
|
||||
import { useRouter } from 'next/router'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
import { skillGroups } from '~utils/skillGroups'
|
||||
import Select from '~components/Select'
|
||||
import SelectItem from '~components/SelectItem'
|
||||
|
||||
import './index.scss'
|
||||
|
||||
|
|
@ -14,13 +14,16 @@ const JobSkillSearchFilterBar = (props: Props) => {
|
|||
// Set up translation
|
||||
const { t } = useTranslation('common')
|
||||
|
||||
const [open, setOpen] = useState(false)
|
||||
const [currentGroup, setCurrentGroup] = useState(-1)
|
||||
|
||||
function onChange(event: React.ChangeEvent<HTMLSelectElement>) {
|
||||
setCurrentGroup(parseInt(event.target.value))
|
||||
function openSelect() {
|
||||
setOpen(!open)
|
||||
}
|
||||
|
||||
function onBlur(event: React.ChangeEvent<HTMLSelectElement>) {}
|
||||
function onChange(value: string) {
|
||||
setCurrentGroup(parseInt(value))
|
||||
}
|
||||
|
||||
function sendFilters() {
|
||||
const filters = {
|
||||
|
|
@ -36,34 +39,35 @@ const JobSkillSearchFilterBar = (props: Props) => {
|
|||
|
||||
return (
|
||||
<div className="SearchFilterBar">
|
||||
<select
|
||||
key="job-skill-groups"
|
||||
value={currentGroup}
|
||||
onBlur={onBlur}
|
||||
<Select
|
||||
defaultValue={-1}
|
||||
trigger={'All elements'}
|
||||
open={open}
|
||||
onChange={onChange}
|
||||
onClick={openSelect}
|
||||
>
|
||||
<option key="all" value={-1}>
|
||||
<SelectItem key="all" value={-1}>
|
||||
{t(`job_skills.all`)}
|
||||
</option>
|
||||
<option key="damaging" value={2}>
|
||||
</SelectItem>
|
||||
<SelectItem key="damaging" value={2}>
|
||||
{t(`job_skills.damaging`)}
|
||||
</option>
|
||||
<option key="buffing" value={0}>
|
||||
</SelectItem>
|
||||
<SelectItem key="buffing" value={0}>
|
||||
{t(`job_skills.buffing`)}
|
||||
</option>
|
||||
<option key="debuffing" value={1}>
|
||||
</SelectItem>
|
||||
<SelectItem key="debuffing" value={1}>
|
||||
{t(`job_skills.debuffing`)}
|
||||
</option>
|
||||
<option key="healing" value={3}>
|
||||
</SelectItem>
|
||||
<SelectItem key="healing" value={3}>
|
||||
{t(`job_skills.healing`)}
|
||||
</option>
|
||||
<option key="emp" value={4}>
|
||||
</SelectItem>
|
||||
<SelectItem key="emp" value={4}>
|
||||
{t(`job_skills.emp`)}
|
||||
</option>
|
||||
<option key="base" value={5}>
|
||||
</SelectItem>
|
||||
<SelectItem key="base" value={5}>
|
||||
{t(`job_skills.base`)}
|
||||
</option>
|
||||
</select>
|
||||
</SelectItem>
|
||||
</Select>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
.DropdownLabel {
|
||||
button.DropdownLabel {
|
||||
align-items: center;
|
||||
background: var(--button-contained-bg);
|
||||
border: none;
|
||||
border-radius: $unit-2x;
|
||||
color: var(--text-secondary);
|
||||
display: flex;
|
||||
font-size: $font-small;
|
||||
gap: $unit-half;
|
||||
flex-direction: row;
|
||||
padding: $unit ($unit * 1.5) $unit $unit-2x;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
}
|
||||
|
||||
#Bar {
|
||||
align-items: center;
|
||||
border-top-left-radius: $unit;
|
||||
border-top-right-radius: $unit;
|
||||
display: flex;
|
||||
|
|
|
|||
|
|
@ -5,8 +5,12 @@
|
|||
padding: $unit * 1.5;
|
||||
|
||||
&:hover {
|
||||
background: $grey-90;
|
||||
background: var(--button-contained-bg);
|
||||
cursor: pointer;
|
||||
|
||||
.Info h5 {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
|
|
@ -21,10 +25,10 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
gap: calc($unit / 2);
|
||||
gap: $unit-half;
|
||||
|
||||
h5 {
|
||||
color: #555;
|
||||
color: var(--text-secondary);
|
||||
display: inline-block;
|
||||
font-size: $font-medium;
|
||||
font-weight: $medium;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
}
|
||||
|
||||
img {
|
||||
background: $grey-80;
|
||||
background: var(--card-bg);
|
||||
border-radius: 6px;
|
||||
display: inline-block;
|
||||
height: 72px;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
gap: calc($unit / 2);
|
||||
gap: $unit-half;
|
||||
|
||||
h5 {
|
||||
color: var(--text-secondary);
|
||||
|
|
|
|||
Loading…
Reference in a new issue