fix(client): modal dialogs night mode

This commit is contained in:
Valeriy
2019-02-01 03:24:28 +03:00
committed by mrugesh mohapatra
parent 90555d6b16
commit 1f923db64b
6 changed files with 66 additions and 8 deletions

View File

@ -40,7 +40,7 @@ export class HelpModal extends Component {
> >
<Modal.Title className='text-center'>Ask for help?</Modal.Title> <Modal.Title className='text-center'>Ask for help?</Modal.Title>
</Modal.Header> </Modal.Header>
<Modal.Body className='text-center'> <Modal.Body className='help-modal-body text-center'>
<h3> <h3>
If you've already tried the&nbsp; If you've already tried the&nbsp;
<a <a

View File

@ -56,7 +56,7 @@ function ResetModal({ reset, close, isOpen }) {
</p> </p>
</div> </div>
</Modal.Body> </Modal.Body>
<Modal.Footer> <Modal.Footer className='reset-modal-footer'>
<Button <Button
block={true} block={true}
bsSize='large' bsSize='large'

View File

@ -32,13 +32,13 @@ export class VideoModal extends Component {
show={isOpen} show={isOpen}
> >
<Modal.Header <Modal.Header
className='help-modal-header fcc-modal' className='video-modal-header fcc-modal'
closeButton={true} closeButton={true}
> >
<Modal.Title className='text-center'>Watch A Video</Modal.Title> <Modal.Title className='text-center'>Watch A Video</Modal.Title>
</Modal.Header> </Modal.Header>
<Modal.Body> <Modal.Body className='video-modal-body'>
<iframe frameBorder='0' src={videoUrl} title='Watch a video'/> <iframe frameBorder='0' src={videoUrl} title='Watch a video' />
<p> <p>
Tip: If the mini-browser is covering the code, click and drag to Tip: If the mini-browser is covering the code, click and drag to
move it. Also, feel free to stop and edit the code in the video at move it. Also, feel free to stop and edit the code in the video at

View File

@ -3,3 +3,15 @@
font-size: 16px; font-size: 16px;
} }
} }
.night .help-modal-header .close {
color: #fff;
}
.night .help-modal-body,
.night .help-modal-header {
background-color: #333;
}
.night .help-modal-header {
border-bottom-color: #222;
}

View File

@ -10,8 +10,20 @@
text-shadow: none; text-shadow: none;
} }
.night .reset-modal-header .close {
color: #222;
}
@media screen and (max-width: 767px) { @media screen and (max-width: 767px) {
.reset-modal .btn-lg { .reset-modal .btn-lg {
font-size: 16px; font-size: 16px;
} }
} }
.night .reset-modal-body,
.night .reset-modal-footer {
background-color: #333;
}
.night .reset-modal-footer {
border-top-color: #222;
}

View File

@ -1,10 +1,44 @@
.video-modal { .video-modal {
height: calc(100vh - 20px);
}
@media (min-width: 768px) {
.video-modal {
width: 90%; width: 90%;
height: calc(100vh - 60px);
}
}
.video-modal .modal-content {
height: 100%;
display: flex;
flex-direction: column;
}
.video-modal-body {
flex-grow: 1;
display: flex;
flex-direction: column;
} }
.video-modal iframe { .video-modal iframe {
width: 100%; width: 100%;
height: 70vh; margin-bottom: 0;
margin-bottom: 0px; flex-grow: 1;
} }
.video-modal p {
margin-bottom: 0;
}
.night .video-modal-header .close {
color: #fff;
}
.night .video-modal-body,
.night .video-modal-header {
background-color: #333;
}
.night .video-modal-header {
border-bottom-color: #222;
}