app.css 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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. @font-face {
  15. font-family: 'Alegreya';
  16. src: url('../fonts/alegreya/alegreya-latin-700-normal.woff2') format('woff2'),
  17. url('../fonts/alegreya/alegreya-latin-700-normal.woff') format('woff');
  18. font-weight: 700;
  19. font-style: normal;
  20. }
  21. body {
  22. margin: 0;
  23. padding: 0;
  24. background-color: rgb(38, 26, 51);
  25. background-image: url(../images/landscape.jpg);
  26. background-size: cover;
  27. background-attachment: fixed;
  28. background-position-y: 0;
  29. }
  30. body > header * {
  31. margin: 0;
  32. padding: 0;
  33. list-style: none;
  34. text-decoration: none;
  35. }
  36. #header {
  37. height: 200px;
  38. width: 100vw;
  39. transition: all 0.1s ease;
  40. }
  41. .navbar {
  42. /* position: absolute; */
  43. padding: 50px;
  44. display: flex;
  45. justify-content: space-between;
  46. align-items: center;
  47. width: 100%;
  48. box-sizing: border-box;
  49. }
  50. .navbar a {
  51. color: white;
  52. }
  53. .navbar .logo {
  54. font-size: 4em;
  55. font-weight: bold;
  56. }
  57. .navbar .nav-links ul {
  58. display: flex;
  59. }
  60. .navbar .nav-links ul li {
  61. margin: 0 25px;
  62. }
  63. .navbar .nav-links > ul > li {
  64. font-size: 1.1em;
  65. }
  66. .navbar .nav-links ul li.active a {
  67. color: #ed3c57;
  68. font-weight: 600;
  69. }
  70. .navbar .menu-burger {
  71. display: none;
  72. position: absolute;
  73. top: 50px;
  74. right: 30px;
  75. width: 35px;
  76. }
  77. .navbar .nav-links ul li {
  78. display: flex;
  79. justify-content: center;
  80. align-items: center;
  81. flex-direction: column;
  82. }
  83. /* Body */
  84. main {
  85. width: 100%;
  86. box-sizing: border-box;
  87. margin: 0 auto;
  88. max-width: 900px;
  89. background-color: rgb(255, 255, 255);
  90. color: #37474F;
  91. padding: 0 50px;
  92. border-radius: 15px;
  93. min-height: 70vh;
  94. transition: all 0.2s ease;
  95. padding-top: 30px;
  96. padding-bottom: 30px;
  97. line-height: 1.54;
  98. font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;
  99. }
  100. .contenu {
  101. font-size: 1.2em;
  102. position: relative;
  103. }
  104. .contenu iframe {
  105. margin-left: auto;
  106. margin-right: auto;
  107. display: block;
  108. max-width: 100%;
  109. }
  110. .contenu img {
  111. margin-left: auto;
  112. margin-right: auto;
  113. display: block;
  114. }
  115. blockquote {
  116. font-family: Georgia, serif;
  117. font-size: 1.2em;
  118. font-style: italic;
  119. color: #555; /* Couleur du texte */
  120. border-left: 4px solid #ccc; /* Bordure à gauche */
  121. margin: 1.5em 10px;
  122. padding: 0.5em 10px;
  123. quotes: "“" "”" "‘" "’";
  124. }
  125. blockquote::before {
  126. content: open-quote;
  127. font-size: 2em;
  128. color: #ccc; /* Couleur de la citation */
  129. vertical-align: -0.4em;
  130. margin-right: 5px;
  131. }
  132. blockquote p {
  133. display: inline;
  134. }
  135. blockquote::after {
  136. content: close-quote;
  137. font-size: 2em;
  138. color: #ccc;
  139. vertical-align: -0.4em;
  140. margin-left: 5px;
  141. }
  142. hr {
  143. width: 40%; /* Ajustez la largeur selon vos préférences */
  144. margin-bottom: 15px;
  145. margin-top: 30px;
  146. margin-left: auto;
  147. margin-right: auto;
  148. border: none; /* Enlève les bordures par défaut */
  149. height: 2px; /* Épaisseur de la ligne */
  150. background-color: #868686; /* Couleur de la ligne */
  151. }
  152. img, .contenu-flex {
  153. max-width: 100%;
  154. }
  155. .article-preview {
  156. max-height: 350px; /* Hauteur maximale pour chaque article */
  157. overflow: hidden; /* Masque le contenu qui dépasse */
  158. position: relative; /* Nécessaire pour le gradient ou autre effet de coupure */
  159. margin-bottom: 30px;
  160. text-overflow: ellipsis;
  161. }
  162. .article-preview p {
  163. /* margin: 0; */
  164. display: -webkit-box;
  165. -webkit-line-clamp: 15; /* Nombre maximum de lignes (ici 5) */
  166. line-clamp: 15;
  167. -webkit-box-orient: vertical;
  168. overflow: hidden;
  169. text-overflow: ellipsis;
  170. }
  171. .article-preview::after {
  172. content: '';
  173. position: absolute;
  174. bottom: 0;
  175. left: 0;
  176. right: 0;
  177. height: 100px;
  178. background: linear-gradient(to bottom, transparent, white);
  179. }
  180. main h1 {
  181. font-size: 1.9em;
  182. color: #263238;
  183. }
  184. main h1 a {
  185. color: rgb(24, 25, 31);
  186. text-decoration: no;
  187. }
  188. main h1 a:hover {
  189. color: rgb(22, 21, 36);
  190. }
  191. .titre-article {
  192. display: flex;
  193. flex-direction: column;
  194. }
  195. .titre-article .article-by {
  196. font-size: 1em;
  197. color: gray;
  198. margin: 0;
  199. }
  200. .titre-article h1 {
  201. margin: 0;
  202. }
  203. .table-articles {
  204. width: 100%;
  205. }
  206. .resize {
  207. position: fixed;
  208. bottom: 50px;
  209. right: 50px;
  210. }
  211. .size-max {
  212. max-width: 90vw;
  213. }
  214. .size-max-form {
  215. max-width: 85vw;
  216. }
  217. .hidden {
  218. display: none !important;
  219. }
  220. .unpublished {
  221. display: block;
  222. margin: 0px;
  223. padding: 20px;
  224. border-radius: 15px;
  225. background-color: rgb(197, 109, 9);
  226. color : white;
  227. text-align: center;
  228. font-weight: bold;
  229. font-size: 1.5em;
  230. }
  231. .intro {
  232. font-family: 'Alegreya', serif;
  233. font-size: 1.1em;
  234. }
  235. @media screen and (max-width: 1400px) {
  236. #header {
  237. height: 250px;
  238. }
  239. }
  240. @media screen and (max-width: 900px) {
  241. .resize {
  242. display: none;
  243. }
  244. #header.big {
  245. height: 100vh;
  246. }
  247. .navbar {
  248. padding: 0;
  249. position: absolute;
  250. }
  251. .nav-links {
  252. top: 0;
  253. left: 0;
  254. position: absolute;
  255. background-color: rgba(0, 255, 221, 0.308);
  256. width: 100%;
  257. height: 100vh;
  258. display: flex;
  259. justify-content: center;
  260. align-items: center;
  261. backdrop-filter: blur(7px);
  262. margin-left: -100%;
  263. transition: all 0.1s ease;
  264. }
  265. .nav-links ul {
  266. display: flex;
  267. flex-direction: column;
  268. align-items: center;
  269. }
  270. .navbar .menu-burger {
  271. display: block;
  272. }
  273. .nav-links.mobile-menu {
  274. margin-left: 0;
  275. }
  276. .navbar .nav-links > ul > li {
  277. margin: 25px 0;
  278. font-size: 1.2em;
  279. }
  280. .navbar .nav-links ul li {
  281. flex-direction: column;
  282. }
  283. .navbar .logo {
  284. position: absolute;
  285. top: 40px;
  286. left: 30px;
  287. font-size: 2em;
  288. }
  289. #header {
  290. height: 30vh;
  291. }
  292. main {
  293. padding: 20px 20px;
  294. }
  295. }