app.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. /* @tailwind base;
  2. @tailwind components;
  3. @tailwind utilities;
  4. @layer components {
  5. .btn-primary {
  6. @apply py-2 px-5 bg-violet-500 text-white font-semibold rounded-full shadow-md hover:bg-violet-700 focus:outline-none focus:ring focus:ring-violet-400 focus:ring-opacity-75;
  7. }
  8. }
  9. @layer components {
  10. .btn-danger {
  11. @apply py-2 px-5 bg-red-500 text-white font-semibold rounded-full shadow-md hover:bg-red-700 focus:outline-none focus:ring focus:ring-red-400 focus:ring-opacity-75;
  12. }
  13. } */
  14. body {
  15. margin: 0;
  16. padding: 0;
  17. }
  18. header * {
  19. margin: 0;
  20. padding: 0;
  21. list-style: none;
  22. text-decoration: none;
  23. }
  24. header {
  25. height: 40vh;
  26. width: 100vw;
  27. background-image: url(../images/landscape.jpg);
  28. background-size: cover;
  29. transition: all 0.1s ease;
  30. }
  31. .navbar {
  32. /* position: absolute; */
  33. padding: 50px;
  34. display: flex;
  35. justify-content: space-between;
  36. align-items: center;
  37. width: 100%;
  38. box-sizing: border-box;
  39. }
  40. .navbar a {
  41. color: white;
  42. }
  43. .navbar .logo {
  44. font-size: 4em;
  45. font-weight: bold;
  46. }
  47. .navbar .nav-links ul {
  48. display: flex;
  49. }
  50. .navbar .nav-links ul li {
  51. margin: 0 25px;
  52. }
  53. .navbar .nav-links > ul > li {
  54. font-size: 1.1em;
  55. }
  56. .navbar .nav-links ul li.active a {
  57. color: #ed3c57;
  58. font-weight: 600;
  59. }
  60. .navbar .menu-burger {
  61. display: none;
  62. position: absolute;
  63. top: 50px;
  64. right: 30px;
  65. width: 35px;
  66. }
  67. .navbar .nav-links ul li {
  68. display: flex;
  69. justify-content: center;
  70. align-items: center;
  71. flex-direction: column;
  72. }
  73. @media screen and (max-width: 1400px) {
  74. header {
  75. height: 50vh;
  76. }
  77. }
  78. @media screen and (max-width: 900px) {
  79. header.big {
  80. height: 100vh;
  81. }
  82. .navbar {
  83. padding: 0;
  84. position: absolute;
  85. }
  86. .nav-links {
  87. top: 0;
  88. left: 0;
  89. position: absolute;
  90. background-color: rgba(0, 255, 221, 0.308);
  91. width: 100%;
  92. height: 100vh;
  93. display: flex;
  94. justify-content: center;
  95. align-items: center;
  96. backdrop-filter: blur(7px);
  97. margin-left: -100%;
  98. transition: all 0.1s ease;
  99. }
  100. .nav-links ul {
  101. display: flex;
  102. flex-direction: column;
  103. align-items: center;
  104. }
  105. .navbar .menu-burger {
  106. display: block;
  107. }
  108. .nav-links.mobile-menu {
  109. margin-left: 0;
  110. }
  111. .navbar .nav-links > ul > li {
  112. margin: 25px 0;
  113. font-size: 1.2em;
  114. }
  115. .navbar .nav-links ul li {
  116. flex-direction: column;
  117. }
  118. .navbar .logo {
  119. position: absolute;
  120. top: 40px;
  121. left: 30px;
  122. font-size: 2em;
  123. }
  124. header {
  125. height: 30vh;
  126. }
  127. /* Body */
  128. }
  129. /* Body */
  130. main {
  131. display: flex;
  132. flex-direction: column;
  133. align-items: center;
  134. width: 100%; /* S'assure que le main ne dépasse pas la largeur de l'écran */
  135. box-sizing: border-box;
  136. flex-wrap: wrap;
  137. padding: 10px;
  138. }
  139. img, .contenu-flex {
  140. max-width: 100%;
  141. }
  142. .article-preview {
  143. max-height: 100px;
  144. overflow: hidden;
  145. text-overflow: ellipsis;
  146. }
  147. .article-preview {
  148. max-height: 400px; /* Hauteur maximale pour chaque article */
  149. overflow: hidden; /* Masque le contenu qui dépasse */
  150. position: relative; /* Nécessaire pour le gradient ou autre effet de coupure */
  151. margin-bottom: 30px;
  152. }
  153. .article-preview p {
  154. /* margin: 0; */
  155. display: -webkit-box;
  156. -webkit-line-clamp: 15; /* Nombre maximum de lignes (ici 5) */
  157. line-clamp: 15;
  158. -webkit-box-orient: vertical;
  159. overflow: hidden;
  160. text-overflow: ellipsis;
  161. }
  162. .article-preview::after {
  163. content: '';
  164. position: absolute;
  165. bottom: 0;
  166. left: 0;
  167. right: 0;
  168. height: 100px;
  169. background: linear-gradient(to bottom, transparent, white);
  170. }
  171. main h2 {
  172. font-size: 2.5em;
  173. color: rgb(34, 34, 34);
  174. }
  175. main h2 a {
  176. color: rgb(34, 34, 34);
  177. text-decoration: no;
  178. }
  179. main h2 a:hover {
  180. color: rgb(20,20,20);
  181. }
  182. .article-by {
  183. display: block;
  184. font-size: 0.5em;
  185. color: gray;
  186. }
  187. .table-articles {
  188. width: 100%;
  189. }