Migrate some components to Sass
This commit is contained in:
parent
90c2a559f0
commit
97d0e83ddf
12 changed files with 15 additions and 9 deletions
|
|
@ -9,7 +9,7 @@
|
|||
flex-wrap: wrap;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 752px;
|
||||
width: 761px;
|
||||
}
|
||||
|
||||
#grid_characters > * {
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { useState } from 'react'
|
||||
import CharacterUnit from '~components/CharacterUnit'
|
||||
|
||||
import './index.css'
|
||||
import './index.scss'
|
||||
|
||||
export enum GridType {
|
||||
Class,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import WeaponLabelIcon from '~components/WeaponLabelIcon'
|
|||
|
||||
import images from '../../images/chara-grid/*.jpg'
|
||||
|
||||
import './index.css'
|
||||
import './index.scss'
|
||||
|
||||
interface Props {
|
||||
data: Character
|
||||
|
|
|
|||
|
|
@ -56,10 +56,13 @@
|
|||
|
||||
.CharacterImage .icon {
|
||||
position: absolute;
|
||||
color: #c9c9c9;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
z-index: 1;
|
||||
|
||||
svg {
|
||||
fill: #c9c9c9;
|
||||
}
|
||||
}
|
||||
|
||||
.CharacterImage:hover .icon {
|
||||
|
|
@ -5,7 +5,7 @@ import { useModal as useModal } from '~utils/useModal'
|
|||
import SearchModal from '~components/SearchModal'
|
||||
import UncapIndicator from '~components/UncapIndicator'
|
||||
|
||||
import './index.css'
|
||||
import './index.scss'
|
||||
|
||||
import images from '../../images/chara-main/*.jpg'
|
||||
import Plus from '../../../assets/plus.svg'
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { useCookies } from 'react-cookie'
|
|||
import Button from '~components/Button'
|
||||
import HeaderMenu from '~components/HeaderMenu'
|
||||
|
||||
import './index.css'
|
||||
import './index.scss'
|
||||
|
||||
interface Props {
|
||||
navigate: (pathname: string) => void
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react'
|
||||
import WeaponUnit from '~components/WeaponUnit'
|
||||
|
||||
import './index.css'
|
||||
import './index.scss'
|
||||
|
||||
// GridType
|
||||
export enum GridType {
|
||||
|
|
|
|||
|
|
@ -51,10 +51,13 @@
|
|||
|
||||
.WeaponImage .icon {
|
||||
position: absolute;
|
||||
color: #c9c9c9;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
z-index: 1;
|
||||
|
||||
svg {
|
||||
fill: #c9c9c9;
|
||||
}
|
||||
}
|
||||
|
||||
.WeaponImage:hover .icon {
|
||||
|
|
@ -9,7 +9,7 @@ import mainImages from '../../images/weapon-main/*.jpg'
|
|||
import gridImages from '../../images/weapon-grid/*.jpg'
|
||||
import Plus from '../../../assets/plus.svg'
|
||||
|
||||
import './index.css'
|
||||
import './index.scss'
|
||||
|
||||
interface Props {
|
||||
onReceiveData: (weapon: Weapon, position: number) => void
|
||||
|
|
|
|||
Loading…
Reference in a new issue