Sha256: b7129edd0bb3c72c41e455d50318e74bb15a65c49ab26fb47a3f4c05f4187030

Contents?: true

Size: 1.23 KB

Versions: 25

Compression:

Stored size: 1.23 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;
}

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

// 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

25 entries across 25 versions & 1 rubygems

Version Path
cm-admin-4.1.2 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-4.1.1 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-4.1.0 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-4.0.0 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-3.0.16 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-3.0.15 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-3.0.14 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-3.0.13 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-3.0.12 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-3.0.11 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-3.0.10 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-3.0.9 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-3.0.8 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-3.0.7 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-3.0.6 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-3.0.5 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-3.0.4 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-3.0.3 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-3.0.2 app/assets/stylesheets/cm_admin/components/_buttons.scss
cm-admin-3.0.1 app/assets/stylesheets/cm_admin/components/_buttons.scss