Skip to content
Extraits de code Groupes Projets
Valider 3d149621 rédigé par Jouski's avatar Jouski
Parcourir les fichiers

css

parent 9111fa4e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Pipeline #81875 réussi
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<tr> <tr>
<th>Sujet</th> <th>Sujet</th>
<th>Votes</th> <th>Votes</th>
<th>Auteur</th> <th>Ouvert par</th>
<th>Dernier message</th> <th>Dernier message</th>
</tr> </tr>
</thead> </thead>
......
Fichier ajouté
...@@ -29,14 +29,14 @@ function displayIssues(issues) { ...@@ -29,14 +29,14 @@ function displayIssues(issues) {
} }
row.innerHTML = ` row.innerHTML = `
<td><a href="${issue.web_url}" target="_blank">${issue.title}</a> <td><a class="titre" href="${issue.web_url}" target="_blank">${issue.title}</a>
<br> <br>
${description} ${description}
<br> <br>
<a class="bouton" href="${issue.web_url}" target="_blank">Lire en entier et répondre</a> <a class="bouton" href="${issue.web_url}" target="_blank">Lire en entier et répondre</a>
</td> </td>
<td>${issue.upvotes} 👍</td> <td>${issue.upvotes} 👍</td>
<td><img class="avatar" src="${issue.author.avatar_url}"> ${issue.author.name}</td> <td class="auteur"><img class="avatar" src="${issue.author.avatar_url}"> ${issue.author.name}</td>
<td>${new Date(issue.updated_at).toLocaleDateString()}</td> <td>${new Date(issue.updated_at).toLocaleDateString()}</td>
`; `;
tableBody.appendChild(row); tableBody.appendChild(row);
......
...@@ -2,11 +2,16 @@ ...@@ -2,11 +2,16 @@
box-sizing: border-box; box-sizing: border-box;
} }
@font-face {
font-family: GreatVibesRegular;
src: url(polices/GreatVibes-Regular.otf);
}
body { body {
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
margin: 0; margin: 0;
padding: 0; padding: 0;
background-color: rgb(179, 179, 241); background-color: rgb(220, 220, 242);
color: #333; color: #333;
min-height: 100vh; min-height: 100vh;
padding-bottom: 60px; padding-bottom: 60px;
...@@ -16,7 +21,7 @@ body { ...@@ -16,7 +21,7 @@ body {
/* Header styles */ /* Header styles */
header { header {
background-color: #6b63ff83; background: linear-gradient(to bottom, #d3adff, transparent);
color: white; color: white;
padding: 1rem; padding: 1rem;
text-align: center; text-align: center;
...@@ -25,8 +30,11 @@ header { ...@@ -25,8 +30,11 @@ header {
} }
header h1 { header h1 {
font-size: 1.8rem; font-family: GreatVibesRegular;
margin: 1rem 0; font-size: 4rem;
line-height: 4rem;
margin: 0;
color: #0a1f4f;
} }
header img { header img {
...@@ -122,6 +130,10 @@ table a.bouton { ...@@ -122,6 +130,10 @@ table a.bouton {
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
} }
table a.titre {
font-weight: bold;
}
table a.bouton:hover { table a.bouton:hover {
background-color: #0056b3; background-color: #0056b3;
} }
...@@ -132,6 +144,13 @@ th, td { ...@@ -132,6 +144,13 @@ th, td {
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
} }
td.auteur {
width: 250px; /* Limiter la largeur à 250px */
white-space: nowrap; /* Empêcher le texte de passer à la ligne suivante */
overflow: hidden; /* Masquer le texte qui dépasse */
text-overflow: ellipsis; /* Ajouter des points de suspension (...) si le texte est trop long */
}
th { th {
background-color: #6c63ff; background-color: #6c63ff;
color: white; color: white;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter