You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.0 KiB

3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //
  2. // Item
  3. // --------------------------------------------------
  4. .item {
  5. display: flex;
  6. align-items: center;
  7. justify-content: center;
  8. width: 4rem;
  9. height: 4rem;
  10. transition: opacity .25s ease-out, transform .25s ease-out;
  11. @at-root {
  12. a#{&} {
  13. will-change: opacity;
  14. &:hover,
  15. &:focus {
  16. opacity: .6;
  17. }
  18. &:active {
  19. opacity: 1;
  20. }
  21. &.item-link-pop {
  22. will-change: transform;
  23. &:hover,
  24. &:focus {
  25. opacity: 1;
  26. transform: scale(1.1);
  27. }
  28. &:active {
  29. transform: scale(1);
  30. }
  31. }
  32. }
  33. }
  34. &.item-tiny {
  35. width: 1rem;
  36. height: 1rem;
  37. }
  38. &.item-2x {
  39. width: 6rem;
  40. height: 6rem;
  41. }
  42. &.item-3x {
  43. width: 8rem;
  44. height: 8rem;
  45. }
  46. &.item-circle {
  47. border-radius: 50%;
  48. }
  49. &.item-rounded {
  50. border-radius: $border-radius;
  51. }
  52. &.item-rounded-lg {
  53. border-radius: 1.75rem;
  54. &.item-2x {
  55. border-radius: 2.25rem;
  56. }
  57. &.item-3x {
  58. border-radius: 3rem;
  59. }
  60. }
  61. }