app.css 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  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: 100px;
  157. overflow: hidden;
  158. text-overflow: ellipsis;
  159. }
  160. .article-preview {
  161. max-height: 600px; /* Hauteur maximale pour chaque article */
  162. overflow: hidden; /* Masque le contenu qui dépasse */
  163. position: relative; /* Nécessaire pour le gradient ou autre effet de coupure */
  164. margin-bottom: 30px;
  165. }
  166. .article-preview p {
  167. /* margin: 0; */
  168. display: -webkit-box;
  169. -webkit-line-clamp: 15; /* Nombre maximum de lignes (ici 5) */
  170. line-clamp: 15;
  171. -webkit-box-orient: vertical;
  172. overflow: hidden;
  173. text-overflow: ellipsis;
  174. }
  175. .article-preview::after {
  176. content: '';
  177. position: absolute;
  178. bottom: 0;
  179. left: 0;
  180. right: 0;
  181. height: 100px;
  182. background: linear-gradient(to bottom, transparent, white);
  183. }
  184. main h1 {
  185. font-size: 1.9em;
  186. color: #263238;
  187. }
  188. main h1 a {
  189. color: rgb(24, 25, 31);
  190. text-decoration: no;
  191. }
  192. main h1 a:hover {
  193. color: rgb(22, 21, 36);
  194. }
  195. .titre-article {
  196. display: flex;
  197. flex-direction: column;
  198. }
  199. .titre-article .article-by {
  200. font-size: 1em;
  201. color: gray;
  202. margin: 0;
  203. }
  204. .titre-article h1 {
  205. margin: 0;
  206. }
  207. .table-articles {
  208. width: 100%;
  209. }
  210. .resize {
  211. position: fixed;
  212. bottom: 50px;
  213. right: 50px;
  214. }
  215. .size-max {
  216. max-width: 90vw;
  217. }
  218. .size-max-form {
  219. max-width: 85vw;
  220. }
  221. .hidden {
  222. display: none !important;
  223. }
  224. .unpublished {
  225. display: block;
  226. margin: 0px;
  227. padding: 20px;
  228. border-radius: 15px;
  229. background-color: rgb(197, 109, 9);
  230. color : white;
  231. text-align: center;
  232. font-weight: bold;
  233. font-size: 1.5em;
  234. }
  235. .intro {
  236. font-family: 'Alegreya', serif;
  237. font-size: 1.1em;
  238. }
  239. @media screen and (max-width: 1400px) {
  240. #header {
  241. height: 250px;
  242. }
  243. }
  244. @media screen and (max-width: 900px) {
  245. .resize {
  246. display: none;
  247. }
  248. #header.big {
  249. height: 100vh;
  250. }
  251. .navbar {
  252. padding: 0;
  253. position: absolute;
  254. }
  255. .nav-links {
  256. top: 0;
  257. left: 0;
  258. position: absolute;
  259. background-color: rgba(0, 255, 221, 0.308);
  260. width: 100%;
  261. height: 100vh;
  262. display: flex;
  263. justify-content: center;
  264. align-items: center;
  265. backdrop-filter: blur(7px);
  266. margin-left: -100%;
  267. transition: all 0.1s ease;
  268. }
  269. .nav-links ul {
  270. display: flex;
  271. flex-direction: column;
  272. align-items: center;
  273. }
  274. .navbar .menu-burger {
  275. display: block;
  276. }
  277. .nav-links.mobile-menu {
  278. margin-left: 0;
  279. }
  280. .navbar .nav-links > ul > li {
  281. margin: 25px 0;
  282. font-size: 1.2em;
  283. }
  284. .navbar .nav-links ul li {
  285. flex-direction: column;
  286. }
  287. .navbar .logo {
  288. position: absolute;
  289. top: 40px;
  290. left: 30px;
  291. font-size: 2em;
  292. }
  293. #header {
  294. height: 30vh;
  295. }
  296. main {
  297. padding: 20px 20px;
  298. }
  299. }