Skip to content

Commit 0704a4b

Browse files
authored
Merge pull request #18 from dominrios/working_branch
Updated Footer and All related material caption alignment
2 parents 568f431 + 4cc8a82 commit 0704a4b

File tree

7 files changed

+64
-17
lines changed

7 files changed

+64
-17
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*:Zone.Identifier

assets/js/main.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,30 @@
55
*/
66

77
(function($) {
8+
// Hide the Arcana and HTML5 in the footer
9+
// Grab the footer element by class name
10+
const COPYRIGHT_FOOTER = document.getElementsByClassName("menu")[0];
11+
12+
// Ensure that the element exists before proceeding
13+
if (COPYRIGHT_FOOTER) {
14+
// Get all <li> children of the selected element
15+
const COPYRIGHT_FOOTER_LIST_ITEMS = COPYRIGHT_FOOTER.getElementsByTagName("li");
16+
17+
// Get the indexes of the last two items
18+
const totalItems = COPYRIGHT_FOOTER_LIST_ITEMS.length;
19+
if (totalItems >= 2) {
20+
const secondToLastIndex = totalItems - 2;
21+
const lastIndex = totalItems - 1;
22+
23+
// Select the last two list items
24+
const secondLastItem = COPYRIGHT_FOOTER_LIST_ITEMS[secondToLastIndex];
25+
const lastItem = COPYRIGHT_FOOTER_LIST_ITEMS[lastIndex];
26+
27+
// Remove the display of the two list items
28+
secondLastItem.style.display = 'none';
29+
lastItem.style.display = 'none';
30+
}
31+
}
832

933
var $window = $(window),
1034
$body = $('body');

assets/sass/custom.scss

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -147,38 +147,62 @@ img {vertical-align: middle;}
147147
}
148148

149149

150-
/*For sidebar Info*/
151-
.SidebarFig{
152-
150+
/* For sidebar Info */
151+
.SidebarFig {
152+
display: flex;
153+
flex-direction: column;
154+
align-items: center;
155+
text-align: center;
156+
157+
a {
158+
text-decoration: none;
159+
}
153160

154-
.caption{
161+
.caption {
155162
font-size: 0.9vw;
156163
line-height: 1.3vw;
157-
margin-bottom: 2vw;
158-
color:black;
159-
}
164+
color: black;
165+
margin: 0;
166+
167+
@media (max-width: 1440px) {
168+
font-size: 1.2vw;
169+
line-height: 1.6vw;
170+
}
160171

172+
@media (max-width: 1024px) {
173+
font-size: 1.5vw;
174+
line-height: 2.0vw;
175+
}
161176

177+
@media (max-width: 768px) {
178+
font-size: 2vw;
179+
line-height: 2.5vw;
180+
}
181+
@media (max-width: 425px) {
182+
font-size: 3.5vw;
183+
line-height: 3.5vw;
184+
}
185+
}
162186
}
163187

164188
.SidebarFig img {
165-
max-width: 150%;
189+
max-width: 100%;
166190
height: auto;
167191
display: block;
168-
margin-left: auto;
169-
margin-right: auto;
192+
margin: 0 auto;
170193

171194
@media (max-width: 1440px) {
172-
max-width: 130%;
195+
max-width: 90%;
173196
}
174197

175198
@media (max-width: 1024px) {
176-
max-width: 100%
199+
max-width: 80%;
177200
}
178201
}
179202

180203

181204

205+
182206
.SidebarFig h4{
183207
font-size: 1vw;
184208
}

config/_default/config.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ languageCode = "en-us"
44

55

66
theme = "arcana"
7-
copyright = "© Untitled. All rights reserved"
7+
copyright = "© PNNL. 2024"
88

99
defaultContentLanguage = "en"
1010
[languages]
@@ -25,10 +25,8 @@ defaultContentLanguage = "en"
2525
unsafe= true
2626

2727
[params]
28-
2928
show_post_dates = false
30-
3129
[[params.social]]
3230
title = "GitHub"
3331
icon = "fa-github"
34-
url = "#"
32+
url = "https://github.com/eclipse-volttron"

resources/_gen/assets/scss/sass/main.scss_e95820d474fe7cf9c38afe1151187c97.content

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
178 KB
Loading
315 KB
Loading

0 commit comments

Comments
 (0)