Skip to content

Commit

Permalink
improved responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Valentino committed Aug 30, 2024
1 parent c707ede commit 4b328b7
Show file tree
Hide file tree
Showing 2 changed files with 290 additions and 257 deletions.
53 changes: 29 additions & 24 deletions public/outsideTheOS/about.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
nav {
position: fixed;
top: 130px;
left: 20px;
width: 24%;
.navAndMain {
margin: auto;
max-width: fit-content;
transform: translateX(calc(-220px / 2));
display: flex;
justify-content: space-between;
}

.navInner {
float: right;
width: 190px;
padding-left: 10px;
padding-right: 10px;
position: sticky;
top: 130px;
left: 0;
box-sizing: border-box;
width: 210px;
padding: 10px;
background-color: #fff;
box-shadow: 10px 10px 0 0 rgba(0, 0, 0, 0.125);
}
Expand Down Expand Up @@ -40,7 +43,7 @@ header {
display: flex;
flex-direction: row;
margin-bottom: 20px;
margin-left: 10px;
margin-left: 20px;
}

.logo {
Expand Down Expand Up @@ -73,16 +76,15 @@ code {
}

body {
max-width: 800px;
margin: 10px auto;
background-color: #fddf79;
}

main {
background-color: #fff;
padding: 32px;
margin-left: 10px;
margin-right: 10px;
margin-left: 20px;
max-width: 900px;
}

.tableContainer {
Expand Down Expand Up @@ -118,19 +120,13 @@ table ul {
margin: 0;
}

@media only screen and (max-width:1700px) {
nav {
width: 20%;
}
}

@media only screen and (max-width:1412px) {
nav {
width: 18%;
@media only screen and (max-width:1432px) {
.navAndMain {
transform: unset;
}
}

@media only screen and (min-width:1291px) {
@media only screen and (min-width:1261px) {
nav {
display: initial;
}
Expand All @@ -140,14 +136,23 @@ table ul {
}
}

@media only screen and (max-width:1290px) {
@media only screen and (max-width:1260px) {
nav {
display: none;
}

.mobileTOC {
display: initial;
}

main {
margin-left: 10px;
margin-right: 10px;
}

header {
margin-left: 10px;
}
}


Expand Down
Loading

0 comments on commit 4b328b7

Please sign in to comment.