Skip to content

Commit 1cce97c

Browse files
committed
toil: cleanup css classes
1 parent ed6897c commit 1cce97c

File tree

11 files changed

+59
-58
lines changed

11 files changed

+59
-58
lines changed

front/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ RUN mix sentry_recompile && mix compile --warnings-as-errors
4747
# -- node stage
4848
FROM node:16-alpine AS node
4949
WORKDIR /assets
50-
COPY front/assets/package.json front/assets/package-lock.json ./
51-
RUN npm set progress=false && npm install
5250
COPY front/assets ./
51+
RUN npm ci --force
5352
# -- node stage
5453

5554
# -- dev stage - for local development

front/assets/css/app.css

Lines changed: 48 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -107,42 +107,22 @@ summary.no-expand::marker {
107107
}
108108

109109
.material-symbols-outlined {
110-
font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 16;
111-
font-size: 16px;
112-
}
113-
114-
.material-symbols-outlined.f1 {
115-
font-size: 3rem;
116-
}
117-
118-
.material-symbols-outlined.f2 {
119-
font-size: 2.25rem;
120-
}
121-
122-
.material-symbols-outlined.f3 {
123-
font-size: 1.5rem;
124-
}
125-
126-
.material-symbols-outlined.f4 {
127-
font-size: 1.25rem;
128-
}
129-
130-
.material-symbols-outlined.f5 {
131-
font-size: 1rem;
132-
}
133-
134-
.material-symbols-outlined.f6 {
135-
font-size: .875rem;
110+
font-variation-settings:
111+
'FILL' var(--material-symbol-fill, 0),
112+
'wght' var(--material-symbol-weight, 300),
113+
'GRAD' var(--material-symbol-grad, 0),
114+
'opsz' var(--material-symbol-opsz, 20);
136115
}
137116

138-
.material-symbols-outlined.f7 {
139-
font-size: .75rem;
117+
.material-symbols-outlined.fill {
118+
--material-symbol-fill: 1;
140119
}
141120

142121
.material-symbols-outlined.b {
143-
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
122+
--material-symbol-weight: 400;
144123
}
145124

125+
146126
sem-tooltip slot[slot="content"],
147127
sem-popover slot[slot="content"] {
148128
display: none;
@@ -466,21 +446,43 @@ sem-popover {
466446
user-select: none;
467447
}
468448

469-
.material-symbols-outlined {
470-
font-variation-settings:
471-
'FILL' 0,
472-
'wght' 300,
473-
'GRAD' 0,
474-
'opsz' 20
449+
.gap1 {
450+
gap: 0.25rem;
451+
}
452+
453+
.gap2 {
454+
gap: 0.5rem;
455+
}
456+
457+
.gap3 {
458+
gap: 0.75rem;
459+
}
460+
461+
.gap4 {
462+
gap: 1rem;
463+
}
464+
465+
.flex1 {
466+
flex: 1 1 0%;
467+
}
468+
469+
.flex2 {
470+
flex: 2 2 0%;
471+
}
472+
473+
.flex3 {
474+
flex: 3 3 0%;
475+
}
476+
477+
.flex4 {
478+
flex: 4 4 0%;
479+
}
480+
481+
.flex-break {
482+
flex-basis: 100%;
483+
height: 0;
484+
}
485+
.break-column {
486+
flex-basis: 100%;
487+
width: 0;
475488
}
476-
.material-symbols-outlined.fill {
477-
font-variation-settings:
478-
'FILL' 1,
479-
'wght' 300,
480-
'GRAD' 0,
481-
'opsz' 20
482-
}
483-
.material-symbols-outlined.md-18 { font-size: 18px; }
484-
.material-symbols-outlined.md-24 { font-size: 24px; }
485-
.material-symbols-outlined.md-36 { font-size: 36px; }
486-
.material-symbols-outlined.md-48 { font-size: 48px; }

front/lib/front_web/templates/deployments/_history.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<%= if Enum.empty?(@page.deployments) do %>
1919
<div class="pa3 pv2">
2020
<div class="justify-between tc pa3">
21-
<span class="material-symbols-outlined md-36">hourglass_empty</span>
21+
<span class="material-symbols-outlined f1">hourglass_empty</span>
2222
<div class="flex justify-around">
2323
<p class="gray measure">
2424
We didn't find any deployments matching your criteria.

front/lib/front_web/templates/deployments/index.html.eex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
</div>
1919
<div class="flex flex-row-reverse items-center">
2020
<a href="#" aria-label="grid-view" aria-controls="deployments-container" aria-selected="false">
21-
<span class="material-symbols-outlined md-36 link-blue mr2" >
21+
<span class="material-symbols-outlined f1 link-blue mr2" >
2222
window
2323
</span>
2424
</a>
2525
<a href="#" aria-label="list-view" aria-controls="deployments-container" aria-selected="true">
26-
<span class="material-symbols-outlined md-36 link-blue mr2 fill">
26+
<span class="material-symbols-outlined f1 link-blue mr2 fill">
2727
table_rows
2828
</span>
2929
</a>

front/lib/front_web/templates/deployments/items/__empty.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="pa3 pv2 bg-white">
22
<div class="flex items-center justify-between tc pa3">
33
<div class="flex items-center justify-around">
4-
<span class="material-symbols-outlined md-24 mr3">rocket</span>
4+
<span class="material-symbols-outlined f1 mr3">rocket</span>
55
<p class="gray measure mb0">
66
Waiting for your first deployment. <br>
77
Connect this target to a pipeline and start shipping.

front/lib/front_web/templates/layout/_head.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<!-- Semaphore CSS -->
1616
<link rel="stylesheet" media="screen" href="<%= assets_path() %>/css/app.css" />
17-
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
17+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20,300,0,0;20,300,1,0;24,400,0,0;24,400,1,0&display=swap"/>
1818

1919
<!-- Favicon -->
2020
<link rel="alternate icon" class="js-site-favicon" type="image/png" href="<%= assets_path() %>/images/favicon.png" />

front/lib/front_web/templates/layout/dashboard.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</a>
2828
<%= if FeatureProvider.feature_enabled?(:organization_health, param: @conn.assigns[:organization_id]) do %>
2929
<a href=<%= dashboard_path(@conn, :index, dashboard: "organization-health") %> class="tab <%= if Map.get(assigns, :dashboard) == "organization-health", do: "tab--active" %>">
30-
<span class="material-symbols-outlined mr2 md-18">hive</span>
30+
<span class="material-symbols-outlined mr2 f3">hive</span>
3131
<span>Organization Health</span>
3232
</a>
3333
<% end %>

front/lib/front_web/templates/schedulers/history/page.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<%= if Enum.empty?(@page.triggers) do %>
22
<div class="pa3 pv2">
33
<div class="justify-between tc pa3">
4-
<span class="material-symbols-outlined md-36">hourglass_empty</span>
4+
<span class="material-symbols-outlined f1">hourglass_empty</span>
55
<div class="flex justify-around">
66
<p class="gray measure">
77
We didn't find any workflows matching your criteria.

front/lib/front_web/templates/schedulers/tasks/last_run.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<% else %>
1010
<div class="flex items-center justify-between tc pa3">
1111
<div class="flex items-center justify-around">
12-
<span class="material-symbols-outlined md-24 mr3">hourglass_top</span>
12+
<span class="material-symbols-outlined f1 mr3">hourglass_top</span>
1313
<p class="gray measure mb0">
1414
Waiting for your first task execution.
1515
</p>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div class="flex flex-row items-center justify-around">
2-
<span class="material-symbols-outlined md-36 mr3 dark-indigo">pending</span>
2+
<span class="material-symbols-outlined f1 mr3 dark-indigo">pending</span>
33
<p class="measure mb0 dark-indigo">Your request is currently being processed and the workflow will start shortly.</p>
44
</div>

0 commit comments

Comments
 (0)