_variable.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. // VARIABLES
  2. // typography - most used fonts
  3. $mainFont: Lato, Sans-serif;
  4. $titleFont: Syne, Sans-serif;
  5. // typography - utilité fonts
  6. @mixin publique-font {
  7. font-family: PlayfairDisplay, serif;
  8. font-style: italic;
  9. }
  10. @mixin sociale-font {
  11. font-family: ManifontGrotesk, sans-serif;
  12. font-weight: bold;
  13. font-style: italic;
  14. }
  15. @mixin culturelle-font {
  16. font-family: Avara, serif;
  17. font-weight: bold;
  18. font-style: italic;
  19. }
  20. // typography - index fonts
  21. @mixin figures-libres-font {
  22. font-family: Syne, sans-serif;
  23. font-weight: bold;
  24. }
  25. @mixin commanditaires-font {
  26. font-family: Moche, sans-serif;
  27. font-weight: bold;
  28. }
  29. @mixin projets-font {
  30. font-family: Redaction50, serif;
  31. font-weight: bold;
  32. }
  33. // typography - general sizes
  34. $currentSize: 1.2em;
  35. $smallSize: 0.95em;
  36. $tinySize: 0.75em;
  37. $currentLineHeight: 1.25em;
  38. $smallFontLineHeight: 1.45em;
  39. $titleLineHeight: 1.1em;
  40. // typography - sizes mobile
  41. $titleFontSizeMobile: 1.8em;
  42. $bigFontSizeMobile: 2.2em;
  43. // typography - sizes desktop
  44. $bigFontSizeDesktop: 2.9em;
  45. // typography - pictograms
  46. $pictoInlineWidth: 12px;
  47. $pictoInlineHeight: 10px;
  48. $pictoSmallWidth: 25px;
  49. $pictoSmallHeight: 23px;
  50. $pictoLargeWidth: 45px;
  51. $pictoLargeHeight: 37px;
  52. $pictoExtraLargeWidth: 60px;
  53. $pictoExtraLargeHeight: 54px;
  54. // colors - theme colors
  55. $mainColor: #0e1229;
  56. $mainColorSoft: #1f2429;
  57. $bgColor: #f5f5f5;
  58. $color_publique: #ffaeab;
  59. $color_sociale: #71ff94;
  60. $color_culturelle: #feff74;
  61. $color_commanditaire: #fabbde;
  62. $color_figureslibres: #82f8ee;
  63. $color_projets: #4bffc9;
  64. // colors - gradient
  65. $bgGradientToBottom: linear-gradient(to bottom, #{$bgColor}, #{$bgColor}00);
  66. $bgGradientToLeft: linear-gradient(to left, #{$bgColor}, #{$bgColor}00);
  67. // colors - opacity
  68. $transparency: 0.4;
  69. // layout - general
  70. $navHeight: 7vh;
  71. $sectionSpacing: 30px;
  72. // layout - mobile
  73. $bodyMarginMobile: 3vw;
  74. $navGradientHeightMobile: 4vh;
  75. $footerHeightMobile: 7vh;
  76. // layout - desktop
  77. $navGradientHeightDesktop: 2vh;
  78. $bodyWidth: 65vw;
  79. $maxBodyWidth: 1300px;
  80. $footerHeightDesktop: 5vh;
  81. $marginTopShortContent: 7vh;
  82. $footerHeightDesktop: 4vh;
  83. // transition
  84. @mixin transition-ease-out($transitions...) {
  85. $unfoldedTransitions: ();
  86. @each $transition in $transitions {
  87. $unfoldedTransitions: append($unfoldedTransitions, unfoldTransition($transition), comma);
  88. }
  89. transition: $unfoldedTransitions;
  90. }
  91. @function unfoldTransition ($transition) {
  92. $property: all;
  93. $duration: .4s;
  94. $defaultProperties: ($property, $duration, ease-out);
  95. $unfoldedTransition: ();
  96. @for $i from 1 through length($defaultProperties) {
  97. $p: null;
  98. @if $i <= length($transition) {
  99. $p: nth($transition, $i)
  100. } @else {
  101. $p: nth($defaultProperties, $i)
  102. }
  103. $unfoldedTransition: append($unfoldedTransition, $p);
  104. }
  105. @return $unfoldedTransition;
  106. }
  107. // animation
  108. @keyframes arrowIndex {
  109. 30% { transform: translateY(0px); }
  110. 50% { transform: translateY(20px); }
  111. 70% { transform: translateY(0px); }
  112. }
  113. // media queries - tablet
  114. $minScreenWidthS: 576px;
  115. // media queries - small desktop
  116. $minScreenWidthM: 996px;
  117. // media queries - large desktop
  118. $minScreenWidthL: 1500px;