feat(App): Make full size
This commit is contained in:
@ -985,6 +985,11 @@ and (max-width : 400px) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.full-size {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
// surrounding downstream import with &{}
|
// surrounding downstream import with &{}
|
||||||
// creates locally scoped imports
|
// creates locally scoped imports
|
||||||
// and prevents vaiables from overwriting each other
|
// and prevents vaiables from overwriting each other
|
||||||
|
@ -8,12 +8,16 @@
|
|||||||
// they are painted using css so the
|
// they are painted using css so the
|
||||||
// nav is on top again
|
// nav is on top again
|
||||||
.grid(@direction: column);
|
.grid(@direction: column);
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.@{ns}-content {
|
.@{ns}-content {
|
||||||
// makes the inital content height 0px
|
// makes the inital content height 0px
|
||||||
// then lets it grow to fit the rest of the space
|
// then lets it grow to fit the rest of the space
|
||||||
flex: 1 0 0px;
|
flex: 1 0 0px;
|
||||||
|
// allow content to adapt to screen size
|
||||||
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.@{ns}-centered {
|
.@{ns}-centered {
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
doctype html
|
doctype html
|
||||||
html(lang='en')
|
html(lang='en').full-size
|
||||||
head
|
head
|
||||||
if title
|
if title
|
||||||
title= title
|
title= title
|
||||||
else
|
else
|
||||||
title freeCodeCamp
|
title freeCodeCamp
|
||||||
include partials/react-stylesheets
|
include partials/react-stylesheets
|
||||||
body
|
body.full-size
|
||||||
#fcc!= markup
|
#fcc.full-size!= markup
|
||||||
script!= state
|
script!= state
|
||||||
script.
|
script.
|
||||||
window.webpackManifest = !{JSON.stringify(chunkManifest || {})};
|
window.webpackManifest = !{JSON.stringify(chunkManifest || {})};
|
||||||
|
Reference in New Issue
Block a user