From cd4a7b54e6e5399b4ca719ac4885e297109d9193 Mon Sep 17 00:00:00 2001 From: Jeremy Thomas Date: Fri, 28 Jul 2017 21:44:46 +0100 Subject: [PATCH] Generic customisation --- docs/css/bulma-docs.css | 9 +---- sass/base/generic.sass | 54 ++++++++++++++++++--------- sass/utilities/initial-variables.sass | 5 --- 3 files changed, 38 insertions(+), 30 deletions(-) diff --git a/docs/css/bulma-docs.css b/docs/css/bulma-docs.css index 88a7c028..ce38081b 100644 --- a/docs/css/bulma-docs.css +++ b/docs/css/bulma-docs.css @@ -140,7 +140,6 @@ a { color: #00d1b2; cursor: pointer; text-decoration: none; - transition: none 86ms ease-out; } a:hover { @@ -150,7 +149,7 @@ a:hover { code { background-color: whitesmoke; color: #ff3860; - font-size: 0.8em; + font-size: 0.875em; font-weight: normal; padding: 0.25em 0.5em 0.25em; } @@ -190,7 +189,7 @@ strong { pre { background-color: whitesmoke; color: #4a4a4a; - font-size: 0.8em; + font-size: 0.875em; white-space: pre; word-wrap: normal; } @@ -205,10 +204,6 @@ pre code { padding: 1.25rem 1.5rem; } -table { - width: 100%; -} - table td, table th { text-align: left; diff --git a/sass/base/generic.sass b/sass/base/generic.sass index f1b85968..cfeee2a8 100755 --- a/sass/base/generic.sass +++ b/sass/base/generic.sass @@ -1,12 +1,32 @@ +$body-background-color: #fff !default +$body-size: 16px !default +$body-rendering: optimizeLegibility !default +$body-family: $family-sans-serif !default +$body-color: $text !default +$body-weight: $weight-normal !default +$body-line-height: 1.5 !default + +$code-family: $family-monospace !default +$code-padding: 0.25em 0.5em 0.25em !default +$code-weight: normal !default +$code-size: 0.875em !default + +$hr-background-color: $border !default +$hr-height: 1px !default +$hr-margin: 1.5rem 0 !default + +$strong-color: $text-strong !default +$strong-weight: $weight-bold !default + html - background-color: $body-background + background-color: $body-background-color font-size: $body-size -moz-osx-font-smoothing: grayscale -webkit-font-smoothing: antialiased min-width: 300px overflow-x: hidden overflow-y: scroll - text-rendering: $render-mode + text-rendering: $body-rendering article, aside, @@ -22,19 +42,19 @@ button, input, select, textarea - font-family: $family-primary + font-family: $body-family code, pre -moz-osx-font-smoothing: auto -webkit-font-smoothing: auto - font-family: $family-code + font-family: $code-family body - color: $text + color: $body-color font-size: 1rem - font-weight: $weight-normal - line-height: 1.5 + font-weight: $body-weight + line-height: $body-line-height // Inline @@ -42,23 +62,22 @@ a color: $link cursor: pointer text-decoration: none - transition: none $speed $easing &:hover color: $link-hover code background-color: $code-background color: $code - font-size: 0.8em - font-weight: normal - padding: 0.25em 0.5em 0.25em + font-size: $code-size + font-weight: $code-weight + padding: $code-padding hr - background-color: $border + background-color: $hr-background-color border: none display: block - height: 1px - margin: 1.5rem 0 + height: $hr-height + margin: $hr-margin img height: auto @@ -76,15 +95,15 @@ span font-weight: inherit strong - color: $text-strong - font-weight: $weight-bold + color: $strong-color + font-weight: $strong-weight // Block pre background-color: $pre-background color: $pre - font-size: 0.8em + font-size: 0.875em white-space: pre word-wrap: normal code @@ -97,7 +116,6 @@ pre padding: 1.25rem 1.5rem table - width: 100% td, th text-align: left diff --git a/sass/utilities/initial-variables.sass b/sass/utilities/initial-variables.sass index 9777d58b..15c01753 100755 --- a/sass/utilities/initial-variables.sass +++ b/sass/utilities/initial-variables.sass @@ -41,11 +41,6 @@ $weight-normal: 400 !default $weight-semibold: 500 !default $weight-bold: 700 !default -// Body - -$body-background: #fff !default -$body-size: 16px !default - // Responsiveness // The container gap, which acts as the offset for breakpoints