mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
move styles from bootstrap custom to chill entrypoint. split chillmain with imports sheets. clean styles
This commit is contained in:
@@ -0,0 +1,103 @@
|
||||
/// buttons
|
||||
|
||||
// adding special chill actions buttons
|
||||
$chill-theme-buttons: (
|
||||
"submit": $chill-green,
|
||||
"save": $chill-green,
|
||||
"create": $chill-green,
|
||||
"new": $chill-green,
|
||||
"duplicate": $chill-green,
|
||||
"not-duplicate": $chill-green,
|
||||
"reset": $chill-red,
|
||||
"delete": $chill-red,
|
||||
"danger": $chill-red,
|
||||
"remove": $chill-red,
|
||||
"action": $chill-orange,
|
||||
"edit": $chill-orange,
|
||||
"update": $chill-orange,
|
||||
"show": $chill-blue,
|
||||
"view": $chill-blue,
|
||||
"misc": $chill-light-gray,
|
||||
"cancel": $chill-light-gray,
|
||||
);
|
||||
|
||||
@each $button, $color in $chill-theme-buttons {
|
||||
.btn-#{$button} {
|
||||
@include button-variant($color, $color);
|
||||
}
|
||||
}
|
||||
|
||||
@each $button, $color in $chill-theme-buttons {
|
||||
.btn-outline-#{$button} {
|
||||
@include button-outline-variant($color);
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
&.btn-submit,
|
||||
&.btn-save,
|
||||
&.btn-create,
|
||||
&.btn-new,
|
||||
&.btn-duplicate,
|
||||
&.btn-not-duplicate,
|
||||
&.btn-reset,
|
||||
&.btn-delete,
|
||||
&.btn-danger,
|
||||
&.btn-remove,
|
||||
&.btn-action,
|
||||
&.btn-edit,
|
||||
&.btn-update {
|
||||
&, &:hover {
|
||||
color: $light;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
&.btn-new::before,
|
||||
&.btn-create::before,
|
||||
&.btn-edit::before,
|
||||
&.btn-update::before,
|
||||
&.btn-show::before,
|
||||
&.btn-view::before,
|
||||
&.btn-save::before,
|
||||
&.btn-duplicate::before,
|
||||
&.btn-not-duplicate::before,
|
||||
&.btn-submit::before,
|
||||
&.btn-reset::before,
|
||||
&.btn-action::before,
|
||||
&.btn-delete::before,
|
||||
&.btn-remove::before,
|
||||
&.btn-cancel::before {
|
||||
font: normal normal normal 14px/1 ForkAwesome;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
&[class*='btn-']:empty {
|
||||
&::before {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
&.btn-new::before,
|
||||
&.btn-create::before { content: "\f067"; } // fa-plus
|
||||
&.btn-edit::before,
|
||||
&.btn-update::before { content: "\f040"; } // fa-pencil
|
||||
&.btn-show::before,
|
||||
&.btn-view::before { content: "\f06e"; } // fa-eye
|
||||
&.btn-save::before { content: "\f0c7"; } // fa-floppy-o
|
||||
&.btn-duplicate::before { content: "\f24d"; } // fa-clone // f0c5 fa-files-o
|
||||
&.btn-delete::before { content: "\f1f8"; } // fa-trash
|
||||
&.btn-remove::before { content: "\f00d"; } // fa-times
|
||||
&.btn-cancel::before { content: "\f060"; } // fa-arrow-left
|
||||
}
|
||||
|
||||
|
||||
/// fix text color on themes buttons
|
||||
.btn-success,
|
||||
.btn-warning {
|
||||
&, &:hover {
|
||||
color: $light;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user