Skip to content

Commit

Permalink
Responsive layout
Browse files Browse the repository at this point in the history
  • Loading branch information
CorySanin committed Jan 15, 2024
1 parent c2ed453 commit 803a6f2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,10 @@ Seance takes a JSON or JSON5 config file (default location is config/config.json

## Ghost Installation

WIP
Create a page for your contact form. Add an "HTML" section. Add the following iframe:

```
<iframe width="100%" height="600" src="https://contact.example.com.com/?dark=false" frameBorder="0"></iframe>
```

Be sure to use the URL for your Seance instance. If you're using a dark theme you can change the `dark` parameter to `true`.
32 changes: 30 additions & 2 deletions styles/01-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ body {
.container {
max-width: 40em;
margin: auto;
padding: .25em 0;
padding: .25em;
}

.form {
Expand Down Expand Up @@ -58,7 +58,6 @@ button,
.button {
cursor: pointer;
display: inline-block;
padding: 5px 10px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
Expand All @@ -70,9 +69,38 @@ button,
}
}

input,
textarea,
button,
.button {
padding: 5px 10px;
}

body label {
padding: 5px 0px;
}

input,
textarea,
button,
.button {
border-radius: 2px;
}

@media screen and (max-width: 400px) {
.form {
grid-template-columns: 1fr;

&>label {
text-align: initial;
}
}

.fullwidth {
grid-column: span 1;
}

.second-col {
grid-column: 1;
}
}

0 comments on commit 803a6f2

Please sign in to comment.