Skip to content

Commit

Permalink
more css monkey
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Jul 24, 2024
1 parent 58418b9 commit 071987d
Showing 1 changed file with 50 additions and 14 deletions.
64 changes: 50 additions & 14 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,33 +31,69 @@
background-color: black;
}

#container {
padding-top: 10%;
/* max-width: 90% */
}

#content {
max-width: 50vw;
padding-top: 10%;
min-width: 55ch;
font-size: 1.5vw;
max-width: 80vw;
font-size: 2.5vw;
overflow-wrap: break-word;
}

@media only screen and (max-width: 600px) {
/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
#content {
max-width: 95vw;
font-size: 2.8vw;
}
}

/* Smartphones (landscape) ----------- */
@media only screen and (min-device-width : 320px) {
/* Todo */
}

/* Smartphones (portrait) ----------- */
@media only screen and (max-width : 430px) {
/* Todo */
}

/* Desktops and laptops ----------- */
/* new ipads are often wider than some laptops */
@media only screen and (min-width : 800px) {
#content {
/* for the section underline */
font-size: 2.5vw;
max-width: 50vw;
min-width: 55ch;
max-width: 55ch;
font-size: 1.5vw;
overflow-wrap: break-word;
}
}

/* iPads (portrait and landscape) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
/* Todo */
}

/* iPads (landscape) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1200px) and (orientation : landscape) {
#content {
max-width: 50vw;
font-size: 2vw;
}
}

/* iPads (portrait) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {
/* Todo */
}

/* Large screens ----------- */
@media only screen and (min-width : 1824px) {
/* Todo */
}
</style>

<body>
<div id="container">
<div id="content">...</div>
</div>
<div id="content">...</div>
</body>

</html>

0 comments on commit 071987d

Please sign in to comment.