Skip to content

Commit 179b2e1

Browse files
committed
refactor: remove css
1 parent 7f9a314 commit 179b2e1

File tree

9 files changed

+28
-69
lines changed

9 files changed

+28
-69
lines changed

layouts/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="row pb-5">
55
<div class="col-12 text-center">
66
<h1 class="display-1 fw-bold text-center text-primary pb-3">Page not found</h1>
7-
<p class="text-black-61 text-center pb-3">You're lost! The page does not exit.</p>
7+
<p class="text-dark text-center pb-3">You're lost! The page does not exit.</p>
88
</div>
99
{{- range ( where site.RegularPages "Section" "blog" | first 3 ) }}
1010
{{ partial "blog-post-card" . }}

layouts/_default/list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<h2 class="fs-1 fw-bold text-center text-primary pb-3">{{ . }}</h2>
88
{{ end }}
99
{{ with .Params.description }}
10-
<p class="text-black-61 text-center pb-3">{{ . }}</p>
10+
<p class="text-dark text-center pb-3">{{ . }}</p>
1111
{{ end }}
1212
</div>
1313
</div>
@@ -19,7 +19,7 @@ <h2 class="fs-1 fw-bold text-center text-primary pb-3">{{ . }}</h2>
1919
</div>
2020
<div class="card-body">
2121
<h5 class="card-title fw-semibold">{{ .Title }}</h5>
22-
<p class="card-text text-black-61">{{ .Summary | plainify }}</p>
22+
<p class="card-text text-dark">{{ .Summary | plainify }}</p>
2323
</div>
2424
</a>
2525
</div>

layouts/blog/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<h2 class="me-title fw-bold display-1 text-primary text-center text-xl-start pb-4">{{ . }}</h2>
1313
{{ end }}
1414
{{ with .Params.description }}
15-
<p class="text-center text-black-61 text-light text-xl-start pb-4">{{ . }}</p>
15+
<p class="text-center text-light text-xl-start pb-4">{{ . }}</p>
1616
{{ end }}
1717
<div class="d-flex flex-column flex-xl-row">
1818
<a class="btn btn-primary px-4 my-1" href="{{ "/newsletter" | relLangURL }}">

layouts/partials/sections/me.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<h3 class="me-title fw-bold display-1 text-primary text-center text-xl-start pb-4">
99
{{ i18n "home.section.me.title" | markdownify }}
1010
</h3>
11-
<p class="text-center text-black-61 text-xl-start pb-4 text-light">
11+
<p class="text-center text-xl-start pb-4 text-light">
1212
{{ i18n "home.section.me.text" | markdownify }}
1313
</p>
1414
<div class="d-flex flex-column flex-xl-row">

layouts/partials/sections/services.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<h3 class="fs-1 fw-bold text-dark pb-3">{{ . | markdownify }}</h3>
1717
{{ end }}
1818
{{ with .text }}
19-
<p class="text-black-61 pb-3">{{ . | markdownify }}</p>
19+
<p class="text-dark pb-3">{{ . | markdownify }}</p>
2020
{{ end }}
2121
<div class="">
2222
{{ range .buttons | first 1 }}

layouts/partials/sections/testimonials.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h2 class="fs-1 fw-bold text-center text-light">
1919
<div class="card d-flex flex-xl-row align-items-start border-0 shadow p-5">
2020
{{ $src := (printf "%s%s" "testimonial/" .image ) }}
2121
{{ partial "asset-image" (dict "src" $src "alt" .name "size" "70x" "class" "rounded-circle mb-3") }}
22-
<p class="card-text text-black-61 ps-2">
22+
<p class="card-text text-dark ps-2">
2323
"{{ .text }}"
2424
<br>
2525
<br>
@@ -52,7 +52,7 @@ <h2 class="fs-1 fw-bold text-center text-light">
5252
{{ else }}
5353
<div class="card-body">
5454
{{ $colors := (slice "bg-green" "bg-yellow" "bg-red" "bg-purple") }}
55-
<div class="{{ index $colors (mod $i 4) }} rounded-circle size-90 mb-4"></div>
55+
<div class="{{ index $colors (mod $i 4) }} rounded-circle mb-4"></div>
5656
<p class="card-text text-dark">"
5757
{{ $e.text }}"
5858
<br>

layouts/talks/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<h1 class="page-title display-1 fw-bold text-primary pb-3">{{ . }}</h1>
1414
{{ end }}
1515
{{ with .Params.conference }}
16-
<p class="text-black-61 mb-0">
16+
<p class="text-dark mb-0">
1717
<a href="{{ .link }}" target="_blank"><strong>{{ .title }}</strong></a>
1818
</p>
1919
{{ end }}

themes/al/assets/scss/sections/blog-list.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,22 @@
2020
border-color: $dark;
2121
}
2222
}
23+
24+
.aspect-ratio-62-5 {
25+
position: relative;
26+
width: 100%;
27+
max-height: 0;
28+
padding-bottom: 62.5%;
29+
30+
img {
31+
position: absolute;
32+
top: 0;
33+
bottom: 0;
34+
left: 0;
35+
right: 0;
36+
width: 100%;
37+
height: 100%;
38+
object-fit: cover;
39+
object-position: center;
40+
}
41+
}

themes/al/assets/scss/shared/_utilities.scss

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,11 @@
22
font-weight: 600;
33
}
44

5-
.text-black-61 { color: rgba(0, 0, 0, 0.61); }
6-
75
.bg-green { background-color: #B4D1C4; }
86
.bg-yellow { background-color: #F6DE9D; }
97
.bg-red { background-color: #FF87B0D9; }
108
.bg-purple { background-color: #ADA8D6; }
119

12-
.bg-blue-16 {
13-
background-color: rgba(39, 163, 255, 0.16);
14-
}
15-
16-
.border-blue-16 {
17-
border-color: rgba(39, 163, 255, 0.16);
18-
}
19-
20-
.bg-blue-63 {
21-
background-color: rgba(220, 240, 255, 0.63);
22-
}
23-
24-
.bg-blue-light {
25-
background-color: #F6FBFF;
26-
}
27-
2810
.border-radius-30 {
2911
border-radius: 30px;
3012
overflow: hidden;
@@ -38,45 +20,3 @@
3820
max-height: 16px;
3921
}
4022

41-
.size-24 {
42-
min-width: 24px;
43-
max-width: 24px;
44-
45-
min-height: 24px;
46-
max-height: 24px;
47-
}
48-
49-
.size-64 {
50-
min-width: 64px;
51-
max-width: 64px;
52-
53-
min-height: 64px;
54-
max-height: 64px;
55-
}
56-
57-
.size-90 {
58-
min-width: 90px;
59-
max-width: 90px;
60-
61-
min-height: 90px;
62-
max-height: 90px;
63-
}
64-
65-
.aspect-ratio-62-5 {
66-
position: relative;
67-
width: 100%;
68-
max-height: 0;
69-
padding-bottom: 62.5%;
70-
71-
img {
72-
position: absolute;
73-
top: 0;
74-
bottom: 0;
75-
left: 0;
76-
right: 0;
77-
width: 100%;
78-
height: 100%;
79-
object-fit: cover;
80-
object-position: center;
81-
}
82-
}

0 commit comments

Comments
 (0)