Skip to content

Commit

Permalink
update page to use better html / css
Browse files Browse the repository at this point in the history
seriously, it is still pretty bad. Like, why did it use position absolute? The layout it had was pretty easy to make without position absolute. Plus, many things were in illogical places, like the preview was after the editor, which makes no sense, because the preview is before the editor. Other weird things were, the export options were being added at the end of the body instead of before the preview.

I may have to go in and redo the entire css to make it much much better.
  • Loading branch information
ego-lay-atman-bay committed Jan 2, 2024
1 parent c91336e commit 41008f7
Show file tree
Hide file tree
Showing 2 changed files with 349 additions and 334 deletions.
25 changes: 13 additions & 12 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,16 @@ button:active, button.pressed, .button:active, .button.pressed {

/* editor */

main {
display: grid;
}

#lang-status {
font-size: 0.6rem;
line-height: 1em;
}

#editor {
position: relative;
overflow: hidden;
margin: 1em 0;
border: 1px solid #bbb;
Expand Down Expand Up @@ -194,7 +197,6 @@ button:active, button.pressed, .button:active, .button.pressed {
}

#preview {
position: relative;
}

.export-link {
Expand All @@ -208,28 +210,25 @@ button:active, button.pressed, .button:active, .button.pressed {
@media screen and (min-width: 62em) {
body {
padding: 1em 2em;
max-width: none;
}

main {
grid-template-columns: auto auto;
justify-content: space-around;
}

h1 {
position: relative;
}
h1 span {
display: block;
position: absolute;
top: 0;
left: 45%;
margin-left: 2rem;
}

#preview, #side {
position: absolute;
bottom: 2em; left: 2em; right: 2em;
}

#editor {
position: absolute;
top: 3.25em; bottom: 0; left: 2em; right: 0;
margin: 0;
height: 30em;
}
Expand All @@ -241,8 +240,6 @@ button:active, button.pressed, .button:active, .button.pressed {
}

#preview {
top: 8em;
right: 55%;
}

.export-link {
Expand All @@ -253,6 +250,10 @@ button:active, button.pressed, .button:active, .button.pressed {
}

@media screen and (max-width: 32em) {
main {
grid-template-columns: auto;
}

h1 span {
display: block;
margin: 1.5rem 0 1rem;
Expand Down
Loading

0 comments on commit 41008f7

Please sign in to comment.