mixin.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. @mixin croix_or {
  2. &:after{
  3. height: 10px;
  4. margin-top: 0.5rem;
  5. content: " ";
  6. display: block;
  7. background: url($croix_or);
  8. background-repeat: repeat-x;
  9. background-size: auto auto;
  10. }
  11. }
  12. @mixin croix_or_B {
  13. &:before{
  14. width: 100px;
  15. height: 10px;
  16. margin-top: 0.5rem;
  17. content: " ";
  18. display: block;
  19. background: url($croix_or);
  20. background-repeat: repeat-x;
  21. background-size: auto auto;
  22. }
  23. }
  24. @mixin shadow{
  25. box-shadow: none;
  26. transition: 0.3s transform ease, 0.3s box-shadow ease;
  27. &:hover{
  28. transform: scale(1.05);
  29. box-shadow: 0px 0px 13px 0px $color2;
  30. transition: 0.3s transform ease, 0.3s box-shadow ease;
  31. }
  32. }
  33. @mixin shadow_participants{
  34. figure img{
  35. box-shadow: none;
  36. transition: 0.3s transform ease, 0.3s box-shadow ease;
  37. }
  38. figure{
  39. &:hover{
  40. & > div img{
  41. transform: scale(1.05);
  42. transition: 0.3s all ease;
  43. box-shadow: 0px 0px 13px 0px $color2;
  44. }
  45. }
  46. }
  47. }
  48. @mixin shadow_side_note{
  49. img{
  50. box-shadow: none;
  51. transition: 0.3s transform ease, 0.3s box-shadow ease;
  52. }
  53. &:hover{
  54. & > div img{
  55. transform: scale(1.05);
  56. transition: 0.3s all ease;
  57. box-shadow: 0px 0px 13px 0px $color2;
  58. }
  59. }
  60. }