From 0e4f69df5fbd5d576e44ebf94e715d6c1144236b Mon Sep 17 00:00:00 2001 From: Robert Lin Date: Fri, 10 Aug 2018 20:21:05 -0700 Subject: [PATCH] Refactor fonts, add documentation --- web/components/auth/Login/Login.js | 2 +- web/styles/animations.sass | 8 ++++ web/styles/breakpoints.sass | 4 ++ web/styles/colors.sass | 20 +++++++-- web/styles/decoration.sass | 4 ++ web/styles/index.sass | 14 ++++-- web/styles/spacing.sass | 72 ++++++++++++++++++++++++++++-- web/styles/typography.sass | 8 ++++ web/styles/utils.sass | 64 +++----------------------- 9 files changed, 127 insertions(+), 69 deletions(-) diff --git a/web/components/auth/Login/Login.js b/web/components/auth/Login/Login.js index 3be0de49..4f55bab6 100644 --- a/web/components/auth/Login/Login.js +++ b/web/components/auth/Login/Login.js @@ -59,7 +59,7 @@ class Login extends React.Component { className="input-group">

Sign in

-
+
.text-input + &:first-of-type + margin-bottom: $spacing-xl + &:last-of-type + margin-bottom: $spacing-mega + + // repeating horizontal elements + &-horizontal + &-divs + > div + &:first-of-type + margin-left: $spacing-m + &:last-of-type + margin-right: $spacing-m diff --git a/web/styles/typography.sass b/web/styles/typography.sass index c14288b9..f1680f71 100644 --- a/web/styles/typography.sass +++ b/web/styles/typography.sass @@ -1,3 +1,7 @@ +///////////////////////// +// FONTS // +///////////////////////// + @font-face font-family: 'Apercu Pro' font-weight: bold @@ -16,6 +20,10 @@ font-style: normal src: url(./fonts/apercu_regular_pro.otf) format('opentype') +///////////////////////// +// TEXT CLASSES // +///////////////////////// + a &:visited color: $primary diff --git a/web/styles/utils.sass b/web/styles/utils.sass index 9d656578..6abfa434 100644 --- a/web/styles/utils.sass +++ b/web/styles/utils.sass @@ -1,3 +1,7 @@ +////////////////////////// +// WIDTH/HEIGHT CLASSES // +////////////////////////// + .fill &-width width: 100% @@ -9,64 +13,10 @@ > * width: 50% -// padding declarations -.pad - // navbar - &-nav - padding-top: $navbar - - // sides - &-left, &-sides - &-xxl - padding-left: $spacing-xxl - &-right, &-sides - &-xxl - padding-right: $spacing-xxl - - // ends - &-top, &-ends - &-xxl - padding-top: $spacing-xxl - &-mega - padding-top: $spacing-mega - &-bottom, &-ends - &-xxl - padding-bottom: $spacing-xxl - &-mega - padding-bottom: $spacing-mega - -// margin declarations -.margin - &-left, &-sides - &-xs - padding-left: $spacing-xs - &-m - padding-left: $spacing-s - &-l - padding-left: $spacing-l - &-right, &-sides - &-s - padding-right: $spacing-xs - &-m - padding-right: $spacing-s - &-l - padding-left: $spacing-l - &-text-inputs - > .text-input - &:first-of-type - margin-bottom: 40px - &:last-of-type - margin-bottom: 56px - - &-horizontal - &-divs - > div - &:first-of-type - margin-left: 24px - &:last-of-type - margin-right: 24px +////////////////////////// +// FLEXBOX CLASSES // +////////////////////////// -// flexbox utility classes .flex display: flex