-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathcustom-template.hbs
More file actions
85 lines (74 loc) · 1.85 KB
/
custom-template.hbs
File metadata and controls
85 lines (74 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8" />
<title>{{title}}</title>
<!-- needed for adaptive design -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
padding: 0;
margin: 0;
}
/* Custom logo styling - properly centered and clickable */
.custom-logo {
position: fixed;
top: 15px;
left: 15px;
z-index: 1001;
padding: 12px; /* Equal padding on all sides */
display: flex;
align-items: center;
justify-content: center;
width: fit-content;
transition: all 0.2s ease;
}
.custom-logo a:hover {
transform: translateY(-1px);
}
.custom-logo img {
height: 32px;
width: auto;
display: block;
}
/* Adjust sidebar to avoid logo overlap */
.menu-content {
padding-top: 70px !important;
}
/* Hide logo on very small screens to avoid clutter */
@media (max-width: 480px) {
.custom-logo {
display: none;
}
}
/* Adjust for medium screens */
@media (max-width: 768px) {
.custom-logo {
position: relative;
top: 0;
left: 0;
margin: 15px auto;
display: block;
text-align: center;
max-width: none;
width: fit-content;
padding: 15px 20px;
}
.menu-content {
padding-top: 20px !important;
}
}
</style>
{{{redocHead}}}
{{#unless disableGoogleFont}}<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">{{/unless}}
</head>
<body>
<!-- Clickable logo that routes to docs homepage -->
<div class="custom-logo">
<a href="../../reference/api-homepage/" title="Back to CircleCI Documentation">
<img src="logo.svg" alt="CircleCI" />
</a>
</div>
{{{redocHTML}}}
</body>
</html>