Sha256: f65e1188d6b7871ed8c1631fd6e6e76f6cf866006b0a16b798bba760e17361b7

Contents?: true

Size: 1.56 KB

Versions: 13

Compression:

Stored size: 1.56 KB

Contents

@use "../utilities/css-variables" as cv;
@use "../utilities/initial-variables" as iv;
@use "../utilities/extends";

$box-background-color: cv.getVar("scheme-main") !default;
$box-color: cv.getVar("text") !default;
$box-radius: cv.getVar("radius-large") !default;
$box-shadow: cv.getVar("shadow") !default;
$box-padding: 1.25rem !default;

$box-link-hover-shadow:
  0 0.5em 1em -0.125em hsla(#{cv.getVar("scheme-h")}, #{cv.getVar("scheme-s")}, #{cv.getVar(
          "scheme-invert-l"
        )}, 0.1),
  0 0 0 1px cv.getVar("link") !default;
$box-link-active-shadow:
  inset 0 1px 2px
    hsla(
      #{cv.getVar("scheme-h")},
      #{cv.getVar("scheme-s")},
      #{cv.getVar("scheme-invert-l")},
      0.2
    ),
  0 0 0 1px cv.getVar("link") !default;

.#{iv.$class-prefix}box {
  @include cv.register-vars(
    (
      "box-background-color": #{$box-background-color},
      "box-color": #{$box-color},
      "box-radius": #{$box-radius},
      "box-shadow": #{$box-shadow},
      "box-padding": #{$box-padding},
      "box-link-hover-shadow": #{$box-link-hover-shadow},
      "box-link-active-shadow": #{$box-link-active-shadow},
    )
  );
}

.#{iv.$class-prefix}box {
  @extend %block;
  background-color: cv.getVar("box-background-color");
  border-radius: cv.getVar("box-radius");
  box-shadow: cv.getVar("box-shadow");
  color: cv.getVar("box-color");
  display: block;
  padding: cv.getVar("box-padding");
}

a.#{iv.$class-prefix}box {
  &:hover,
  &:focus {
    box-shadow: cv.getVar("box-link-hover-shadow");
  }

  &:active {
    box-shadow: cv.getVar("box-link-active-shadow");
  }
}

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
bulma-clean-theme-1.2.0 node_modules/bulma/sass/elements/box.scss
bulma-rails-1.0.3 app/assets/stylesheets/sass/elements/box.scss
mere-blog-theme-1.0.1 node_modules/bulma/sass/elements/box.scss
mere-blog-theme-1.0 node_modules/bulma/sass/elements/box.scss
bulma-clean-theme-1.1.0 node_modules/bulma/sass/elements/box.scss
bulma-clean-theme-1.0.4 node_modules/bulma/sass/elements/box.scss
bulma-rails-1.0.2 app/assets/stylesheets/sass/elements/box.scss
bulma-clean-theme-1.0.3 node_modules/bulma/sass/elements/box.scss
bulma-rails-1.0.1 app/assets/stylesheets/sass/elements/box.scss
bulma-clean-theme-1.0.0 node_modules/bulma/sass/elements/box.scss
bulma-clean-theme-1.0.0.beta.2 node_modules/bulma/sass/elements/box.scss
bulma-clean-theme-1.0.0.beta.1 node_modules/bulma/sass/elements/box.scss
bulma-rails-1.0.0 app/assets/stylesheets/sass/elements/box.scss