Add multiple Sass tests

This commit is contained in:
Jeremy Thomas 2020-03-16 13:29:44 +11:00
parent 4b2bc0018a
commit f75ae3db01
17 changed files with 18757 additions and 71 deletions

View File

@ -101,7 +101,7 @@ $alignments: ('centered': 'center', 'justified': 'justify', 'left': 'left', 'rig
a.has-text-#{$name}
&:hover,
&:focus
color: darken($color, 10%) !important
color: bulmaDarken($color, 10%) !important
.has-background-#{$name}
background-color: $color !important

View File

@ -32,7 +32,7 @@ $navbar-dropdown-radius: $radius-large !default
$navbar-dropdown-z: 20 !default
$navbar-dropdown-boxed-radius: $radius-large !default
$navbar-dropdown-boxed-shadow: 0 8px 8px rgba($scheme-invert, 0.1), 0 0 0 1px rgba($scheme-invert, 0.1) !default
$navbar-dropdown-boxed-shadow: 0 8px 8px bulmaRgba($scheme-invert, 0.1), 0 0 0 1px bulmaRgba($scheme-invert, 0.1) !default
$navbar-dropdown-item-hover-color: $scheme-invert !default
$navbar-dropdown-item-hover-background-color: $background !default
@ -72,7 +72,7 @@ $navbar-breakpoint: $desktop !default
&:focus,
&:hover,
&.is-active
background-color: darken($color, 5%)
background-color: bulmaDarken($color, 5%)
color: $color-invert
.navbar-link
&::after
@ -90,7 +90,7 @@ $navbar-breakpoint: $desktop !default
&:focus,
&:hover,
&.is-active
background-color: darken($color, 5%)
background-color: bulmaDarken($color, 5%)
color: $color-invert
.navbar-link
&::after
@ -98,7 +98,7 @@ $navbar-breakpoint: $desktop !default
.navbar-item.has-dropdown:focus .navbar-link,
.navbar-item.has-dropdown:hover .navbar-link,
.navbar-item.has-dropdown.is-active .navbar-link
background-color: darken($color, 5%)
background-color: bulmaDarken($color, 5%)
color: $color-invert
.navbar-dropdown
a.navbar-item
@ -245,7 +245,7 @@ a.navbar-item,
display: none
.navbar-menu
background-color: $navbar-background-color
box-shadow: 0 8px 16px rgba($scheme-invert, 0.1)
box-shadow: 0 8px 16px bulmaRgba($scheme-invert, 0.1)
padding: 0.5rem 0
&.is-active
display: block
@ -257,7 +257,7 @@ a.navbar-item,
&.is-fixed-bottom-touch
bottom: 0
&.has-shadow
box-shadow: 0 -2px 3px rgba($scheme-invert, 0.1)
box-shadow: 0 -2px 3px bulmaRgba($scheme-invert, 0.1)
&.is-fixed-top-touch
top: 0
&.is-fixed-top,
@ -331,7 +331,7 @@ a.navbar-item,
border-radius: $navbar-dropdown-radius $navbar-dropdown-radius 0 0
border-top: none
bottom: 100%
box-shadow: 0 -8px 8px rgba($scheme-invert, 0.1)
box-shadow: 0 -8px 8px bulmaRgba($scheme-invert, 0.1)
top: auto
&.is-active,
&.is-hoverable:focus,
@ -358,7 +358,7 @@ a.navbar-item,
border-bottom-left-radius: $navbar-dropdown-radius
border-bottom-right-radius: $navbar-dropdown-radius
border-top: $navbar-dropdown-border-top
box-shadow: 0 8px 8px rgba($scheme-invert, 0.1)
box-shadow: 0 8px 8px bulmaRgba($scheme-invert, 0.1)
display: none
font-size: 0.875rem
left: 0
@ -409,7 +409,7 @@ a.navbar-item,
&.is-fixed-bottom-desktop
bottom: 0
&.has-shadow
box-shadow: 0 -2px 3px rgba($scheme-invert, 0.1)
box-shadow: 0 -2px 3px bulmaRgba($scheme-invert, 0.1)
&.is-fixed-top-desktop
top: 0
html,

View File

@ -108,7 +108,7 @@ $button-static-border-color: $border !default
color: $button-text-hover-color
&:active,
&.is-active
background-color: darken($button-text-hover-background-color, 5%)
background-color: bulmaDarken($button-text-hover-background-color, 5%)
color: $button-text-hover-color
&[disabled],
fieldset[disabled] &
@ -124,7 +124,7 @@ $button-static-border-color: $border !default
color: $color-invert
&:hover,
&.is-hovered
background-color: darken($color, 2.5%)
background-color: bulmaDarken($color, 2.5%)
border-color: transparent
color: $color-invert
&:focus,
@ -132,10 +132,10 @@ $button-static-border-color: $border !default
border-color: transparent
color: $color-invert
&:not(:active)
box-shadow: $button-focus-box-shadow-size rgba($color, 0.25)
box-shadow: $button-focus-box-shadow-size bulmaRgba($color, 0.25)
&:active,
&.is-active
background-color: darken($color, 5%)
background-color: bulmaDarken($color, 5%)
border-color: transparent
color: $color-invert
&[disabled],
@ -148,7 +148,7 @@ $button-static-border-color: $border !default
color: $color
&:hover,
&.is-hovered
background-color: darken($color-invert, 5%)
background-color: bulmaDarken($color-invert, 5%)
&[disabled],
fieldset[disabled] &
background-color: $color-invert
@ -216,12 +216,12 @@ $button-static-border-color: $border !default
color: $color-dark
&:hover,
&.is-hovered
background-color: darken($color-light, 2.5%)
background-color: bulmaDarken($color-light, 2.5%)
border-color: transparent
color: $color-dark
&:active,
&.is-active
background-color: darken($color-light, 5%)
background-color: bulmaDarken($color-light, 5%)
border-color: transparent
color: $color-dark
// Sizes

View File

@ -29,19 +29,19 @@ $file-name-max-width: 16em !default
&:hover,
&.is-hovered
.file-cta
background-color: darken($color, 2.5%)
background-color: bulmaDarken($color, 2.5%)
border-color: transparent
color: $color-invert
&:focus,
&.is-focused
.file-cta
border-color: transparent
box-shadow: 0 0 0.5em rgba($color, 0.25)
box-shadow: 0 0 0.5em bulmaRgba($color, 0.25)
color: $color-invert
&:active,
&.is-active
.file-cta
background-color: darken($color, 5%)
background-color: bulmaDarken($color, 5%)
border-color: transparent
color: $color-invert
// Sizes
@ -125,16 +125,16 @@ $file-name-max-width: 16em !default
position: relative
&:hover
.file-cta
background-color: darken($file-cta-background-color, 2.5%)
background-color: bulmaDarken($file-cta-background-color, 2.5%)
color: $file-cta-hover-color
.file-name
border-color: darken($file-name-border-color, 2.5%)
border-color: bulmaDarken($file-name-border-color, 2.5%)
&:active
.file-cta
background-color: darken($file-cta-background-color, 5%)
background-color: bulmaDarken($file-cta-background-color, 5%)
color: $file-cta-active-color
.file-name
border-color: darken($file-name-border-color, 5%)
border-color: bulmaDarken($file-name-border-color, 5%)
.file-input
height: 100%

View File

@ -18,7 +18,7 @@ $textarea-min-height: 8em !default
&.is-focused,
&:active,
&.is-active
box-shadow: $input-focus-box-shadow-size rgba($color, 0.25)
box-shadow: $input-focus-box-shadow-size bulmaRgba($color, 0.25)
// Sizes
&.is-small
+control-small

View File

@ -48,12 +48,12 @@
border-color: $color
&:hover,
&.is-hovered
border-color: darken($color, 5%)
border-color: bulmaDarken($color, 5%)
&:focus,
&.is-focused,
&:active,
&.is-active
box-shadow: $input-focus-box-shadow-size rgba($color, 0.25)
box-shadow: $input-focus-box-shadow-size bulmaRgba($color, 0.25)
// Sizes
&.is-small
+control-small

View File

@ -41,7 +41,7 @@ $hero-body-padding-large: 18rem 1.5rem !default
.navbar-link
&:hover,
&.is-active
background-color: darken($color, 5%)
background-color: bulmaDarken($color, 5%)
color: $color-invert
.tabs
a
@ -65,13 +65,14 @@ $hero-body-padding-large: 18rem 1.5rem !default
border-color: $color-invert
color: $color
// Modifiers
&.is-bold
$gradient-top-left: darken(saturate(adjust-hue($color, -10deg), 10%), 10%)
$gradient-bottom-right: lighten(saturate(adjust-hue($color, 10deg), 5%), 5%)
background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
+mobile
.navbar-menu
background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
@if type-of($color) == 'color'
&.is-bold
$gradient-top-left: darken(saturate(adjust-hue($color, -10deg), 10%), 10%)
$gradient-bottom-right: lighten(saturate(adjust-hue($color, 10deg), 5%), 5%)
background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
+mobile
.navbar-menu
background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
// Sizes
&.is-small
.hero-body

View File

@ -62,6 +62,8 @@
@return $value
@function colorLuminance($color)
@if type-of($color) != 'color'
@return 0.55
$color-rgb: ('red': red($color),'green': green($color),'blue': blue($color))
@each $name, $value in $color-rgb
$adjusted: 0
@ -98,6 +100,11 @@
@return $text-strong
@function bulmaRgba($color, $alpha)
@if type-of($color) == 'color'
@return rgba($color, $alpha)
@return $color
@if type-of($color) != 'color'
@return $color
@return rgba($color, $alpha)
@function bulmaDarken($color, $amount)
@if type-of($color) != 'color'
@return $color
@return darken($color, $amount)

6964
test/css/bulma.css vendored Normal file

File diff suppressed because it is too large Load Diff

6959
test/css/css-variable.css Normal file

File diff suppressed because it is too large Load Diff

3811
test/css/customize.css Normal file

File diff suppressed because it is too large Load Diff

898
test/css/only-base.css Normal file
View File

@ -0,0 +1,898 @@
@keyframes spinAround {
from {
transform: rotate(0deg); }
to {
transform: rotate(359deg); } }
.is-unselectable {
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none; }
.is-overlay {
bottom: 0;
left: 0;
position: absolute;
right: 0;
top: 0; }
/*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
padding: 0; }
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 100%;
font-weight: normal; }
ul {
list-style: none; }
button,
input,
select,
textarea {
margin: 0; }
html {
box-sizing: border-box; }
*, *::before, *::after {
box-sizing: inherit; }
img,
video {
height: auto;
max-width: 100%; }
iframe {
border: 0; }
table {
border-collapse: collapse;
border-spacing: 0; }
td,
th {
padding: 0; }
td:not([align]),
th:not([align]) {
text-align: left; }
html {
background-color: white;
font-size: 16px;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
min-width: 300px;
overflow-x: hidden;
overflow-y: scroll;
text-rendering: optimizeLegibility;
text-size-adjust: 100%; }
article,
aside,
figure,
footer,
header,
hgroup,
section {
display: block; }
body,
button,
input,
select,
textarea {
font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif; }
code,
pre {
-moz-osx-font-smoothing: auto;
-webkit-font-smoothing: auto;
font-family: monospace; }
body {
color: #4a4a4a;
font-size: 1em;
font-weight: 400;
line-height: 1.5; }
a {
color: #3273dc;
cursor: pointer;
text-decoration: none; }
a strong {
color: currentColor; }
a:hover {
color: #363636; }
code {
background-color: whitesmoke;
color: #f14668;
font-size: 0.875em;
font-weight: normal;
padding: 0.25em 0.5em 0.25em; }
hr {
background-color: whitesmoke;
border: none;
display: block;
height: 2px;
margin: 1.5rem 0; }
img {
height: auto;
max-width: 100%; }
input[type="checkbox"],
input[type="radio"] {
vertical-align: baseline; }
small {
font-size: 0.875em; }
span {
font-style: inherit;
font-weight: inherit; }
strong {
color: #363636;
font-weight: 700; }
fieldset {
border: none; }
pre {
-webkit-overflow-scrolling: touch;
background-color: whitesmoke;
color: #4a4a4a;
font-size: 0.875em;
overflow-x: auto;
padding: 1.25rem 1.5rem;
white-space: pre;
word-wrap: normal; }
pre code {
background-color: transparent;
color: currentColor;
font-size: 1em;
padding: 0; }
table td,
table th {
vertical-align: top; }
table td:not([align]),
table th:not([align]) {
text-align: left; }
table th {
color: #363636; }
.is-clearfix::after {
clear: both;
content: " ";
display: table; }
.is-pulled-left {
float: left !important; }
.is-pulled-right {
float: right !important; }
.is-clipped {
overflow: hidden !important; }
.is-size-1 {
font-size: 3rem !important; }
.is-size-2 {
font-size: 2.5rem !important; }
.is-size-3 {
font-size: 2rem !important; }
.is-size-4 {
font-size: 1.5rem !important; }
.is-size-5 {
font-size: 1.25rem !important; }
.is-size-6 {
font-size: 1rem !important; }
.is-size-7 {
font-size: 0.75rem !important; }
@media screen and (max-width: 768px) {
.is-size-1-mobile {
font-size: 3rem !important; }
.is-size-2-mobile {
font-size: 2.5rem !important; }
.is-size-3-mobile {
font-size: 2rem !important; }
.is-size-4-mobile {
font-size: 1.5rem !important; }
.is-size-5-mobile {
font-size: 1.25rem !important; }
.is-size-6-mobile {
font-size: 1rem !important; }
.is-size-7-mobile {
font-size: 0.75rem !important; } }
@media screen and (min-width: 769px), print {
.is-size-1-tablet {
font-size: 3rem !important; }
.is-size-2-tablet {
font-size: 2.5rem !important; }
.is-size-3-tablet {
font-size: 2rem !important; }
.is-size-4-tablet {
font-size: 1.5rem !important; }
.is-size-5-tablet {
font-size: 1.25rem !important; }
.is-size-6-tablet {
font-size: 1rem !important; }
.is-size-7-tablet {
font-size: 0.75rem !important; } }
@media screen and (max-width: 1023px) {
.is-size-1-touch {
font-size: 3rem !important; }
.is-size-2-touch {
font-size: 2.5rem !important; }
.is-size-3-touch {
font-size: 2rem !important; }
.is-size-4-touch {
font-size: 1.5rem !important; }
.is-size-5-touch {
font-size: 1.25rem !important; }
.is-size-6-touch {
font-size: 1rem !important; }
.is-size-7-touch {
font-size: 0.75rem !important; } }
@media screen and (min-width: 1024px) {
.is-size-1-desktop {
font-size: 3rem !important; }
.is-size-2-desktop {
font-size: 2.5rem !important; }
.is-size-3-desktop {
font-size: 2rem !important; }
.is-size-4-desktop {
font-size: 1.5rem !important; }
.is-size-5-desktop {
font-size: 1.25rem !important; }
.is-size-6-desktop {
font-size: 1rem !important; }
.is-size-7-desktop {
font-size: 0.75rem !important; } }
@media screen and (min-width: 1216px) {
.is-size-1-widescreen {
font-size: 3rem !important; }
.is-size-2-widescreen {
font-size: 2.5rem !important; }
.is-size-3-widescreen {
font-size: 2rem !important; }
.is-size-4-widescreen {
font-size: 1.5rem !important; }
.is-size-5-widescreen {
font-size: 1.25rem !important; }
.is-size-6-widescreen {
font-size: 1rem !important; }
.is-size-7-widescreen {
font-size: 0.75rem !important; } }
@media screen and (min-width: 1408px) {
.is-size-1-fullhd {
font-size: 3rem !important; }
.is-size-2-fullhd {
font-size: 2.5rem !important; }
.is-size-3-fullhd {
font-size: 2rem !important; }
.is-size-4-fullhd {
font-size: 1.5rem !important; }
.is-size-5-fullhd {
font-size: 1.25rem !important; }
.is-size-6-fullhd {
font-size: 1rem !important; }
.is-size-7-fullhd {
font-size: 0.75rem !important; } }
.has-text-centered {
text-align: center !important; }
.has-text-justified {
text-align: justify !important; }
.has-text-left {
text-align: left !important; }
.has-text-right {
text-align: right !important; }
@media screen and (max-width: 768px) {
.has-text-centered-mobile {
text-align: center !important; } }
@media screen and (min-width: 769px), print {
.has-text-centered-tablet {
text-align: center !important; } }
@media screen and (min-width: 769px) and (max-width: 1023px) {
.has-text-centered-tablet-only {
text-align: center !important; } }
@media screen and (max-width: 1023px) {
.has-text-centered-touch {
text-align: center !important; } }
@media screen and (min-width: 1024px) {
.has-text-centered-desktop {
text-align: center !important; } }
@media screen and (min-width: 1024px) and (max-width: 1215px) {
.has-text-centered-desktop-only {
text-align: center !important; } }
@media screen and (min-width: 1216px) {
.has-text-centered-widescreen {
text-align: center !important; } }
@media screen and (min-width: 1216px) and (max-width: 1407px) {
.has-text-centered-widescreen-only {
text-align: center !important; } }
@media screen and (min-width: 1408px) {
.has-text-centered-fullhd {
text-align: center !important; } }
@media screen and (max-width: 768px) {
.has-text-justified-mobile {
text-align: justify !important; } }
@media screen and (min-width: 769px), print {
.has-text-justified-tablet {
text-align: justify !important; } }
@media screen and (min-width: 769px) and (max-width: 1023px) {
.has-text-justified-tablet-only {
text-align: justify !important; } }
@media screen and (max-width: 1023px) {
.has-text-justified-touch {
text-align: justify !important; } }
@media screen and (min-width: 1024px) {
.has-text-justified-desktop {
text-align: justify !important; } }
@media screen and (min-width: 1024px) and (max-width: 1215px) {
.has-text-justified-desktop-only {
text-align: justify !important; } }
@media screen and (min-width: 1216px) {
.has-text-justified-widescreen {
text-align: justify !important; } }
@media screen and (min-width: 1216px) and (max-width: 1407px) {
.has-text-justified-widescreen-only {
text-align: justify !important; } }
@media screen and (min-width: 1408px) {
.has-text-justified-fullhd {
text-align: justify !important; } }
@media screen and (max-width: 768px) {
.has-text-left-mobile {
text-align: left !important; } }
@media screen and (min-width: 769px), print {
.has-text-left-tablet {
text-align: left !important; } }
@media screen and (min-width: 769px) and (max-width: 1023px) {
.has-text-left-tablet-only {
text-align: left !important; } }
@media screen and (max-width: 1023px) {
.has-text-left-touch {
text-align: left !important; } }
@media screen and (min-width: 1024px) {
.has-text-left-desktop {
text-align: left !important; } }
@media screen and (min-width: 1024px) and (max-width: 1215px) {
.has-text-left-desktop-only {
text-align: left !important; } }
@media screen and (min-width: 1216px) {
.has-text-left-widescreen {
text-align: left !important; } }
@media screen and (min-width: 1216px) and (max-width: 1407px) {
.has-text-left-widescreen-only {
text-align: left !important; } }
@media screen and (min-width: 1408px) {
.has-text-left-fullhd {
text-align: left !important; } }
@media screen and (max-width: 768px) {
.has-text-right-mobile {
text-align: right !important; } }
@media screen and (min-width: 769px), print {
.has-text-right-tablet {
text-align: right !important; } }
@media screen and (min-width: 769px) and (max-width: 1023px) {
.has-text-right-tablet-only {
text-align: right !important; } }
@media screen and (max-width: 1023px) {
.has-text-right-touch {
text-align: right !important; } }
@media screen and (min-width: 1024px) {
.has-text-right-desktop {
text-align: right !important; } }
@media screen and (min-width: 1024px) and (max-width: 1215px) {
.has-text-right-desktop-only {
text-align: right !important; } }
@media screen and (min-width: 1216px) {
.has-text-right-widescreen {
text-align: right !important; } }
@media screen and (min-width: 1216px) and (max-width: 1407px) {
.has-text-right-widescreen-only {
text-align: right !important; } }
@media screen and (min-width: 1408px) {
.has-text-right-fullhd {
text-align: right !important; } }
.is-capitalized {
text-transform: capitalize !important; }
.is-lowercase {
text-transform: lowercase !important; }
.is-uppercase {
text-transform: uppercase !important; }
.is-italic {
font-style: italic !important; }
.has-text-white {
color: white !important; }
a.has-text-white:hover, a.has-text-white:focus {
color: #e6e6e6 !important; }
.has-background-white {
background-color: white !important; }
.has-text-black {
color: #0a0a0a !important; }
a.has-text-black:hover, a.has-text-black:focus {
color: black !important; }
.has-background-black {
background-color: #0a0a0a !important; }
.has-text-light {
color: whitesmoke !important; }
a.has-text-light:hover, a.has-text-light:focus {
color: #dbdbdb !important; }
.has-background-light {
background-color: whitesmoke !important; }
.has-text-dark {
color: #363636 !important; }
a.has-text-dark:hover, a.has-text-dark:focus {
color: #1c1c1c !important; }
.has-background-dark {
background-color: #363636 !important; }
.has-text-primary {
color: #00d1b2 !important; }
a.has-text-primary:hover, a.has-text-primary:focus {
color: #009e86 !important; }
.has-background-primary {
background-color: #00d1b2 !important; }
.has-text-link {
color: #3273dc !important; }
a.has-text-link:hover, a.has-text-link:focus {
color: #205bbc !important; }
.has-background-link {
background-color: #3273dc !important; }
.has-text-info {
color: #3298dc !important; }
a.has-text-info:hover, a.has-text-info:focus {
color: #207dbc !important; }
.has-background-info {
background-color: #3298dc !important; }
.has-text-success {
color: #48c774 !important; }
a.has-text-success:hover, a.has-text-success:focus {
color: #34a85c !important; }
.has-background-success {
background-color: #48c774 !important; }
.has-text-warning {
color: #ffdd57 !important; }
a.has-text-warning:hover, a.has-text-warning:focus {
color: #ffd324 !important; }
.has-background-warning {
background-color: #ffdd57 !important; }
.has-text-danger {
color: #f14668 !important; }
a.has-text-danger:hover, a.has-text-danger:focus {
color: #ee1742 !important; }
.has-background-danger {
background-color: #f14668 !important; }
.has-text-black-bis {
color: #121212 !important; }
.has-background-black-bis {
background-color: #121212 !important; }
.has-text-black-ter {
color: #242424 !important; }
.has-background-black-ter {
background-color: #242424 !important; }
.has-text-grey-darker {
color: #363636 !important; }
.has-background-grey-darker {
background-color: #363636 !important; }
.has-text-grey-dark {
color: #4a4a4a !important; }
.has-background-grey-dark {
background-color: #4a4a4a !important; }
.has-text-grey {
color: #7a7a7a !important; }
.has-background-grey {
background-color: #7a7a7a !important; }
.has-text-grey-light {
color: #b5b5b5 !important; }
.has-background-grey-light {
background-color: #b5b5b5 !important; }
.has-text-grey-lighter {
color: #dbdbdb !important; }
.has-background-grey-lighter {
background-color: #dbdbdb !important; }
.has-text-white-ter {
color: whitesmoke !important; }
.has-background-white-ter {
background-color: whitesmoke !important; }
.has-text-white-bis {
color: #fafafa !important; }
.has-background-white-bis {
background-color: #fafafa !important; }
.has-text-weight-light {
font-weight: 300 !important; }
.has-text-weight-normal {
font-weight: 400 !important; }
.has-text-weight-medium {
font-weight: 500 !important; }
.has-text-weight-semibold {
font-weight: 600 !important; }
.has-text-weight-bold {
font-weight: 700 !important; }
.is-family-primary {
font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !important; }
.is-family-secondary {
font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !important; }
.is-family-sans-serif {
font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !important; }
.is-family-monospace {
font-family: monospace !important; }
.is-family-code {
font-family: monospace !important; }
.is-block {
display: block !important; }
@media screen and (max-width: 768px) {
.is-block-mobile {
display: block !important; } }
@media screen and (min-width: 769px), print {
.is-block-tablet {
display: block !important; } }
@media screen and (min-width: 769px) and (max-width: 1023px) {
.is-block-tablet-only {
display: block !important; } }
@media screen and (max-width: 1023px) {
.is-block-touch {
display: block !important; } }
@media screen and (min-width: 1024px) {
.is-block-desktop {
display: block !important; } }
@media screen and (min-width: 1024px) and (max-width: 1215px) {
.is-block-desktop-only {
display: block !important; } }
@media screen and (min-width: 1216px) {
.is-block-widescreen {
display: block !important; } }
@media screen and (min-width: 1216px) and (max-width: 1407px) {
.is-block-widescreen-only {
display: block !important; } }
@media screen and (min-width: 1408px) {
.is-block-fullhd {
display: block !important; } }
.is-flex {
display: flex !important; }
@media screen and (max-width: 768px) {
.is-flex-mobile {
display: flex !important; } }
@media screen and (min-width: 769px), print {
.is-flex-tablet {
display: flex !important; } }
@media screen and (min-width: 769px) and (max-width: 1023px) {
.is-flex-tablet-only {
display: flex !important; } }
@media screen and (max-width: 1023px) {
.is-flex-touch {
display: flex !important; } }
@media screen and (min-width: 1024px) {
.is-flex-desktop {
display: flex !important; } }
@media screen and (min-width: 1024px) and (max-width: 1215px) {
.is-flex-desktop-only {
display: flex !important; } }
@media screen and (min-width: 1216px) {
.is-flex-widescreen {
display: flex !important; } }
@media screen and (min-width: 1216px) and (max-width: 1407px) {
.is-flex-widescreen-only {
display: flex !important; } }
@media screen and (min-width: 1408px) {
.is-flex-fullhd {
display: flex !important; } }
.is-inline {
display: inline !important; }
@media screen and (max-width: 768px) {
.is-inline-mobile {
display: inline !important; } }
@media screen and (min-width: 769px), print {
.is-inline-tablet {
display: inline !important; } }
@media screen and (min-width: 769px) and (max-width: 1023px) {
.is-inline-tablet-only {
display: inline !important; } }
@media screen and (max-width: 1023px) {
.is-inline-touch {
display: inline !important; } }
@media screen and (min-width: 1024px) {
.is-inline-desktop {
display: inline !important; } }
@media screen and (min-width: 1024px) and (max-width: 1215px) {
.is-inline-desktop-only {
display: inline !important; } }
@media screen and (min-width: 1216px) {
.is-inline-widescreen {
display: inline !important; } }
@media screen and (min-width: 1216px) and (max-width: 1407px) {
.is-inline-widescreen-only {
display: inline !important; } }
@media screen and (min-width: 1408px) {
.is-inline-fullhd {
display: inline !important; } }
.is-inline-block {
display: inline-block !important; }
@media screen and (max-width: 768px) {
.is-inline-block-mobile {
display: inline-block !important; } }
@media screen and (min-width: 769px), print {
.is-inline-block-tablet {
display: inline-block !important; } }
@media screen and (min-width: 769px) and (max-width: 1023px) {
.is-inline-block-tablet-only {
display: inline-block !important; } }
@media screen and (max-width: 1023px) {
.is-inline-block-touch {
display: inline-block !important; } }
@media screen and (min-width: 1024px) {
.is-inline-block-desktop {
display: inline-block !important; } }
@media screen and (min-width: 1024px) and (max-width: 1215px) {
.is-inline-block-desktop-only {
display: inline-block !important; } }
@media screen and (min-width: 1216px) {
.is-inline-block-widescreen {
display: inline-block !important; } }
@media screen and (min-width: 1216px) and (max-width: 1407px) {
.is-inline-block-widescreen-only {
display: inline-block !important; } }
@media screen and (min-width: 1408px) {
.is-inline-block-fullhd {
display: inline-block !important; } }
.is-inline-flex {
display: inline-flex !important; }
@media screen and (max-width: 768px) {
.is-inline-flex-mobile {
display: inline-flex !important; } }
@media screen and (min-width: 769px), print {
.is-inline-flex-tablet {
display: inline-flex !important; } }
@media screen and (min-width: 769px) and (max-width: 1023px) {
.is-inline-flex-tablet-only {
display: inline-flex !important; } }
@media screen and (max-width: 1023px) {
.is-inline-flex-touch {
display: inline-flex !important; } }
@media screen and (min-width: 1024px) {
.is-inline-flex-desktop {
display: inline-flex !important; } }
@media screen and (min-width: 1024px) and (max-width: 1215px) {
.is-inline-flex-desktop-only {
display: inline-flex !important; } }
@media screen and (min-width: 1216px) {
.is-inline-flex-widescreen {
display: inline-flex !important; } }
@media screen and (min-width: 1216px) and (max-width: 1407px) {
.is-inline-flex-widescreen-only {
display: inline-flex !important; } }
@media screen and (min-width: 1408px) {
.is-inline-flex-fullhd {
display: inline-flex !important; } }
.is-hidden {
display: none !important; }
.is-sr-only {
border: none !important;
clip: rect(0, 0, 0, 0) !important;
height: 0.01em !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
white-space: nowrap !important;
width: 0.01em !important; }
@media screen and (max-width: 768px) {
.is-hidden-mobile {
display: none !important; } }
@media screen and (min-width: 769px), print {
.is-hidden-tablet {
display: none !important; } }
@media screen and (min-width: 769px) and (max-width: 1023px) {
.is-hidden-tablet-only {
display: none !important; } }
@media screen and (max-width: 1023px) {
.is-hidden-touch {
display: none !important; } }
@media screen and (min-width: 1024px) {
.is-hidden-desktop {
display: none !important; } }
@media screen and (min-width: 1024px) and (max-width: 1215px) {
.is-hidden-desktop-only {
display: none !important; } }
@media screen and (min-width: 1216px) {
.is-hidden-widescreen {
display: none !important; } }
@media screen and (min-width: 1216px) and (max-width: 1407px) {
.is-hidden-widescreen-only {
display: none !important; } }
@media screen and (min-width: 1408px) {
.is-hidden-fullhd {
display: none !important; } }
.is-invisible {
visibility: hidden !important; }
@media screen and (max-width: 768px) {
.is-invisible-mobile {
visibility: hidden !important; } }
@media screen and (min-width: 769px), print {
.is-invisible-tablet {
visibility: hidden !important; } }
@media screen and (min-width: 769px) and (max-width: 1023px) {
.is-invisible-tablet-only {
visibility: hidden !important; } }
@media screen and (max-width: 1023px) {
.is-invisible-touch {
visibility: hidden !important; } }
@media screen and (min-width: 1024px) {
.is-invisible-desktop {
visibility: hidden !important; } }
@media screen and (min-width: 1024px) and (max-width: 1215px) {
.is-invisible-desktop-only {
visibility: hidden !important; } }
@media screen and (min-width: 1216px) {
.is-invisible-widescreen {
visibility: hidden !important; } }
@media screen and (min-width: 1216px) and (max-width: 1407px) {
.is-invisible-widescreen-only {
visibility: hidden !important; } }
@media screen and (min-width: 1408px) {
.is-invisible-fullhd {
visibility: hidden !important; } }
.is-marginless {
margin: 0 !important; }
.is-paddingless {
padding: 0 !important; }
.is-radiusless {
border-radius: 0 !important; }
.is-shadowless {
box-shadow: none !important; }
.is-relative {
position: relative !important; }

View File

@ -1,47 +1,45 @@
#!/bin/bash
# CONSTANTS
TEST_DIR=$(dirname $BASH_SOURCE)
FILES=$TEST_DIR/sass/*
CSS_DIR=$TEST_DIR/css
SASS_OPTIONS=--sourcemap=none
# ==============================================================================
# FUNCTIONS - START
# ==============================================================================
# FUNCTIONS
build_sass()
{
echo "Processing $1 file…"
local fileName=$(basename -- "$1")
local name="${fileName%.*}"
local destFile="$CSS_DIR/$name.css"
sass "$1" "${destFile}" ${SASS_OPTIONS}
}
run_it()
{
rm -r $CSS_DIR
local _src="${1-bulma.sass}"
local _dest="${2-$(dirname "${BASH_SOURCE[0]}")/output/$(basename ${_src}).css}"
local _options="${3---sourcemap=none}"
# ----------------------------------------------------------------------------
local _dest_dir="$(dirname "${_dest}")"
if [ ! -d "${_dest_dir}" ]; then
mkdir -p "${_dest_dir}"
if [ ! -d "${CSS_DIR}" ]; then
echo "Creating $CSS_DIR directory…"
mkdir -p "${CSS_DIR}"
fi
# ----------------------------------------------------------------------------
sass "${_src}" "${_dest}" ${_options}
if [ $1 ]
then
build_sass $1
else
for f in $FILES
do
build_sass $f
done
fi
}
# run_it()
# ==============================================================================
# FUNCTIONS - END
# ==============================================================================
# ==============================================================================
# EXECUTION - START
# ==============================================================================
# EXECUTION
run_it $@
# ==============================================================================
# EXECUTION - END
# ==============================================================================

2
test/sass/bulma.sass vendored Normal file
View File

@ -0,0 +1,2 @@
@charset "utf-8"
@import "../../bulma"

View File

@ -0,0 +1,4 @@
@charset "utf-8"
$red: #f60
$blue: var(--blue)
@import "../../bulma"

37
test/sass/customize.scss Normal file
View File

@ -0,0 +1,37 @@
@charset "utf-8";
// Import a Google Font
@import url('https://fonts.googleapis.com/css?family=Nunito:400,700');
// Set your brand colors
$purple: #8A4D76;
$pink: #FA7C91;
$brown: #757763;
$beige-light: #D0D1CD;
$beige-lighter: #EFF0EB;
// Update Bulma's global variables
$family-sans-serif: "Nunito", sans-serif;
$grey-dark: $brown;
$grey-light: $beige-light;
$primary: $purple;
$link: $pink;
$widescreen-enabled: false;
$fullhd-enabled: false;
// Update some of Bulma's component variables
$body-background-color: $beige-lighter;
$control-border-width: 2px;
$input-border-color: transparent;
$input-shadow: none;
// Import only what you need from Bulma
@import "../../sass/utilities/_all.sass";
@import "../../sass/base/_all.sass";
@import "../../sass/elements/button.sass";
@import "../../sass/elements/container.sass";
@import "../../sass/elements/title.sass";
@import "../../sass/form/_all.sass";
@import "../../sass/components/navbar.sass";
@import "../../sass/layout/hero.sass";
@import "../../sass/layout/section.sass";

5
test/sass/only-base.sass Normal file
View File

@ -0,0 +1,5 @@
@charset "utf-8"
@import "../../sass/utilities/_all"
@import "../../sass/base/_all"