Advertisement
Georgi_Benchev

Untitled

Feb 10th, 2025
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.66 KB | None | 0 0
  1.  
  2. .btn-primary, .btn-danger {
  3.     padding: 5px 10px; /* Adjust padding for better size */
  4.     font-size: 18px; /* Font size */
  5.     font-weight: 600; /* Slightly bolder text */
  6.     color: black; /* Default text color */
  7.     background-color: white; /* White background */
  8.     border: 1px solid; /* 2px border */
  9.     text-decoration: none; /* Remove underline from links */
  10.     text-align: center;
  11.     border-radius: 25px; /* Rounded corners */
  12.     display: inline-flex; /* Enables flexbox layout inside the button */
  13.     justify-content: center; /* Centers text horizontally */
  14.     align-items: center;
  15.     transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  16. }
  17.  
  18. .btn-primary {
  19.     border: 1px solid #007bff;
  20. }
  21.  
  22. .btn-primary:hover {
  23.     background-color: #007bff; /* Blue background on hover */
  24.     color: white; /* White text on hover */
  25.     transform: translateY(-2px); /* Slightly lift on hover */
  26. }
  27.  
  28. .btn-danger {
  29.     border-color: #dc3545; /* Red border */
  30. }
  31.  
  32. .btn-danger:hover {
  33.     background-color: #dc3545; /* Red background on hover */
  34.     color: white; /* White text on hover */
  35.     transform: translateY(-2px); /* Slightly lift on hover */
  36. }
  37.  
  38. .btn-primary:focus {
  39.     outline: none; /* Remove focus outline */
  40.     box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5); /* Focus ring for accessibility */
  41. }
  42.  
  43. .btn-danger:focus {
  44.     box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.5); /* Red focus ring for .btn-danger */
  45. }
  46.  
  47. .btn-primary.active {
  48.     background-color: #007bff; /* Blue background for active button */
  49.     color: white; /* White text for active button */
  50.     border-color: #007bff; /* Blue border for active button */
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement