app.css 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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. background-color: rgb(38, 26, 51);
  18. background-image: url(../images/landscape.jpg);
  19. background-size: cover;
  20. background-attachment: fixed;
  21. background-position-y: 0;
  22. }
  23. body > header * {
  24. margin: 0;
  25. padding: 0;
  26. list-style: none;
  27. text-decoration: none;
  28. }
  29. #header {
  30. height: 200px;
  31. width: 100vw;
  32. transition: all 0.1s ease;
  33. }
  34. .navbar {
  35. /* position: absolute; */
  36. padding: 50px;
  37. display: flex;
  38. justify-content: space-between;
  39. align-items: center;
  40. width: 100%;
  41. box-sizing: border-box;
  42. }
  43. .navbar a {
  44. color: white;
  45. }
  46. .navbar .logo {
  47. font-size: 4em;
  48. font-weight: bold;
  49. }
  50. .navbar .nav-links ul {
  51. display: flex;
  52. }
  53. .navbar .nav-links ul li {
  54. margin: 0 25px;
  55. }
  56. .navbar .nav-links > ul > li {
  57. font-size: 1.1em;
  58. }
  59. .navbar .nav-links ul li.active a {
  60. color: #ed3c57;
  61. font-weight: 600;
  62. }
  63. .navbar .menu-burger {
  64. display: none;
  65. position: absolute;
  66. top: 50px;
  67. right: 30px;
  68. width: 35px;
  69. }
  70. .navbar .nav-links ul li {
  71. display: flex;
  72. justify-content: center;
  73. align-items: center;
  74. flex-direction: column;
  75. }
  76. /* Body */
  77. main {
  78. width: 100%;
  79. box-sizing: border-box;
  80. margin: 0 auto;
  81. max-width: 900px;
  82. background-color: rgb(255, 255, 255);
  83. color: #37474F;
  84. padding: 0 30px;
  85. border-radius: 15px;
  86. min-height: 70vh;
  87. transition: all 0.2s ease;
  88. padding-top: 20px;
  89. padding-bottom: 20px;
  90. line-height: 1.54;
  91. font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;
  92. }
  93. main p {
  94. font-size: 1.2em;
  95. }
  96. hr {
  97. width: 40%; /* Ajustez la largeur selon vos préférences */
  98. margin-bottom: 15px;
  99. margin-top: 30px;
  100. margin-left: auto;
  101. margin-right: auto;
  102. border: none; /* Enlève les bordures par défaut */
  103. height: 2px; /* Épaisseur de la ligne */
  104. background-color: #868686; /* Couleur de la ligne */
  105. }
  106. img, .contenu-flex {
  107. max-width: 100%;
  108. }
  109. .article-preview {
  110. max-height: 100px;
  111. overflow: hidden;
  112. text-overflow: ellipsis;
  113. }
  114. .article-preview {
  115. max-height: 600px; /* Hauteur maximale pour chaque article */
  116. overflow: hidden; /* Masque le contenu qui dépasse */
  117. position: relative; /* Nécessaire pour le gradient ou autre effet de coupure */
  118. margin-bottom: 30px;
  119. }
  120. .article-preview p {
  121. /* margin: 0; */
  122. display: -webkit-box;
  123. -webkit-line-clamp: 15; /* Nombre maximum de lignes (ici 5) */
  124. line-clamp: 15;
  125. -webkit-box-orient: vertical;
  126. overflow: hidden;
  127. text-overflow: ellipsis;
  128. }
  129. .article-preview::after {
  130. content: '';
  131. position: absolute;
  132. bottom: 0;
  133. left: 0;
  134. right: 0;
  135. height: 100px;
  136. background: linear-gradient(to bottom, transparent, white);
  137. }
  138. main h1 {
  139. font-size: 2.0em;
  140. color: #263238;
  141. }
  142. main h1 a {
  143. color: rgb(24, 25, 31);
  144. text-decoration: no;
  145. }
  146. main h1 a:hover {
  147. color: rgb(22, 21, 36);
  148. }
  149. .article-by {
  150. display: block;
  151. font-size: 0.5em;
  152. color: gray;
  153. }
  154. .table-articles {
  155. width: 100%;
  156. }
  157. .resize {
  158. position: fixed;
  159. bottom: 50px;
  160. right: 50px;
  161. }
  162. .size-max {
  163. max-width: 90vw;
  164. }
  165. .size-max-form {
  166. max-width: 85vw;
  167. }
  168. @media screen and (max-width: 1400px) {
  169. #header {
  170. height: 250px;
  171. }
  172. }
  173. @media screen and (max-width: 900px) {
  174. .resize {
  175. display: none;
  176. }
  177. #header.big {
  178. height: 100vh;
  179. }
  180. .navbar {
  181. padding: 0;
  182. position: absolute;
  183. }
  184. .nav-links {
  185. top: 0;
  186. left: 0;
  187. position: absolute;
  188. background-color: rgba(0, 255, 221, 0.308);
  189. width: 100%;
  190. height: 100vh;
  191. display: flex;
  192. justify-content: center;
  193. align-items: center;
  194. backdrop-filter: blur(7px);
  195. margin-left: -100%;
  196. transition: all 0.1s ease;
  197. }
  198. .nav-links ul {
  199. display: flex;
  200. flex-direction: column;
  201. align-items: center;
  202. }
  203. .navbar .menu-burger {
  204. display: block;
  205. }
  206. .nav-links.mobile-menu {
  207. margin-left: 0;
  208. }
  209. .navbar .nav-links > ul > li {
  210. margin: 25px 0;
  211. font-size: 1.2em;
  212. }
  213. .navbar .nav-links ul li {
  214. flex-direction: column;
  215. }
  216. .navbar .logo {
  217. position: absolute;
  218. top: 40px;
  219. left: 30px;
  220. font-size: 2em;
  221. }
  222. #header {
  223. height: 30vh;
  224. }
  225. main {
  226. padding: 0 20px;
  227. }
  228. }