Styling & fonts etc

master
E. Almqvist 3 years ago
parent 93827344ae
commit 9263076701
  1. BIN
      src/public/fonts/SpaceMono-Bold.ttf
  2. BIN
      src/public/fonts/SpaceMono-BoldItalic.ttf
  3. BIN
      src/public/fonts/SpaceMono-Italic.ttf
  4. BIN
      src/public/fonts/SpaceMono-Regular.ttf
  5. 9
      src/views/layout.slim
  6. 28
      src/views/stylesheets/_fonts.scss
  7. 59
      src/views/stylesheets/style.sass

@ -6,6 +6,15 @@ html lang="en"
link rel="stylesheet" href="/style.css" link rel="stylesheet" href="/style.css"
title The Auction House title The Auction House
body body
header
nav
ul
li
a.button#register href="/register" target="_self"
| Register
li
a.button#login href="/login" target="_self"
| Log in
==yield ==yield

@ -0,0 +1,28 @@
@font-face {
font-family: 'Space Mono';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(/fonts/SpaceMono-Italic.ttf) format('truetype');
}
@font-face {
font-family: 'Space Mono';
font-style: italic;
font-weight: 700;
font-display: swap;
src: url(/fonts/SpaceMono-BoldItalic.ttf) format('truetype');
}
@font-face {
font-family: 'Space Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/fonts/SpaceMono-Regular.ttf) format('truetype');
}
@font-face {
font-family: 'Space Mono';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(/fonts/SpaceMono-Bold.ttf) format('truetype');
}

@ -1,3 +1,60 @@
@import "fonts"
$font_stack: "Space Mono", monospace
$bg_clr: #f2f5f7
// #e7ecef
$bg_alt_clr: #fffcf7
$fg_clr: #262526
$fg_alt_clr: #fff
$shadow_clr: #ccc
$special_btn_clr: #4776C1
\:root
display: border-box
margin: 0
padding: 0
font-family: $font_stack
font-size: 16px
html html
background-color: red background-color: $bg_clr
body
margin: 0
header
background-color: $bg_alt_clr
border-bottom: 1px solid $shadow_clr
nav
max-width: 80rem
margin: 0 auto
padding: 8px
ul
margin: 0
display: flex
flex-direction: row
list-style-type: none
justify-content: flex-end
li
margin: 0 8px
#login
color: $fg_alt_clr
background-color: $special_btn_clr
a.button
display: inline-block
text-decoration: none
padding: .4rem 1rem
color: $fg_clr
border-radius: .25rem
transition: opacity .2s
a.button:hover
opacity: .8

Loading…
Cancel
Save