Skip to content

Commit

Permalink
Change Layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ohno committed Sep 28, 2024
1 parent f7cf24b commit e7ed999
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 51 deletions.
97 changes: 50 additions & 47 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ body {
background: #EDF2F7;
margin: 0;
padding-top: 64px;
padding-left: calc((100vw - 800px) / 2);
padding-right: calc((100vw - 800px) / 2);
padding-bottom: 64px;
/* padding-left: calc((100vw - 800px) / 2); */
/* padding-right: calc((100vw - 800px) / 2); */
/* padding-bottom: 64px; */
box-sizing: border-box;
min-height: 100vh;
min-height: -webkit-fill-available;
height: 100vh;
height: -webkit-fill-available;
overflow-x: hidden;
}

Expand All @@ -93,8 +93,8 @@ header {
height: 64px;
line-height: 20px;
padding-top: 18px;
padding-left: calc((100vw - 800px) / 2);
padding-right: calc((100vw - 800px) / 2);
padding-left: 21px; /* calc((100vw - 800px) / 2); */
padding-right: 21px; /*calc((100vw - 800px) / 2); */
padding-bottom: 14px;
box-sizing: border-box;
}
Expand Down Expand Up @@ -125,9 +125,9 @@ header .logo h1 span {
/* padding-left: 5px; */
line-height: 1em;
color: #3265B2;
/* background: linear-gradient(90deg, rgba(0,255,200,1) 0%, rgba(0,200,255,1) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent; */
/* background: linear-gradient(90deg, rgba(0,255,200,1) 0%, rgba(0,200,255,1) 100%); */
/* -webkit-background-clip: text; */
/* -webkit-text-fill-color: transparent; */
}

header .menu,
Expand All @@ -141,12 +141,15 @@ header .menu img {
main {
z-index: 2;
position: relative;
min-height: calc(100vh - 182px);
padding-top: 52px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
min-height: calc(100vh - 80px);
padding: 8px;
box-sizing: border-box;
max-height: 100%;
overflow: hidden;
/* display: flex; */
/* align-items: center; */
/* justify-content: center; */
/* flex-direction: column; */
}

footer {
Expand All @@ -164,45 +167,48 @@ footer {
@media screen and (max-width:840px) {
body {
padding-top: 60px;
padding-bottom: 60px;
}
body, header {
padding-left: 20px;
padding-right: 20px;
padding-left: 10px;
padding-right: 10px;
/* padding-bottom: 60px; */
}
header {
height: 60px;
padding-top: 16px;
padding-left: 20px;
padding-right: 20px;
}
footer {
height: 60px;
margin-bottom: -60px;
}
main {
min-height: calc(100vh - 120px);
/* padding-top: 0; */
min-height: calc(50vh - 140px);
}
}

@media screen and (min-width:1400px) {
body, header {
padding-left: calc((100vw - 1000px) / 2);
padding-right: calc((100vw - 1000px) / 2);
/* padding-left: calc((100vw - 1000px) / 2); */
/* padding-right: calc((100vw - 1000px) / 2); */
}
}

/* main */

.textareas {
background: #FFFFFFF0;
border: 1px solid #c6cdd5;
border-radius: 10px;
/* background: #FFFFFFF0; */
/* border: 1px solid #c6cdd5; */
/* border-radius: 10px; */
/* box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); */
box-sizing: border-box;
display: flex;
flex-direction: row;
/* align-items: flex-start; */
justify-content: space-between;
position: relative;
width: 100%;
/* height: 100%; */
}

@media screen and (max-width:840px) {
Expand Down Expand Up @@ -265,41 +271,38 @@ footer {
}

.textareas__block__editor {
background: none;
border: none;
border-top: 1px solid #c6cdd5;
border-right: 1px solid #c6cdd5;
border-radius: 0 0 0 10px;
background: #FFFFFFF0;
border: 1px solid #c6cdd5;
/* border-radius: 0 0 0 10px; */
box-sizing: border-box;
font-family: Consolas;
font-size: 13px;
height: 420px;
min-height: 420px;
height: calc(100% - 62px);
max-width: 100%;
}

.textareas__block__preview {
background: none;
border: none;
border-top: 1px solid #c6cdd5;
background: #FFFFFFF0;
border: 1px solid #c6cdd5;
border-left: none;
box-sizing: border-box;
display: block;
font-family: Consolas;
font-size: 13px;
height: 420px;
min-height: 420px;
max-width: 100%;
height: calc(100% - 62px);
outline: none;
overflow: scroll;
padding: 21px 25px 0 25px;
width: 100%;
white-space: nowrap;
overflow: scroll;
display: block;
border-radius: 0 0 10px 0;
width: 100%;
}

@media screen and (max-width:840px) {
.textareas__block__editor,
.textareas__block__preview {
height: calc(50vh - 98px);
width: 100%;
border: 1px solid #c6cdd5;
}
}

Expand All @@ -322,7 +325,7 @@ footer {
}

.textareas__block--right > .textareas__block__preview {
border-radius: 0 0 10px 10px;
/* border-radius: 0 0 10px 10px; */
}
}

Expand Down Expand Up @@ -370,13 +373,13 @@ footer {
}

.description {
margin-top: 60px;
margin-top: auto; /* 60px; */
/* max-width: 600px; */
text-align: justify;
}

@media screen and (max-width:840px) {
.description {
margin-bottom: 30px;
/* margin-bottom: 30px; */
}
}
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,18 @@ <h2 class="textareas__block__header">
</div>
</section>

<section class="description">
<!-- <section class="description">
This is just a local LaTeX editor using <a target="_blank" href="https://www.mathjax.org/">MathJax</a>. This was built in a few hours. There are no special functions. I recommend using <a target="_blank" href="https://www.overleaf.com/">Overleaf</a> if you need more functions. If you really want to thank me, you can <a target="_blank" href="https://github.com/ohno/underleaf/">give me a star</a>.
</section>
</section> -->

</section>

</main>

<!-- Footer -->
<footer>
<!-- <footer>
<a target="_blank" href="https://github.com/ohno/">© 2023 Shuhei Ohno</a>
</footer>
</footer> -->

</body>

Expand Down

0 comments on commit e7ed999

Please sign in to comment.