Skip to content

Commit

Permalink
fix some css details
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenreda committed Nov 15, 2023
1 parent 354f5ca commit 4b2f49e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 12 deletions.
3 changes: 1 addition & 2 deletions src/components/project-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ <h5>{{ subtitle }}</h5>
</div>
<div class="categories">
{% for category in categories %}
<span>{{ category }}</span>
{% endfor %}
<span>{{ category }}</span>&nbsp; {% endfor %}
</div>
</div>
<div class="tail">
Expand Down
7 changes: 6 additions & 1 deletion src/css/noticia.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,14 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.noticia .content .body p {
.noticia .content .body p,
.noticia .content .body ul,
.noticia .content .body hr {
margin-bottom: 20px;
}
.noticia .content .body ul {
margin-left: 1rem;
}
.noticia .content .body img {
width: 100%;
height: auto;
Expand Down
15 changes: 7 additions & 8 deletions src/css/project-card.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,6 @@
height: 2.626rem;
margin-right: 0.5rem;
}
.project-card .categories {
margin-bottom: 2.62rem;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
}
.project-card .categories span {
display: inline-block;
box-sizing: border-box;
Expand All @@ -137,7 +130,13 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
padding: var(--card-category-tag-padding);
margin-right: var(--card-category-tag-margin-right);
}
.project-card .categories {
margin-bottom: 2.62rem;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
}
.project-card .content .action {
display: flex;
Expand Down
1 change: 1 addition & 0 deletions src/css/proyectos.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
display: none;
}
.proyectos section.search .radio input:checked ~ label {
background-color: var(--primary);
Expand Down
2 changes: 2 additions & 0 deletions src/js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@ async function _projectSearch(query, category) {
var categoryTag = document.createElement("span");
categoryTag.textContent = element.categories[i];
categoriesDiv.appendChild(categoryTag);
var whiteSpace = document.createTextNode("\u00A0 ");
categoriesDiv.appendChild(whiteSpace);
}

head.appendChild(categoriesDiv);
Expand Down
3 changes: 2 additions & 1 deletion src/proyectos/reforma-constitucional-somalia.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ image: https://ik.imagekit.io/5sj5zvywt/Proyectos/reforma-somalia.jpeg?updatedAt
subtitle: Desarrollo de una plataforma de participación digital para la reforma constitucional.
client: Naciones Unidas para el Desarrollo (PNUD)
ods: [5, 6]
categories: ["Participación ciudadana", "Software de participación"]
categories:
["Participación ciudadana", "Software de participación", "Sostenibilidad"]
summary: Enreda va a trabajar junto con la oficina somalí del Programa de las Naciones Unidas para el Desarrollo (PNUD -UNDP) para desarrollar una plataforma de participación digital, que será usada por Ministerio de Asuntos Constitucionales del Gobierno de Somalia para recibir propuestas ciudadanas en el proceso de reforma constitucional.

# Meta tags
Expand Down

0 comments on commit 4b2f49e

Please sign in to comment.