ldapmanager/test/scss/entry-form-fields/_submit-buttons.scss

45 lines
1.3 KiB
SCSS
Raw Normal View History

2024-10-29 06:10:25 +00:00
@use "../colors" as *;
@use "../vars" as *;
// Submit & clear buttons
2024-10-29 06:10:25 +00:00
@mixin submit-buttons {
2024-10-29 11:14:12 +00:00
.submit-buttons {
2024-10-29 06:10:25 +00:00
flex: 1 1 100%; // Full width of the available space
display: flex; // To align the contents(buttons)
2024-10-29 06:10:25 +00:00
justify-content: space-between; // Space between buttons
margin-top: 20px; // Space above the buttons
button {
width: 48%;
text-align: center;
padding: 12px;
border-radius: $input-field-border-radius;
// Clear button
2024-10-29 06:10:25 +00:00
&.clear-button {
background-color: $add-user-clear-button-color;
color: $add-user-clear-button-text-color;
&:hover {
background-color: $add-user-clear-button-hover-color; // Hover effect color
}
}
// Submit button
2024-10-29 06:10:25 +00:00
&.submit {
background-color: $add-user-button-color;
color: $add-user-button-text-color;
border: none;
&:hover {
background-color: $add-user-button-hover-color; // Button hover color
}
}
&:active {
transform: translateY(2px); // Subtle press effect
}
}
}
}