Skip to content

Commit 4b1f14a

Browse files
authored
Merge pull request #13 from oslabs-beta/Hernan/CSS
Hernan/css
2 parents 7a566cd + ff0a365 commit 4b1f14a

File tree

18 files changed

+64
-48
lines changed

18 files changed

+64
-48
lines changed

app/src/components/ContextAPIManager/ContextManager.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import { RootState } from '../../redux/store';
1515

1616
const useStyles = makeStyles({
1717
contextContainer: {
18-
backgroundColor: 'white',
19-
height: 'fit-content'
18+
backgroundColor: '#191919',
19+
height: 'fit-content',
2020
}
2121
});
2222

@@ -33,7 +33,7 @@ const ContextManager = (props): JSX.Element => {
3333
};
3434

3535
const background_Color = isDarkMode ? '#21262b' : 'white'
36-
const color = isDarkMode ? 'white' : 'black'
36+
const color = isDarkMode ? 'white' : 'white'
3737

3838
return (
3939
<React.Fragment>

app/src/components/ContextAPIManager/CreateTab/CreateContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const CreateContainer = () => {
122122
<Divider orientation="vertical" variant="middle" flexItem />
123123
<Grid item>
124124
<Typography
125-
style={{ color: 'black' }}
125+
style={{ color: 'white' }}
126126
variant="h6"
127127
gutterBottom={true}
128128
>

app/src/components/ContextAPIManager/CreateTab/components/AddContextForm.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const AddContextForm = ({
3030
isDarkMode: store.darkMode.isDarkMode,
3131
state: store.appState
3232
}));
33-
const color = isDarkMode ? 'white' : 'black';
33+
const color = isDarkMode ? 'black' : 'white';
3434

3535
//handler for submitting new context for creation
3636
const handleSubmit = () => {
@@ -113,6 +113,7 @@ const AddContextForm = ({
113113
</Snackbar>
114114
<Button
115115
variant="contained"
116+
color="primary"
116117
onClick={handleSubmit}
117118
disabled={btnDisabled}
118119
>
@@ -140,7 +141,7 @@ const AddContextForm = ({
140141
</Select>
141142
</FormControl>
142143
<Button
143-
color="error"
144+
color="primary"
144145
variant="contained"
145146
onClick={handleDeleteContextClick}
146147
>

app/src/components/ContextAPIManager/CreateTab/components/AddDataForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const AddDataForm = ({ handleClickInputData, currentContext }) => {
1919
}
2020
handleClickInputData(currentContext, dataContext);
2121
};
22-
const color = isDarkMode ? 'white' : 'black';
22+
const color = isDarkMode ? 'black' : 'white';
2323

2424
const handleChange = (e) => {
2525
setDataContext((prevDataContext) => {

app/src/components/StateManagement/CreateTab/components/StatePropsPanel.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,15 +510,15 @@ const useStyles = makeStyles((theme: Theme) => ({
510510
textAlign: 'center',
511511
margin: '-20px 0px 5px 150px',
512512
borderStyle: 'none',
513-
transition: '0.3s'
513+
transition: '0.3s',
514514
// borderRadius: "25px",
515515
},
516516
rootToggle: {
517517
color: '#696969',
518518
fontSize: '0.85rem'
519519
},
520520
lightThemeFontColor: {
521-
color: '#155084'
521+
color: 'white'
522522
},
523523
darkThemeFontColor: {
524524
color: '#fff'
@@ -575,7 +575,7 @@ const useStyles = makeStyles((theme: Theme) => ({
575575
},
576576
inputTextLight: {
577577
'& .MuiInputBase-input': {
578-
color: 'rgba(0,0,0,0.54)'
578+
color: 'white'
579579
}
580580
}
581581
}));

app/src/components/StateManagement/CreateTab/components/TableParentProps.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ const TableParentProps = props => {
119119

120120
const useStyles = makeStyles({
121121
themeLight: {
122-
color: 'rgba(0,0,0,0.54)',
122+
color: 'white',
123123
'& button:hover':{
124124
backgroundColor: 'LightGray'
125125
},
126126
'& button':{
127-
color: 'black'
127+
color: 'white'
128128
},
129129
'& .MuiTablePagination-root': {
130130
color: 'rbga(0,0,0,0.54)'

app/src/components/StateManagement/CreateTab/components/TablePassedInProps.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ const TablePassedInProps = props => {
111111
// colors of state mgmt modal
112112
const useStyles = makeStyles({
113113
themeLight: {
114-
color: 'rgba(0,0,0,0.54)',
114+
color: 'white',
115115
'& button:hover':{
116116
backgroundColor: 'LightGray'
117117
},
118118
'& button':{
119-
color: 'black'
119+
color: 'white'
120120
},
121121
'& .MuiTablePagination-root': {
122122
color: 'rbga(0,0,0,0.54)'

app/src/components/StateManagement/CreateTab/components/TableStateProps.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ const TableStateProps = props => {
116116

117117
const useStyles = makeStyles({
118118
themeLight: {
119-
color: 'rgba(0,0,0,0.54)',
119+
color: 'white',
120120
'& button:hover':{
121121
backgroundColor: 'LightGray'
122122
},
123123
'& button':{
124-
color: 'black'
124+
color: 'white'
125125
}
126126
},
127127
themeDark: {

app/src/components/StateManagement/StateManagement.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const StateManager = (props): JSX.Element => {
3636
// add hook here to access which component has been clicked
3737
// then this will re-render the dataTable
3838

39-
const background_Color = isDarkMode ? '#21262b' : 'white';
39+
const background_Color = isDarkMode ? '#21262b' : '#191919';
4040
const color = isDarkMode ? 'white' : 'black';
4141

4242
return (
@@ -52,9 +52,9 @@ const StateManager = (props): JSX.Element => {
5252
<Tab
5353
label="Create/Edit"
5454
value="1"
55-
style={{ color: '#003366' }}
55+
style={{ color: 'white' }}
5656
/>
57-
<Tab label="Display" value="2" style={{ color: '#003366' }} />
57+
<Tab label="Display" value="2" style={{ color: 'white' }} />
5858
</TabList>
5959
</Box>
6060
<TabPanel value="1">

app/src/components/bottom/BottomTabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const BottomTabs = (props): JSX.Element => {
4949
return (
5050
<div
5151
className={`${classes.root} ${classes.rootLight}`}
52-
style={{ backgroundColor: '#003366' }}
52+
style={{ backgroundColor: '#191919' }}
5353
>
5454
<Box
5555
display="flex"

app/src/components/left/HTMLPanel.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
} from '@mui/material';
99
import TextField from '@mui/material/TextField';
1010
import { RootState } from '../../redux/store';
11+
import { BorderColor } from '@mui/icons-material';
1112

1213
/*
1314
DESCRIPTION: This is the bottom half of the left panel, starting from the 'HTML
@@ -332,13 +333,13 @@ const useStyles = makeStyles({
332333
fontFamily: 'Roboto, Raleway, sans-serif',
333334
fontSize: '85%',
334335
textAlign: 'center',
335-
borderStyle: 'none',
336336
transition: '0.3s',
337337
borderRadius: '4px',
338-
alignSelf: 'center'
338+
alignSelf: 'center',
339+
border: '1px solid #186BB4'
339340
},
340341
lightThemeFontColor: {
341-
color: '#155084',
342+
color: 'white',
342343
'& .MuiInputBase-root': {
343344
color: 'rgba (0, 0, 0, 0.54)'
344345
}

app/src/components/main/Canvas.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function Canvas(props): JSX.Element {
127127
const defaultCanvasStyle = {
128128
width: '100%',
129129
minHeight: '100%',
130-
backgroundColor: isOver ? '#FAFED1' : '#FBFBFB',
130+
backgroundColor: isOver ? '#191919' : '#191919',
131131
border: '1px solid #FBFBF2',
132132
borderStyle: isOver ? 'dotted' : 'solid',
133133
aspectRatio: 'auto 774 / 1200',

app/src/components/main/DirectChildHTML.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ function DirectChildHTML({ childId, name, type, typeId, style }: ChildElement) {
5252
const interactiveStyle = {
5353
border:
5454
state.canvasFocus.childId === childId
55-
? '3px solid #186BB4'
56-
: '1px solid grey'
55+
? '4px solid #186BB4'
56+
: '2px solid #4d8cc4'
5757
};
5858

5959
const combinedStyle = combineStyles(
@@ -71,7 +71,7 @@ function DirectChildHTML({ childId, name, type, typeId, style }: ChildElement) {
7171
id={`canv${childId}`}
7272
>
7373
<span>
74-
<strong style={{ color:'black'}}>
74+
<strong style={{ color:'white'}}>
7575
{HTMLType.placeHolderShort}
7676
</strong>
7777
<DeleteButton

app/src/components/main/DirectChildHTMLNestable.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ function DirectChildHTMLNestable({
137137
};
138138

139139
// interactive style to change color when nested element is hovered over
140-
if (isOver) defaultNestableStyle['yellow'];
141-
defaultNestableStyle['backgroundColor'] = isOver ? 'yellow' : defaultNestableStyle['backgroundColor'];
140+
if (isOver) defaultNestableStyle['rgba(24, 107, 180, 0.2)'];
141+
defaultNestableStyle['backgroundColor'] = isOver ? 'rgba(24, 107, 180, 0.2)' : defaultNestableStyle['backgroundColor'];
142142

143143
const combinedStyle = combineStyles(
144144
combineStyles(combineStyles(defaultNestableStyle, HTMLType.style), style),
@@ -171,7 +171,7 @@ function DirectChildHTMLNestable({
171171
id={`canv${childId}`}
172172
>
173173
<span>
174-
<strong style={{ color: 'black' }}>{HTMLType.placeHolderShort}
174+
<strong style={{ color: 'white' }}>{HTMLType.placeHolderShort}
175175
</strong>
176176
<strong style={{ color: "#0099E6" }}>{attributes && attributes.compLink ? ` ${attributes.compLink}` : ''}
177177
</strong>

app/src/components/right/ComponentPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ const useStyles = makeStyles({
302302
fontSize: '0.85rem'
303303
},
304304
lightThemeFontColor: {
305-
color: '#155084',
305+
color: 'white',
306306
'& .MuiInputBase-root': {
307307
color: 'rgba (0, 0, 0, 0.54)'
308308
}

app/src/containers/CustomizationPanel.tsx

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,13 @@ const CustomizationPanel = ({ isThemeLight }): JSX.Element => {
546546
<div className="rightPanelWrapper">
547547
<div>
548548
<div className={classes.configHeader}>
549-
<h4>
549+
<h4
550+
className={
551+
isThemeLight
552+
? classes.lightThemeFontColor
553+
: classes.darkThemeFontColor
554+
}
555+
>
550556
Instance of
551557
{configTarget.child.type === 'component'
552558
? ' component'
@@ -846,7 +852,7 @@ const CustomizationPanel = ({ isThemeLight }): JSX.Element => {
846852
<div className={classes.buttonRow}>
847853
<Button
848854
variant="contained"
849-
style={{ backgroundColor: 'green' }}
855+
color="primary"
850856
className={
851857
isThemeLight
852858
? `${classes.button} ${classes.saveButtonLight}`
@@ -899,7 +905,11 @@ const CustomizationPanel = ({ isThemeLight }): JSX.Element => {
899905
<Button
900906
variant="outlined"
901907
color="primary"
902-
className={classes.button}
908+
className={
909+
isThemeLight
910+
? `${classes.button} ${classes.saveButtonLight}`
911+
: `${classes.button} ${classes.saveButtonDark}`
912+
}
903913
onClick={handleDelete}
904914
>
905915
DELETE INSTANCE
@@ -1019,7 +1029,8 @@ const useStyles = makeStyles({
10191029
paddingRight: '20px'
10201030
},
10211031
saveButtonLight: {
1022-
border: '1px solid #186BB4'
1032+
border: '1px solid #186BB4',
1033+
backgroundColor: 'rgba(0, 0, 0, 0.2)'
10231034
},
10241035
saveButtonDark: {
10251036
border: '1px solid #3F51B5'
@@ -1050,7 +1061,7 @@ const useStyles = makeStyles({
10501061
}
10511062
},
10521063
lightThemeFontColor: {
1053-
color: '#155084'
1064+
color: 'white'
10541065
},
10551066
darkThemeFontColor: {
10561067
color: '#fff'

app/src/public/styles/globalDefaultStyles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ const globalDefaultStyle: Object = {
77
boxSizing: 'border-box',
88
padding: '10px 20px 10px 20px',
99
margin: '10px',
10-
borderRadius: '5px',
10+
borderRadius: '2px',
1111
border: '10px Solid grey',
1212
fontFamily: 'Helvetica Neue',
1313
maxWidth: 'fit-content',
1414
minWidth: '250px',
15-
backgroundColor: 'white', // experiment to see what is inherited
15+
backgroundColor: 'rgba(0, 0, 0, 0.2)', // experiment to see what is inherited
1616
};
1717

1818
export default globalDefaultStyle;

0 commit comments

Comments
 (0)