Header and footer styles, rework homepage
This commit is contained in:
@@ -1,25 +1,21 @@
|
|||||||
@footer-height: 52px;
|
@import "variables.less";
|
||||||
|
@import "main.less";
|
||||||
|
@import "header-footer.less";
|
||||||
|
@import "forms.less";
|
||||||
|
|
||||||
html {
|
|
||||||
position: relative;
|
|
||||||
min-height: 100%;
|
|
||||||
}
|
|
||||||
body {
|
|
||||||
background-color: #fff;
|
|
||||||
margin-bottom: @footer-height;
|
|
||||||
}
|
|
||||||
#page {
|
#page {
|
||||||
padding-bottom: 60px;
|
padding-bottom: 60px;
|
||||||
section {
|
section {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 40px 0;
|
padding: 40px;
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
border-width: 1px 0;
|
border-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-color: #fff;
|
border-color: #fff;
|
||||||
box-shadow: 0 0 15px #000;
|
box-shadow: 0 0 15px #000;
|
||||||
|
border-radius: 4px;
|
||||||
|
|
||||||
.step-num {
|
.step-num {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -70,6 +66,7 @@ body {
|
|||||||
&.submit {
|
&.submit {
|
||||||
border: none;
|
border: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
padding: 40px 0;
|
||||||
.btn {
|
.btn {
|
||||||
font-size: 6em;
|
font-size: 6em;
|
||||||
}
|
}
|
||||||
@@ -85,36 +82,12 @@ body {
|
|||||||
top: 0;
|
top: 0;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
opacity: 0.5;
|
opacity: 0.7;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
footer {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: @footer-height;
|
|
||||||
overflow: hidden;
|
|
||||||
.navbar {
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.create-run-form {
|
|
||||||
h1 {
|
|
||||||
color: #fff;
|
|
||||||
padding: 20px 0;
|
|
||||||
font-size: 3em;
|
|
||||||
text-shadow: 4px 4px 6px #000;
|
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.create-order-form {
|
|
||||||
textarea {
|
|
||||||
font-size: 1.2em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.run-order-status {
|
.run-order-status {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
|
|||||||
14
assets/linker/styles/forms.less
Normal file
14
assets/linker/styles/forms.less
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
.create-run-form {
|
||||||
|
h1 {
|
||||||
|
color: #fff;
|
||||||
|
padding: 20px 0;
|
||||||
|
font-size: 3em;
|
||||||
|
text-shadow: 4px 4px 6px #000;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.create-order-form {
|
||||||
|
textarea {
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
}
|
||||||
27
assets/linker/styles/header-footer.less
Normal file
27
assets/linker/styles/header-footer.less
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
header.navbar {
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
}
|
||||||
|
footer.navbar {
|
||||||
|
border-top: 1px solid #eee;
|
||||||
|
border-radius: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: @footer-height;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
header, footer {
|
||||||
|
.bg {
|
||||||
|
background-color: white;
|
||||||
|
opacity: 0.5;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 1;
|
||||||
|
width: 100%;
|
||||||
|
height: 50px;
|
||||||
|
}
|
||||||
|
.container {
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
8
assets/linker/styles/main.less
Normal file
8
assets/linker/styles/main.less
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
html {
|
||||||
|
position: relative;
|
||||||
|
min-height: 100%;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
background-color: #fff;
|
||||||
|
margin-bottom: @footer-height;
|
||||||
|
}
|
||||||
1
assets/linker/styles/variables.less
Normal file
1
assets/linker/styles/variables.less
Normal file
@@ -0,0 +1 @@
|
|||||||
|
@footer-height: 52px;
|
||||||
@@ -1,10 +1,9 @@
|
|||||||
div.create-run-form(ng-controller='CreateRunCtrl')
|
div.create-run-form(ng-controller='CreateRunCtrl')
|
||||||
form(name='form',novalidate,role='form')
|
form.container(name='form',novalidate,role='form')
|
||||||
h1.text-center
|
h1.text-center
|
||||||
| start a new lunch run
|
| start a new lunch run
|
||||||
section.name
|
section.name
|
||||||
.bg
|
.bg
|
||||||
.container
|
|
||||||
.row
|
.row
|
||||||
.col-xs-2.step-num
|
.col-xs-2.step-num
|
||||||
span.glyphicon.glyphicon-info-sign
|
span.glyphicon.glyphicon-info-sign
|
||||||
@@ -12,7 +11,6 @@ div.create-run-form(ng-controller='CreateRunCtrl')
|
|||||||
input#name.form-control(type='text',ng-model='run.name',required,placeholder='Name your run')
|
input#name.form-control(type='text',ng-model='run.name',required,placeholder='Name your run')
|
||||||
section
|
section
|
||||||
.bg
|
.bg
|
||||||
.container
|
|
||||||
.row
|
.row
|
||||||
.col-xs-2.step-num
|
.col-xs-2.step-num
|
||||||
span.glyphicon.glyphicon-user
|
span.glyphicon.glyphicon-user
|
||||||
@@ -21,7 +19,6 @@ div.create-run-form(ng-controller='CreateRunCtrl')
|
|||||||
input#creatorEmail.form-control(type='email',ng-model='run.creatorEmail',required,placeholder='Your email')
|
input#creatorEmail.form-control(type='email',ng-model='run.creatorEmail',required,placeholder='Your email')
|
||||||
section
|
section
|
||||||
.bg
|
.bg
|
||||||
.container
|
|
||||||
.row
|
.row
|
||||||
.col-xs-2.step-num
|
.col-xs-2.step-num
|
||||||
span.glyphicon.glyphicon-map-marker
|
span.glyphicon.glyphicon-map-marker
|
||||||
@@ -31,7 +28,6 @@ div.create-run-form(ng-controller='CreateRunCtrl')
|
|||||||
|
|
||||||
section.invitees
|
section.invitees
|
||||||
.bg
|
.bg
|
||||||
.container
|
|
||||||
.row
|
.row
|
||||||
.col-xs-2.step-num
|
.col-xs-2.step-num
|
||||||
span.glyphicon.glyphicon-list
|
span.glyphicon.glyphicon-list
|
||||||
@@ -47,6 +43,5 @@ div.create-run-form(ng-controller='CreateRunCtrl')
|
|||||||
| Invite another!
|
| Invite another!
|
||||||
|
|
||||||
section.submit
|
section.submit
|
||||||
.container
|
|
||||||
button.btn.btn-lg.btn-primary.btn-block(ng-click="create(run)",ng-disabled="form.$invalid")
|
button.btn.btn-lg.btn-primary.btn-block(ng-click="create(run)",ng-disabled="form.$invalid")
|
||||||
| Create
|
| Create
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ module.exports = function(config) {
|
|||||||
}, {
|
}, {
|
||||||
expand: true,
|
expand: true,
|
||||||
cwd: 'assets/linker/styles/',
|
cwd: 'assets/linker/styles/',
|
||||||
src: ['*.less'],
|
src: ['app.less'],
|
||||||
dest: '.tmp/public/linker/styles/',
|
dest: '.tmp/public/linker/styles/',
|
||||||
ext: '.css'
|
ext: '.css'
|
||||||
}]
|
}]
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
footer
|
footer.navbar
|
||||||
.navbar.navbar-inverse
|
.bg
|
||||||
.container
|
.container
|
||||||
nav
|
nav
|
||||||
ul.nav.navbar-nav.pull-left
|
ul.nav.navbar-nav.pull-left
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
header.navbar.navbar-inverse.navbar-static-top
|
header.navbar.navbar-static-top
|
||||||
|
.bg
|
||||||
.container
|
.container
|
||||||
a.navbar-brand(href='/') lunch run me
|
a.navbar-brand(href='/') lunch run me
|
||||||
small.navbar-text ...where lunch runs are fun
|
small.navbar-text ...where lunch runs are fun
|
||||||
|
|||||||
Reference in New Issue
Block a user