mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
override material ui theme with twitter blue
This commit is contained in:
1 parent
9fe4cf0188
commit
3d5aadc46d
4 files changed
+22
-11
No files matched your search
@@ -55,13 +55,11 @@ export const TwitterApp = () => {
|
||||
);
|
||||
|
||||
return (
|
||||
<AppWrapper>
|
||||
<AppWrapper id="twitter-app">
|
||||
<TwitterTitle />
|
||||
<AppContent>
|
||||
<div id="twitter-content">
|
||||
<AddTweetModal visible={modalVisible} handleClose={hideModal} />
|
||||
{component}
|
||||
</div>
|
||||
<AddTweetModal visible={modalVisible} handleClose={hideModal} />
|
||||
{component}
|
||||
</AppContent>
|
||||
{showTweetButton && <TweetButton openModal={openModal} />}
|
||||
<BottomNavigation
|
||||
|
||||
@@ -25,7 +25,6 @@ export function ProfileUpdateButton({ handleClick }) {
|
||||
useEffect(() => {
|
||||
setMimimumLoadPassed(false);
|
||||
const timeout = window.setTimeout(() => {
|
||||
console.log("debug 1.0");
|
||||
setMimimumLoadPassed(true);
|
||||
}, MINIMUM_LOAD_TIME);
|
||||
return () => window.clearTimeout(timeout);
|
||||
|
||||
@@ -1,3 +1,21 @@
|
||||
.Mui-selected {
|
||||
/* 00acee is "twitter blue" and we want to use that to override
|
||||
some of the Material UI primary theme settings */
|
||||
|
||||
/* override the bottom navigation active color */
|
||||
#twitter-app .Mui-selected {
|
||||
color: #00acee !important;
|
||||
}
|
||||
/* override the FAB (action buttons) background when selected */
|
||||
#twitter-app .MuiFab-primary {
|
||||
background: #00acee !important;
|
||||
}
|
||||
|
||||
/* override the labels on text fields */
|
||||
#twitter-app .MuiInputLabel-formControl.Mui-focused {
|
||||
color: #00acee !important;
|
||||
}
|
||||
|
||||
/* override the underlines of text fields */
|
||||
#twitter-app .Mui-focused:after {
|
||||
border-bottom-color: #00acee !important;
|
||||
}
|
||||
Reference in new issue
Block a user