diff --git a/app/Makefile b/app/Makefile new file mode 100644 index 0000000..8ea2bd8 --- /dev/null +++ b/app/Makefile @@ -0,0 +1,7 @@ +LESS := $(shell npm bin)/lessc +APP := app.css + +all: $(APP) + +$(APP): css/* + $(LESS) css/app.less > $@ diff --git a/app/app.css b/app/app.css new file mode 100644 index 0000000..bf917cf --- /dev/null +++ b/app/app.css @@ -0,0 +1,29 @@ +body { + margin: 0; + display: flex; + flex-direction: column; + height: 100vh; +} +header nav ul { + margin: 0; + padding: 0; + list-style: none; + display: flex; + flex-direction: row; +} +header nav ul li { + text-align: center; + flex-grow: 1; + line-height: 40px; +} +header nav ul li:hover { + background-color: red; +} +main { + flex-grow: 1; + overflow-x: hidden; + overflow-y: auto; +} +footer { + flex-basis: 40px; +} diff --git a/app/css/app.less b/app/css/app.less new file mode 100644 index 0000000..c4415c7 --- /dev/null +++ b/app/css/app.less @@ -0,0 +1,10 @@ +body { + margin: 0; + display: flex; + flex-direction: column; + height: 100vh; +} + +@import "header.less"; +@import "main.less"; +@import "footer.less"; diff --git a/app/css/footer.less b/app/css/footer.less new file mode 100644 index 0000000..6c87a64 --- /dev/null +++ b/app/css/footer.less @@ -0,0 +1,3 @@ +footer { + flex-basis: 40px; +} diff --git a/app/css/header.less b/app/css/header.less new file mode 100644 index 0000000..a956045 --- /dev/null +++ b/app/css/header.less @@ -0,0 +1,17 @@ +header { + nav ul { + margin: 0; + padding: 0; + list-style: none; + display: flex; + flex-direction: row; + + li { + text-align: center; + flex-grow: 1; + line-height: 40px; + + &:hover { background-color:red;} + } + } +} diff --git a/app/css/main.less b/app/css/main.less new file mode 100644 index 0000000..ce5e90f --- /dev/null +++ b/app/css/main.less @@ -0,0 +1,5 @@ +main { + flex-grow: 1; + overflow-x: hidden; + overflow-y: auto; +} diff --git a/app/index.html b/app/index.html index 6fe5235..300d997 100644 --- a/app/index.html +++ b/app/index.html @@ -1,4 +1,48 @@ - - \ No newline at end of file +
+ + +