mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Adjust archive div style (#2327)
This commit is contained in:
committed by
Misty Stanley-Jones
parent
aa4d8f90e3
commit
40f89ecc4a
4
dist/assets/js/archive.js
vendored
4
dist/assets/js/archive.js
vendored
@@ -3,7 +3,7 @@ if (window.navigator.onLine) {
|
||||
var dockerVersion = '1.11';
|
||||
/* This JSON file contains a current list of all docs versions of Docker */
|
||||
$.getJSON("https://docs.docker.com/js/archives.json", function(result){
|
||||
var outerDivStart = '<div style="padding-top: 10px; padding-bottom: 10px; min-height: 34px; border: 1px solid #A3733F; background-color: #FFE1C0; color: #A3733F"><div class="container"><div style="text-align: center"><span id="archive-list">This is <b><a href="https://docs.docker.com/docsarchive/" style="color: #A3733F; text-decoration: underline !important">archived documentation</a></b> for Docker ' + dockerVersion + '. Go to the <a style="color: #A3733F; text-decoration: underline !important" href="https://docs.docker.com/">latest docs</a> or a different version: </span>' +
|
||||
var outerDivStart = '<div style="padding-top: 10px; padding-bottom: 10px; min-height: 34px; background-color: #FFD2A1; color: #254356"><div class="container"><div style="text-align: center"><span id="archive-list">This is <b><a href="https://docs.docker.com/docsarchive/" style="color: #254356; text-decoration: underline !important">archived documentation</a></b> for Docker ' + dockerVersion + '. Go to the <a style="color: #254356; text-decoration: underline !important" href="https://docs.docker.com/">latest docs</a> or a different version: </span>' +
|
||||
'<span style="z-index: 1001" class="dropdown">';
|
||||
var listStart = '<ul class="dropdown-menu" role="menu" aria-labelledby="archive-menu">';
|
||||
var listEnd = '</ul>';
|
||||
@@ -15,7 +15,7 @@ if (window.navigator.onLine) {
|
||||
// If this archive has current = true, and we don't already have a button
|
||||
if ( field.current && buttonCode == null ) {
|
||||
// Get the button code
|
||||
buttonCode = '<button id="archive-menu" data-toggle="dropdown" class="btn dropdown-toggle" style="border: 1px solid #A3733F; background-color: #fff; color: #A3733F;">' + prettyName + ' (current) <span class="caret"></span></button>';
|
||||
buttonCode = '<button id="archive-menu" data-toggle="dropdown" class="btn dropdown-toggle" style="border: 1px solid #82949E; background-color: #FBFBFC; color: #254356;">' + prettyName + ' (current) <span class="caret"></span></button>';
|
||||
// The link is different for the current release
|
||||
listItems.push('<li role="presentation"><a role="menuitem" tabindex="-1" href="https://docs.docker.com/">' + prettyName + '</a></li>');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user