mirror of
https://github.com/msberends/AMR.git
synced 2025-07-10 00:23:03 +02:00
(v3.0.0.9002) website version nr
This commit is contained in:
@ -41,7 +41,7 @@
|
||||
|
||||
--bs-success: var(--amr-green-dark) !important;
|
||||
--bs-light: var(--amr-green-light) !important;
|
||||
/* --bs-light was this: #128f76a6; that's success with 60% alpha */
|
||||
/* --bs-light was this: #128f76a6; that's bs-success with 60% alpha */
|
||||
--bs-info: var(--amr-green-middle) !important;
|
||||
--bs-link-color: var(--amr-green-dark) !important;
|
||||
--bs-link-color-rgb: var(--amr-green-dark-rgb) !important;
|
||||
@ -104,6 +104,16 @@ body.amr-for-python * {
|
||||
.navbar .algolia-autocomplete .aa-dropdown-menu {
|
||||
background-color: var(--amr-green-dark) !important;
|
||||
}
|
||||
|
||||
.version-main {
|
||||
font-weight: bold;
|
||||
color: var(--bs-navbar-brand-color);
|
||||
}
|
||||
.version-build {
|
||||
font-weight: normal;
|
||||
opacity: 0.75;
|
||||
font-size: 0.85em;
|
||||
}
|
||||
input[type="search"] {
|
||||
color: var(--bs-tertiary-bg) !important;
|
||||
background-color: var(--amr-green-light) !important;
|
||||
@ -149,6 +159,7 @@ this shows on top of every sidebar to the right
|
||||
margin-top: 10px;
|
||||
border: 2px dashed var(--amr-green-dark);
|
||||
text-align: center;
|
||||
background: var(--bs-body-bg);
|
||||
}
|
||||
.amr-gpt-assistant * {
|
||||
width: 90%;
|
||||
|
@ -29,10 +29,22 @@
|
||||
# ==================================================================== #
|
||||
*/
|
||||
|
||||
$(document).ready(function() {
|
||||
$(function () {
|
||||
// add GPT assistant info
|
||||
$('aside').prepend('<div class="amr-gpt-assistant"><a target="_blank" href="https://chat.amr-for-r.org"><img src="https://amr-for-r.org/AMRforRGPT.svg"></a></div>');
|
||||
|
||||
// split version number in navbar into main version and build number
|
||||
$('.nav-text').each(function () {
|
||||
const $el = $(this);
|
||||
const text = $.trim($el.text());
|
||||
const lastDotIndex = text.lastIndexOf('.');
|
||||
if (lastDotIndex > -1) {
|
||||
const main = text.substring(0, lastDotIndex);
|
||||
const build = text.substring(lastDotIndex);
|
||||
$el.html(`<span class="version-main">${main}</span><span class="version-build">${build}</span>`);
|
||||
}
|
||||
});
|
||||
|
||||
// replace 'Developers' with 'Maintainers' on the main page, and "Contributors" on the Authors page
|
||||
$(".developers h2").text("Maintainers");
|
||||
$(".template-citation-authors h1:nth(0)").text("Contributors and Citation");
|
||||
|
Reference in New Issue
Block a user