mirror of
https://github.com/jgthms/bulma
synced 2026-03-22 13:04:29 -07:00
Init dark theme
This commit is contained in:
8
docs/.gitignore
vendored
8
docs/.gitignore
vendored
@@ -6,20 +6,21 @@ _config.local.yml
|
|||||||
_config.version.yml
|
_config.version.yml
|
||||||
_layouts/basic.html
|
_layouts/basic.html
|
||||||
_layouts/dev.html
|
_layouts/dev.html
|
||||||
|
bulma-test.css
|
||||||
bulma-test.sass
|
bulma-test.sass
|
||||||
bulma-test.scss
|
bulma-test.scss
|
||||||
bulma-test.css
|
|
||||||
bulma-website-local.sass
|
bulma-website-local.sass
|
||||||
css/bulma-test.css
|
|
||||||
css/bulma-docs.css.map
|
css/bulma-docs.css.map
|
||||||
PUBLISHING.md
|
css/bulma-test.css
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
PUBLISHING.md
|
||||||
test.html
|
test.html
|
||||||
test.sass
|
test.sass
|
||||||
test.scss
|
test.scss
|
||||||
|
|
||||||
# Folders
|
# Folders
|
||||||
|
|
||||||
|
.jekyll-cache
|
||||||
.sass-cache
|
.sass-cache
|
||||||
/bulma
|
/bulma
|
||||||
/cypress/videos
|
/cypress/videos
|
||||||
@@ -28,4 +29,3 @@ test.scss
|
|||||||
/styles/node_modules
|
/styles/node_modules
|
||||||
/versions
|
/versions
|
||||||
_site
|
_site
|
||||||
.jekyll-cache
|
|
||||||
|
|||||||
@@ -1,14 +1,22 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en" class="theme-dark">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
<title>{% if page.fulltitle %}{{ page.fulltitle | markdownify | strip_html }}{% else %}{% if page.title %}{{ page.title | markdownify | strip_html }} | {% endif %}{{ site.data.meta.title | markdownify | strip_html }}{% endif %}</title>
|
<title>
|
||||||
|
{% if page.fulltitle %}{{ page.fulltitle | markdownify | strip_html }}{%
|
||||||
|
else %}{% if page.title %}{{ page.title | markdownify | strip_html }} | {%
|
||||||
|
endif %}{{ site.data.meta.title | markdownify | strip_html }}{% endif %}
|
||||||
|
</title>
|
||||||
|
|
||||||
<link rel="stylesheet" href="{{ site.url }}/vendor/fontawesome-free-5.15.2-web/css/all.min.css">
|
<link
|
||||||
<link rel="stylesheet" href="{{ site.url }}/css/bulma.css?v={{ site.time | date: "%Y%m%d%H%M" }}">
|
rel="stylesheet"
|
||||||
|
href="{{ site.url }}/vendor/fontawesome-free-5.15.2-web/css/all.min.css"
|
||||||
|
/>
|
||||||
|
<link rel="stylesheet" href="{{ site.url }}/css/bulma.css?v={{ site.time |
|
||||||
|
date: "%Y%m%d%H%M" }}">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{{ content }}
|
{{ content }}
|
||||||
|
|||||||
1
docs/bulma.scss
vendored
1
docs/bulma.scss
vendored
@@ -1,2 +1,3 @@
|
|||||||
@charset "utf-8";
|
@charset "utf-8";
|
||||||
@import "../bulma";
|
@import "../bulma";
|
||||||
|
// @import "../sass/themes/dark";
|
||||||
|
|||||||
1512
docs/css/bulma.css
vendored
1512
docs/css/bulma.css
vendored
File diff suppressed because it is too large
Load Diff
@@ -10,24 +10,38 @@ title: Base/Generic
|
|||||||
<header>header</header>
|
<header>header</header>
|
||||||
<hgroup>hgroup</hgroup>
|
<hgroup>hgroup</hgroup>
|
||||||
<section>section</section>
|
<section>section</section>
|
||||||
<body>body</body>
|
<body>
|
||||||
|
body
|
||||||
|
</body>
|
||||||
<button>button</button>
|
<button>button</button>
|
||||||
<input>input</button>
|
<input />
|
||||||
<optgroup>optgroup</optgroup>
|
<optgroup>optgroup</optgroup>
|
||||||
<select>select</select>
|
<select>
|
||||||
|
select
|
||||||
|
</select>
|
||||||
<textarea>textarea</textarea>
|
<textarea>textarea</textarea>
|
||||||
<code>code</code>
|
<code>code</code>
|
||||||
<pre>pre<code>code</code></pre>
|
<pre>pre<code>code</code></pre>
|
||||||
<img src="{{ site.url }}/images/bulma-logo.png" alt="Bulma: a modern CSS framework based on Flexbox" width="112" height="28">
|
<img
|
||||||
|
src="{{ site.url }}/images/bulma-logo.png"
|
||||||
|
alt="Bulma: a modern CSS framework based on Flexbox"
|
||||||
|
width="112"
|
||||||
|
height="28"
|
||||||
|
/>
|
||||||
<a>Link <strong>strong</strong></a>
|
<a>Link <strong>strong</strong></a>
|
||||||
<hr>hr</pre>
|
<hr />
|
||||||
<img>img</pre>
|
<img />
|
||||||
<small>small</small>
|
<small>small</small>
|
||||||
<span>span</span>
|
<span>span</span>
|
||||||
<strong>strong</strong>
|
<strong>strong</strong>
|
||||||
<fieldset>fieldset</fieldset>
|
<fieldset>fieldset</fieldset>
|
||||||
<table><tr><th>th</th><td>td</td></tr></table>
|
<table>
|
||||||
|
<tr>
|
||||||
|
<th>th</th>
|
||||||
|
<td>td</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<input type="checkbox" name="check">
|
<input type="checkbox" name="check" />
|
||||||
<input type="radio" name="rad">
|
<input type="radio" name="rad" />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ $card-radius: 0.25rem !default;
|
|||||||
$card-header-background-color: transparent !default;
|
$card-header-background-color: transparent !default;
|
||||||
$card-header-color: getVar("text-strong") !default;
|
$card-header-color: getVar("text-strong") !default;
|
||||||
$card-header-padding: 0.75rem 1rem !default;
|
$card-header-padding: 0.75rem 1rem !default;
|
||||||
$card-header-shadow: 0 0.125em 0.25em rgba($scheme-invert, 0.1) !default; // TODO
|
$card-header-shadow: 0 0.125em 0.25em rgba(getVar("shadow-color-rgb"), 0.1) !default; // TODO
|
||||||
$card-header-weight: getVar("weight-bold") !default;
|
$card-header-weight: getVar("weight-bold") !default;
|
||||||
|
|
||||||
$card-content-background-color: transparent !default;
|
$card-content-background-color: transparent !default;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
$modal-z: 40 !default;
|
$modal-z: 40 !default;
|
||||||
|
|
||||||
$modal-background-background-color: bulmaRgba($scheme-invert, 0.86) !default;
|
$modal-background-background-color: bulmargba(getVar("shadow-color-rgb"), 0.86) !default;
|
||||||
|
|
||||||
$modal-content-width: 640px !default;
|
$modal-content-width: 640px !default;
|
||||||
$modal-content-margin-mobile: 20px !default;
|
$modal-content-margin-mobile: 20px !default;
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ $navbar-dropdown-radius: getVar("radius-large") !default;
|
|||||||
$navbar-dropdown-z: 20 !default;
|
$navbar-dropdown-z: 20 !default;
|
||||||
|
|
||||||
$navbar-dropdown-boxed-radius: getVar("radius-large") !default;
|
$navbar-dropdown-boxed-radius: getVar("radius-large") !default;
|
||||||
$navbar-dropdown-boxed-shadow: 0 8px 8px bulmaRgba($scheme-invert, 0.1),
|
$navbar-dropdown-boxed-shadow: 0 8px 8px bulmargba(getVar("shadow-color-rgb"), 0.1),
|
||||||
0 0 0 1px bulmaRgba($scheme-invert, 0.1) !default;
|
0 0 0 1px bulmargba(getVar("shadow-color-rgb"), 0.1) !default;
|
||||||
|
|
||||||
$navbar-dropdown-item-hover-color: getVar("scheme-invert") !default;
|
$navbar-dropdown-item-hover-color: getVar("scheme-invert") !default;
|
||||||
$navbar-dropdown-item-hover-background-color: getVar("background") !default;
|
$navbar-dropdown-item-hover-background-color: getVar("background") !default;
|
||||||
@@ -396,7 +396,7 @@ a.#{$class-prefix}navbar-item,
|
|||||||
|
|
||||||
.#{$class-prefix}navbar-menu {
|
.#{$class-prefix}navbar-menu {
|
||||||
background-color: getVar("navbar-background-color");
|
background-color: getVar("navbar-background-color");
|
||||||
box-shadow: 0 8px 16px bulmaRgba($scheme-invert, 0.1);
|
box-shadow: 0 8px 16px bulmargba(getVar("shadow-color-rgb"), 0.1);
|
||||||
padding: 0.5rem 0;
|
padding: 0.5rem 0;
|
||||||
|
|
||||||
&.is-active {
|
&.is-active {
|
||||||
@@ -415,7 +415,7 @@ a.#{$class-prefix}navbar-item,
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|
||||||
&.has-shadow {
|
&.has-shadow {
|
||||||
box-shadow: 0 -2px 3px bulmaRgba($scheme-invert, 0.1);
|
box-shadow: 0 -2px 3px bulmargba(getVar("shadow-color-rgb"), 0.1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -541,7 +541,7 @@ a.#{$class-prefix}navbar-item,
|
|||||||
getVar("navbar-dropdown-radius") 0 0;
|
getVar("navbar-dropdown-radius") 0 0;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
bottom: 100%;
|
bottom: 100%;
|
||||||
box-shadow: 0 -8px 8px bulmaRgba($scheme-invert, 0.1);
|
box-shadow: 0 -8px 8px bulmargba(getVar("shadow-color-rgb"), 0.1);
|
||||||
top: auto;
|
top: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -585,7 +585,7 @@ a.#{$class-prefix}navbar-item,
|
|||||||
border-bottom-left-radius: getVar("navbar-dropdown-radius");
|
border-bottom-left-radius: getVar("navbar-dropdown-radius");
|
||||||
border-bottom-right-radius: getVar("navbar-dropdown-radius");
|
border-bottom-right-radius: getVar("navbar-dropdown-radius");
|
||||||
border-top: getVar("navbar-dropdown-border-top");
|
border-top: getVar("navbar-dropdown-border-top");
|
||||||
box-shadow: 0 8px 8px bulmaRgba($scheme-invert, 0.1);
|
box-shadow: 0 8px 8px bulmargba(getVar("shadow-color-rgb"), 0.1);
|
||||||
display: none;
|
display: none;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
@include ltr-position(0, false);
|
@include ltr-position(0, false);
|
||||||
@@ -662,7 +662,7 @@ a.#{$class-prefix}navbar-item,
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|
||||||
&.has-shadow {
|
&.has-shadow {
|
||||||
box-shadow: 0 -2px 3px bulmaRgba($scheme-invert, 0.1);
|
box-shadow: 0 -2px 3px bulmargba(getVar("shadow-color-rgb"), 0.1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ $pagination-current-border-color: getVar("link") !default;
|
|||||||
|
|
||||||
$pagination-ellipsis-color: getVar("grey-light") !default;
|
$pagination-ellipsis-color: getVar("grey-light") !default;
|
||||||
|
|
||||||
$pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2) !default;
|
$pagination-shadow-inset: inset 0 1px 2px rgba(getVar("shadow-color-rgb"), 0.2) !default;
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
@include register-vars(
|
@include register-vars(
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ $box-radius: getVar("radius-large") !default;
|
|||||||
$box-shadow: getVar("shadow") !default;
|
$box-shadow: getVar("shadow") !default;
|
||||||
$box-padding: 1.25rem !default;
|
$box-padding: 1.25rem !default;
|
||||||
|
|
||||||
$box-link-hover-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1),
|
$box-link-hover-shadow: 0 0.5em 1em -0.125em rgba(getVar("shadow-color-rgb"), 0.1),
|
||||||
0 0 0 1px getVar("link") !default;
|
0 0 0 1px getVar("link") !default;
|
||||||
$box-link-active-shadow: inset 0 1px 2px rgba($scheme-invert, 0.2),
|
$box-link-active-shadow: inset 0 1px 2px rgba(getVar("shadow-color-rgb"), 0.2),
|
||||||
0 0 0 1px getVar("link") !default;
|
0 0 0 1px getVar("link") !default;
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ $input-color: $text-strong !default;
|
|||||||
$input-background-color: $scheme-main !default;
|
$input-background-color: $scheme-main !default;
|
||||||
$input-border-color: $border !default;
|
$input-border-color: $border !default;
|
||||||
$input-height: $control-height !default;
|
$input-height: $control-height !default;
|
||||||
$input-shadow: inset 0 0.0625em 0.125em rgba($scheme-invert, 0.05) !default;
|
$input-shadow: inset 0 0.0625em 0.125em rgba(getVar("shadow-color-rgb"), 0.05) !default;
|
||||||
$input-placeholder-color: bulmaRgba($input-color, 0.3) !default;
|
$input-placeholder-color: bulmaRgba($input-color, 0.3) !default;
|
||||||
|
|
||||||
$input-hover-color: $text-strong !default;
|
$input-hover-color: $text-strong !default;
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ $hero-colors: $colors !default;
|
|||||||
color: $color-invert;
|
color: $color-invert;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: bulmaRgba($scheme-invert, 0.1);
|
background-color: bulmargba(getVar("shadow-color-rgb"), 0.1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
64
sass/themes/dark.scss
Normal file
64
sass/themes/dark.scss
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
// $scheme-main: $black;
|
||||||
|
// $scheme-main-bis: $black-bis;
|
||||||
|
// $scheme-main-ter: $black-ter;
|
||||||
|
// $scheme-invert: $white;
|
||||||
|
// $scheme-invert-bis: $white-bis;
|
||||||
|
// $scheme-invert-ter: $white-ter;
|
||||||
|
|
||||||
|
// $background: $black-ter;
|
||||||
|
|
||||||
|
// $border: $grey-darker;
|
||||||
|
// $border-hover: $grey-dark;
|
||||||
|
// $border-light: $grey-darker;
|
||||||
|
// $border-light-hover: $grey-dark;
|
||||||
|
|
||||||
|
// $text: $grey-light;
|
||||||
|
// $text-invert: $grey-darker;
|
||||||
|
// $text-light: $grey;
|
||||||
|
// $text-strong: $white;
|
||||||
|
|
||||||
|
// $link-hover: $white;
|
||||||
|
// $link-hover-border: $grey-dark;
|
||||||
|
|
||||||
|
// $link-focus: $white;
|
||||||
|
// $link-focus-border: $blue;
|
||||||
|
|
||||||
|
// $link-active: $white;
|
||||||
|
// $link-active-border: $grey-light;
|
||||||
|
|
||||||
|
@include bulma-theme($name: "dark") {
|
||||||
|
@include register-vars(
|
||||||
|
(
|
||||||
|
scheme-main: #{$black-bis},
|
||||||
|
scheme-main-bis: #{$black-ter},
|
||||||
|
scheme-main-ter: #{$grey-darker},
|
||||||
|
scheme-invert: #{$white},
|
||||||
|
scheme-invert-bis: #{$white-bis},
|
||||||
|
scheme-invert-ter: #{$white-ter},
|
||||||
|
|
||||||
|
background: #{$black-ter},
|
||||||
|
|
||||||
|
border: #{$grey-darker},
|
||||||
|
border-hover: #{$grey-dark},
|
||||||
|
border-light: #{$grey-darker},
|
||||||
|
border-light-hover: #{$grey-dark},
|
||||||
|
|
||||||
|
text: #{$grey-light},
|
||||||
|
text-invert: #{$grey-darker},
|
||||||
|
text-light: #{$grey},
|
||||||
|
text-strong: #{$white},
|
||||||
|
|
||||||
|
link-hover: #{$white},
|
||||||
|
link-hover-border: #{$grey-dark},
|
||||||
|
|
||||||
|
link-focus: #{$white},
|
||||||
|
link-focus-border: #{$blue},
|
||||||
|
|
||||||
|
link-active: #{$white},
|
||||||
|
link-active-border: #{$grey-light},
|
||||||
|
|
||||||
|
shadow: #{0 0.5em 1em -0.125em rgba($white, 0.2),
|
||||||
|
0 0px 0 1px rgba($white, 0.04)},
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,6 +1,31 @@
|
|||||||
:root {
|
:root {
|
||||||
@include register-vars(
|
@include register-vars(
|
||||||
(
|
(
|
||||||
|
scheme-main: #{$scheme-main},
|
||||||
|
scheme-main-bis: #{$scheme-main-bis},
|
||||||
|
scheme-main-ter: #{$scheme-main-ter},
|
||||||
|
scheme-invert: #{$scheme-invert},
|
||||||
|
scheme-invert-bis: #{$scheme-invert-bis},
|
||||||
|
scheme-invert-ter: #{$scheme-invert-ter},
|
||||||
|
text: #{$text},
|
||||||
|
text-invert: #{$text-invert},
|
||||||
|
text-light: #{$text-light},
|
||||||
|
text-strong: #{$text-strong},
|
||||||
|
background: #{$background},
|
||||||
|
border: #{$border},
|
||||||
|
border-hover: #{$border-hover},
|
||||||
|
border-light: #{$border-light},
|
||||||
|
border-light-hover: #{$border-light-hover},
|
||||||
|
code: #{$code},
|
||||||
|
code-background: #{$code-background},
|
||||||
|
pre: #{$pre},
|
||||||
|
pre-background: #{$pre-background},
|
||||||
|
link-hover: #{$link-hover},
|
||||||
|
link-hover-border: #{$link-hover-border},
|
||||||
|
link-focus: #{$link-focus},
|
||||||
|
link-focus-border: #{$link-focus-border},
|
||||||
|
link-active: #{$link-active},
|
||||||
|
link-active-border: #{$link-active-border},
|
||||||
family-sans-serif: #{$family-sans-serif},
|
family-sans-serif: #{$family-sans-serif},
|
||||||
family-monospace: #{$family-monospace},
|
family-monospace: #{$family-monospace},
|
||||||
size-1: #{$size-1},
|
size-1: #{$size-1},
|
||||||
@@ -23,35 +48,6 @@
|
|||||||
radius-large: #{$radius-large},
|
radius-large: #{$radius-large},
|
||||||
radius-rounded: #{$radius-rounded},
|
radius-rounded: #{$radius-rounded},
|
||||||
speed: #{$speed},
|
speed: #{$speed},
|
||||||
|
|
||||||
scheme-main: #{$white},
|
|
||||||
scheme-main-bis: #{$white-bis},
|
|
||||||
scheme-main-ter: #{$white-ter},
|
|
||||||
scheme-invert: #{$black},
|
|
||||||
scheme-invert-bis: #{$black-bis},
|
|
||||||
scheme-invert-ter: #{$black-ter},
|
|
||||||
background: #{$background},
|
|
||||||
border: #{$border},
|
|
||||||
border-hover: #{$border-hover},
|
|
||||||
border-light: #{$border-light},
|
|
||||||
border-light-hover: #{$border-light-hover},
|
|
||||||
text: #{$text},
|
|
||||||
text-invert: #{$text-invert},
|
|
||||||
text-light: #{$text-light},
|
|
||||||
text-strong: #{$text-strong},
|
|
||||||
code: #{$code},
|
|
||||||
code-background: #{$code-background},
|
|
||||||
pre: #{$pre},
|
|
||||||
pre-background: #{$pre-background},
|
|
||||||
link-light: #{$link-light},
|
|
||||||
link-dark: #{$link-dark},
|
|
||||||
link-visited: #{$link-visited},
|
|
||||||
link-hover: #{$link-hover},
|
|
||||||
link-hover-border: #{$link-hover-border},
|
|
||||||
link-focus: #{$link-focus},
|
|
||||||
link-focus-border: #{$link-focus-border},
|
|
||||||
link-active: #{$link-active},
|
|
||||||
link-active-border: #{$link-active-border},
|
|
||||||
family-primary: #{$family-primary},
|
family-primary: #{$family-primary},
|
||||||
family-secondary: #{$family-secondary},
|
family-secondary: #{$family-secondary},
|
||||||
family-code: #{$family-code},
|
family-code: #{$family-code},
|
||||||
@@ -63,6 +59,8 @@
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@include register-rgb("shadow-color", $shadow-color);
|
||||||
|
|
||||||
@each $name, $pair in $colors {
|
@each $name, $pair in $colors {
|
||||||
$base: nth($pair, 1);
|
$base: nth($pair, 1);
|
||||||
$invert: nth($pair, 2);
|
$invert: nth($pair, 2);
|
||||||
@@ -75,4 +73,39 @@
|
|||||||
@each $name, $shade in $shades {
|
@each $name, $shade in $shades {
|
||||||
@include register-var($name, $shade);
|
@include register-var($name, $shade);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*@include register-vars(
|
||||||
|
(
|
||||||
|
scheme-main: #{getVar("white")},
|
||||||
|
scheme-main-bis: #{getVar("white-bis")},
|
||||||
|
scheme-main-ter: #{getVar("white-ter")},
|
||||||
|
scheme-invert: #{getVar("text-00")},
|
||||||
|
scheme-invert-bis: #{getVar("text-05")},
|
||||||
|
scheme-invert-ter: #{getVar("text-10")},
|
||||||
|
|
||||||
|
text: #{getVar("text-25")},
|
||||||
|
text-invert: #{getVar("white")},
|
||||||
|
text-light: #{getVar("text-55")},
|
||||||
|
text-strong: #{getVar("text-10")},
|
||||||
|
|
||||||
|
background: #{getVar("text-90")},
|
||||||
|
border: #{getVar("text-85")},
|
||||||
|
border-hover: #{getVar("text-80")},
|
||||||
|
border-light: #{getVar("text-90")},
|
||||||
|
border-light-hover: #{getVar("text-85")},
|
||||||
|
|
||||||
|
code: #{getVar("danger-60")},
|
||||||
|
code-background: #{getVar("text-90")},
|
||||||
|
pre: #{getVar("text-40")},
|
||||||
|
pre-background: #{getVar("text-90")},
|
||||||
|
|
||||||
|
link-visited: #{$link-visited},
|
||||||
|
link-hover: #{$link-hover},
|
||||||
|
link-hover-border: #{$link-hover-border},
|
||||||
|
link-focus: #{$link-focus},
|
||||||
|
link-focus-border: #{$link-focus-border},
|
||||||
|
link-active: #{$link-active},
|
||||||
|
link-active-border: #{$link-active-border},
|
||||||
|
)
|
||||||
|
);*/
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
@function buildVarName($name, $prefix: "", $suffix: "") {
|
@function buildVarName($name, $prefix: "", $suffix: "") {
|
||||||
@debug $cssvars-prefix;
|
|
||||||
@return "--#{$cssvars-prefix}#{$prefix}#{$name}#{$suffix}";
|
@return "--#{$cssvars-prefix}#{$prefix}#{$name}#{$suffix}";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -8,6 +7,11 @@
|
|||||||
@return var(#{$varName});
|
@return var(#{$varName});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@function getRgbaVar($name, $alpha, $prefix: "", $suffix: "") {
|
||||||
|
$varName: buildVarName($name, $prefix, $suffix);
|
||||||
|
@return unquote("rgba(var(#{$varName}), #{$alpha})");
|
||||||
|
}
|
||||||
|
|
||||||
@mixin register-var($name, $value, $prefix: "", $suffix: "") {
|
@mixin register-var($name, $value, $prefix: "", $suffix: "") {
|
||||||
$varName: buildVarName($name, $prefix, $suffix);
|
$varName: buildVarName($name, $prefix, $suffix);
|
||||||
#{$varName}: #{$value};
|
#{$varName}: #{$value};
|
||||||
@@ -75,3 +79,22 @@
|
|||||||
|
|
||||||
@include register-var($name, $invert, "", "-invert");
|
@include register-var($name, $invert, "", "-invert");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@mixin bulma-theme($name, $scope: "") {
|
||||||
|
@if ($scope == "parent") {
|
||||||
|
[data-#{$class-prefix}theme="#{$name}"] &,
|
||||||
|
.#{$class-prefix}theme-#{$name} & {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
} @else if ($scope == "self") {
|
||||||
|
&[data-#{$class-prefix}theme="#{$name}"],
|
||||||
|
&.#{$class-prefix}theme-#{$name} {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
} @else {
|
||||||
|
[data-#{$class-prefix}theme="#{$name}"],
|
||||||
|
.#{$class-prefix}theme-#{$name} {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
@import "initial-variables";
|
@import "initial-variables";
|
||||||
@import "functions";
|
@import "functions";
|
||||||
|
@import "css-variables";
|
||||||
|
|
||||||
$primary: $turquoise !default;
|
$primary: $turquoise !default;
|
||||||
|
|
||||||
@@ -31,7 +32,7 @@ $info-dark: findDarkColor($info) !default;
|
|||||||
$success-invert: findColorInvert($success) !default;
|
$success-invert: findColorInvert($success) !default;
|
||||||
$success-light: findLightColor($success) !default;
|
$success-light: findLightColor($success) !default;
|
||||||
$success-dark: findDarkColor($success) !default;
|
$success-dark: findDarkColor($success) !default;
|
||||||
$warning-invert: findColorInvert($warning) !default;
|
$warning-invert: #{getVar("white")} !default;
|
||||||
$warning-light: findLightColor($warning) !default;
|
$warning-light: findLightColor($warning) !default;
|
||||||
$warning-dark: findDarkColor($warning) !default;
|
$warning-dark: findDarkColor($warning) !default;
|
||||||
$danger-invert: findColorInvert($danger) !default;
|
$danger-invert: findColorInvert($danger) !default;
|
||||||
@@ -42,51 +43,49 @@ $dark-invert: findColorInvert($dark) !default;
|
|||||||
|
|
||||||
// General colors
|
// General colors
|
||||||
|
|
||||||
$scheme-main: $white !default;
|
$scheme-main: #{getVar("white")} !default;
|
||||||
$scheme-main-bis: $white-bis !default;
|
$scheme-main-bis: #{getVar("white-bis")} !default;
|
||||||
$scheme-main-ter: $white-ter !default;
|
$scheme-main-ter: #{getVar("white-ter")} !default;
|
||||||
$scheme-invert: $black !default;
|
$scheme-invert: #{getVar("text-00")} !default;
|
||||||
$scheme-invert-bis: $black-bis !default;
|
$scheme-invert-bis: #{getVar("text-05")} !default;
|
||||||
$scheme-invert-ter: $black-ter !default;
|
$scheme-invert-ter: #{getVar("text-10")} !default;
|
||||||
|
|
||||||
$background: $white-ter !default;
|
$background: #{getVar("text-90")} !default;
|
||||||
|
|
||||||
$border: $grey-lighter !default;
|
$border: #{getVar("text-85")} !default;
|
||||||
$border-hover: $grey-light !default;
|
$border-hover: #{getVar("text-80")} !default;
|
||||||
$border-light: $grey-lightest !default;
|
$border-light: #{getVar("text-90")} !default;
|
||||||
$border-light-hover: $grey-light !default;
|
$border-light-hover: #{getVar("text-85")} !default;
|
||||||
|
|
||||||
// Text colors
|
// Text colors
|
||||||
|
|
||||||
$text: $grey-dark !default;
|
$text: #{getVar("text-25")} !default;
|
||||||
$text-invert: findColorInvert($text) !default;
|
$text-invert: #{getVar("white")} !default;
|
||||||
$text-light: $grey !default;
|
$text-light: #{getVar("text-55")} !default;
|
||||||
$text-strong: $grey-darker !default;
|
$text-strong: #{getVar("text-10")} !default;
|
||||||
|
|
||||||
// Code colors
|
// Code colors
|
||||||
|
|
||||||
$code: darken($red, 15%) !default;
|
$code: #{getVar("danger-60")} !default;
|
||||||
$code-background: $background !default;
|
$code-background: #{getVar("text-90")} !default;
|
||||||
|
|
||||||
$pre: $text !default;
|
$pre: #{getVar("text-40")} !default;
|
||||||
$pre-background: $background !default;
|
$pre-background: #{getVar("text-90")} !default;
|
||||||
|
|
||||||
// Link colors
|
// Link colors
|
||||||
|
|
||||||
$link: $blue !default;
|
$link: $blue !default;
|
||||||
$link-invert: findColorInvert($link) !default;
|
$link-invert: findColorInvert($link) !default;
|
||||||
$link-light: findLightColor($link) !default;
|
|
||||||
$link-dark: findDarkColor($link) !default;
|
|
||||||
$link-visited: $purple !default;
|
$link-visited: $purple !default;
|
||||||
|
|
||||||
$link-hover: $grey-darker !default;
|
$link-hover: #{getVar("text-20")} !default;
|
||||||
$link-hover-border: $grey-light !default;
|
$link-hover-border: #{getVar("text-70")} !default;
|
||||||
|
|
||||||
$link-focus: $grey-darker !default;
|
$link-focus: #{getVar("text-20")} !default;
|
||||||
$link-focus-border: $blue !default;
|
$link-focus-border: #{getVar("link")} !default;
|
||||||
|
|
||||||
$link-active: $grey-darker !default;
|
$link-active: #{getVar("text-20")} !default;
|
||||||
$link-active-border: $grey-dark !default;
|
$link-active-border: #{getVar("text-30")} !default;
|
||||||
|
|
||||||
// Typography
|
// Typography
|
||||||
|
|
||||||
@@ -101,8 +100,9 @@ $size-large: $size-4 !default;
|
|||||||
|
|
||||||
// Effects
|
// Effects
|
||||||
|
|
||||||
$shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1),
|
$shadow-color: $black !default;
|
||||||
0 0px 0 1px rgba($scheme-invert, 0.02) !default;
|
$shadow: 0 0.5em 1em -0.125em rgba(var(--bulma-shadow-color-rgb), 0.1),
|
||||||
|
0 0px 0 1px rgba(var(--bulma-shadow-color-rgb), 0.02) !default;
|
||||||
|
|
||||||
// Lists and maps
|
// Lists and maps
|
||||||
$custom-colors: null !default;
|
$custom-colors: null !default;
|
||||||
@@ -135,8 +135,6 @@ $colors: mergeColorMaps(
|
|||||||
"link": (
|
"link": (
|
||||||
$link,
|
$link,
|
||||||
$link-invert,
|
$link-invert,
|
||||||
$link-light,
|
|
||||||
$link-dark
|
|
||||||
),
|
),
|
||||||
"info": (
|
"info": (
|
||||||
$info,
|
$info,
|
||||||
@@ -161,6 +159,10 @@ $colors: mergeColorMaps(
|
|||||||
$danger-invert,
|
$danger-invert,
|
||||||
$danger-light,
|
$danger-light,
|
||||||
$danger-dark
|
$danger-dark
|
||||||
|
),
|
||||||
|
"text": (
|
||||||
|
hsl(221, 14%, 29%),
|
||||||
|
#fff
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
$custom-colors
|
$custom-colors
|
||||||
|
|||||||
@@ -16,13 +16,13 @@ $white-bis: hsl(0, 0%, 98%) !default;
|
|||||||
$white: hsl(0, 0%, 100%) !default;
|
$white: hsl(0, 0%, 100%) !default;
|
||||||
|
|
||||||
$orange: hsl(14, 100%, 53%) !default;
|
$orange: hsl(14, 100%, 53%) !default;
|
||||||
$yellow: hsl(44, 100%, 77%) !default;
|
$yellow: hsl(42, 100%, 52%) !default;
|
||||||
$green: hsl(153, 53%, 53%) !default;
|
$green: hsl(148, 60%, 53%) !default;
|
||||||
$turquoise: hsl(171, 100%, 41%) !default;
|
$turquoise: hsl(171, 100%, 41%) !default;
|
||||||
$cyan: hsl(207, 61%, 53%) !default;
|
$cyan: hsl(198, 93%, 53%) !default;
|
||||||
$blue: hsl(229, 53%, 53%) !default;
|
$blue: hsl(229, 63%, 53%) !default;
|
||||||
$purple: hsl(271, 100%, 71%) !default;
|
$purple: hsl(271, 100%, 71%) !default;
|
||||||
$red: hsl(348, 86%, 61%) !default;
|
$red: hsl(4, 86%, 61%) !default;
|
||||||
|
|
||||||
// Typography
|
// Typography
|
||||||
|
|
||||||
|
|||||||
@@ -314,7 +314,7 @@
|
|||||||
|
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
background-color: bulmaRgba($scheme-invert, 0.2);
|
background-color: bulmargba(getVar("shadow-color-rgb"), 0.2);
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: $radius-rounded;
|
border-radius: $radius-rounded;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -357,11 +357,11 @@
|
|||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
background-color: bulmaRgba($scheme-invert, 0.3);
|
background-color: bulmargba(getVar("shadow-color-rgb"), 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
background-color: bulmaRgba($scheme-invert, 0.4);
|
background-color: bulmargba(getVar("shadow-color-rgb"), 0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sizes
|
// Sizes
|
||||||
|
|||||||
Reference in New Issue
Block a user