forked from DevvitIO/ReallyAnnoyingDirectory
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved the readability of index.html
- reworked the index.html page to look like the codepen referenced in issue DevvitIO#1 - created stylesDirectory that holds .css files for pages
- Loading branch information
1 parent
eaf6c3f
commit 9baa430
Showing
2 changed files
with
90 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
@import url('https://fonts.googleapis.com/css?family=Roboto'); | ||
|
||
html, | ||
body { | ||
height: 100%; | ||
width: 100%; | ||
margin: 0; | ||
background: #FDD761; | ||
} | ||
|
||
* { | ||
font-family: Roboto, sans-serif; | ||
} | ||
|
||
#pages-area { | ||
display: flex; | ||
justify-content: center; | ||
flex-wrap: wrap; | ||
} | ||
|
||
.page-box { | ||
width: 15%; | ||
min-height: 100px; | ||
max-height: 200px; | ||
background: white; | ||
color: steelblue; | ||
border-radius: 5px; | ||
display: flex; | ||
justify-content: center; | ||
flex-wrap: wrap; | ||
align-items: center; | ||
margin: 10px; | ||
text-decoration: none; | ||
font-weight: bold; | ||
box-shadow: 0px 5px 0px rgba(0, 0, 0, 0.15); | ||
transition: all .2s ease-in-out; | ||
text-align: center; | ||
} | ||
|
||
.page-box>h4 { | ||
font-size: 1.2rem; | ||
word-break: break-all; | ||
white-space: normal; | ||
padding: 5px; | ||
} | ||
|
||
.page-box:hover { | ||
color: black; | ||
transform: scale(1.2); | ||
box-shadow: none; | ||
} | ||
|
||
h1 { | ||
color: steelblue; | ||
text-align: center; | ||
} | ||
|
||
@media only screen and (max-width: 414px) { | ||
.page-box { | ||
width: 40%; | ||
} | ||
} |