app.css 5.7 KB

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