]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Generic customisation
authorJeremy Thomas <bbxdesign@gmail.com>
Fri, 28 Jul 2017 20:44:46 +0000 (21:44 +0100)
committerJeremy Thomas <bbxdesign@gmail.com>
Sat, 29 Jul 2017 17:24:07 +0000 (18:24 +0100)
docs/css/bulma-docs.css
sass/base/generic.sass
sass/utilities/initial-variables.sass

index 88a7c028c45879a7a6f8f0c4b5cd7ee4f969e96e..ce38081b23daafa0ed194106b20c74327f6e75db 100644 (file)
@@ -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;
index f1b85968b69fc5a09b9b6448d2bd0cbb9b820f4e..cfeee2a872cdfc62e306b5664ef1f84b0b63e95a 100755 (executable)
@@ -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
index 9777d58b0d550d0a09cb948d2e426fdf5349c275..15c017538d3eab3300c1d9c3e4a653ea05090d8a 100755 (executable)
@@ -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