Skip to content
Snippets Groups Projects
ButtonAvaliarRecurso.js 1.06 KiB
Newer Older
import React from 'react'
import { Button } from '@material-ui/core';
import styled from 'styled-components'
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';

export default function ButtonAvaliarRecurso (props) {

    return (
vgm18's avatar
vgm18 committed
        <StyledButton contrast={props.contrast} onClick={props.callback}>
            <ExpandMoreIcon style={{color: "white"}}/> AVALIAR RECURSO
        </StyledButton>
    )
}

const StyledButton = styled(Button)`
    &:hover {
vgm18's avatar
vgm18 committed
        background-color: ${props => props.contrast === "" ? "#ed6f00" : "black"} !important;
vgm18's avatar
vgm18 committed
    background-color: ${props => props.contrast === "" ? "#ff7f00" : "black"} !important;
    border: ${props => props.contrast === "" ? "none" : "1px solid white"} !important;    
    color : ${props => props.contrast === "" ? "white" : "yellow"} !important;
    text-decoration : ${props => props.contrast === "" ? "none" : "underline"} !important;
    font-weight : 600 !important;
    box-shadow : 0 2px 5px 0 rgba(0,0,0,.26) !important;
    .MuiSvgIcon-root {
        vertical-align : middle !important;
    }
`