Skip to content

Commit

Permalink
styling poem
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanlleslie committed Nov 2, 2023
1 parent 3bf45d2 commit d4d213d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>
<div id="wrapper">
<div id="poem-container">
<h1 class="title">A typical conversation of mine <br> this summer in Taiwan</h1>
<h1 class="title">A typical conversation of mine this summer in Taiwan</h1>
<ul class="verse" id="verse1">
<li>Hello, my (English) name is Jordan</li>
<li>Sorry, my Chinese isn't too good—</li>
Expand Down
21 changes: 14 additions & 7 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ p {
padding: 0;
}

body {
padding-left: 5%;
}

.title {
padding: 40px 0;
font-weight: normal;
Expand All @@ -22,11 +18,10 @@ body {
display: flex;
align-items: center;
flex-direction: column;
margin-left: 100px;
background-color: #eee;
background-color: #edede9;
padding-top: 40px;
width: 100%;
flex: 3;
flex: 5;
min-width: 600px;
}

Expand Down Expand Up @@ -90,10 +85,22 @@ li {
min-height: calc(100vh);
}

@media (max-width: 1150px) {
#wrapper {
flex-direction: column;
max-height: calc(50vh);
}
#poem-container {
max-height: calc(20vh);
}
}

#poem-container {
padding: 0 5%;
flex: 2;
overflow: auto;
max-height: calc(100vh);
background-color: #fffffe;
}

#statement-selector {
Expand Down

0 comments on commit d4d213d

Please sign in to comment.