mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 09:35:56 -05:00
css fixes and refactors
This commit is contained in:
parent
cb3864c67a
commit
1364e4400f
2 changed files with 11 additions and 20 deletions
|
@ -5,23 +5,23 @@
|
||||||
.modal-content{
|
.modal-content{
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
max-width: 31.25rem;
|
max-width: 500px;
|
||||||
|
|
||||||
h1{
|
h1{
|
||||||
font-size: 32px;
|
font-size: 2rem;
|
||||||
line-height: 40px;
|
line-height: 2.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-content-close{
|
.modal-content-close{
|
||||||
top: 0.3rem;
|
top: 5px;
|
||||||
right: 0.3rem;
|
right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-middle-content{
|
.modal-middle-content{
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-right-content{
|
.modal-text-content{
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
|
|
|
@ -192,20 +192,11 @@ const PreviewPresentation = ({
|
||||||
/>);
|
/>);
|
||||||
}
|
}
|
||||||
} else if (!isShared) {
|
} else if (!isShared) {
|
||||||
if (canShare){
|
banner = (<Banner
|
||||||
banner = (<Banner
|
actionMessage={<FormattedMessage id="project.share.shareButton" />}
|
||||||
actionMessage={<FormattedMessage id="project.share.shareButton" />}
|
message={<FormattedMessage id="project.share.notShared" />}
|
||||||
message={<FormattedMessage id="project.share.notShared" />}
|
onAction={canShare ? onShare : onShareAttempt}
|
||||||
onAction={onShare}
|
/>);
|
||||||
/>);
|
|
||||||
} else {
|
|
||||||
banner = (<Banner
|
|
||||||
actionMessage={<FormattedMessage id="project.share.shareButton" />}
|
|
||||||
message={<FormattedMessage id="project.share.notShared" />}
|
|
||||||
onAction={onShareAttempt}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue