From 884b1111fabf1b06470eb36836bb13d74a0b93bd Mon Sep 17 00:00:00 2001 From: Thomas Park Date: Wed, 2 Sep 2015 22:51:22 -0400 Subject: rename bootswatch assets to custom to reduce confusion --- assets/css/bootswatch.min.css | 1 - assets/css/custom.min.css | 1 + assets/js/bootswatch.js | 56 ----------- assets/js/custom.js | 56 +++++++++++ assets/less/bootswatch.less | 226 ------------------------------------------ assets/less/custom.less | 226 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 283 insertions(+), 283 deletions(-) delete mode 100644 assets/css/bootswatch.min.css create mode 100644 assets/css/custom.min.css delete mode 100644 assets/js/bootswatch.js create mode 100644 assets/js/custom.js delete mode 100644 assets/less/bootswatch.less create mode 100644 assets/less/custom.less (limited to 'assets') diff --git a/assets/css/bootswatch.min.css b/assets/css/bootswatch.min.css deleted file mode 100644 index 32e755cd..00000000 --- a/assets/css/bootswatch.min.css +++ /dev/null @@ -1 +0,0 @@ -body{padding-top:50px}body>.navbar{-webkit-transition:background-color 300ms ease-in;transition:background-color 300ms ease-in}@media (min-width:768px){body>.navbar-transparent{background-color:transparent}body>.navbar-transparent .navbar-nav>.open>a{background-color:transparent!important}}#home{padding-top:0}#home .navbar-brand{padding:13.5px 15px 12.5px}#home .navbar-brand>img{display:inline;margin:0 10px;height:100%}#banner{min-height:300px;border-bottom:none}.page-header h1{font-size:4em}.bs-docs-section{margin-top:8em}.bs-component{position:relative}.bs-component .modal{position:relative;top:auto;right:auto;left:auto;bottom:auto;z-index:1;display:block}.bs-component .modal-dialog{width:90%}.bs-component .popover{position:relative;display:inline-block;width:220px;margin:20px}#source-button{position:absolute;top:0;right:0;z-index:100;font-weight:700}.nav-tabs{margin-bottom:15px}.progress{margin-bottom:10px}footer{margin:5em 0}footer li{float:left;margin-right:1.5em;margin-bottom:1.5em}footer p{clear:left;margin-bottom:0}.splash{padding:9em 0 2em;background-color:#141d27;background-image:url(../img/bg.jpg);background-size:cover;background-attachment:fixed;color:#fff;text-align:center}.splash .logo{width:160px}.splash h1{font-size:3em}.splash #social{margin:2em 0}.splash .alert{margin:2em 0}.section-tout{padding:4em 0 3em;border-bottom:1px solid rgba(0,0,0,.05);background-color:#eaf1f1}.section-tout .fa{margin-right:.5em}.section-tout p{margin-bottom:3em}.section-preview{padding:4em 0 4em}.section-preview .preview{margin-bottom:4em;background-color:#eaf1f1}.section-preview .preview .image{position:relative}.section-preview .preview .image:before{box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);position:absolute;top:0;left:0;width:100%;height:100%;content:"";pointer-events:none}.section-preview .preview .options{padding:1em 2em 2em;border:1px solid rgba(0,0,0,.05);border-top:none;text-align:center}.section-preview .preview .options p{margin-bottom:2em}.section-preview .dropdown-menu{text-align:left}.section-preview .lead{margin-bottom:2em}@media (max-width:767px){.section-preview .image img{width:100%}}.sponsor{text-align:center}.sponsor a:hover{text-decoration:none}@media (max-width:767px){.splash{padding-top:4em}.splash .logo{width:100px}.splash h1{font-size:2em}#banner{margin-bottom:2em;text-align:center}} \ No newline at end of file diff --git a/assets/css/custom.min.css b/assets/css/custom.min.css new file mode 100644 index 00000000..32e755cd --- /dev/null +++ b/assets/css/custom.min.css @@ -0,0 +1 @@ +body{padding-top:50px}body>.navbar{-webkit-transition:background-color 300ms ease-in;transition:background-color 300ms ease-in}@media (min-width:768px){body>.navbar-transparent{background-color:transparent}body>.navbar-transparent .navbar-nav>.open>a{background-color:transparent!important}}#home{padding-top:0}#home .navbar-brand{padding:13.5px 15px 12.5px}#home .navbar-brand>img{display:inline;margin:0 10px;height:100%}#banner{min-height:300px;border-bottom:none}.page-header h1{font-size:4em}.bs-docs-section{margin-top:8em}.bs-component{position:relative}.bs-component .modal{position:relative;top:auto;right:auto;left:auto;bottom:auto;z-index:1;display:block}.bs-component .modal-dialog{width:90%}.bs-component .popover{position:relative;display:inline-block;width:220px;margin:20px}#source-button{position:absolute;top:0;right:0;z-index:100;font-weight:700}.nav-tabs{margin-bottom:15px}.progress{margin-bottom:10px}footer{margin:5em 0}footer li{float:left;margin-right:1.5em;margin-bottom:1.5em}footer p{clear:left;margin-bottom:0}.splash{padding:9em 0 2em;background-color:#141d27;background-image:url(../img/bg.jpg);background-size:cover;background-attachment:fixed;color:#fff;text-align:center}.splash .logo{width:160px}.splash h1{font-size:3em}.splash #social{margin:2em 0}.splash .alert{margin:2em 0}.section-tout{padding:4em 0 3em;border-bottom:1px solid rgba(0,0,0,.05);background-color:#eaf1f1}.section-tout .fa{margin-right:.5em}.section-tout p{margin-bottom:3em}.section-preview{padding:4em 0 4em}.section-preview .preview{margin-bottom:4em;background-color:#eaf1f1}.section-preview .preview .image{position:relative}.section-preview .preview .image:before{box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);position:absolute;top:0;left:0;width:100%;height:100%;content:"";pointer-events:none}.section-preview .preview .options{padding:1em 2em 2em;border:1px solid rgba(0,0,0,.05);border-top:none;text-align:center}.section-preview .preview .options p{margin-bottom:2em}.section-preview .dropdown-menu{text-align:left}.section-preview .lead{margin-bottom:2em}@media (max-width:767px){.section-preview .image img{width:100%}}.sponsor{text-align:center}.sponsor a:hover{text-decoration:none}@media (max-width:767px){.splash{padding-top:4em}.splash .logo{width:100px}.splash h1{font-size:2em}#banner{margin-bottom:2em;text-align:center}} \ No newline at end of file diff --git a/assets/js/bootswatch.js b/assets/js/bootswatch.js deleted file mode 100644 index 5a9a6a55..00000000 --- a/assets/js/bootswatch.js +++ /dev/null @@ -1,56 +0,0 @@ -(function(){ - $(window).scroll(function () { - var top = $(document).scrollTop(); - $('.splash').css({ - 'background-position': '0px -'+(top/3).toFixed(2)+'px' - }); - if(top > 50) - $('#home > .navbar').removeClass('navbar-transparent'); - else - $('#home > .navbar').addClass('navbar-transparent'); - }); - - $("a[href='#']").click(function(e) { - e.preventDefault(); - }); - - var $button = $("
< >
").click(function(){ - var html = $(this).parent().html(); - html = cleanSource(html); - $("#source-modal pre").text(html); - $("#source-modal").modal(); - }); - - $('.bs-component [data-toggle="popover"]').popover(); - $('.bs-component [data-toggle="tooltip"]').tooltip(); - - $(".bs-component").hover(function(){ - $(this).append($button); - $button.show(); - }, function(){ - $button.hide(); - }); - - function cleanSource(html) { - var lines = html.split(/\n/); - - lines.shift(); - lines.splice(-1, 1); - - var indentSize = lines[0].length - lines[0].trim().length, - re = new RegExp(" {" + indentSize + "}"); - - lines = lines.map(function(line){ - if (line.match(re)) { - line = line.substring(indentSize); - } - - return line; - }); - - lines = lines.join("\n"); - - return lines; - } - -})(); diff --git a/assets/js/custom.js b/assets/js/custom.js new file mode 100644 index 00000000..5a9a6a55 --- /dev/null +++ b/assets/js/custom.js @@ -0,0 +1,56 @@ +(function(){ + $(window).scroll(function () { + var top = $(document).scrollTop(); + $('.splash').css({ + 'background-position': '0px -'+(top/3).toFixed(2)+'px' + }); + if(top > 50) + $('#home > .navbar').removeClass('navbar-transparent'); + else + $('#home > .navbar').addClass('navbar-transparent'); + }); + + $("a[href='#']").click(function(e) { + e.preventDefault(); + }); + + var $button = $("
< >
").click(function(){ + var html = $(this).parent().html(); + html = cleanSource(html); + $("#source-modal pre").text(html); + $("#source-modal").modal(); + }); + + $('.bs-component [data-toggle="popover"]').popover(); + $('.bs-component [data-toggle="tooltip"]').tooltip(); + + $(".bs-component").hover(function(){ + $(this).append($button); + $button.show(); + }, function(){ + $button.hide(); + }); + + function cleanSource(html) { + var lines = html.split(/\n/); + + lines.shift(); + lines.splice(-1, 1); + + var indentSize = lines[0].length - lines[0].trim().length, + re = new RegExp(" {" + indentSize + "}"); + + lines = lines.map(function(line){ + if (line.match(re)) { + line = line.substring(indentSize); + } + + return line; + }); + + lines = lines.join("\n"); + + return lines; + } + +})(); diff --git a/assets/less/bootswatch.less b/assets/less/bootswatch.less deleted file mode 100644 index 53735f3e..00000000 --- a/assets/less/bootswatch.less +++ /dev/null @@ -1,226 +0,0 @@ -body { - padding-top: 50px; - - > .navbar { - -webkit-transition: background-color 300ms ease-in; - transition: background-color 300ms ease-in; - } -} - -@media (min-width: 768px) { - body { - > .navbar-transparent { - background-color: transparent; - - .navbar-nav > .open > a { - background-color: transparent !important; - } - } - } -} - -#home { - padding-top: 0px; - .navbar-brand { - padding: 13.5px 15px 12.5px; - > img { - display: inline; - margin: 0 10px; - height: 100%; - } - } -} - -#banner { - min-height: 300px; - border-bottom: none; -} - -.page-header { - - h1 { - font-size: 4em; - } -} - -.bs-docs-section { - margin-top: 8em; -} - -.bs-component { - position: relative; - - .modal { - position: relative; - top: auto; - right: auto; - left: auto; - bottom: auto; - z-index: 1; - display: block; - - &-dialog { - width: 90%; - } - } - - .popover { - position: relative; - display: inline-block; - width: 220px; - margin: 20px; - } -} - -#source-button { - position: absolute; - top: 0; - right: 0; - z-index: 100; - font-weight: bold; -} - -.nav-tabs { - margin-bottom: 15px; -} - -.progress { - margin-bottom: 10px; -} - -footer { - margin: 5em 0; - - li { - float: left; - margin-right: 1.5em; - margin-bottom: 1.5em; - } - - p { - clear: left; - margin-bottom: 0; - } -} - -.splash { - padding: 9em 0 2em; - background-color: #141d27; - background-image: url(../img/bg.jpg); - background-size: cover; - background-attachment: fixed; - color: #fff; - text-align: center; - - .logo { - width: 160px; - } - - h1 { - font-size: 3em; - } - - #social { - margin: 2em 0; - } - - .alert { - margin: 2em 0; - } -} - -.section-tout { - padding: 4em 0 3em; - border-bottom: 1px solid rgba(0, 0, 0, 0.05); - background-color: #eaf1f1; - - .fa { - margin-right: 0.5em; - } - - p { - margin-bottom: 3em; - } -} - -.section-preview { - padding: 4em 0 4em; - - .preview { - - margin-bottom: 4em; - background-color: #eaf1f1; - - .image { - position: relative; - } - - .image:before { - box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - content: ""; - pointer-events: none; - } - - .options { - padding: 1em 2em 2em; - border: 1px solid rgba(0, 0, 0, 0.05); - border-top: none; - text-align: center; - - p { - margin-bottom: 2em; - } - } - } - - .dropdown-menu { - text-align: left; - } - - .lead { - margin-bottom: 2em; - } - - @media (max-width: 767px) { - - .image img { - width: 100%; - } - } -} - -.sponsor { - - text-align: center; - - a:hover { - text-decoration: none; - } -} - -@media (max-width: 767px) { - - .splash { - - padding-top: 4em; - - .logo { - width: 100px; - } - - h1 { - font-size: 2em; - } - } - - #banner { - margin-bottom: 2em; - text-align: center - } - -} \ No newline at end of file diff --git a/assets/less/custom.less b/assets/less/custom.less new file mode 100644 index 00000000..53735f3e --- /dev/null +++ b/assets/less/custom.less @@ -0,0 +1,226 @@ +body { + padding-top: 50px; + + > .navbar { + -webkit-transition: background-color 300ms ease-in; + transition: background-color 300ms ease-in; + } +} + +@media (min-width: 768px) { + body { + > .navbar-transparent { + background-color: transparent; + + .navbar-nav > .open > a { + background-color: transparent !important; + } + } + } +} + +#home { + padding-top: 0px; + .navbar-brand { + padding: 13.5px 15px 12.5px; + > img { + display: inline; + margin: 0 10px; + height: 100%; + } + } +} + +#banner { + min-height: 300px; + border-bottom: none; +} + +.page-header { + + h1 { + font-size: 4em; + } +} + +.bs-docs-section { + margin-top: 8em; +} + +.bs-component { + position: relative; + + .modal { + position: relative; + top: auto; + right: auto; + left: auto; + bottom: auto; + z-index: 1; + display: block; + + &-dialog { + width: 90%; + } + } + + .popover { + position: relative; + display: inline-block; + width: 220px; + margin: 20px; + } +} + +#source-button { + position: absolute; + top: 0; + right: 0; + z-index: 100; + font-weight: bold; +} + +.nav-tabs { + margin-bottom: 15px; +} + +.progress { + margin-bottom: 10px; +} + +footer { + margin: 5em 0; + + li { + float: left; + margin-right: 1.5em; + margin-bottom: 1.5em; + } + + p { + clear: left; + margin-bottom: 0; + } +} + +.splash { + padding: 9em 0 2em; + background-color: #141d27; + background-image: url(../img/bg.jpg); + background-size: cover; + background-attachment: fixed; + color: #fff; + text-align: center; + + .logo { + width: 160px; + } + + h1 { + font-size: 3em; + } + + #social { + margin: 2em 0; + } + + .alert { + margin: 2em 0; + } +} + +.section-tout { + padding: 4em 0 3em; + border-bottom: 1px solid rgba(0, 0, 0, 0.05); + background-color: #eaf1f1; + + .fa { + margin-right: 0.5em; + } + + p { + margin-bottom: 3em; + } +} + +.section-preview { + padding: 4em 0 4em; + + .preview { + + margin-bottom: 4em; + background-color: #eaf1f1; + + .image { + position: relative; + } + + .image:before { + box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + content: ""; + pointer-events: none; + } + + .options { + padding: 1em 2em 2em; + border: 1px solid rgba(0, 0, 0, 0.05); + border-top: none; + text-align: center; + + p { + margin-bottom: 2em; + } + } + } + + .dropdown-menu { + text-align: left; + } + + .lead { + margin-bottom: 2em; + } + + @media (max-width: 767px) { + + .image img { + width: 100%; + } + } +} + +.sponsor { + + text-align: center; + + a:hover { + text-decoration: none; + } +} + +@media (max-width: 767px) { + + .splash { + + padding-top: 4em; + + .logo { + width: 100px; + } + + h1 { + font-size: 2em; + } + } + + #banner { + margin-bottom: 2em; + text-align: center + } + +} \ No newline at end of file -- cgit v1.2.3