Sha256: 2c1936fb37dd4c2a9876ab4fdbd60a72fc99378d3f9d83820ed9ac3db6a3a9a0

Contents?: true

Size: 1.14 KB

Versions: 42

Compression:

Stored size: 1.14 KB

Contents

@import "../helpers/index.scss";

.btn-icon-spacing {
  @extend .d-inline-flex, .align-items-center, .justify-content-center;
  gap: 4px;
}

// New buttons with bootstrap button styles
.cm-admin .btn-cta {
  --bs-btn-color: var(--bs-white) !important;
  --bs-btn-bg: var(--bs-primary) !important;
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: #{shade-color($primary, 10%)};
  @extend .btn, .btn-sm, .btn-icon-spacing;
}

.cm-admin .btn-primary {
  @extend .btn, .btn-outline-primary, .btn-sm, .btn-icon-spacing;
}

.cm-admin .btn-secondary {
  @extend .btn, .btn-outline-secondary, .btn-sm, .btn-icon-spacing;
}

.cm-admin .btn-ghost {
  @extend .btn, .btn-light, .btn-sm, .btn-icon-spacing;
}

.cm-admin .btn-danger {
  @extend .btn, .btn-outline-danger, .btn-sm, .btn-icon-spacing;
}

.cm-admin .btn-link {
  @extend .btn, .btn-link, .btn-sm, .btn-icon-spacing;
  text-decoration: underline;
}

// button mixin - We can use if needed
// @include button-variant($background: #6554e0, $border: #6554e0);

//Outline button mixin - We can use if needed
// @include button-outline-variant($color: #6554e0);

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
cm-admin-2.4.2 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.4.1 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.4.0 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.3.4 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.3.3 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.3.2 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.3.1 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.3.0 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.2.1 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.2.0 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.1.5 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.1.4 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.1.3 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.1.2 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.1.1 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.1.0 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.0.2 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.0.1 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-2.0.0 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-1.5.56 app/assets/stylesheets/cm_admin/components/_buttons.scss