Skip to content

Commit

Permalink
style header partial #61
Browse files Browse the repository at this point in the history
  • Loading branch information
jwld committed May 24, 2017
1 parent 4226221 commit 6f36147
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 3 deletions.
Binary file added public/fonts/gidole.otf
Binary file not shown.
36 changes: 36 additions & 0 deletions public/style/sass/_header.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.page-header {
@include flex;
justify-content: space-between;
height: $header-height;
width: 100vw;
padding: 10px;
background-color: white;
box-shadow: 0 0 20px 0 #222;
}

.page-title {
font: bold 25px Gidole;
color: $main;
}

.nav-button {
@include flex;
height: calc(#{$header-height} - 20px);
width: calc(#{$header-height} - 20px);
color: white;
background-color: $main;
font-size: 25px;
border-radius: 2px;
box-shadow: 0px 2px 3px -1px #aaa;
}

.nav-button:not(:last-child) {
margin-right: 10px;
}

.page-content {
@include flex;
flex-direction: column;
min-height: calc(100vh - #{$header-height});
width: 100vw;
}
14 changes: 14 additions & 0 deletions public/style/sass/_reset.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
body, header, h1, a {
margin: 0;
padding: 0;
border: 0;
box-sizing: border-box;
}

a {
text-decoration: none;
}

a:hover, button:hover {
cursor: pointer;
}
18 changes: 18 additions & 0 deletions public/style/sass/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// COLOURS
$main: #f7786b;

// SIZING
$header-height: 60px;

// MIXINS
@mixin flex() {
display: flex;
justify-content: center;
align-items: center;
}

// FONTS
@font-face {
font-family: Gidole;
src: url('../../fonts/gidole.otf');
}
7 changes: 4 additions & 3 deletions public/style/sass/main.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
body {
background-color: pink;
}
// GENERAL
@import 'variables';
@import 'reset';
@import 'header';
1 change: 1 addition & 0 deletions views/layouts/main.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<title>Nazbay</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="./style/style.css">
</head>
<body>
Expand Down

0 comments on commit 6f36147

Please sign in to comment.