app.css 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  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: 2em;
  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. .container {
  101. display: flex;
  102. justify-content: center; /* Centre le contenu horizontalement */
  103. max-width: 1200px; /* Largeur maximale du container */
  104. margin: 0 auto; /* Centre le container dans la page */
  105. padding: 20px;
  106. flex-direction: row-reverse;
  107. align-items: flex-start;
  108. }
  109. /* Style de base pour l'aside */
  110. aside {
  111. margin-left: 20px;
  112. width: 250px;
  113. padding: 20px;
  114. background-color: #f9f9f9;
  115. border-radius: 15px;
  116. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  117. }
  118. /* En-tête de chaque section */
  119. aside h2 {
  120. font-size: 1.2em;
  121. margin-bottom: 10px;
  122. color: #333;
  123. }
  124. /* Style des listes de liens */
  125. aside ul {
  126. list-style-type: none;
  127. padding: 0;
  128. }
  129. aside li {
  130. margin-bottom: 8px;
  131. }
  132. aside a {
  133. text-decoration: none;
  134. color: #0073e6;
  135. }
  136. aside a:hover {
  137. text-decoration: underline;
  138. }
  139. .contenu {
  140. font-size: 1.2em;
  141. position: relative;
  142. }
  143. .contenu iframe {
  144. margin-left: auto;
  145. margin-right: auto;
  146. display: block;
  147. max-width: 100%;
  148. }
  149. .contenu img {
  150. margin-left: auto;
  151. margin-right: auto;
  152. display: block;
  153. }
  154. blockquote {
  155. font-family: Georgia, serif;
  156. font-size: 1.2em;
  157. font-style: italic;
  158. color: #555; /* Couleur du texte */
  159. border-left: 4px solid #ccc; /* Bordure à gauche */
  160. margin: 1.5em 10px;
  161. padding: 0.5em 10px;
  162. quotes: "“" "”" "‘" "’";
  163. }
  164. blockquote::before {
  165. content: open-quote;
  166. font-size: 2em;
  167. color: #ccc; /* Couleur de la citation */
  168. vertical-align: -0.4em;
  169. margin-right: 5px;
  170. }
  171. blockquote p {
  172. display: inline;
  173. }
  174. blockquote::after {
  175. content: close-quote;
  176. font-size: 2em;
  177. color: #ccc;
  178. vertical-align: -0.4em;
  179. margin-left: 5px;
  180. }
  181. hr {
  182. width: 40%; /* Ajustez la largeur selon vos préférences */
  183. margin-bottom: 15px;
  184. margin-top: 30px;
  185. margin-left: auto;
  186. margin-right: auto;
  187. border: none; /* Enlève les bordures par défaut */
  188. height: 2px; /* Épaisseur de la ligne */
  189. background-color: #868686; /* Couleur de la ligne */
  190. }
  191. img, .contenu-flex {
  192. max-width: 100%;
  193. }
  194. .article-preview {
  195. max-height: 350px; /* Hauteur maximale pour chaque article */
  196. overflow: hidden; /* Masque le contenu qui dépasse */
  197. position: relative; /* Nécessaire pour le gradient ou autre effet de coupure */
  198. margin-bottom: 30px;
  199. text-overflow: ellipsis;
  200. }
  201. .article-preview p {
  202. /* margin: 0; */
  203. display: -webkit-box;
  204. -webkit-line-clamp: 15; /* Nombre maximum de lignes (ici 5) */
  205. line-clamp: 15;
  206. -webkit-box-orient: vertical;
  207. overflow: hidden;
  208. text-overflow: ellipsis;
  209. }
  210. .article-preview::after {
  211. content: '';
  212. position: absolute;
  213. bottom: 0;
  214. left: 0;
  215. right: 0;
  216. height: 100px;
  217. background: linear-gradient(to bottom, transparent, white);
  218. }
  219. main h1 {
  220. font-size: 1.9em;
  221. color: #263238;
  222. }
  223. main h1 a {
  224. color: rgb(24, 25, 31);
  225. text-decoration: no;
  226. }
  227. main h1 a:hover {
  228. color: rgb(22, 21, 36);
  229. }
  230. .titre-article {
  231. display: flex;
  232. flex-direction: column;
  233. }
  234. .titre-article .article-by {
  235. font-size: 1em;
  236. color: gray;
  237. margin: 0;
  238. }
  239. .titre-article h1 {
  240. margin: 0;
  241. }
  242. .table-articles {
  243. width: 100%;
  244. }
  245. .resize {
  246. position: fixed;
  247. bottom: 50px;
  248. right: 50px;
  249. }
  250. .size-max {
  251. max-width: 90vw;
  252. }
  253. .size-max-form {
  254. max-width: 85vw;
  255. }
  256. .hidden {
  257. display: none !important;
  258. }
  259. .unpublished {
  260. display: block;
  261. margin: 0px;
  262. padding: 20px;
  263. border-radius: 15px;
  264. background-color: rgb(197, 109, 9);
  265. color : white;
  266. text-align: center;
  267. font-weight: bold;
  268. font-size: 1.5em;
  269. }
  270. .intro {
  271. font-family: 'Alegreya', serif;
  272. font-size: 1.1em;
  273. }
  274. @media screen and (max-width: 1400px) {
  275. #header {
  276. height: 250px;
  277. }
  278. }
  279. @media screen and (max-width: 900px) {
  280. .resize {
  281. display: none;
  282. }
  283. #header.big {
  284. height: 100vh;
  285. }
  286. .navbar {
  287. padding: 0;
  288. position: absolute;
  289. }
  290. .nav-links {
  291. top: 0;
  292. left: 0;
  293. position: absolute;
  294. background-color: rgba(0, 255, 221, 0.308);
  295. width: 100%;
  296. height: 100vh;
  297. display: flex;
  298. justify-content: center;
  299. align-items: center;
  300. backdrop-filter: blur(7px);
  301. margin-left: -100%;
  302. transition: all 0.1s ease;
  303. }
  304. .nav-links ul {
  305. display: flex;
  306. flex-direction: column;
  307. align-items: center;
  308. }
  309. .navbar .menu-burger {
  310. display: block;
  311. }
  312. .nav-links.mobile-menu {
  313. margin-left: 0;
  314. }
  315. .navbar .nav-links > ul > li {
  316. margin: 25px 0;
  317. font-size: 1.2em;
  318. }
  319. .navbar .nav-links ul li {
  320. flex-direction: column;
  321. }
  322. .navbar .logo {
  323. position: absolute;
  324. top: 40px;
  325. left: 30px;
  326. font-size: 2em;
  327. }
  328. #header {
  329. height: 30vh;
  330. }
  331. main {
  332. padding: 20px 20px;
  333. }
  334. .container {
  335. flex-wrap: wrap-reverse;
  336. }
  337. .container aside {
  338. margin: 20px 0;
  339. width: 100%;
  340. }
  341. }