mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 11:55:01 +03:00
Updated frame styles
This commit is contained in:
parent
32c396d75b
commit
0eeff657de
@ -558,4 +558,38 @@ video {
|
||||
|
||||
.static {
|
||||
position: static;
|
||||
}
|
||||
|
||||
.mt-2 {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.w-full {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.rounded-md {
|
||||
border-radius: 0.375rem;
|
||||
}
|
||||
|
||||
.rounded {
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
.border {
|
||||
border-width: 1px;
|
||||
}
|
||||
|
||||
.bg-black {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.p-2 {
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.text-white {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(255 255 255 / var(--tw-text-opacity));
|
||||
}
|
@ -83,10 +83,15 @@ export default class App extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
const iFrameStyles = {
|
||||
border: 'none',
|
||||
width: '100%'
|
||||
};
|
||||
|
||||
return (
|
||||
<SentryErrorBoundary dsn={this.props.sentryDsn}>
|
||||
<AppContext.Provider value={this.getContextFromState()}>
|
||||
<CustomIFrame>
|
||||
<CustomIFrame style={iFrameStyles}>
|
||||
<Form />
|
||||
</CustomIFrame>
|
||||
</AppContext.Provider>
|
||||
|
@ -14,7 +14,7 @@ const CustomIFrame = ({
|
||||
);
|
||||
|
||||
return (
|
||||
<iframe {...props} ref={setContentRef} title='iframeyall'>
|
||||
<iframe {...props} ref={setContentRef} title='ghost-comments-iframe'>
|
||||
{headNode && createPortal(head, headNode)}
|
||||
{mountNode && createPortal(children, mountNode)}
|
||||
</iframe>
|
||||
|
@ -44,8 +44,8 @@ class Form extends React.Component {
|
||||
<figure className="avatar">
|
||||
<span />
|
||||
</figure>
|
||||
<textarea value={this.state.message} onChange={this.handleChange} placeholder="What are your thoughts?" />
|
||||
<button type="submit" className="button primary">Comment</button>
|
||||
<textarea className="w-full rounded-md border p-2" value={this.state.message} onChange={this.handleChange} placeholder="What are your thoughts?" />
|
||||
<button type="submit" className="bg-black p-2 text-white rounded w-full mt-2">Comment</button>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user