Migrate some components to Sass

This commit is contained in:
Justin Edmund 2020-11-11 23:18:55 -08:00
parent 90c2a559f0
commit 97d0e83ddf
12 changed files with 15 additions and 9 deletions

View file

@ -9,7 +9,7 @@
flex-wrap: wrap;
margin: 0;
padding: 0;
width: 752px;
width: 761px;
}
#grid_characters > * {

View file

@ -1,7 +1,7 @@
import React, { useState } from 'react'
import CharacterUnit from '~components/CharacterUnit'
import './index.css'
import './index.scss'
export enum GridType {
Class,

View file

@ -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

View file

@ -56,10 +56,13 @@
.CharacterImage .icon {
position: absolute;
color: #c9c9c9;
height: 20px;
width: 20px;
z-index: 1;
svg {
fill: #c9c9c9;
}
}
.CharacterImage:hover .icon {

View file

@ -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'

View file

@ -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

View file

@ -1,7 +1,7 @@
import React from 'react'
import WeaponUnit from '~components/WeaponUnit'
import './index.css'
import './index.scss'
// GridType
export enum GridType {

View file

@ -51,10 +51,13 @@
.WeaponImage .icon {
position: absolute;
color: #c9c9c9;
height: 20px;
width: 20px;
z-index: 1;
svg {
fill: #c9c9c9;
}
}
.WeaponImage:hover .icon {

View file

@ -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