fix a load of linting issues

This commit is contained in:
41666 2019-04-03 02:10:43 -05:00
parent 928c9cf07c
commit 057e9f96b4
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF
31 changed files with 375 additions and 411 deletions

View file

@ -3,7 +3,7 @@
// From: https://github.com/chalk/chalk/blob/master/index.js.flow // From: https://github.com/chalk/chalk/blob/master/index.js.flow
declare module "chalk" { declare module 'chalk' {
declare type TemplateStringsArray = $ReadOnlyArray<string>; declare type TemplateStringsArray = $ReadOnlyArray<string>;
declare type Level = $Values<{ declare type Level = $Values<{

View file

@ -23,7 +23,6 @@ declare module 'color' {
* needed. * needed.
*/ */
// Filename aliases // Filename aliases
declare module 'color/index' { declare module 'color/index' {
declare module.exports: $Exports<'color'>; declare module.exports: $Exports<'color'>;

View file

@ -1,7 +1,7 @@
// flow-typed signature: f6bad512110ebc6da85b1ddda297fe3d // flow-typed signature: f6bad512110ebc6da85b1ddda297fe3d
// flow-typed version: f04d291d8b/enzyme_v3.x.x/flow_>=v0.53.x // flow-typed version: f04d291d8b/enzyme_v3.x.x/flow_>=v0.53.x
declare module "enzyme" { declare module 'enzyme' {
declare type PredicateFunction<T: Wrapper<*>> = ( declare type PredicateFunction<T: Wrapper<*>> = (
wrapper: T, wrapper: T,
index: number index: number

View file

@ -1,6 +1,6 @@
// flow-typed signature: 6a5610678d4b01e13bbfbbc62bdaf583 // flow-typed signature: 6a5610678d4b01e13bbfbbc62bdaf583
// flow-typed version: 3817bc6980/flow-bin_v0.x.x/flow_>=v0.25.x // flow-typed version: 3817bc6980/flow-bin_v0.x.x/flow_>=v0.25.x
declare module "flow-bin" { declare module 'flow-bin' {
declare module.exports: string; declare module.exports: string;
} }

View file

@ -1,7 +1,7 @@
// flow-typed signature: 7c09aef8ac07163d6ef9e3f50c6bc35c // flow-typed signature: 7c09aef8ac07163d6ef9e3f50c6bc35c
// flow-typed version: a12a42a747/glob_v7.1.x/flow_>=v0.42.x // flow-typed version: a12a42a747/glob_v7.1.x/flow_>=v0.42.x
declare module "glob" { declare module 'glob' {
declare type MinimatchOptions = {| declare type MinimatchOptions = {|
debug?: boolean, debug?: boolean,
nobrace?: boolean, nobrace?: boolean,

View file

@ -23,7 +23,6 @@ declare module 'keygrip' {
* needed. * needed.
*/ */
// Filename aliases // Filename aliases
declare module 'keygrip/index' { declare module 'keygrip/index' {
declare module.exports: $Exports<'keygrip'>; declare module.exports: $Exports<'keygrip'>;

View file

@ -1,7 +1,7 @@
// flow-typed signature: db2ab32952e719c6656cef681be04c96 // flow-typed signature: db2ab32952e719c6656cef681be04c96
// flow-typed version: e969a7af52/koa-bodyparser_v4.x.x/flow_>=v0.56.x // flow-typed version: e969a7af52/koa-bodyparser_v4.x.x/flow_>=v0.56.x
declare module "koa-bodyparser" { declare module 'koa-bodyparser' {
declare type Context = Object; declare type Context = Object;
declare type Middleware = ( declare type Middleware = (

View file

@ -23,7 +23,6 @@ declare module 'lru-cache' {
* needed. * needed.
*/ */
// Filename aliases // Filename aliases
declare module 'lru-cache/index' { declare module 'lru-cache/index' {
declare module.exports: $Exports<'lru-cache'>; declare module.exports: $Exports<'lru-cache'>;

View file

@ -373,6 +373,6 @@ declare class moment$Moment {
static invalid(object: any): moment$Moment; static invalid(object: any): moment$Moment;
} }
declare module "moment" { declare module 'moment' {
declare module.exports: Class<moment$Moment>; declare module.exports: Class<moment$Moment>;
} }

View file

@ -134,7 +134,6 @@ declare module pg {
// <<------------- copy from 'pg-pool' ------------------------------ // <<------------- copy from 'pg-pool' ------------------------------
// error // error
declare type PG_ERROR = { declare type PG_ERROR = {
name: string, name: string,

View file

@ -47,7 +47,7 @@ type TestRendererOptions = {
createNodeMock(element: React$Element<any>): any createNodeMock(element: React$Element<any>): any
}; };
declare module "react-test-renderer" { declare module 'react-test-renderer' {
declare export type ReactTestRenderer = { declare export type ReactTestRenderer = {
toJSON(): null | ReactTestRendererJSON, toJSON(): null | ReactTestRendererJSON,
toTree(): null | ReactTestRendererTree, toTree(): null | ReactTestRendererTree,
@ -69,7 +69,7 @@ declare module "react-test-renderer" {
declare function act(callback: () => void): Thenable; declare function act(callback: () => void): Thenable;
} }
declare module "react-test-renderer/shallow" { declare module 'react-test-renderer/shallow' {
declare export default class ShallowRenderer { declare export default class ShallowRenderer {
static createRenderer(): ShallowRenderer; static createRenderer(): ShallowRenderer;
getMountedInstance(): ReactTestInstance; getMountedInstance(): ReactTestInstance;

View file

@ -1,8 +1,8 @@
// flow-typed signature: 263123e4b3d2cb666a60f721c2da5354 // flow-typed signature: 263123e4b3d2cb666a60f721c2da5354
// flow-typed version: e1af06321a/redux-devtools-extension_v2.x.x/flow_>=v0.47.x // flow-typed version: e1af06321a/redux-devtools-extension_v2.x.x/flow_>=v0.47.x
import type { ActionCreator, StoreEnhancer } from 'redux'; import type { ActionCreator, StoreEnhancer } from 'redux'
import typeof { compose } from 'redux'; import typeof { compose } from 'redux'
declare type $npm$ReduxDevtoolsExtension$DevToolsOptions = { declare type $npm$ReduxDevtoolsExtension$DevToolsOptions = {
name?: string, name?: string,

View file

@ -4,7 +4,6 @@
// @flow // @flow
declare module 'styled-components' { declare module 'styled-components' {
declare export type Interpolation = declare export type Interpolation =
| (<P: {}>(executionContext: P) => string) | (<P: {}>(executionContext: P) => string)
| CSSRules | CSSRules
@ -12,7 +11,6 @@ declare module 'styled-components' {
| string | string
| number | number
declare export type CSSRules = Interpolation[] declare export type CSSRules = Interpolation[]
// This is not exported on purpose, since it's an implementation detail // This is not exported on purpose, since it's an implementation detail
@ -94,7 +92,6 @@ declare module 'styled-components' {
declare type InjectedProps = { theme : Theme | void } declare type InjectedProps = { theme : Theme | void }
declare export function withTheme<Props : {}, Component: React$ComponentType<Props>>(WrappedComponent: Component) : React$ComponentType<$Diff<React$ElementConfig<$Supertype<Component>>, InjectedProps>>; declare export function withTheme<Props : {}, Component: React$ComponentType<Props>>(WrappedComponent: Component) : React$ComponentType<$Diff<React$ElementConfig<$Supertype<Component>>, InjectedProps>>;
// @HACK This is a cheat to hide that the underlying type is "just a string" // @HACK This is a cheat to hide that the underlying type is "just a string"
// once we know of a better way, we should be able to update this accordingly. // once we know of a better way, we should be able to update this accordingly.
// I don't think there _is_ a good way, currently. // I don't think there _is_ a good way, currently.
@ -248,10 +245,7 @@ declare module 'styled-components' {
}; };
} }
declare module 'styled-components/native' { declare module 'styled-components/native' {
declare export type Interpolation = declare export type Interpolation =
| (<P: {}>(executionContext: P) => string) | (<P: {}>(executionContext: P) => string)
| CSSRules | CSSRules
@ -259,7 +253,6 @@ declare module 'styled-components/native' {
| string | string
| number | number
declare export type CSSRules = Interpolation[] declare export type CSSRules = Interpolation[]
// This is not exported on purpose, since it's an implementation detail // This is not exported on purpose, since it's an implementation detail
@ -341,7 +334,6 @@ declare module 'styled-components/native' {
declare type InjectedProps = { theme : Theme | void } declare type InjectedProps = { theme : Theme | void }
declare export function withTheme<Props : {}, Component: React$ComponentType<Props>>(WrappedComponent: Component) : React$ComponentType<$Diff<React$ElementConfig<$Supertype<Component>>, InjectedProps>>; declare export function withTheme<Props : {}, Component: React$ComponentType<Props>>(WrappedComponent: Component) : React$ComponentType<$Diff<React$ElementConfig<$Supertype<Component>>, InjectedProps>>;
// @HACK This is a cheat to hide that the underlying type is "just a string" // @HACK This is a cheat to hide that the underlying type is "just a string"
// once we know of a better way, we should be able to update this accordingly. // once we know of a better way, we should be able to update this accordingly.
// I don't think there _is_ a good way, currently. // I don't think there _is_ a good way, currently.

View file

@ -23,7 +23,6 @@ declare module 'zlib-sync' {
* needed. * needed.
*/ */
// Filename aliases // Filename aliases
declare module 'zlib-sync/index' { declare module 'zlib-sync/index' {
declare module.exports: $Exports<'zlib-sync'>; declare module.exports: $Exports<'zlib-sync'>;

View file

@ -10,6 +10,4 @@ export default class Bot {
this.svc = DS this.svc = DS
this.log = log this.log = log
} }
} }

View file

@ -16,6 +16,7 @@ const Chat = styled.div`
padding: 10px 0; padding: 10px 0;
font-size: 0.8em; font-size: 0.8em;
${() => MediaQuery({ sm: 'font-size: 1em;' })} ${() => MediaQuery({ sm: 'font-size: 1em;' })}
& span { & span {
display: inline-block; display: inline-block;
margin-left: 5px; margin-left: 5px;
@ -23,21 +24,19 @@ const Chat = styled.div`
` `
const TextArea = styled.div` const TextArea = styled.div`
background-color: hsla(218,5%,47%,.3); background-color: hsla(218, 5%, 47%, 0.3);
border-radius: 5px; border-radius: 5px;
padding: 10px; padding: 10px;
font-size: 0.8em; font-size: 0.8em;
${() => MediaQuery({ sm: 'font-size: 1em;' })} ${() => MediaQuery({ sm: 'font-size: 1em;' })}
& .Typist .Cursor { & .Typist .Cursor {
display: inline-block; display: inline-block;
color: transparent; color: transparent;
border-left: 1px solid var(--c-white); border-left: 1px solid var(--c-white);
user-select: none; user-select: none;
&--blinking { &--blinking {
opacity: 1; opacity: 1;
animation: blink 2s ease-in-out infinite; animation: blink 2s ease-in-out infinite;
@ -45,9 +44,11 @@ const TextArea = styled.div`
0% { 0% {
opacity: 1; opacity: 1;
} }
50% { 50% {
opacity: 0; opacity: 0;
} }
100% { 100% {
opacity: 1; opacity: 1;
} }
@ -58,7 +59,7 @@ const TextArea = styled.div`
const Timestamp = styled.span` const Timestamp = styled.span`
font-size: 0.7em; font-size: 0.7em;
color: hsla(0,0%,100%,.2); color: hsla(0, 0%, 100%, 0.2);
` `
const Username = styled.span` const Username = styled.span`

View file

@ -16,7 +16,7 @@ const Button = styled.a`
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
transform: translateY(0px); transform: translateY(0);
transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
position: relative; position: relative;
@ -37,13 +37,14 @@ const Button = styled.a`
&:hover { &:hover {
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.75); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
transform: translateY(-1px); transform: translateY(-1px);
&::after { &::after {
opacity: 1; opacity: 1;
} }
} }
&:active { &:active {
transform: translateY(0px); transform: translateY(0);
box-shadow: none; box-shadow: none;
} }
` `

View file

@ -18,7 +18,6 @@ const Fallback = styled.div`
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
background-color: var(--fallback-color); background-color: var(--fallback-color);
` `

View file

@ -30,8 +30,11 @@ body {
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
/* prevent FOUC */
transition: opacity 0.2s ease-in-out; transition: opacity 0.2s ease-in-out;
height: 100%;
overflow: auto;
color: var(--c-white);
background-color: var(--c-1);
} }
* { * {
@ -42,14 +45,6 @@ body {
font-family: sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-family: sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
} }
:root {
${() => getColors()}
--not-quite-black: #23272A;
--dark-but-not-black: #2C2F33;
--greyple: #99AAB5;
--blurple: var(--c-discord);
}
::selection { ::selection {
background: var(--c-9); background: var(--c-9);
color: var(--c-1); color: var(--c-1);
@ -60,22 +55,26 @@ body {
color: var(--c-1); color: var(--c-1);
} }
:root {
${() => getColors()}
--not-quite-black: #23272a;
--dark-but-not-black: #2c2f33;
--greyple: #99aab5;
--blurple: var(--c-discord);
}
html { html {
overflow: hidden; overflow: hidden;
height: 100%; height: 100%;
} }
body { h1,
margin: 0; h2,
padding: 0; h3,
height: 100%; h4,
overflow: auto; h5,
color: var(--c-white); h6 {
background-color: var(--c-1);
/* overflow-y: hidden; */
}
h1,h2,h3,h4,h5,h6 {
color: var(--c-9); color: var(--c-9);
} }
@ -87,5 +86,4 @@ h1,h2,h3,h4,h5,h6 {
.fade { .fade {
opacity: 0; opacity: 0;
} }
` `

View file

@ -10,8 +10,7 @@ export type CommonProps = {
} }
const Header = styled.div` const Header = styled.div`
background-color: ${({ noBackground }: any) => noBackground === false ? 'var(--c-dark);' : 'var(--c-1);'} background-color: ${({ noBackground }: any) => noBackground === false ? 'var(--c-dark)' : 'var(--c-1)'};
position: relative;
transition: background-color 0.3s ease-in-out; transition: background-color 0.3s ease-in-out;
position: fixed; position: fixed;
top: 0; top: 0;

View file

@ -26,11 +26,11 @@ const LoginButton = styled.a`
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.75); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
background-color: var(--c-green); background-color: var(--c-green);
border-color: rgba(0, 0, 0, 0.25); border-color: rgba(0, 0, 0, 0.25);
text-shadow: 1px 1px 0px rgba(0,0,0,0.25); text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
} }
&:active { &:active {
transform: translateY(0px); transform: translateY(0);
box-shadow: none; box-shadow: none;
} }
` `

View file

@ -7,9 +7,11 @@ import { type User } from '../stores/user'
import styled from 'styled-components' import styled from 'styled-components'
const LayoutWrapper = styled.div` const LayoutWrapper = styled.div`
transition: opacity: 0.1s ease-out; transition: opacity 0.1s ease-out;
opacity: 0; opacity: 0;
.wf-active &, .force-active & {
.wf-active &,
.force-active & {
opacity: 1; opacity: 1;
} }
` `
@ -20,7 +22,6 @@ const ContentBox = styled.div`
max-width: 100vw; max-width: 100vw;
padding: 5px; padding: 5px;
padding-top: 50px; padding-top: 50px;
/* max-height: calc(100vh - 50px); */
` `
const Layout = ({ children, user, noBackground, router }: {children: React.Element<any>, user: User, noBackground: boolean, router: * }) => <> const Layout = ({ children, user, noBackground, router }: {children: React.Element<any>, user: User, noBackground: boolean, router: * }) => <>

View file

@ -4,10 +4,8 @@ import MediaQuery from '../../kit/media'
export default styled.div` export default styled.div`
border: solid 1px var(--role-color-outline); border: solid 1px var(--role-color-outline);
border-radius: 1.2em; border-radius: 1.2em;
box-sizing: border-box; box-sizing: border-box;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
display: flex; display: flex;
overflow: hidden; overflow: hidden;
@ -15,24 +13,18 @@ export default styled.div`
justify-content: flex-start; justify-content: flex-start;
flex-wrap: wrap; flex-wrap: wrap;
flex-direction: column; flex-direction: column;
font-size: 1.2em; font-size: 1.2em;
line-height: 20px; line-height: 20px;
margin: 0.3em; margin: 0.3em;
padding: 4px 0.5em; padding: 4px 0.5em;
min-height: 32px; min-height: 32px;
max-width: 90vw; max-width: 90vw;
transition: box-shadow 0.3s ease-in-out; transition: box-shadow 0.3s ease-in-out;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.45); text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.45);
text-overflow: ellipsis; text-overflow: ellipsis;
user-select: none; user-select: none;
white-space: nowrap; white-space: nowrap;
transform: rotateZ(0); transform: rotateZ(0);
${(props: any) => (props.active) ? ` ${(props: any) => (props.active) ? `
box-shadow: inset 0 0 0 3em var(--role-color-outline-alt); box-shadow: inset 0 0 0 3em var(--role-color-outline-alt);
` : ` ` : `
@ -42,10 +34,53 @@ export default styled.div`
/* padding-top: 4px; */ /* padding-top: 4px; */
} }
&[disabled] {
border-color: hsl(0, 0%, 40%);
color: hsla(0, 0%, 40%, 0.7);
cursor: default;
box-shadow: none;
${(props: any) => (props.active)
? `box-shadow: inset 0 0 0 3em hsla(0,0%,40%,0.1);
background-color: hsl(0,0%,40%);`
: ``}
&::after {
border-color: hsl(0, 0%, 40%);
}
&:hover::after {
border-color: hsl(0, 0%, 40%);
transform: none;
box-shadow: none;
}
}
&[disabled]:hover { &[disabled]:hover {
overflow: visible; overflow: visible;
} }
&::after {
content: '';
display: none;
box-sizing: border-box;
position: absolute;
left: 4px;
bottom: 2px;
top: 4px;
width: 22px;
height: 22px;
border: 1px solid var(--role-color-base);
border-radius: 100%;
clip-path: border-box circle(50.2% at 50% 50%); /* this is just for you, firefox. */
transform: rotateZ(0);
${(props: any) => (props.active) ? `
transition: border 0.3s ease-in-out, transform 0.1s ease-in-out, background-color 1ms ease-in-out 0.29s;
border-left-width: 21px;
` : `
transition: border 0.3s ease-in-out, transform 0.1s ease-in-out, background-color 0.3s ease-in-out;
`}
}
&:hover::after { &:hover::after {
transform: translateY(-1px) rotateZ(0); transform: translateY(-1px) rotateZ(0);
box-shadow: 0 0 1px rgba(0, 0, 0, 0.75); box-shadow: 0 0 1px rgba(0, 0, 0, 0.75);
@ -57,33 +92,6 @@ export default styled.div`
transform: none; transform: none;
} }
&::after {
content: '';
display: none;
box-sizing: border-box;
position: absolute;
left: 4px;
bottom: 2px;
top: 4px;
width: 22px;
height: 22px;
border: 1px solid var(--role-color-base);
border-radius: 100%;
clip-path: border-box circle(50.2% at 50% 50%); /* this is just for you, firefox. */
transform: rotateZ(0);
${(props: any) => (props.active) ? `
transition: border 0.3s ease-in-out, transform 0.1s ease-in-out, background-color 1ms ease-in-out 0.29s;
border-left-width: 21px;
` : `
transition: border 0.3s ease-in-out, transform 0.1s ease-in-out, background-color 0.3s ease-in-out;
`}
}
${(props: any) => MediaQuery({ ${(props: any) => MediaQuery({
md: ` md: `
font-size: 1em; font-size: 1em;
@ -100,25 +108,4 @@ export default styled.div`
} }
` `
})} })}
&[disabled] {
border-color: hsl(0,0%,40%);
color: hsla(0,0%,40%,0.7);
cursor: default;
box-shadow: none;
${(props: any) => (props.active) ? `
box-shadow: inset 0 0 0 3em hsla(0,0%,40%,0.1);
background-color: hsl(0,0%,40%);`
: ``};
&::after {
border-color: hsl(0,0%,40%);
}
&:hover::after {
border-color: hsl(0,0%,40%);
transform: none;
box-shadow: none;
}
}
` `

View file

@ -5,7 +5,7 @@ export default styled.div`
position: absolute; position: absolute;
bottom: 35px; bottom: 35px;
font-size: 0.9em; font-size: 0.9em;
background-color: rgba(0,0,0,0.50); background-color: rgba(0, 0, 0, 0.5);
padding: 5px; padding: 5px;
color: var(--c-red); color: var(--c-red);
border-radius: 3px; border-radius: 3px;
@ -14,7 +14,6 @@ export default styled.div`
opacity: 0.99; opacity: 0.99;
overflow: auto; overflow: auto;
pointer-events: none; pointer-events: none;
/* max-width: 50vw; */
white-space: normal; white-space: normal;
${() => MediaQuery({ md: ` ${() => MediaQuery({ md: `
white-space: nowrap; ` white-space: nowrap; `

View file

@ -5,7 +5,7 @@ import MediaQuery, { breakpoints } from './media'
const BreakpointDebugFloat = styled.div` const BreakpointDebugFloat = styled.div`
position: absolute; position: absolute;
bottom: 0em; bottom: 0;
left: 0; left: 0;
pointer-events: none; pointer-events: none;
height: 1.4em; height: 1.4em;

View file

@ -23,7 +23,6 @@ const ResponsiveSplitter = styled.div`
line-height: 1.6; line-height: 1.6;
font-size: 1.3em; font-size: 1.3em;
flex-direction: column; flex-direction: column;
${() => MediaQuery({ ${() => MediaQuery({
md: `flex-direction: row; min-height: 100vh; position: relative; top: -50px;` md: `flex-direction: row; min-height: 100vh; position: relative; top: -50px;`
})} })}
@ -34,9 +33,7 @@ const ResponsiveSplitter = styled.div`
& section { & section {
text-align: center; text-align: center;
${() => MediaQuery({ ${() => MediaQuery({ md: `text-align: left;` })}
md: `text-align: left;`
})}
} }
` `

View file

@ -24,13 +24,7 @@ const mapStateToProps = (state, { router: { query: { id } } }) => {
} }
const Category = styled.div`` const Category = styled.div``
const Hider = styled.div``
const Hider = styled.div`
/* opacity: ${(props: any) => props.visible ? '1' : '0'}; */
/* opacity: 1; */
/* transition: opacity 0.15s ease-out; */
/* ${(props: any) => props.visible ? '' : 'display: none;'} */
`
const RoleHolder = styled.div` const RoleHolder = styled.div`
display: flex; display: flex;

View file

@ -6,7 +6,8 @@ import DiscordButton from '../../components/discord-button'
import RPC from '../../config/rpc' import RPC from '../../config/rpc'
import redirect from '../../lib/redirect' import redirect from '../../lib/redirect'
import dynamic from 'next/dynamic' import dynamic from 'next/dynamic'
import type { PageProps, ServerSlug } from '../../types' import type { PageProps } from '../../types'
import type { ServerSlug } from '@roleypoly/types'
import getConfig from 'next/config' import getConfig from 'next/config'
const { publicRuntimeConfig: { BOT_HANDLE } } = getConfig() const { publicRuntimeConfig: { BOT_HANDLE } } = getConfig()
@ -54,21 +55,24 @@ const SecretCode = styled.input`
appearance: none; appearance: none;
transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
&:focus, &:active, &:hover {
background-color: var(--c-3);
}
&:focus, &:active {
& ::placeholder {
color: transparent;
}
}
& ::placeholder { & ::placeholder {
transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
color: var(--c-7); color: var(--c-7);
text-align: center; text-align: center;
} }
&:focus,
&:active,
&:hover {
background-color: var(--c-3);
}
&:focus,
&:active {
& ::placeholder {
color: transparent;
}
}
` `
const HiderButton = styled.button` const HiderButton = styled.button`

View file

@ -34,7 +34,6 @@ const Collapser = styled.div`
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
${() => MediaQuery({ ${() => MediaQuery({
md: `flex-direction: row;` md: `flex-direction: row;`
})} })}