_mixins.scss 987 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @mixin flexbox {
  2. display: inline-flex;
  3. flex-wrap: wrap;
  4. width: 100%;
  5. }
  6. @mixin space-between {
  7. @include flexbox;
  8. justify-content: space-between;
  9. }
  10. @mixin grilles{
  11. display: grid;
  12. grid-template-columns: calc((100% / 6) - 1.4rem) calc((100% / 6) - 1.4rem) calc((100% / 6) - 1.4rem) calc((100% / 6) - 1.4rem) calc((100% / 6) - 1.4rem) calc((100% / 6) - 1.4rem);
  13. grid-gap: 1.4rem;
  14. grid-auto-rows: minmax(3.2rem, 3.2rem);
  15. justify-items: stretch;
  16. }
  17. @mixin card($size) {
  18. @if $size == 'small' {
  19. .card-header{
  20. h5{
  21. font-size: $Fsub-title;
  22. line-height: $Lsub-title;
  23. }
  24. }
  25. .card-date{
  26. time{
  27. font-size: $Fsub-title;
  28. line-height: $Lsub-title;
  29. }
  30. }
  31. } @else if $size == 'big' {
  32. width: $first_card;
  33. .card-header{
  34. h5{
  35. font-size: $Ftitle;
  36. line-height: $Ltitle;
  37. }
  38. }
  39. .card-date{
  40. time{
  41. font-size: $Ftitle;
  42. line-height: $Ltitle;
  43. }
  44. }
  45. }
  46. }