diff --git a/themes/casadi-theme/layouts/get-casadi/list.html b/themes/casadi-theme/layouts/get-casadi/list.html index f9303adecbb85..63119afee864c 100644 --- a/themes/casadi-theme/layouts/get-casadi/list.html +++ b/themes/casadi-theme/layouts/get-casadi/list.html @@ -35,14 +35,14 @@ {{ $isDraft := $release.draft }} {{ if $isLatest }} -
+
{{ else }} -
+
{{ end }} {{ if $isLatest }} - + {{ else }} -

{{ if $isLatest }} -
+
{{ else }} -
+
{{ end }} @@ -120,7 +120,7 @@

CasADi v{{ $r

{{ end }} - {{ end }} + {{ end }} {{ end }} {{ end }}
@@ -128,15 +128,3 @@

CasADi v{{ $r

{{ partial "footer" . }} - - diff --git a/themes/casadi-theme/src/scss/casadi-theme.scss b/themes/casadi-theme/src/scss/casadi-theme.scss index 8afb85e7bf09a..8f7fd3a1e2693 100644 --- a/themes/casadi-theme/src/scss/casadi-theme.scss +++ b/themes/casadi-theme/src/scss/casadi-theme.scss @@ -11,6 +11,7 @@ display: block; height: $casadi-link-offset; margin-top: -$casadi-link-offset; + visibility: hidden; } /* GLOBAL */ diff --git a/themes/casadi-theme/static/_css/casadi-theme.css b/themes/casadi-theme/static/_css/casadi-theme.css index bf7322c2d589e..2a55cb432b6fa 100644 --- a/themes/casadi-theme/static/_css/casadi-theme.css +++ b/themes/casadi-theme/static/_css/casadi-theme.css @@ -5,7 +5,8 @@ content: ""; display: block; height: 65px; - margin-top: -65px; } + margin-top: -65px; + visibility: hidden; } /* GLOBAL */ html, diff --git a/themes/casadi-theme/static/_css/casadi-theme.min.css b/themes/casadi-theme/static/_css/casadi-theme.min.css index 30f0d671bf026..49bdf7ddeb514 100644 --- a/themes/casadi-theme/static/_css/casadi-theme.min.css +++ b/themes/casadi-theme/static/_css/casadi-theme.min.css @@ -1 +1 @@ -@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,500,700);body,html,img.card-img-top,table{width:100%}:target:before{content:"";display:block;height:65px;margin-top:-65px}body,html{font-family:Roboto,sans-serif;font-weight:300;font-size:16px;letter-spacing:.5px;line-height:30px;margin:0;padding:0;border:none;background-color:#f8f8f8;font-smooth:always;-webkit-font-smoothing:antialiased}#main,.nav.card-header{background-color:#fff}body{padding-top:50px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;min-height:100vh;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}em{font-style:normal;font-weight:400;color:inherit}a{text-decoration:none;color:#dc0000}a:focus,a:hover{text-decoration:underline;color:#dc0000}h1{font-size:2rem}h2{font-size:1.75rem}h3{font-size:1.5rem}h4{font-size:1.25rem}h5{font-size:1.1rem}h6{font-size:1rem}#main.container,#main.container-fluid{background-color:#fff;-webkit-box-shadow:0 0 10px rgba(0,0,0,.25);box-shadow:0 0 10px rgba(0,0,0,.25);padding-top:2rem;padding-bottom:2rem}@media (max-width:991.98px){#main.container,#main.container-fluid{max-width:100%}}#main hr.sep{margin:2rem auto}.container table+p{margin-top:1rem}.container p:last-child{margin-bottom:0}.card{margin-bottom:10px}a.card-header,a.card-header:focus,a.card-header:hover{color:#000;text-decoration:none}.card-footer{line-height:.7em}.card-footer small{font-size:.7em;font-weight:300}.nav.card-header{color:#000;padding:0;font-size:16px;border-width:0;border-style:solid;border-color:#dc0000;margin:0;line-height:50px}.nav.card-header a{color:#000;margin:0;padding:0 20px;-webkit-transition:all .1s cubic-bezier(.42,0,.58,1);-o-transition:all .1s cubic-bezier(.42,0,.58,1);transition:all .1s cubic-bezier(.42,0,.58,1)}.nav.card-header a.nav-link.active{background-color:inherit;color:#dc0000;-webkit-box-shadow:0 -3px 0 0 #dc0000 inset;box-shadow:0 -3px 0 0 #dc0000 inset}.nav.card-header a.nav-link:hover{color:#dc0000}.card-header .release-info{float:right;font-size:15px}.card-body .card-title{margin-bottom:.5em}.reading-time-short>i{margin-right:5px}.card-footer .reading-time-short{float:left}.reading-time{display:block;font-style:italic;font-size:.75em;line-height:1em;margin-bottom:2em}img,table{margin:auto}.card-footer.release-info{font-size:15px}figure{text-align:center}figure.default img{max-width:100%;margin:auto}@media (min-width:992px){figure.default img{max-width:75%}}figure.default figcaption{display:none}img{max-width:100%;display:block}@media (max-width:991.98px){img:not(.card-img-top){max-width:75%}nav.nav-top .container{max-width:100%}}figure figcaption h1{font-size:1rem;font-weight:400;margin-top:10px}table{max-width:100%;table-layout:fixed}table,td,th{padding:.5rem}table thead{border-bottom:1px solid rgba(0,0,0,.125)}table tbody tr:nth-child(odd){background-color:#f8f8f8}nav.nav-top{background-color:#dc0000}nav.nav-top .container{background-image:url(../_img/bg_header.svg);background-repeat:repeat-x;-webkit-background-size:cover;background-size:cover;background-position:left}nav.nav-top.navbar{border:none;padding:0;font-size:15px;line-height:50px;z-index:5}nav.nav-top.navbar .navbar-toggler{color:#fff}nav.nav-top.navbar .navbar-collapse{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}nav.nav-top.navbar .navbar-nav>li>a{padding:0 20px;color:#fff}nav.nav-top.navbar .navbar-nav>li.active>a{font-weight:500}nav.nav-top.navbar .navbar-nav>li>a:focus,nav.nav-top.navbar .navbar-nav>li>a:hover{-webkit-box-shadow:0 -3px 0 0 #fff inset;box-shadow:0 -3px 0 0 #fff inset}nav.nav-top a.navbar-brand{width:100px;height:36px;margin:7px 25px;padding:0;background:url(../_img/logo_2017_horizontal_white.svg) center no-repeat;-webkit-background-size:contain;background-size:contain}.sidebar{-webkit-box-flex:0;-webkit-flex:0 0 250px;-ms-flex:0 0 250px;flex:0 0 250px;z-index:1;padding:0}@media (max-width:991.98px){.sidebar{display:none}}.sidebar .sticky-offset{top:50px}.sidebar nav{max-height:-webkit-calc(100vh - 50px);max-height:calc(100vh - 50px);overflow-y:auto}.sidebar nav::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 2px rgba(0,0,0,.3);background-color:#F5F5F5}.sidebar nav::-webkit-scrollbar{width:3px;background-color:#F5F5F5}.sidebar nav::-webkit-scrollbar-thumb{background-color:#dc0000}.sidebar nav.nav-side{background-color:#f8f8f8;color:#000;min-height:75vh;padding:1em 0}.sidebar nav.nav-side .caption{display:block;width:100%;text-align:center;padding:.5em 1em;margin:0;font-weight:500}.sidebar nav.nav-side ul{list-style:none;padding:0;margin-left:1em;font-size:.9em}.sidebar nav.nav-side a,.sidebar nav.nav-side a:active,.sidebar nav.nav-side a:focus,.sidebar nav.nav-side code,.sidebar nav.nav-side em,.sidebar nav.nav-side pre{color:unset;text-decoration:none;font-family:inherit;font-size:inherit;padding:0;margin:0}.sidebar nav.nav-side a:hover{color:#dc0000}#landing-cover{display:table;height:100vh;width:100%;position:relative;background:url(../_img/scott-webb-260726-2.jpg) center center no-repeat fixed;-webkit-background-size:cover;background-size:cover;z-index:1}#landing-cover .vert-text{display:table-cell;vertical-align:middle;text-align:center}#landing-cover .logo{max-width:40em;width:100%;padding:2em}#landing-cover+#main{font-size:1.1em;line-height:45px}footer{color:#fff;background-color:#dc0000;padding:50px 0;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;z-index:5}code,pre{background-color:#f8f8f8}footer #social{font-size:2em}footer .copyright{font-size:.75em;margin:0}footer .list-inline-item a{color:#fff;-webkit-transition:all .15s cubic-bezier(.42,0,.58,1);-o-transition:all .15s cubic-bezier(.42,0,.58,1);transition:all .15s cubic-bezier(.42,0,.58,1)}code,footer .list-inline-item a:hover,pre{color:#000}footer .list-inline-item:not(:last-child){margin-right:10px}pre{display:block;margin:0 0 1em;padding:.5em 1em;font-size:.85rem;line-height:1.4rem}code{display:inline;margin:0;padding:5px 10px}pre code{padding:0;margin:0}.exec-block-output pre{padding:.5em 0 .5em 1em;border:0;border-left:2px double #dc0000}.highlight .err{border:none}.sidebyside-master{margin:0;padding:0;display:block}.sidebyside-master>.sidebyside{width:50%;float:left;padding:0 .5em}div.multisnip div:not(:first-child){display:none}div.multisnip pre{margin:0;border-top:#dc0000 1px solid}div.multisnip ul.nav-tabs-multisnip>:first-child,div.multisnip ul.nav-tabs-multisnip>:first-child>a:hover{-webkit-border-top-left-radius:10px;border-top-left-radius:10px}div.multisnip ul.nav-tabs-multisnip>:last-child,div.multisnip ul.nav-tabs-multisnip>:last-child>a:hover{-webkit-border-top-right-radius:10px;border-top-right-radius:10px}div.multisnip ul.nav-tabs-multisnip>li{background-color:#f8f8f8;cursor:default;text-transform:capitalize}div.multisnip ul.nav-tabs-multisnip>li.isshown{color:#f8f8f8;font-weight:400;background-color:#dc0000}div.multisnip ul.nav-tabs-multisnip>li>a{display:block;padding:10px;font-size:16px;line-height:16px}div.multisnip ul.nav-tabs-multisnip>li>a:hover{-webkit-box-shadow:0 -2px 0 0 #dc0000 inset;box-shadow:0 -2px 0 0 #dc0000 inset}#main.docs{padding-top:0;padding-bottom:0;-webkit-box-shadow:none;box-shadow:none}#main.docs .content{-webkit-box-shadow:0 0 10px rgba(0,0,0,.25);box-shadow:0 0 10px rgba(0,0,0,.25);z-index:2;max-width:100%}@media (min-width:992px){#main.docs .content{max-width:-webkit-calc(100% - 250px);max-width:calc(100% - 250px)}}#main.docs .content p{clear:both}a.headerlink{opacity:0;-webkit-transition:all .1s linear;-o-transition:all .1s linear;transition:all .1s linear;color:#fff;margin-left:5px}#main.docs .content h1,#main.docs .content h2,#main.docs .content h3,#main.docs .content h4,#main.docs .content h5,#main.docs .content h6{margin-bottom:.5em}#main.docs .content h1:hover a.headerlink,#main.docs .content h2:hover a.headerlink,#main.docs .content h3:hover a.headerlink,#main.docs .content h4:hover a.headerlink,#main.docs .content h5:hover a.headerlink,#main.docs .content h6:hover a.headerlink{opacity:1}#main.docs .content .section{margin-bottom:1em;position:relative;display:block;clear:both;width:100%}#main.docs .content .toctree-wrapper.compound{width:100%}#main.docs .content table{font-size:.8em}blockquote{margin-left:2rem;padding:1rem 2rem 1rem 100px;position:relative;color:#000;background-color:#f8f8f8}blockquote::before{content:"\201C";color:#fff;position:absolute;left:25px;top:17px;font-family:serif;font-size:100px;line-height:60px;font-weight:700} \ No newline at end of file +@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,500,700);body,html,img.card-img-top,table{width:100%}:target:before{content:"";display:block;height:65px;margin-top:-65px;visibility:hidden}body,html{font-family:Roboto,sans-serif;font-weight:300;font-size:16px;letter-spacing:.5px;line-height:30px;margin:0;padding:0;border:none;background-color:#f8f8f8;font-smooth:always;-webkit-font-smoothing:antialiased}#main,.nav.card-header{background-color:#fff}body{padding-top:50px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;min-height:100vh;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}em{font-style:normal;font-weight:400;color:inherit}a{text-decoration:none;color:#dc0000}a:focus,a:hover{text-decoration:underline;color:#dc0000}h1{font-size:2rem}h2{font-size:1.75rem}h3{font-size:1.5rem}h4{font-size:1.25rem}h5{font-size:1.1rem}h6{font-size:1rem}#main.container,#main.container-fluid{background-color:#fff;-webkit-box-shadow:0 0 10px rgba(0,0,0,.25);box-shadow:0 0 10px rgba(0,0,0,.25);padding-top:2rem;padding-bottom:2rem}@media (max-width:991.98px){#main.container,#main.container-fluid{max-width:100%}}#main hr.sep{margin:2rem auto}.container table+p{margin-top:1rem}.container p:last-child{margin-bottom:0}.card{margin-bottom:10px}a.card-header,a.card-header:focus,a.card-header:hover{color:#000;text-decoration:none}.card-footer{line-height:.7em}.card-footer small{font-size:.7em;font-weight:300}.nav.card-header{color:#000;padding:0;font-size:16px;border-width:0;border-style:solid;border-color:#dc0000;margin:0;line-height:50px}.nav.card-header a{color:#000;margin:0;padding:0 20px;-webkit-transition:all .1s cubic-bezier(.42,0,.58,1);-o-transition:all .1s cubic-bezier(.42,0,.58,1);transition:all .1s cubic-bezier(.42,0,.58,1)}.nav.card-header a.nav-link.active{background-color:inherit;color:#dc0000;-webkit-box-shadow:0 -3px 0 0 #dc0000 inset;box-shadow:0 -3px 0 0 #dc0000 inset}.nav.card-header a.nav-link:hover{color:#dc0000}.card-header .release-info{float:right;font-size:15px}.card-body .card-title{margin-bottom:.5em}.reading-time-short>i{margin-right:5px}.card-footer .reading-time-short{float:left}.reading-time{display:block;font-style:italic;font-size:.75em;line-height:1em;margin-bottom:2em}img,table{margin:auto}.card-footer.release-info{font-size:15px}figure{text-align:center}figure.default img{max-width:100%;margin:auto}@media (min-width:992px){figure.default img{max-width:75%}}figure.default figcaption{display:none}img{max-width:100%;display:block}@media (max-width:991.98px){img:not(.card-img-top){max-width:75%}nav.nav-top .container{max-width:100%}}figure figcaption h1{font-size:1rem;font-weight:400;margin-top:10px}table{max-width:100%;table-layout:fixed}table,td,th{padding:.5rem}table thead{border-bottom:1px solid rgba(0,0,0,.125)}table tbody tr:nth-child(odd){background-color:#f8f8f8}nav.nav-top{background-color:#dc0000}nav.nav-top .container{background-image:url(../_img/bg_header.svg);background-repeat:repeat-x;-webkit-background-size:cover;background-size:cover;background-position:left}nav.nav-top.navbar{border:none;padding:0;font-size:15px;line-height:50px;z-index:5}nav.nav-top.navbar .navbar-toggler{color:#fff}nav.nav-top.navbar .navbar-collapse{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}nav.nav-top.navbar .navbar-nav>li>a{padding:0 20px;color:#fff}nav.nav-top.navbar .navbar-nav>li.active>a{font-weight:500}nav.nav-top.navbar .navbar-nav>li>a:focus,nav.nav-top.navbar .navbar-nav>li>a:hover{-webkit-box-shadow:0 -3px 0 0 #fff inset;box-shadow:0 -3px 0 0 #fff inset}nav.nav-top a.navbar-brand{width:100px;height:36px;margin:7px 25px;padding:0;background:url(../_img/logo_2017_horizontal_white.svg) center no-repeat;-webkit-background-size:contain;background-size:contain}.sidebar{-webkit-box-flex:0;-webkit-flex:0 0 250px;-ms-flex:0 0 250px;flex:0 0 250px;z-index:1;padding:0}@media (max-width:991.98px){.sidebar{display:none}}.sidebar .sticky-offset{top:50px}.sidebar nav{max-height:-webkit-calc(100vh - 50px);max-height:calc(100vh - 50px);overflow-y:auto}.sidebar nav::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 2px rgba(0,0,0,.3);background-color:#F5F5F5}.sidebar nav::-webkit-scrollbar{width:3px;background-color:#F5F5F5}.sidebar nav::-webkit-scrollbar-thumb{background-color:#dc0000}.sidebar nav.nav-side{background-color:#f8f8f8;color:#000;min-height:75vh;padding:1em 0}.sidebar nav.nav-side .caption{display:block;width:100%;text-align:center;padding:.5em 1em;margin:0;font-weight:500}.sidebar nav.nav-side ul{list-style:none;padding:0;margin-left:1em;font-size:.9em}.sidebar nav.nav-side a,.sidebar nav.nav-side a:active,.sidebar nav.nav-side a:focus,.sidebar nav.nav-side code,.sidebar nav.nav-side em,.sidebar nav.nav-side pre{color:unset;text-decoration:none;font-family:inherit;font-size:inherit;padding:0;margin:0}.sidebar nav.nav-side a:hover{color:#dc0000}#landing-cover{display:table;height:100vh;width:100%;position:relative;background:url(../_img/scott-webb-260726-2.jpg) center center no-repeat fixed;-webkit-background-size:cover;background-size:cover;z-index:1}#landing-cover .vert-text{display:table-cell;vertical-align:middle;text-align:center}#landing-cover .logo{max-width:40em;width:100%;padding:2em}#landing-cover+#main{font-size:1.1em;line-height:45px}footer{color:#fff;background-color:#dc0000;padding:50px 0;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;z-index:5}code,pre{background-color:#f8f8f8}footer #social{font-size:2em}footer .copyright{font-size:.75em;margin:0}footer .list-inline-item a{color:#fff;-webkit-transition:all .15s cubic-bezier(.42,0,.58,1);-o-transition:all .15s cubic-bezier(.42,0,.58,1);transition:all .15s cubic-bezier(.42,0,.58,1)}code,footer .list-inline-item a:hover,pre{color:#000}footer .list-inline-item:not(:last-child){margin-right:10px}pre{display:block;margin:0 0 1em;padding:.5em 1em;font-size:.85rem;line-height:1.4rem}code{display:inline;margin:0;padding:5px 10px}pre code{padding:0;margin:0}.exec-block-output pre{padding:.5em 0 .5em 1em;border:0;border-left:2px double #dc0000}.highlight .err{border:none}.sidebyside-master{margin:0;padding:0;display:block}.sidebyside-master>.sidebyside{width:50%;float:left;padding:0 .5em}div.multisnip div:not(:first-child){display:none}div.multisnip pre{margin:0;border-top:#dc0000 1px solid}div.multisnip ul.nav-tabs-multisnip>:first-child,div.multisnip ul.nav-tabs-multisnip>:first-child>a:hover{-webkit-border-top-left-radius:10px;border-top-left-radius:10px}div.multisnip ul.nav-tabs-multisnip>:last-child,div.multisnip ul.nav-tabs-multisnip>:last-child>a:hover{-webkit-border-top-right-radius:10px;border-top-right-radius:10px}div.multisnip ul.nav-tabs-multisnip>li{background-color:#f8f8f8;cursor:default;text-transform:capitalize}div.multisnip ul.nav-tabs-multisnip>li.isshown{color:#f8f8f8;font-weight:400;background-color:#dc0000}div.multisnip ul.nav-tabs-multisnip>li>a{display:block;padding:10px;font-size:16px;line-height:16px}div.multisnip ul.nav-tabs-multisnip>li>a:hover{-webkit-box-shadow:0 -2px 0 0 #dc0000 inset;box-shadow:0 -2px 0 0 #dc0000 inset}#main.docs{padding-top:0;padding-bottom:0;-webkit-box-shadow:none;box-shadow:none}#main.docs .content{-webkit-box-shadow:0 0 10px rgba(0,0,0,.25);box-shadow:0 0 10px rgba(0,0,0,.25);z-index:2;max-width:100%}@media (min-width:992px){#main.docs .content{max-width:-webkit-calc(100% - 250px);max-width:calc(100% - 250px)}}#main.docs .content p{clear:both}a.headerlink{opacity:0;-webkit-transition:all .1s linear;-o-transition:all .1s linear;transition:all .1s linear;color:#fff;margin-left:5px}#main.docs .content h1,#main.docs .content h2,#main.docs .content h3,#main.docs .content h4,#main.docs .content h5,#main.docs .content h6{margin-bottom:.5em}#main.docs .content h1:hover a.headerlink,#main.docs .content h2:hover a.headerlink,#main.docs .content h3:hover a.headerlink,#main.docs .content h4:hover a.headerlink,#main.docs .content h5:hover a.headerlink,#main.docs .content h6:hover a.headerlink{opacity:1}#main.docs .content .section{margin-bottom:1em;position:relative;display:block;clear:both;width:100%}#main.docs .content .toctree-wrapper.compound{width:100%}#main.docs .content table{font-size:.8em}blockquote{margin-left:2rem;padding:1rem 2rem 1rem 100px;position:relative;color:#000;background-color:#f8f8f8}blockquote::before{content:"\201C";color:#fff;position:absolute;left:25px;top:17px;font-family:serif;font-size:100px;line-height:60px;font-weight:700} \ No newline at end of file diff --git a/themes/casadi-theme/static/_js/scripts.js b/themes/casadi-theme/static/_js/scripts.js index da67a181bb633..4c2db79a1d848 100755 --- a/themes/casadi-theme/static/_js/scripts.js +++ b/themes/casadi-theme/static/_js/scripts.js @@ -23,12 +23,27 @@ $(document).ready(function() { lang = "C++"; } li.append("" + lang + ""); - + li.click(function(){ makeActive(highlight, li) }); $(block).find("ul.nav-tabs-multisnip").append(li); }); }); }); + + var hash = window.location.hash; + if(hash) { + var id = hash.substr(1); + var card = $("[id="+id+"]")[0]; + if(typeof card !== "undefined") { + $(card).find('a.card-header.collapsed').each(function(i, a) { + $(a).removeClass('collapsed'); + $(a).attr("aria-expanded", "true"); + }); + $(card).find('div.collapse').each(function(i, d) { + $(d).addClass('show'); + }); + } + } }); function makeActive(hl, li) {