Skip to content

Commit

Permalink
Merge pull request #18 from dominrios/working_branch
Browse files Browse the repository at this point in the history
Updated Footer and All related material caption alignment
  • Loading branch information
craig8 authored Oct 2, 2024
2 parents 568f431 + 4cc8a82 commit 0704a4b
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*:Zone.Identifier
24 changes: 24 additions & 0 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,30 @@
*/

(function($) {
// Hide the Arcana and HTML5 in the footer
// Grab the footer element by class name
const COPYRIGHT_FOOTER = document.getElementsByClassName("menu")[0];

// Ensure that the element exists before proceeding
if (COPYRIGHT_FOOTER) {
// Get all <li> children of the selected element
const COPYRIGHT_FOOTER_LIST_ITEMS = COPYRIGHT_FOOTER.getElementsByTagName("li");

// Get the indexes of the last two items
const totalItems = COPYRIGHT_FOOTER_LIST_ITEMS.length;
if (totalItems >= 2) {
const secondToLastIndex = totalItems - 2;
const lastIndex = totalItems - 1;

// Select the last two list items
const secondLastItem = COPYRIGHT_FOOTER_LIST_ITEMS[secondToLastIndex];
const lastItem = COPYRIGHT_FOOTER_LIST_ITEMS[lastIndex];

// Remove the display of the two list items
secondLastItem.style.display = 'none';
lastItem.style.display = 'none';
}
}

var $window = $(window),
$body = $('body');
Expand Down
48 changes: 36 additions & 12 deletions assets/sass/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,38 +147,62 @@ img {vertical-align: middle;}
}


/*For sidebar Info*/
.SidebarFig{

/* For sidebar Info */
.SidebarFig {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;

a {
text-decoration: none;
}

.caption{
.caption {
font-size: 0.9vw;
line-height: 1.3vw;
margin-bottom: 2vw;
color:black;
}
color: black;
margin: 0;

@media (max-width: 1440px) {
font-size: 1.2vw;
line-height: 1.6vw;
}

@media (max-width: 1024px) {
font-size: 1.5vw;
line-height: 2.0vw;
}

@media (max-width: 768px) {
font-size: 2vw;
line-height: 2.5vw;
}
@media (max-width: 425px) {
font-size: 3.5vw;
line-height: 3.5vw;
}
}
}

.SidebarFig img {
max-width: 150%;
max-width: 100%;
height: auto;
display: block;
margin-left: auto;
margin-right: auto;
margin: 0 auto;

@media (max-width: 1440px) {
max-width: 130%;
max-width: 90%;
}

@media (max-width: 1024px) {
max-width: 100%
max-width: 80%;
}
}




.SidebarFig h4{
font-size: 1vw;
}
Expand Down
6 changes: 2 additions & 4 deletions config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ languageCode = "en-us"


theme = "arcana"
copyright = "© Untitled. All rights reserved"
copyright = "© PNNL. 2024"

defaultContentLanguage = "en"
[languages]
Expand All @@ -25,10 +25,8 @@ defaultContentLanguage = "en"
unsafe= true

[params]

show_post_dates = false

[[params.social]]
title = "GitHub"
icon = "fa-github"
url = "#"
url = "https://github.com/eclipse-volttron"

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0704a4b

Please sign in to comment.