Skip to content

Commit

Permalink
WIP: New design
Browse files Browse the repository at this point in the history
  • Loading branch information
bfirsh committed Aug 20, 2018
1 parent 16a9b76 commit ca21260
Show file tree
Hide file tree
Showing 47 changed files with 672 additions and 492 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"aws-sdk": "^2.295.0",
"express": "^4.16.3",
"fs-extra": "^7.0.0",
"include-media": "^1.4.9",
"linkify-urls": "^2.0.0",
"mathjax-node-page": "^2.0.0",
"s3-recursive-uploader": "^0.3.0",
Expand Down
5 changes: 5 additions & 0 deletions src/assets/css/_colors.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Don't use alpha, because borders mix together
$borderColor: black;
$lightBorderColor: lighten(black, 50%);

$secondaryBackground: darken(white, 5%);
23 changes: 0 additions & 23 deletions src/assets/css/_figures.scss

This file was deleted.

90 changes: 72 additions & 18 deletions src/assets/css/_fonts.scss
Original file line number Diff line number Diff line change
@@ -1,29 +1,83 @@
%body-font {
font-family: $bodyFontFamily;
font-size: 17px;
line-height: 1.55em;
@import "./media";

@media (min-width: 768px) {
font-size: 20px;
$fontFamilyComputerModern: "CMUSerif-Roman", Georgia, serif;
$fontFamilyHelvetica: "Helvetica Neue", Helvetica, sans-serif;
$fontFamilyMonospace: "CMUTypewriter-Light", monospace;

// !important is used everywhere to stop inline styles from changing the font size

@mixin font-body() {
font-family: $fontFamilyComputerModern;
font-size: 16px !important;
line-height: 1.5;

@include media(">=tablet", "<desktop") {
font-size: 18px !important;
}

@include media(">=desktop") {
font-size: 24px !important;
}
}

@mixin font-monospace() {
font-family: $fontFamilyMonospace;

font-size: 14px !important;
line-height: 1.5;

@include media(">=tablet", "<desktop") {
font-size: 16px !important;
}

@include media(">=desktop") {
font-size: 22px !important;
}
}

%system-font {
font-family: $systemFontFamily;
font-size: 14px;
line-height: 1.55em;
@mixin font-heading() {
font-family: $fontFamilyHelvetica;

@media (min-width: 768px) {
font-size: 15px;
font-size: 14px !important;
line-height: 1.5;
letter-spacing: 0.03em;
-webkit-font-smoothing: antialiased;
font-style: normal;
font-weight: 400;
text-transform: uppercase;

@include media(">=tablet", "<desktop") {
font-size: 18px !important;
}

@include media(">=desktop") {
font-size: 20px !important;
}
}

@mixin font-heading-small() {
@include font-heading();

font-size: 12px !important;

@include media(">=tablet", "<desktop") {
font-size: 14px !important;
}

@include media(">=desktop") {
font-size: 16px !important;
}
}

%system-font-small {
font-family: $systemFontFamily;
font-size: 12px;
line-height: 1.55em;
@mixin font-sans() {
font-family: $fontFamilyHelvetica;
font-size: 12px !important;

@include media(">=tablet", "<desktop") {
font-size: 14px !important;
}

@media (min-width: 768px) {
font-size: 13px;
@include media(">=desktop") {
font-size: 16px !important;
}
}
135 changes: 0 additions & 135 deletions src/assets/css/_headings.scss

This file was deleted.

41 changes: 0 additions & 41 deletions src/assets/css/_layout.scss

This file was deleted.

7 changes: 7 additions & 0 deletions src/assets/css/_media.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@import "../../../node_modules/include-media/dist/include-media";

$breakpoints: (
phone: 320px,
tablet: 768px,
desktop: 1024px
);
Loading

0 comments on commit ca21260

Please sign in to comment.