mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
adding darkmode to identity component
This commit is contained in:
parent
17f6eea3e8
commit
696dace1bb
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
import 'antd/dist/reset.css';
|
import 'antd/dist/reset.css';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
import { HashRouter as Router, Routes, Route } from "react-router-dom";
|
import { HashRouter as Router, Routes, Route } from "react-router-dom";
|
||||||
|
|
||||||
import { AppContextProvider } from 'context/AppContext';
|
import { AppContextProvider } from 'context/AppContext';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const AccessWrapper = styled.div`
|
export const AccessWrapper = styled.div`
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const AdminWrapper = styled.div`
|
export const AdminWrapper = styled.div`
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const CreateAccountWrapper = styled.div`
|
export const CreateAccountWrapper = styled.div`
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const LoginWrapper = styled.div`
|
export const LoginWrapper = styled.div`
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const CarouselWrapper = styled.div`
|
export const CarouselWrapper = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const Colors = {
|
export const Colors = {
|
||||||
background: '#8fbea7',
|
background: '#8fbea7',
|
||||||
primary: '#448866',
|
primary: '#448866',
|
||||||
formBackground: '#f2f2f2',
|
formBackground: '#f2f2f2',
|
||||||
@ -37,4 +37,45 @@ const Colors = {
|
|||||||
selectHover: '#fafafa',
|
selectHover: '#fafafa',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Colors;
|
export const LightTheme = {
|
||||||
|
headerArea: '#f2f2f2',
|
||||||
|
footerArea: '#f2f2f2',
|
||||||
|
itemArea: '#f8f8f8',
|
||||||
|
hoverArea: '#efefef',
|
||||||
|
selectedArea: '#e8e8e8',
|
||||||
|
enabledArea: '#448866',
|
||||||
|
disabledArea: '#cccccc',
|
||||||
|
mainText: '#444444',
|
||||||
|
hintText: '#777777',
|
||||||
|
activeText: '#ffffff',
|
||||||
|
idleText: '#aaaaaa',
|
||||||
|
placeholderText: '#777777',
|
||||||
|
linkText: '#448866',
|
||||||
|
labelText: '#888888',
|
||||||
|
alertText: '#ff8888',
|
||||||
|
itemLine: '#eeeeee',
|
||||||
|
sectionLine: '#dddddd',
|
||||||
|
headerLine: '#aaaaaa',
|
||||||
|
};
|
||||||
|
|
||||||
|
export const DarkTheme = {
|
||||||
|
headerArea: '#111111',
|
||||||
|
footerArea: '#111111',
|
||||||
|
itemArea: '#222222',
|
||||||
|
hoverArea: '#444444',
|
||||||
|
selectedArea: '#333333',
|
||||||
|
enabledArea: '#448866',
|
||||||
|
disabledArea: '#888888',
|
||||||
|
mainText: '#ffffff',
|
||||||
|
hintText: '#aaaaaa',
|
||||||
|
activeText: '#ffffff',
|
||||||
|
idleText: '#aaaaaa',
|
||||||
|
placeholderText: '#cccccc',
|
||||||
|
linkText: '#448866',
|
||||||
|
labelText: '#dddddd',
|
||||||
|
alertText: '#ff8888',
|
||||||
|
itemLine: '#555555',
|
||||||
|
sectionLine: '#777777',
|
||||||
|
headerLine: '#aaaaaa',
|
||||||
|
};
|
||||||
|
|
||||||
|
@ -1,75 +1,5 @@
|
|||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
import { LightTheme, DarkTheme } from 'constants/Colors';
|
||||||
const LightTheme = {
|
|
||||||
background: '#8fbea7',
|
|
||||||
primary: '#448866',
|
|
||||||
formBackground: '#f2f2f2',
|
|
||||||
darkBackground: '#222222',
|
|
||||||
formFocus: '#f8f8f8',
|
|
||||||
formHover: '#efefef',
|
|
||||||
grey: '#888888',
|
|
||||||
white: '#ffffff',
|
|
||||||
black: '#000000',
|
|
||||||
divider: '#dddddd',
|
|
||||||
mask: '#dddddd',
|
|
||||||
encircle: '#cccccc',
|
|
||||||
alert: '#ff8888',
|
|
||||||
warn: '#dd4444',
|
|
||||||
enabled: '#444444',
|
|
||||||
disabled: '#aaaaaa',
|
|
||||||
text: '#444444',
|
|
||||||
link: '#0077CC',
|
|
||||||
itemDivider: '#eeeeee',
|
|
||||||
connected: '#44cc44',
|
|
||||||
connecting: '#dd88ff',
|
|
||||||
requested: '#4488ff',
|
|
||||||
pending: '#22aaaa',
|
|
||||||
confirmed: '#aaaaaa',
|
|
||||||
error: '#ff4444',
|
|
||||||
profileForm: '#e8e8e8',
|
|
||||||
profileDivider: '#aaaaaa',
|
|
||||||
statsForm: '#ededed',
|
|
||||||
statsDivider: '#afafaf',
|
|
||||||
channel: '#f2f2f2',
|
|
||||||
card: '#eeeeee',
|
|
||||||
selectHover: '#fafafa',
|
|
||||||
};
|
|
||||||
|
|
||||||
const DarkTheme = {
|
|
||||||
background: '#8fbea7',
|
|
||||||
primary: '#448866',
|
|
||||||
formBackground: '#f2f2f2',
|
|
||||||
darkBackground: '#222222',
|
|
||||||
formFocus: '#f8f8f8',
|
|
||||||
formHover: '#efefef',
|
|
||||||
grey: '#888888',
|
|
||||||
white: '#ffffff',
|
|
||||||
black: '#000000',
|
|
||||||
divider: '#dddddd',
|
|
||||||
mask: '#dddddd',
|
|
||||||
encircle: '#cccccc',
|
|
||||||
alert: '#ff8888',
|
|
||||||
warn: '#dd4444',
|
|
||||||
enabled: '#444444',
|
|
||||||
disabled: '#aaaaaa',
|
|
||||||
text: '#444444',
|
|
||||||
link: '#0077CC',
|
|
||||||
itemDivider: '#eeeeee',
|
|
||||||
connected: '#44cc44',
|
|
||||||
connecting: '#dd88ff',
|
|
||||||
requested: '#4488ff',
|
|
||||||
pending: '#22aaaa',
|
|
||||||
confirmed: '#aaaaaa',
|
|
||||||
error: '#ff4444',
|
|
||||||
profileForm: '#e8e8e8',
|
|
||||||
profileDivider: '#aaaaaa',
|
|
||||||
statsForm: '#ededed',
|
|
||||||
statsDivider: '#afafaf',
|
|
||||||
channel: '#f2f2f2',
|
|
||||||
card: '#eeeeee',
|
|
||||||
selectHover: '#fafafa',
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
export function useSettingsContext() {
|
export function useSettingsContext() {
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Button, Space } from 'antd';
|
import { Button, Space } from 'antd';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const DashboardWrapper = styled.div`
|
export const DashboardWrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { useState, useRef } from 'react';
|
import { useState, useRef } from 'react';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export function useCopyButton() {
|
export function useCopyButton() {
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const RingingWrapper = styled.div`
|
export const RingingWrapper = styled.div`
|
||||||
.ringing-list {
|
.ringing-list {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const AccountWrapper = styled.div`
|
export const AccountWrapper = styled.div`
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const ProfileWrapper = styled.div`
|
export const ProfileWrapper = styled.div`
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const AccountAccessWrapper = styled.div`
|
export const AccountAccessWrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const BottomNavWrapper = styled.div`
|
export const BottomNavWrapper = styled.div`
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const CardSelectWrapper = styled.div`
|
export const CardSelectWrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const SelectItemWrapper = styled.div`
|
export const SelectItemWrapper = styled.div`
|
||||||
.active {
|
.active {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const CardsWrapper = styled.div`
|
export const CardsWrapper = styled.div`
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const CardItemWrapper = styled.div`
|
export const CardItemWrapper = styled.div`
|
||||||
height: 48px;
|
height: 48px;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const ChannelsWrapper = styled.div`
|
export const ChannelsWrapper = styled.div`
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const AddChannelWrapper = styled.div`
|
export const AddChannelWrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const ChannelItemWrapper = styled.div`
|
export const ChannelItemWrapper = styled.div`
|
||||||
height: 48px;
|
height: 48px;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const ContactWrapper = styled.div`
|
export const ContactWrapper = styled.div`
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const ConversationWrapper = styled.div`
|
export const ConversationWrapper = styled.div`
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const AddTopicWrapper = styled.div`
|
export const AddTopicWrapper = styled.div`
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const BinaryFileWrapper = styled.div`
|
export const BinaryFileWrapper = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const ChannelHeaderWrapper = styled.div`
|
export const ChannelHeaderWrapper = styled.div`
|
||||||
margin-left: 16px;
|
margin-left: 16px;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const TopicItemWrapper = styled.div`
|
export const TopicItemWrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -4,7 +4,7 @@ import ReactResizeDetector from 'react-resize-detector';
|
|||||||
import { PlayCircleOutlined, MinusCircleOutlined, SoundOutlined } from '@ant-design/icons';
|
import { PlayCircleOutlined, MinusCircleOutlined, SoundOutlined } from '@ant-design/icons';
|
||||||
import { AudioAssetWrapper, AudioModalWrapper } from './AudioAsset.styled';
|
import { AudioAssetWrapper, AudioModalWrapper } from './AudioAsset.styled';
|
||||||
import { useAudioAsset } from './useAudioAsset.hook';
|
import { useAudioAsset } from './useAudioAsset.hook';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
import background from 'images/audio.png';
|
import background from 'images/audio.png';
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const AudioAssetWrapper = styled.div`
|
export const AudioAssetWrapper = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -4,7 +4,7 @@ import ReactResizeDetector from 'react-resize-detector';
|
|||||||
import { DownloadOutlined } from '@ant-design/icons';
|
import { DownloadOutlined } from '@ant-design/icons';
|
||||||
import { BinaryAssetWrapper } from './BinaryAsset.styled';
|
import { BinaryAssetWrapper } from './BinaryAsset.styled';
|
||||||
import { useBinaryAsset } from './useBinaryAsset.hook';
|
import { useBinaryAsset } from './useBinaryAsset.hook';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export function BinaryAsset({ asset }) {
|
export function BinaryAsset({ asset }) {
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import { Progress, Modal, Spin } from 'antd';
|
|||||||
import ReactResizeDetector from 'react-resize-detector';
|
import ReactResizeDetector from 'react-resize-detector';
|
||||||
import { ImageAssetWrapper, ImageModalWrapper } from './ImageAsset.styled';
|
import { ImageAssetWrapper, ImageModalWrapper } from './ImageAsset.styled';
|
||||||
import { useImageAsset } from './useImageAsset.hook';
|
import { useImageAsset } from './useImageAsset.hook';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export function ImageAsset({ asset }) {
|
export function ImageAsset({ asset }) {
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const ImageAssetWrapper = styled.div`
|
export const ImageAssetWrapper = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -3,7 +3,7 @@ import ReactResizeDetector from 'react-resize-detector';
|
|||||||
import { VideoCameraOutlined } from '@ant-design/icons';
|
import { VideoCameraOutlined } from '@ant-design/icons';
|
||||||
import { VideoAssetWrapper, VideoModalWrapper } from './VideoAsset.styled';
|
import { VideoAssetWrapper, VideoModalWrapper } from './VideoAsset.styled';
|
||||||
import { useVideoAsset } from './useVideoAsset.hook';
|
import { useVideoAsset } from './useVideoAsset.hook';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export function VideoAsset({ asset }) {
|
export function VideoAsset({ asset }) {
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const VideoAssetWrapper = styled.div`
|
export const VideoAssetWrapper = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const DetailsWrapper = styled.div`
|
export const DetailsWrapper = styled.div`
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const EditMembersWrapper = styled.div`
|
export const EditMembersWrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const IdentityWrapper = styled.div`
|
export const IdentityWrapper = styled.div`
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -9,18 +9,26 @@ export const IdentityWrapper = styled.div`
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
padding-left: 16px;
|
padding-left: 16px;
|
||||||
padding-right: 16px;
|
padding-right: 16px;
|
||||||
border-bottom: 1px solid ${Colors.divider};
|
|
||||||
@media (prefers-color-scheme: light) {
|
@media (prefers-color-scheme: light) {
|
||||||
background-color: ${props => props.theme.light.formBackground};
|
background-color: ${props => props.theme.light.headerArea};
|
||||||
|
border-bottom: 1px solid ${props => props.theme.light.sectionLine};
|
||||||
|
color: ${props => props.theme.light.mainText};
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
background-color: ${props => props.theme.dark.formBackground};
|
background-color: ${props => props.theme.dark.headerArea};
|
||||||
|
border-bottom: 1px solid ${props => props.theme.dark.sectionLine};
|
||||||
|
color: ${props => props.theme.dark.mainText};
|
||||||
}
|
}
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: ${Colors.formFocus};
|
@media (prefers-color-scheme: light) {
|
||||||
|
background-color: ${props => props.theme.light.hoverArea};
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
background-color: ${props => props.theme.dark.hoverArea};
|
||||||
|
}
|
||||||
|
|
||||||
.drop {
|
.drop {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@ -31,7 +39,14 @@ export const IdentityWrapper = styled.div`
|
|||||||
padding-left: 4px;
|
padding-left: 4px;
|
||||||
padding-right: 4px;
|
padding-right: 4px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
border: 1px solid ${Colors.formBackground};
|
@media (prefers-color-scheme: light) {
|
||||||
|
border: 1px solid ${props => props.theme.light.sectionLine};
|
||||||
|
color: ${props => props.theme.light.mainText};
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
border: 1px solid ${props => props.theme.dark.sectionLine};
|
||||||
|
color: ${props => props.theme.dark.mainText};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
@ -73,15 +88,30 @@ export const LogoutContent = styled.div`
|
|||||||
|
|
||||||
.logoutMode {
|
.logoutMode {
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
color: ${Colors.text};
|
@media (prefers-color-scheme: light) {
|
||||||
|
color: ${props => props.theme.light.mainText};
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
color: ${props => props.theme.dark.mainText};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
export const ErrorNotice = styled.div`
|
export const ErrorNotice = styled.div`
|
||||||
color: ${Colors.alert};
|
@media (prefers-color-scheme: light) {
|
||||||
|
color: ${props => props.theme.light.alertText};
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
color: ${props => props.theme.dark.alertText};
|
||||||
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
export const InfoNotice = styled.div`
|
export const InfoNotice = styled.div`
|
||||||
color: ${Colors.primary};
|
@media (prefers-color-scheme: light) {
|
||||||
|
color: ${props => props.theme.light.linkText};
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
color: ${props => props.theme.dark.linkText};
|
||||||
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const ListingWrapper = styled.div`
|
export const ListingWrapper = styled.div`
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Colors from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
|
|
||||||
export const ListingItemWrapper = styled.div`
|
export const ListingItemWrapper = styled.div`
|
||||||
height: 48px;
|
height: 48px;
|
||||||
|
Loading…
Reference in New Issue
Block a user