app.css 6.7 KB

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