app.css 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  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: 100px;
  195. overflow: hidden;
  196. text-overflow: ellipsis;
  197. }
  198. .article-preview {
  199. max-height: 600px; /* Hauteur maximale pour chaque article */
  200. overflow: hidden; /* Masque le contenu qui dépasse */
  201. position: relative; /* Nécessaire pour le gradient ou autre effet de coupure */
  202. margin-bottom: 30px;
  203. }
  204. .article-preview p {
  205. /* margin: 0; */
  206. display: -webkit-box;
  207. -webkit-line-clamp: 15; /* Nombre maximum de lignes (ici 5) */
  208. line-clamp: 15;
  209. -webkit-box-orient: vertical;
  210. overflow: hidden;
  211. text-overflow: ellipsis;
  212. }
  213. .article-preview::after {
  214. content: '';
  215. position: absolute;
  216. bottom: 0;
  217. left: 0;
  218. right: 0;
  219. height: 100px;
  220. background: linear-gradient(to bottom, transparent, white);
  221. }
  222. main h1 {
  223. font-size: 1.9em;
  224. color: #263238;
  225. }
  226. main h1 a {
  227. color: rgb(24, 25, 31);
  228. text-decoration: no;
  229. }
  230. main h1 a:hover {
  231. color: rgb(22, 21, 36);
  232. }
  233. .titre-article {
  234. display: flex;
  235. flex-direction: column;
  236. }
  237. .titre-article .article-by {
  238. font-size: 1em;
  239. color: gray;
  240. margin: 0;
  241. }
  242. .titre-article h1 {
  243. margin: 0;
  244. }
  245. .table-articles {
  246. width: 100%;
  247. }
  248. .resize {
  249. position: fixed;
  250. bottom: 50px;
  251. right: 50px;
  252. }
  253. .size-max {
  254. max-width: 90vw;
  255. }
  256. .size-max-form {
  257. max-width: 85vw;
  258. }
  259. .hidden {
  260. display: none !important;
  261. }
  262. .unpublished {
  263. display: block;
  264. margin: 0px;
  265. padding: 20px;
  266. border-radius: 15px;
  267. background-color: rgb(197, 109, 9);
  268. color : white;
  269. text-align: center;
  270. font-weight: bold;
  271. font-size: 1.5em;
  272. }
  273. .intro {
  274. font-family: 'Alegreya', serif;
  275. font-size: 1.1em;
  276. }
  277. @media screen and (max-width: 1400px) {
  278. #header {
  279. height: 250px;
  280. }
  281. }
  282. @media screen and (max-width: 900px) {
  283. .resize {
  284. display: none;
  285. }
  286. #header.big {
  287. height: 100vh;
  288. }
  289. .navbar {
  290. padding: 0;
  291. position: absolute;
  292. }
  293. .nav-links {
  294. top: 0;
  295. left: 0;
  296. position: absolute;
  297. background-color: rgba(0, 255, 221, 0.308);
  298. width: 100%;
  299. height: 100vh;
  300. display: flex;
  301. justify-content: center;
  302. align-items: center;
  303. backdrop-filter: blur(7px);
  304. margin-left: -100%;
  305. transition: all 0.1s ease;
  306. }
  307. .nav-links ul {
  308. display: flex;
  309. flex-direction: column;
  310. align-items: center;
  311. }
  312. .navbar .menu-burger {
  313. display: block;
  314. }
  315. .nav-links.mobile-menu {
  316. margin-left: 0;
  317. }
  318. .navbar .nav-links > ul > li {
  319. margin: 25px 0;
  320. font-size: 1.2em;
  321. }
  322. .navbar .nav-links ul li {
  323. flex-direction: column;
  324. }
  325. .navbar .logo {
  326. position: absolute;
  327. top: 40px;
  328. left: 30px;
  329. font-size: 2em;
  330. }
  331. #header {
  332. height: 30vh;
  333. }
  334. main {
  335. padding: 20px 20px;
  336. }
  337. }