123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344 |
- /* @tailwind base;
- @tailwind components;
- @tailwind utilities;
- @layer components {
- .btn-primary {
- @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;
- }
- }
- @layer components {
- .btn-danger {
- @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;
- }
- } */
- body {
- margin: 0;
- padding: 0;
- background-color: rgb(38, 26, 51);
- background-image: url(../images/landscape.jpg);
- background-size: cover;
- background-attachment: fixed;
- background-position-y: 0;
- }
- body > header * {
- margin: 0;
- padding: 0;
- list-style: none;
- text-decoration: none;
- }
- #header {
- height: 200px;
- width: 100vw;
- transition: all 0.1s ease;
- }
- .navbar {
- /* position: absolute; */
- padding: 50px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- width: 100%;
- box-sizing: border-box;
- }
- .navbar a {
- color: white;
- }
- .navbar .logo {
- font-size: 4em;
- font-weight: bold;
- }
- .navbar .nav-links ul {
- display: flex;
- }
- .navbar .nav-links ul li {
- margin: 0 25px;
- }
- .navbar .nav-links > ul > li {
- font-size: 1.1em;
- }
- .navbar .nav-links ul li.active a {
- color: #ed3c57;
- font-weight: 600;
- }
- .navbar .menu-burger {
- display: none;
- position: absolute;
- top: 50px;
- right: 30px;
- width: 35px;
- }
- .navbar .nav-links ul li {
- display: flex;
- justify-content: center;
- align-items: center;
- flex-direction: column;
- }
- /* Body */
- main {
- width: 100%;
- box-sizing: border-box;
- margin: 0 auto;
- max-width: 900px;
- background-color: rgb(255, 255, 255);
- color: #37474F;
- padding: 0 30px;
- border-radius: 15px;
- min-height: 70vh;
- transition: all 0.2s ease;
- padding-top: 20px;
- padding-bottom: 20px;
- line-height: 1.54;
- font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;
- }
- .contenu {
- font-size: 1.2em;
- position: relative;
- }
- .contenu iframe {
- margin-left: auto;
- margin-right: auto;
- display: block;
- max-width: 100%;
- }
- .contenu img {
- margin-left: auto;
- margin-right: auto;
- display: block;
- }
- blockquote {
- font-family: Georgia, serif;
- font-size: 1.2em;
- font-style: italic;
- color: #555; /* Couleur du texte */
- border-left: 4px solid #ccc; /* Bordure à gauche */
- margin: 1.5em 10px;
- padding: 0.5em 10px;
- quotes: "“" "”" "‘" "’";
- }
- blockquote::before {
- content: open-quote;
- font-size: 2em;
- color: #ccc; /* Couleur de la citation */
- vertical-align: -0.4em;
- margin-right: 5px;
- }
- blockquote p {
- display: inline;
- }
- blockquote::after {
- content: close-quote;
- font-size: 2em;
- color: #ccc;
- vertical-align: -0.4em;
- margin-left: 5px;
- }
- hr {
- width: 40%; /* Ajustez la largeur selon vos préférences */
- margin-bottom: 15px;
- margin-top: 30px;
- margin-left: auto;
- margin-right: auto;
- border: none; /* Enlève les bordures par défaut */
- height: 2px; /* Épaisseur de la ligne */
- background-color: #868686; /* Couleur de la ligne */
- }
- img, .contenu-flex {
- max-width: 100%;
- }
- .article-preview {
- max-height: 100px;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .article-preview {
- max-height: 600px; /* Hauteur maximale pour chaque article */
- overflow: hidden; /* Masque le contenu qui dépasse */
- position: relative; /* Nécessaire pour le gradient ou autre effet de coupure */
- margin-bottom: 30px;
- }
- .article-preview p {
- /* margin: 0; */
- display: -webkit-box;
- -webkit-line-clamp: 15; /* Nombre maximum de lignes (ici 5) */
- line-clamp: 15;
- -webkit-box-orient: vertical;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .article-preview::after {
- content: '';
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- height: 100px;
- background: linear-gradient(to bottom, transparent, white);
- }
- main h1 {
- font-size: 2.0em;
- color: #263238;
- }
- main h1 a {
- color: rgb(24, 25, 31);
- text-decoration: no;
- }
- main h1 a:hover {
- color: rgb(22, 21, 36);
- }
- .titre-article {
- display: flex;
- flex-direction: column;
- }
- .titre-article .article-by {
- font-size: 1em;
- color: gray;
- margin: 0;
- }
- .titre-article h1 {
- margin: 0;
- }
- .table-articles {
- width: 100%;
- }
- .resize {
- position: fixed;
- bottom: 50px;
- right: 50px;
- }
- .size-max {
- max-width: 90vw;
- }
- .size-max-form {
- max-width: 85vw;
- }
- .hidden {
- display: none !important;
- }
- .unpublished {
- display: block;
- margin: 0px;
- padding: 20px;
- border-radius: 15px;
- background-color: rgb(197, 109, 9);
- color : white;
- text-align: center;
- font-weight: bold;
- font-size: 1.5em;
- }
- @media screen and (max-width: 1400px) {
- #header {
- height: 250px;
- }
- }
- @media screen and (max-width: 900px) {
- .resize {
- display: none;
- }
- #header.big {
- height: 100vh;
- }
- .navbar {
- padding: 0;
- position: absolute;
- }
- .nav-links {
- top: 0;
- left: 0;
- position: absolute;
- background-color: rgba(0, 255, 221, 0.308);
- width: 100%;
- height: 100vh;
- display: flex;
- justify-content: center;
- align-items: center;
- backdrop-filter: blur(7px);
- margin-left: -100%;
- transition: all 0.1s ease;
- }
- .nav-links ul {
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .navbar .menu-burger {
- display: block;
- }
- .nav-links.mobile-menu {
- margin-left: 0;
- }
- .navbar .nav-links > ul > li {
- margin: 25px 0;
- font-size: 1.2em;
- }
- .navbar .nav-links ul li {
- flex-direction: column;
- }
- .navbar .logo {
- position: absolute;
- top: 40px;
- left: 30px;
- font-size: 2em;
- }
- #header {
- height: 30vh;
- }
-
- main {
- padding: 0 20px;
-
- }
- }
|