Skip to content

Commit

Permalink
style: review style
Browse files Browse the repository at this point in the history
  • Loading branch information
K4ST0R committed Nov 5, 2024
1 parent 71662dd commit 8f2ac85
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 7 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion server/src/services/widget/templates/common/header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
.card {
margin-top: 10px;
padding: 10px;
margin-bottom: 15px;
margin-bottom: 2rem;
}
.card-footer {
Expand All @@ -171,6 +171,12 @@
margin-right: 0;
}
.external-small[target=_blank]:after {
--icon-size: 0.75rem;
height: var(--icon-size);
width: var(--icon-size);
}
@media screen and (min-width: <%=options.responsiveWidth %>) {}
Expand Down
20 changes: 18 additions & 2 deletions server/src/services/widget/templates/stats/default.1.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@
vertical-align: text-top;
}
.block-title .description {
font-size: 18px;
font-weight: 700;
line-height: 28px;
}
.body-description {
margin-bottom: 10px;
}
Expand Down Expand Up @@ -314,7 +321,16 @@
@media screen and (max-width: 30em) {
.block-title {
font-size: 12px;
font-size: 16px;
}
.block-title .description {
font-size: 20px;
}
.block-title .icon {
width: 22px;
height: 22px;
}
}
</style>
Expand Down Expand Up @@ -427,7 +443,7 @@
<% } %>
<div class="card-footer">
Données issues du dispositif <a target="_blank" href="https://beta.gouv.fr/startups/exposition-ij.html"><%= data.filiere === "superieur" ? "InserSup" : "InserJeunes" %></a> promotions <%= millesimesDouble ? millesimes[0] + " et " + millesimes[1] : millesimes[0] %>. <a target="_blank" href="https://documentation.exposition.inserjeunes.beta.gouv.fr/"> D’où viennent ces données ?</a>
Données issues du dispositif <a target="_blank" class="external-small" href="https://beta.gouv.fr/startups/exposition-ij.html"><%= data.filiere === "superieur" ? "InserSup" : "InserJeunes" %></a> promotions <%= millesimesDouble ? millesimes[0] + " et " + millesimes[1] : millesimes[0] %>. <a target="_blank" class="external-small" href="https://documentation.exposition.inserjeunes.beta.gouv.fr/"> D’où viennent ces données ?</a>
</div>
</div>
</body>
Expand Down
12 changes: 8 additions & 4 deletions server/src/services/widget/templates/stats/personas.1.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
<div class="block modal-link plausible-event-name=Modal+Open+<%= key %> <%= taux[key].value == 0 ? "grey-variant" : infos[key].colorText %>" onClick="showModal('<%= key %>')">
<div class="block-title">
<div>
<div><%= taux[key].description %></div>
<div><%= infos[key].title %></div>
<div class="description"><%= taux[key].description %></div>
<div><%= infos[key].title %> <svg class="remix icon">
<use xlink:href="#ri-information-line" />
</svg></div>
</div>
</div>
</div>
Expand All @@ -42,11 +44,13 @@
<% if (taux[key].value > 0) { %>
<div onClick="showModal('<%= key %>')" class="block block-<%= key %> modal-link plausible-event-name=Modal+Open+<%= key %> <%= taux[key].value == 0 ? "grey-variant" : infos[key].colorText %>">
<div class="block-title">
<div><%= taux[key].description %></div>
<div class="description"><%= taux[key].description %></div>
<div>
<svg class="remix icon">
<use xlink:href="<%= infos[key].icon %>" />
</svg><%= infos[key].title %>
</svg><%= infos[key].title %> <svg class="remix icon">
<use xlink:href="#ri-information-line" />
</svg>
</div>
</div>
</div>
Expand Down

0 comments on commit 8f2ac85

Please sign in to comment.