Skip to content

Commit bdfec5e

Browse files
authored
feat(title): add title log (#166)
* feat(title): add title log * style: change card background --------- Signed-off-by: Akshay Mestry <xa@mes3.dev>
1 parent 5e46f8b commit bdfec5e

File tree

5 files changed

+50
-42
lines changed

5 files changed

+50
-42
lines changed

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Author: Akshay Mestry <xa@mes3.dev>
66
Created on: 22 February, 2025
7-
Last updated on: 07 February, 2026
7+
Last updated on: 10 February, 2026
88
99
This file contains the configuration settings for building my static
1010
website using Sphinx, a popular Python documentation tool. Sphinx is a
@@ -105,7 +105,7 @@
105105
smartquotes: bool = False
106106

107107
html_theme: t.Final[str] = "theme"
108-
html_title: str = ""
108+
html_title: str = "amestry"
109109
html_baseurl: t.Final[str] = "https://xa.mes3.dev/"
110110
html_context: dict[str, t.Any] = {
111111
"add_copy_to_headerlinks": True,

theme/base/static/code.css

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,6 @@ span.linenos.special {
5757
width: calc(100% + 1rem);
5858
}
5959

60-
@media (max-width: 768px) {
61-
62-
.highlight .hll {
63-
padding-right: 100vw;
64-
margin-right: -100vw;
65-
display: inline;
66-
}
67-
}
68-
6960
.highlight .hll::before {
7061
content: " ";
7162
position: absolute;
@@ -78,6 +69,20 @@ span.linenos.special {
7869
background: linear-gradient(to right, #47a8ff, rgb(92, 174, 255) 16.81%, hsl(var(--highlight)) 16.81%);
7970
}
8071

72+
@media (max-width: 768px) {
73+
74+
.highlight .hll {
75+
padding-right: 100vw;
76+
margin-right: -100vw;
77+
display: inline;
78+
}
79+
80+
.highlight .hll::before {
81+
height: 17px !important;
82+
top: 0;
83+
}
84+
}
85+
8186
.highlight {
8287
background: hsl(var(--background));
8388
}

theme/base/static/sphinx-design.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
border: 1px solid hsl(var(--border));
1818
color: hsl(var(--foreground));
1919
margin: 2rem 0 !important;
20-
background-color: hsl(var(--background));
20+
background-color: hsl(var(--code-background));
2121
}
2222

2323
.sd-card-body {

theme/base/static/theme.css

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ samp {
356356
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
357357
transform: translateX(-100%);
358358
transition: transform var(--duration-fast) var(--ease-in-out);
359-
padding: 1rem 1.5rem;
359+
padding: 1rem;
360360
display: flex;
361361
flex-direction: column;
362362
overscroll-behavior: contain;
@@ -1808,6 +1808,8 @@ html[data-theme="dark"] .site-header {
18081808
min-height: 3.5rem;
18091809
gap: 1rem;
18101810
padding-inline: 1rem;
1811+
max-width: 1180px;
1812+
margin-inline: auto;
18111813
}
18121814

18131815
.site-header__primary {
@@ -1823,8 +1825,6 @@ html[data-theme="dark"] .site-header {
18231825

18241826
.site-header__logo {
18251827
display: inline-flex;
1826-
border: 1px solid hsl(var(--border));
1827-
border-radius: 0.5rem;
18281828
cursor: pointer;
18291829
}
18301830

@@ -1860,29 +1860,27 @@ html[data-theme="dark"] .site-header__logo-image--light {
18601860
display: none;
18611861
}
18621862

1863+
/* Desktop view */
18631864
.site-sidebar__brand-title,
18641865
.site-header__title {
1865-
font-size: 0.85rem;
1866-
font-family: "Geist Mono", monospace;
1867-
width: 2rem;
1868-
height: 2rem;
1869-
position: relative;
1870-
font: var(--fa-font-regular);
1866+
font-size: 1.5rem;
1867+
font-weight: 600;
1868+
letter-spacing: -2.36px;
1869+
margin-bottom: 0.5rem;
18711870
}
18721871

1873-
.site-sidebar__brand-title::before,
1874-
.site-header__title::before {
1875-
content: "\f015";
1872+
.site-sidebar__brand-title::after,
1873+
.site-header__title::after {
1874+
content: "\f336";
18761875
text-rendering: optimizeLegibility;
18771876
-webkit-font-smoothing: antialiased;
1878-
display: inline-block;
1879-
visibility: visible;
1880-
position: absolute;
1881-
transform: translate(-50%, -50%);
1882-
left: 50%;
1883-
top: 50%;
1877+
font: var(--fa-font-solid);
1878+
font-size: 1rem;
1879+
color: hsl(var(--green-color));
1880+
margin-left: 0.25rem;
18841881
}
18851882

1883+
/* Mobile view */
18861884
@media (max-width: 768px) {
18871885

18881886
.site-sidebar__brand-title::before,
@@ -1897,6 +1895,11 @@ html[data-theme="dark"] .site-header__logo-image--light {
18971895
margin-left: 0.5rem;
18981896
border-radius: 0.5rem;
18991897
}
1898+
.site-sidebar__brand-title,
1899+
.site-header__title {
1900+
margin-bottom: 1rem;
1901+
}
1902+
19001903
}
19011904

19021905
.site-header__title {
@@ -2045,13 +2048,9 @@ html[data-theme="dark"] .site-header__logo-image--light {
20452048

20462049
.site-header__menu-toggle {
20472050
display: inline-flex;
2048-
border: none;
20492051
background-color: transparent;
2050-
border: 1px solid hsl(var(--border));
2051-
border-radius: 0.5rem;
2052-
margin: 0;
2053-
cursor: pointer;
20542052
cursor: pointer;
2053+
margin-top: 1rem;
20552054
}
20562055

20572056
@media (min-width: 768px) {
@@ -2999,17 +2998,13 @@ a[data-tooltip].show-tooltip::after {
29992998
}
30002999

30013000
.site-github-repository__name {
3002-
color: hsl(var(--muted-foreground)) !important;
3003-
}
3004-
3005-
.site-github-repository__name:hover {
30063001
color: hsl(var(--foreground)) !important;
30073002
}
30083003

30093004
.site-github-repository__name::before {
30103005
content: "\f09b";
30113006
text-rendering: auto;
3012-
color: hsl(var(--muted-foreground)) !important;
3007+
color: hsl(var(--foreground)) !important;
30133008
-webkit-font-smoothing: antialiased;
30143009
font: var(--fa-font-brands);
30153010
margin-right: 0.5rem;
@@ -3247,3 +3242,11 @@ a[data-tooltip].show-tooltip::after {
32473242
text-decoration: line-through;
32483243
text-decoration-thickness: 1px;
32493244
}
3245+
3246+
.accent-bg {
3247+
background-color: hsl(var(--accent));
3248+
}
3249+
3250+
.code-bg {
3251+
background-color: hsl(var(--code-background));
3252+
}

theme/base/templates/header.html.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Header Template
44
55
Author: Akshay Mestry <xa@mes3.dev>
66
Created on: 21 February, 2025
7-
Last updated on: 26 December, 2025
7+
Last updated on: 10 February, 2026
88
-->
99
<header class="site-header">
1010
{%- block header_before %}
1111
{% endblock header_before -%}
12-
<div class="site-header__inner container">
12+
<div class="site-header__inner">
1313
{%- block header_left %}
1414
<div class="site-header__primary">
1515
{%- block website_logo %}

0 commit comments

Comments
 (0)