Add responsive design
This commit is contained in:
@@ -5,8 +5,7 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
main {
|
main {
|
||||||
height: 100vh;
|
height: auto;
|
||||||
width: 100vw;
|
|
||||||
color: var(--color-text-primary);
|
color: var(--color-text-primary);
|
||||||
background-color: var(--color-bg-canvas);
|
background-color: var(--color-bg-canvas);
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -65,13 +64,16 @@
|
|||||||
border: none;
|
border: none;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
nav .left {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
/* Readme container */
|
/* Readme container */
|
||||||
.container {
|
.container {
|
||||||
max-width: 1280px;
|
max-width: 1280px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
.left, .right {
|
.left, .right {
|
||||||
margin: 0 8px;
|
margin: 0 8px;
|
||||||
@@ -80,7 +82,8 @@
|
|||||||
}
|
}
|
||||||
.left {
|
.left {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
width: 25%;
|
margin: 0;
|
||||||
|
width: 100%;
|
||||||
min-width: 230px;
|
min-width: 230px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -102,13 +105,14 @@
|
|||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
border: 1px solid var(--color-border-primary);
|
border: 1px solid var(--color-border-primary);
|
||||||
|
width: auto;
|
||||||
}
|
}
|
||||||
.right .body {
|
.right .body {
|
||||||
margin: 24px;
|
margin: 24px;
|
||||||
}
|
}
|
||||||
/* Avatar */
|
/* Avatar */
|
||||||
.avatar {
|
.avatar {
|
||||||
display: flex;
|
display: none;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-top: -20%;
|
margin-top: -20%;
|
||||||
}
|
}
|
||||||
@@ -262,4 +266,28 @@
|
|||||||
/* Github requests */
|
/* Github requests */
|
||||||
.gh-requests {
|
.gh-requests {
|
||||||
font-size: .8rem;
|
font-size: .8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Media screen */
|
||||||
|
@media only screen and (min-width: 700px) {
|
||||||
|
.left {
|
||||||
|
width: 25%;
|
||||||
|
margin: 0 8px;
|
||||||
|
}
|
||||||
|
.right {
|
||||||
|
width: 0%;
|
||||||
|
}
|
||||||
|
nav .left {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.container {
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
main {
|
||||||
|
height: 100vh;
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
.avatar {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user