Merge pull request #6691 from captainill/new_header

'by Hashicorp' added to header
This commit is contained in:
Mitchell Hashimoto 2015-12-21 09:53:06 -08:00
commit bc5c6552e6
55 changed files with 4044 additions and 1622 deletions

View File

@ -2,7 +2,7 @@ source "https://rubygems.org"
ruby "2.2.2"
gem "less", "~> 2.2.2"
gem "less", "~> 2.6.0"
gem "middleman", "~> 3.0.6"
gem "middleman-minify-html", "~> 3.0.0"
gem "rack-contrib", "~> 1.1.0"

View File

@ -36,8 +36,8 @@ GEM
rack (>= 1.0.0)
url_mount (~> 0.2.1)
i18n (0.6.1)
less (2.2.2)
commonjs (~> 0.2.6)
less (2.6.0)
commonjs (~> 0.2.7)
libv8 (3.16.14.7)
listen (0.7.3)
maruku (0.6.1)
@ -134,7 +134,7 @@ PLATFORMS
DEPENDENCIES
highline (~> 1.6.15)
less (~> 2.2.2)
less (~> 2.6.0)
middleman (~> 3.0.6)
middleman-minify-html (~> 3.0.0)
rack-contrib (~> 1.1.0)
@ -143,3 +143,6 @@ DEPENDENCIES
redcarpet (~> 2.2.2)
therubyracer (~> 0.12.0)
thin (~> 1.5.0)
BUNDLED WITH
1.10.6

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

@ -0,0 +1,50 @@
(function(){
Sidebar = Base.extend({
$body: null,
$overlay: null,
$sidebar: null,
$sidebarHeader: null,
$sidebarImg: null,
$toggleButton: null,
constructor: function(){
this.$body = $('body');
this.$overlay = $('.mobile-nav-overlay');
this.$sidebar = $('#mobile-nav');
this.$sidebarHeader = $('#mobile-nav .mobile-nav-header');
this.$toggleButton = $('.navbar-toggle');
this.sidebarImg = this.$sidebarHeader.css('background-image');
this.addEventListeners();
},
addEventListeners: function(){
var _this = this;
_this.$toggleButton.on('click', function() {
_this.$sidebar.toggleClass('open');
if ((_this.$sidebar.hasClass('mobile-nav-fixed-left') || _this.$sidebar.hasClass('mobile-nav-fixed-right')) && _this.$sidebar.hasClass('open')) {
_this.$overlay.addClass('active');
_this.$body.css('overflow', 'hidden');
} else {
_this.$overlay.removeClass('active');
_this.$body.css('overflow', 'auto');
}
return false;
});
_this.$overlay.on('click', function() {
$(this).removeClass('active');
_this.$body.css('overflow', 'auto');
_this.$sidebar.removeClass('open');
});
}
});
window.Sidebar = Sidebar;
})();

View File

@ -0,0 +1,145 @@
/*
Based on Base.js 1.1a (c) 2006-2010, Dean Edwards
Updated to pass JSHint and converted into a module by Kenneth Powers
License: http://www.opensource.org/licenses/mit-license.php
*/
/*global define:true module:true*/
/*jshint eqeqeq:true*/
(function (name, global, definition) {
if (typeof module !== 'undefined') {
module.exports = definition();
} else if (typeof define !== 'undefined' && typeof define.amd === 'object') {
define(definition);
} else {
global[name] = definition();
}
})('Base', this, function () {
// Base Object
var Base = function () {};
// Implementation
Base.extend = function (_instance, _static) { // subclass
var extend = Base.prototype.extend;
// build the prototype
Base._prototyping = true;
var proto = new this();
extend.call(proto, _instance);
proto.base = function () {
// call this method from any other method to invoke that method's ancestor
};
delete Base._prototyping;
// create the wrapper for the constructor function
//var constructor = proto.constructor.valueOf(); //-dean
var constructor = proto.constructor;
var klass = proto.constructor = function () {
if (!Base._prototyping) {
if (this._constructing || this.constructor === klass) { // instantiation
this._constructing = true;
constructor.apply(this, arguments);
delete this._constructing;
} else if (arguments[0] !== null) { // casting
return (arguments[0].extend || extend).call(arguments[0], proto);
}
}
};
// build the class interface
klass.ancestor = this;
klass.extend = this.extend;
klass.forEach = this.forEach;
klass.implement = this.implement;
klass.prototype = proto;
klass.toString = this.toString;
klass.valueOf = function (type) {
return (type === 'object') ? klass : constructor.valueOf();
};
extend.call(klass, _static);
// class initialization
if (typeof klass.init === 'function') klass.init();
return klass;
};
Base.prototype = {
extend: function (source, value) {
if (arguments.length > 1) { // extending with a name/value pair
var ancestor = this[source];
if (ancestor && (typeof value === 'function') && // overriding a method?
// the valueOf() comparison is to avoid circular references
(!ancestor.valueOf || ancestor.valueOf() !== value.valueOf()) && /\bbase\b/.test(value)) {
// get the underlying method
var method = value.valueOf();
// override
value = function () {
var previous = this.base || Base.prototype.base;
this.base = ancestor;
var returnValue = method.apply(this, arguments);
this.base = previous;
return returnValue;
};
// point to the underlying method
value.valueOf = function (type) {
return (type === 'object') ? value : method;
};
value.toString = Base.toString;
}
this[source] = value;
} else if (source) { // extending with an object literal
var extend = Base.prototype.extend;
// if this object has a customized extend method then use it
if (!Base._prototyping && typeof this !== 'function') {
extend = this.extend || extend;
}
var proto = {
toSource: null
};
// do the "toString" and other methods manually
var hidden = ['constructor', 'toString', 'valueOf'];
// if we are prototyping then include the constructor
for (var i = Base._prototyping ? 0 : 1; i < hidden.length; i++) {
var h = hidden[i];
if (source[h] !== proto[h])
extend.call(this, h, source[h]);
}
// copy each of the source object's properties to this object
for (var key in source) {
if (!proto[key]) extend.call(this, key, source[key]);
}
}
return this;
}
};
// initialize
Base = Base.extend({
constructor: function () {
this.extend(arguments[0]);
}
}, {
ancestor: Object,
version: '1.1',
forEach: function (object, block, context) {
for (var key in object) {
if (this.prototype[key] === undefined) {
block.call(context, object[key], key, object);
}
}
},
implement: function () {
for (var i = 0; i < arguments.length; i++) {
if (typeof arguments[i] === 'function') {
// if it's a function, call it
arguments[i](this.prototype);
} else {
// add the interface using the extend method
this.prototype.extend(arguments[i]);
}
}
return this;
},
toString: function () {
return String(this.valueOf());
}
});
// Return Base implementation
return Base;
});

View File

@ -0,0 +1,19 @@
<!-- Overlay for fixed mobile-nav -->
<div class="mobile-nav-overlay"></div>
<!-- Material mobile-nav -->
<aside id="mobile-nav" class="mobile-nav mobile-nav-default mobile-nav-fixed-right" role="navigation">
<!-- mobile-nav header -->
<div class="mobile-nav-header header-cover">
<!-- mobile-nav brand image -->
<div class="mobile-nav-image">
<img src="<%= image_path('logo-header-docs@2x.png') %>" width="200px" height="40px">
</div>
</div>
<!-- mobile-nav navigation -->
<ul class="main nav mobile-nav-nav">
<li class="pill"><a href="https://www.amazon.com/gp/product/1449335837/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1449335837&linkCode=as2&tag=vagrant-20">Vagrant Book</a></li>
<li><a href="https://www.vagrantup.com/">Home</a></li>
</ul>
</aside>

View File

@ -30,21 +30,33 @@
<!-- wrap everything -->
<div class="wrapper">
<!-- nav -->
<!-- nav -->
<div id="header" class="navigation docs">
<div class="container-fluid">
<!-- vagrant logo -->
<div class="navbar-header">
<div class="navbar-brand">
<a class="logo" href="/">Vagrant Documentation</span></a>
<a class="by-hashicorp" href="https://hashicorp.com/"><span class="svg-wrap">by</span><%= partial "layouts/svg/svg-by-hashicorp" %><%= partial "layouts/svg/svg-hashicorp-logo" %>Hashicorp</a>
</div>
<button class="navbar-toggle" type="button">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</button>
</div>
<div class="buttons">
<nav class="navigation-links" role="navigation">
<ul class="main-links nav navbar-nav">
<li class="pill"><a href="https://www.amazon.com/gp/product/1449335837/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1449335837&linkCode=as2&tag=vagrant-20">Vagrant Book</a></li>
<li><a href="https://www.vagrantup.com/">Home</a></li>
</ul>
</nav>
</div>
</div>
</div>
<nav class="docs">
<!-- vagrant logo -->
<a class="vagrant-docs-logo" href="/">Vagrant Documentation</a>
<!-- nav -->
<ul class="pull-right unstyled">
<li class="pill">
<a href="https://www.amazon.com/gp/product/1449335837/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1449335837&linkCode=as2&tag=vagrant-20">
Vagrant Book
</a>
</li>
<li><a href="https://www.vagrantup.com/">Home</a></li>
</ul>
</nav>
<%= partial "layouts/mobile_nav" %>
<div class="page docs docs-home">
<div class="sidebar-background"></div>
@ -326,15 +338,18 @@
<div class="row">
<div class="span12">
<% relative_path = current_page.path.match(/.*\//).to_s
file = current_page.source_file.split("/").last
github_link = "https://github.com/mitchellh/vagrant/blob/master/website/docs/source/#{relative_path}#{file}"
%>
<div class="edit-page-link">
<a href="<%= github_link %>">Edit this page</a>
</div>
<ul class="unstyled footer-nav">
<li><a href="https://docs.vagrantup.com/">Documentation</a></li>
<li><a href="https://www.vagrantup.com/about">About</a></li>
<li><a href="https://www.vagrantup.com/support">Support</a></li>
<% relative_path = current_page.path.match(/.*\//).to_s
file = current_page.source_file.split("/").last
github_link = "https://github.com/mitchellh/vagrant/blob/master/website/docs/source/#{relative_path}#{file}"
%>
<li class="li-under"><a href="<%= github_link %>">Edit this page</a></li>
<a href="https://www.vagrantup.com/downloads">
<li class="button inline-button">Download</li>
</a>
@ -364,10 +379,15 @@
<!-- close .wrapper -->
</div>
<%= javascript_include_tag "lib/Base" %>
<%= javascript_include_tag "Sidebar" %>
<!-- load scripts -->
<!-- load full-width image into any div with class="big-background -->
<script>
$(".big-background").backstretch("assets/photos/full_width.jpg");
new Sidebar();
</script>
<!-- Google analytics -->

View File

@ -0,0 +1,17 @@
<svg class="svg-by" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="-1337.4 1130.1 73.8 16.1" xml:space="preserve" enable-background="new -1337.4 1130.1 73.8 16.1">
<g>
<path d="M-1329.6 1142.4v-4.9h-4.3v4.9h-2.2v-11.6h2.2v4.8h4.3v-4.8h2.2v11.6H-1329.6z"/>
<path d="M-1318.8 1142.4h-1.7l-0.2-0.6c-0.8 0.5-1.7 0.8-2.5 0.8 -1.6 0-2.2-1.1-2.2-2.5 0-1.7 0.8-2.4 2.5-2.4h2v-0.9c0-0.9-0.3-1.3-1.6-1.3 -0.8 0-1.6 0.1-2.4 0.3l-0.3-1.6c0.8-0.2 2-0.4 2.9-0.4 2.7 0 3.5 0.9 3.5 3.1V1142.4zM-1321 1139.2h-1.6c-0.7 0-0.9 0.2-0.9 0.8 0 0.6 0.2 0.9 0.9 0.9 0.6 0 1.2-0.2 1.6-0.4V1139.2z"/>
<path d="M-1314.2 1142.6c-0.9 0-2.1-0.2-2.9-0.5l0.3-1.6c0.7 0.2 1.7 0.4 2.5 0.4 0.9 0 1.1-0.2 1.1-0.9 0-0.5-0.1-0.8-1.5-1.1 -2.1-0.5-2.3-1-2.3-2.7s0.8-2.5 3.2-2.5c0.8 0 1.8 0.1 2.5 0.3l-0.2 1.7c-0.6-0.1-1.7-0.2-2.3-0.2 -0.9 0-1.1 0.2-1.1 0.7 0 0.7 0.1 0.7 1.2 1 2.4 0.6 2.6 0.9 2.6 2.7C-1311.1 1141.6-1311.6 1142.6-1314.2 1142.6z"/>
<path d="M-1304.3 1142.4v-5.9c0-0.5-0.2-0.7-0.7-0.7s-1.4 0.3-2.2 0.7v5.9h-2.1v-12l2.1-0.3v4.4c0.9-0.5 2.2-0.8 3.1-0.8 1.4 0 1.9 1 1.9 2.5v6.2H-1304.3L-1304.3 1142.4z"/>
<path d="M-1300.1 1132.7v-2.5h2.1v2.5H-1300.1zM-1300.1 1142.4v-8.5h2.1v8.5H-1300.1z"/>
<path d="M-1296 1134c0-2.1 1.2-3.4 4.1-3.4 1.1 0 2.2 0.1 3.2 0.4l-0.2 1.9c-0.9-0.2-2-0.3-2.8-0.3 -1.5 0-2 0.5-2 1.8v4.5c0 1.2 0.5 1.8 2 1.8 0.8 0 1.9-0.1 2.8-0.3l0.2 1.9c-1 0.2-2.1 0.4-3.2 0.4 -2.9 0-4.1-1.2-4.1-3.4V1134z"/>
<path d="M-1283.8 1142.6c-2.9 0-3.7-1.6-3.7-3.3v-2.1c0-1.7 0.8-3.4 3.7-3.4s3.7 1.6 3.7 3.4v2.1C-1280.1 1141-1280.9 1142.6-1283.8 1142.6zM-1283.8 1135.6c-1.1 0-1.6 0.5-1.6 1.5v2.3c0 1 0.4 1.5 1.6 1.5 1.1 0 1.6-0.5 1.6-1.5v-2.4C-1282.2 1136.1-1282.7 1135.6-1283.8 1135.6z"/>
<path d="M-1273.9 1135.7c-0.8 0.4-1.5 0.8-2.3 1.2v5.5h-2.1v-8.5h1.8l0.1 0.9c0.5-0.3 1.5-0.9 2.2-1.1L-1273.9 1135.7z"/>
<path d="M-1265.6 1139.6c0 1.9-0.8 3-2.8 3 -0.8 0-1.6-0.1-2.3-0.2v3.5l-2.1 0.3V1134h1.7l0.2 0.7c0.8-0.5 1.6-0.9 2.7-0.9 1.7 0 2.6 1 2.6 2.9V1139.6L-1265.6 1139.6zM-1270.6 1140.5c0.6 0.1 1.3 0.2 1.9 0.2 0.8 0 1.1-0.4 1.1-1.1v-3c0-0.7-0.3-1.1-1-1.1 -0.7 0-1.4 0.3-1.9 0.8L-1270.6 1140.5 -1270.6 1140.5z"/>
</g>
<g class="svg-bg-line">
<rect x="-1268" y="1145" width="4.3" height="1"/>
<rect x="-1338" y="1145" width="63" height="1"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -0,0 +1,4 @@
<svg id="svg-download" xmlns="http://www.w3.org/2000/svg" viewBox="-345 275 28 28" style="enable-background:new -345 275 28 28;">
<path d="M-319,275h-24c-1.1,0-2,0.9-2,2v24c0,1.1,0.9,2,2,2h24c1.1,0,2-0.9,2-2v-24C-317,275.9-317.9,275-319,275z M-331.2,297.9
l-6.8-5.6l2-2.4l3.2,2.6V282h3.2v10.5l3.2-2.6l2,2.4L-331.2,297.9z"/>
</svg>

After

Width:  |  Height:  |  Size: 333 B

View File

@ -0,0 +1,9 @@
<svg id="svg-download" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" style="enable-background:new 0 0 14 14;">
<style type="text/css">
</style>
<path class="" d="M13,0H1C0.5,0,0,0.5,0,1v12c0,0.5,0.5,1,1,1h4.7c0,0,0,0,0-0.1c0-0.2,0-0.6,0-1.1c-1.8,0.4-2.2-0.9-2.2-0.9
c-0.3-0.8-0.7-1-0.7-1c-0.6-0.4,0-0.4,0-0.4c0.7,0,1,0.7,1,0.7c0.6,1,1.5,0.7,1.9,0.5c0.1-0.4,0.2-0.7,0.4-0.9c-1.5-0.2-3-0.7-3-3.2
c0-0.7,0.3-1.3,0.7-1.8C3.7,5.8,3.5,5.1,3.9,4.2c0,0,0.6-0.2,1.8,0.7c0.5-0.1,1.1-0.2,1.6-0.2c0.6,0,1.1,0.1,1.6,0.2
c1.3-0.8,1.8-0.7,1.8-0.7c0.4,0.9,0.1,1.6,0.1,1.7c0.4,0.5,0.7,1,0.7,1.8c0,2.5-1.5,3.1-3,3.2C8.7,11.1,9,11.5,9,12.1
c0,0.9,0,1.6,0,1.8c0,0,0,0,0,0.1h4c0.5,0,1-0.5,1-1V1C14,0.5,13.5,0,13,0z"/>
</svg>

After

Width:  |  Height:  |  Size: 735 B

View File

@ -0,0 +1,7 @@
<svg class="svg-logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Isolation_Mode" x="0px" y="0px" viewBox="-344 273 29.4 32" xml:space="preserve" enable-background="new -344 273 29.4 32">
<g>
<polygon points="-326.2 296.7 -321.4 294.1 -321.4 275.8 -326.2 273 -326.2 286.6 -332.4 286.6 -332.4 281.3 -337.3 283.9 -337.3 302.2 -332.4 305 -332.4 291.4 -326.2 291.4 "/>
<polygon points="-319.1 277.1 -319.1 295.6 -326.2 299.5 -326.2 305 -314.6 298.3 -314.6 279.7 "/>
<polygon points="-332.4 273 -344 279.7 -344 298.3 -339.5 300.9 -339.5 282.4 -332.4 278.6 "/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 635 B

View File

@ -2,6 +2,7 @@
footer {
padding: 80px 0;
margin-top: 20px;
background: @black url(/images/footer_background.png) center center;
text-align: center;
color: @white;
@ -94,8 +95,23 @@ position: relative; //z-index needs position!
}
} //contact link
} //footer
.edit-page-link{
position: absolute;
top: -120px;
right: 15px;
z-index: 9999;
a{
text-transform: uppercase;
color: @black;
font-size: 13px;
}
}
@media (max-width: 480px){
.edit-page-link{
top: -90px;
}
}

View File

@ -0,0 +1,166 @@
//
// Header
// - Project Specific
// - edits should be made here
// --------------------------------------------------
#header {
width: 100%;
// font-size: 15px;
text-transform: uppercase;
height: @header-height;
position: fixed;
top: 0;
left: 0;
background-color: @white;
z-index: 1001;
&.docs {
background: @gray-background;
}
.navbar-toggle{
margin-right: 15px;
}
.navbar-brand {
float: left;
.logo{
padding-left: 36px;
font-size: 0;
line-height: 77px;
width: @project-logo-width;
padding-left: 0;
.img-retina('/images/logo-header-docs.png', @project-logo-width, @project-logo-height, no-repeat);
background-position: 0 center;
&:hover{
opacity: .6;
}
}
.by-hashicorp{
color: @project-link-color;
svg{
path,
polygon,
rect{
fill: @project-link-color;
}
}
&:hover{
color: black;
svg{
path,
polygon,
rect{
fill: black;
}
}
}
.svg-wrap{
font-weight: 400;
}
}
}
.buttons{
display: none;
margin-top: 2px; //baseline everything
.navigation-links{
float: right;
}
}
.main-links,
.external-links {
li > a {
.project-a-style();
}
}
.main-links {
margin-right: 0;
li {
&.pill{
background-color: #48b4fb;
border-radius: 25px;
padding: 5px 2px;
line-height: 26px;
margin-top: 22px;
a{
color: #FFF;
line-height: 24px;
}
}
> a {
color: @project-link-color;
&:hover{
color: @black;
}
}
}
}
}
@media (min-width: 768px) {
.navbar-toggle{
display: none;
}
#header{
.buttons{
display: block;
}
}
}
@media (max-width: 768px) {
.navbar-header{
margin-left: 15px;
}
}
@media (max-width: 480px) {
#header {
height: auto;
.navbar-toggle{
padding-top: 7px;
}
.by-hashicorp{
margin-top: 2px;
}
.navbar-brand {
.logo{
width: @project-logo-width * .75;
background-size: (@project-logo-width * .75) (@project-logo-height * .75);
//background-position: 0 45%;
}
}
}
}
@media (max-width: 320px) {
#header {
.by-hashicorp{
margin-left: -2px;
}
.navbar-brand {
.logo{
width: 40px;
}
}
}
}

View File

@ -324,10 +324,6 @@
background-position: center center !important;
}
.wrapper {
margin-top: 128px;
}
.sidebar {
ul {
@ -450,3 +446,14 @@
}
} // < 767
@media (max-width: 480px){
#header{
height: 60px;
}
.wrapper{
margin-top: 60px;
}
}

View File

@ -72,6 +72,25 @@
will-change: transform;
}
.transition(@transition) {
-webkit-transition: @transition;
-o-transition: @transition;
transition: @transition;
}
.translate3d (@x, @y: 0, @z: 0) {
-webkit-transform: translate3d(@x, @y, @z);
-moz-transform: translate3d(@x, @y, @z);
-ms-transform: translate3d(@x, @y, @z);
-o-transform: translate3d(@x, @y, @z);
}
.clearfix{
zoom:1;
&:before, &:after{ content:""; display:table; }
&:after{ clear: both; }
}
.inner-bg-large {
background-image: #c1b4d5; /* Old browsers */
background-image: url(/images/sidebar_background_inner.png), -moz-linear-gradient(45deg, #c1b4d5 0%, #98d3f8 100%); /* FF3.6+ */

View File

@ -0,0 +1,43 @@
//
// Sidebar
// - Project Specific
// - Make sidebar edits here
// --------------------------------------------------
#mobile-nav {
.mobile-nav-nav {
width: 100%;
text-align: center;
// Links
//----------------
//
li{
float: none;
&.pill{
background-color: #48b4fb;
border-radius: 25px;
padding: 5px 2px;
line-height: 26px;
margin: 10px 10px 10px 10px;
&:focus,
&:hover{
a{
background-color: transparent;
}
}
a{
color: @white;
line-height: 24px;
}
}
a{
.anti-alias();
font-size: 13px;
}
}
}
}

View File

@ -1,74 +0,0 @@
// roll your own nav
nav {
width: 100%;
font-size: 15px;
text-transform: uppercase;
.museo-sans-light;
color: @medium-gray-text;
height: 80px;
position: fixed;
top: 0;
left: 0;
background-color: @white;
z-index: 9999999999;
&.docs {
background: @gray-background;
}
.vagrant-logo {
display: block;
text-indent: -999999px;
background: url(/images/logo_vagrant.png) no-repeat 0 0;
height: 70px;
width: 275px;
float: left;
margin: 10px 20px;
}
.vagrant-docs-logo {
display: block;
text-indent: -999999px;
background: url(/images/logo_docs.png) no-repeat 0 0;
height: 70px;
width: 350px;
float: left;
margin: 10px 20px;
}
ul {
margin: 25px 20px;
li {
display: inline;
margin-left: 15px;
}
li.pill {
background-color: #48b4fb;
border-radius: 50px;
color: #FFF;
padding: 10px 18px;
}
}
.active-nav {
color: @blue;
}
.contact {
&:hover {
background-color: @light-gray-background;
padding: 10px;
margin-right: -10px;
margin-left: 5px;
.rounded;
}
&:active {
background-color: darken(@light-gray-background, 5%);
}
}
}

View File

@ -0,0 +1,351 @@
//
// Hashicorp nav
// --------------------------------------------------
.nav{
float: left;
margin: 0;
padding: 0;
list-style: none;
li{
display: block;
float: left;
a{
position: relative;
display: block;
}
}
}
.navigation {
color: black;
text-rendering: optimizeLegibility;
transition: all 1s ease;
&.white{
.navbar-brand {
.logo {
color: white;
}
}
.main-links,
.external-links {
li > a {
&:hover{
opacity: 1;
}
}
}
}
.navbar-toggle{
height: @header-height;
margin: 0;
position: relative;
float: right;
padding: 9px 10px;
background-color: transparent;
background-image: none;
border: none;
.bar{
display: block;
width: 22px;
height: 2px;
margin-top: 4px;
background-color: @project-link-color;
}
}
.external-links {
&.white{
svg path{
fill: @white;
}
}
li {
position: relative;
svg path{
.transition( all 300ms ease-in );
}
&:hover{
svg path{
.transition( all 300ms ease-in );
}
}
&.download{
margin-right: 10px;
}
> a {
padding-left: 12px !important;
svg{
position: absolute;
left: -12px;
top: 50%;
margin-top: -7px;
width: 14px;
height: 14px;
}
}
}
}
.main-links{
margin-right: @nav-margin-right * 2;
}
.main-links,
.external-links {
&.white{
li > a {
color: white;
}
}
li > a {
.hashi-a-style();
margin: 0 10px;
padding-top: 1px;
line-height: @header-height;
.project-a-style();
}
}
.nav > li > a:hover, .nav > li > a:focus {
background-color: transparent;
.transition( all 300ms ease-in );
}
}
.navbar-brand {
display: block;
height: @header-height;
padding: 0;
margin: 0 10px 0 0;
.logo{
display: inline-block;
height: @header-height;
vertical-align:top;
padding: 0;
line-height: @header-height;
background-position: 0 center;
.transition(all 300ms ease-in);
&:hover{
.transition(all 300ms ease-in);
text-decoration: none;
}
}
}
.navbar-toggle{
&.white{
.icon-bar{
border: 1px solid white;
}
}
}
.by-hashicorp{
display: inline-block;
vertical-align:top;
height: @header-height;
margin-left: -3px;
padding-top: 2px;
color: black;
line-height: @header-height;
font-family: @header-font-family;
font-weight: 600;
font-size: 0;
letter-spacing: 0;
text-decoration: none;
text-transform: none;
&.white{
color: white;
font-weight: 300;
svg{
path,
polygon,
rect{
fill: white;
}
}
}
&:focus,
&:hover{
text-decoration: none;
}
&:hover{
.transition(all 300ms ease-in);
}
.svg-wrap{
font-size: 13px;
.transition(all 300ms ease-in);
}
svg{
&.svg-by{
width: @by-hashicorp-width;
height: @by-hashicorp-height;
margin-bottom: -4px;
margin-left: 4px;
}
&.svg-logo{
width: 16px;
height: 16px;
margin-bottom: -3px;
margin-left: 4px;
}
path,
polygon,
rect{
fill: black;
.transition(all 300ms ease-in);
&:hover{
.transition(all 300ms ease-in);
}
}
}
}
.hashicorp-project{
display: inline-block;
height: 30px;
line-height: 30px;
text-decoration: none;
font-size: 14px;
color: @black;
font-weight: 600;
&.white{
color: white;
svg{
path,
polygon{
fill: white;
}
line{
stroke: white;
}
}
}
&:focus{
text-decoration: none;
}
&:hover{
text-decoration: none;
svg{
&.svg-by{
line{
stroke: @purple;
}
}
}
}
span{
margin-right: 4px;
font-family: @header-font-family;
font-weight: 500;
}
span,
svg{
display: inline-block;
}
svg{
&.svg-by{
width: @by-hashicorp-width;
height: @by-hashicorp-height;
margin-bottom: -4px;
margin-left: -3px;
}
&.svg-logo{
width: 30px;
height: 30px;
margin-bottom: -10px;
margin-left: -1px;
}
path,
line{
fill: @black;
.transition(all 300ms ease-in);
&:hover{
.transition(all 300ms ease-in);
}
}
}
}
@media (max-width: 992px) {
.navigation {
> .container{
width: 100%;
}
}
}
@media (max-width: 768px) {
.navigation {
.main-links{
margin-right: 0;
}
}
}
@media (max-width: 480px) {
#header {
.navbar-toggle{
padding-top: 10px;
height: @header-mobile-height;
}
.navbar-brand {
height: @header-mobile-height;
.logo{
height: @header-mobile-height;
line-height: @header-mobile-height;
}
.by-hashicorp{
height: @header-mobile-height;
line-height: @header-mobile-height;
padding-top: 0;
}
}
.main-links,
.external-links {
li > a {
line-height: @header-mobile-height;
}
}
}
}
@media (min-width: 768px){
.navbar-toggle {
display: none;
}
}

View File

@ -0,0 +1,293 @@
//
// Hashicorp mobile-nav
// - Shared throughout projects
// - Edits should not be made here
// --------------------------------------------------
// Base variables
// --------------------------------------------------
@screen-tablet: 768px;
@gray-darker: #212121; // #212121 - text
@gray-secondary: #757575; // #757575 - secondary text, icons
@gray: #bdbdbd; // #bdbdbd - hint text
@gray-light: #e0e0e0; // #e0e0e0 - divider
@gray-lighter: #f5f5f5; // #f5f5f5 - background
@link-color: @gray-darker;
@link-bg: transparent;
@link-hover-color: @gray-lighter;
@link-hover-bg: @gray-lighter;
@link-active-color: @gray-darker;
@link-active-bg: @gray-light;
@link-disabled-color: @gray-light;
@link-disabled-bg: transparent;
/* -- mobile-nav style ------------------------------- */
// mobile-nav variables
// --------------------------------------------------
@zindex-mobile-nav-fixed: 1035;
@mobile-nav-desktop-width: 280px;
@mobile-nav-width: 240px;
@mobile-nav-padding: 16px;
@mobile-nav-divider: @mobile-nav-padding/2;
@mobile-nav-icon-width: 40px;
@mobile-nav-icon-height: 20px;
.mobile-nav-nav-base {
text-align: center;
&:last-child{
border-bottom: none;
}
li > a {
background-color: @link-bg;
}
li:hover > a {
background-color: @link-hover-bg;
}
li:focus > a, li > a:focus {
background-color: @link-bg;
}
> .open > a {
&,
&:hover,
&:focus {
background-color: @link-hover-bg;
}
}
> .active > a {
&,
&:hover,
&:focus {
background-color: @link-active-bg;
}
}
> .disabled > a {
&,
&:hover,
&:focus {
background-color: @link-disabled-bg;
}
}
// Dropdown menu items
> .dropdown {
// Remove background color from open dropdown
> .dropdown-menu {
background-color: @link-hover-bg;
> li > a {
&:focus {
background-color: @link-hover-bg;
}
&:hover {
background-color: @link-hover-bg;
}
}
> .active > a {
&,
&:hover,
&:focus {
color: @link-active-color;
background-color: @link-active-bg;
}
}
}
}
}
//
// mobile-nav
// --------------------------------------------------
// mobile-nav Elements
//
// Basic style of mobile-nav elements
.mobile-nav {
position: relative;
display: block;
min-height: 100%;
overflow-y: auto;
overflow-x: hidden;
border: none;
.transition(all 0.5s cubic-bezier(0.55, 0, 0.1, 1));
.clearfix();
background-color: @white;
ul{
padding-left: 0;
list-style-type: none;
}
.mobile-nav-divider, .divider {
width: 80%;
height: 1px;
margin: 8px auto;
background-color: lighten(@gray, 20%);
}
// mobile-nav heading
//----------------
.mobile-nav-header {
position: relative;
margin-bottom: @mobile-nav-padding;
.transition(all .2s ease-in-out);
}
.mobile-nav-image {
padding-top: 24px;
img {
display: block;
margin: 0 auto;
}
}
// mobile-nav icons
//----------------
.mobile-nav-icon {
display: inline-block;
height: @mobile-nav-icon-height;
margin-right: @mobile-nav-divider;
text-align: left;
font-size: @mobile-nav-icon-height;
vertical-align: middle;
&:before, &:after {
vertical-align: middle;
}
}
.mobile-nav-nav {
margin: 0;
padding: 0;
.mobile-nav-nav-base();
// Links
//----------------
li {
position: relative;
list-style-type: none;
text-align: center;
a {
position: relative;
cursor: pointer;
user-select: none;
.hashi-a-style-core();
svg{
top: 2px;
width: 14px;
height: 14px;
margin-bottom: -2px;
margin-right: 4px;
}
}
}
}
}
// mobile-nav toggling
//
// Hide mobile-nav
.mobile-nav {
width: 0;
.translate3d(-@mobile-nav-desktop-width, 0, 0);
&.open {
min-width: @mobile-nav-desktop-width;
width: @mobile-nav-desktop-width;
.translate3d(0, 0, 0);
}
}
// mobile-nav positions: fix the left/right mobile-navs
.mobile-nav-fixed-left,
.mobile-nav-fixed-right,
.mobile-nav-stacked {
position: fixed;
top: 0;
bottom: 0;
z-index: @zindex-mobile-nav-fixed;
}
.mobile-nav-stacked {
left: 0;
}
.mobile-nav-fixed-left {
left: 0;
box-shadow: 2px 0px 25px rgba(0,0,0,0.15);
-webkit-box-shadow: 2px 0px 25px rgba(0,0,0,0.15);
}
.mobile-nav-fixed-right {
right: 0;
box-shadow: 0px 2px 25px rgba(0,0,0,0.15);
-webkit-box-shadow: 0px 2px 25px rgba(0,0,0,0.15);
.translate3d(@mobile-nav-desktop-width, 0, 0);
&.open {
.translate3d(0, 0, 0);
}
.icon-material-mobile-nav-arrow:before {
content: "\e614"; // icon-material-arrow-forward
}
}
// mobile-nav size
//
// Change size of mobile-nav and mobile-nav elements on small screens
@media (max-width: @screen-tablet) {
.mobile-nav.open {
min-width: @mobile-nav-width;
width: @mobile-nav-width;
}
.mobile-nav .mobile-nav-header {
//height: @mobile-nav-width * 9/16; // 16:9 header dimension
}
.mobile-nav .mobile-nav-image {
/* img {
width: @mobile-nav-width/4 - @mobile-nav-padding;
height: @mobile-nav-width/4 - @mobile-nav-padding;
} */
}
}
.mobile-nav-overlay {
visibility: hidden;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: 0;
background: @white;
z-index: @zindex-mobile-nav-fixed - 1;
-webkit-transition: visibility 0 linear .4s,opacity .4s cubic-bezier(.4,0,.2,1);
-moz-transition: visibility 0 linear .4s,opacity .4s cubic-bezier(.4,0,.2,1);
transition: visibility 0 linear .4s,opacity .4s cubic-bezier(.4,0,.2,1);
-webkit-transform: translateZ(0);
-moz-transform: translateZ(0);
-ms-transform: translateZ(0);
-o-transform: translateZ(0);
transform: translateZ(0);
}
.mobile-nav-overlay.active {
opacity: 0.3;
visibility: visible;
-webkit-transition-delay: 0;
-moz-transition-delay: 0;
transition-delay: 0;
}

View File

@ -0,0 +1,89 @@
//
// Hashicorp Nav (header/footer) Utiliy Vars and Mixins
//
// Notes:
// - Include this in Application.scss before header and feature-footer
// - Open Sans Google (Semibold - 600) font needs to be included if not already
// --------------------------------------------------
// Variables
@font-family-open-sans: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
@header-font-family: @font-family-open-sans;
@header-font-weight: 600; // semi-bold
@header-height: 80px;
@header-mobile-height: 60px;
@by-hashicorp-width: 74px;
@by-hashicorp-height: 16px;
@nav-margin-right: 12px;
// Mixins
.hashi-a-style-core{
font-family: @header-font-family;
font-weight: @header-font-weight;
font-size: 14px;
//letter-spacing: 0.0625em;
}
.hashi-a-style{
margin: 0 15px;
padding: 0;
line-height: 22px;
.hashi-a-style-core();
.transition( all 0.3s ease );
&:hover{
.transition( all 0.3s ease );
background-color: transparent;
}
}
.img-retina(@image, @width, @height, @repeat: no-repeat) {
@filename : ~`/(.*)\.(jpg|jpeg|png|gif)/.exec(@{image})[1]`;
@extension : ~`/(.*)\.(jpg|jpeg|png|gif)/.exec(@{image})[2]`;
background-image: ~`"url(@{filename}.@{extension})"`;
background-repeat: @repeat;
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min--moz-device-pixel-ratio: 2),
only screen and ( -o-min-device-pixel-ratio: 2/1),
only screen and ( min-device-pixel-ratio: 2),
only screen and ( min-resolution: 192dpi),
only screen and ( min-resolution: 2dppx) {
/* on retina, use image that's scaled by 2 */
background-image: ~`"url(@{filename}@2x.@{extension})"`;
background-size: @width @height;
}
}
//
// -------------------------
.anti-alias() {
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
.open-light() {
font-family: @font-family-open-sans;
font-weight: 300;
}
.open() {
font-family: @font-family-open-sans;
font-weight: 400;
}
.open-sb() {
font-family: @font-family-open-sans;
font-weight: 600;
}
.open-bold() {
font-family: @font-family-open-sans;
font-weight: 700;
}
.bez-1-transition{
.transition( all 300ms ease-in-out );
}

View File

@ -0,0 +1,32 @@
//
// Mixins Specific to project
// - make edits to mixins here
// --------------------------------------------------
// Variables
@project-logo-width: 231px;
@project-logo-height: 46px;
@project-logo-pad-left: 0px;
@project-link-color: #8d9ba8;
// Mixins
.project-a-style{
font-weight: 600;
font-size: 14px;
letter-spacing: 0;
text-transform: none;
color: @project-link-color;
.anti-alias();
&:hover{
color: @black;
}
}
.project-footer-a-style{
line-height: 30px;
&:hover{
opacity: .5;
}
}

View File

@ -8,9 +8,17 @@ v a g r a n t u p
@import '_type';
@import '_mixins';
@import '_base';
@import '_nav';
@import 'hashicorp-shared/_hashicorp-utility';
@import 'hashicorp-shared/_project-utility';
@import 'hashicorp-shared/_hashicorp-header';
@import 'hashicorp-shared/_hashicorp-mobile-nav';
// @import '_nav';
@import '_header';
@import '_components';
@import '_sidebar';
@import '_mobile-nav';
@import '_pages';
@import '_footer';
@import '_media-queries';

View File

@ -3,7 +3,7 @@ source 'https://rubygems.org'
ruby "2.2.2"
gem "builder", "~> 3.2.2"
gem "less", "~> 2.2.2"
gem "less", "~> 2.6.0"
gem "middleman", "~> 3.1.5"
gem "middleman-blog", "~> 3.3.0"
gem "middleman-minify-html", "~> 3.1.1"

View File

@ -34,8 +34,8 @@ GEM
hike (1.2.3)
i18n (0.6.11)
kramdown (1.9.0)
less (2.2.2)
commonjs (~> 0.2.6)
less (2.6.0)
commonjs (~> 0.2.7)
libv8 (3.16.14.13)
listen (1.3.1)
rb-fsevent (>= 0.9.3)
@ -123,7 +123,7 @@ PLATFORMS
DEPENDENCIES
builder (~> 3.2.2)
highline (~> 1.6.15)
less (~> 2.2.2)
less (~> 2.6.0)
middleman (~> 3.1.5)
middleman-blog (~> 3.3.0)
middleman-minify-html (~> 3.1.1)
@ -133,3 +133,6 @@ DEPENDENCIES
redcarpet (~> 3.0.0)
therubyracer (~> 0.12.0)
thin (~> 1.5.0)
BUNDLED WITH
1.10.6

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

@ -0,0 +1,50 @@
(function(){
Sidebar = Base.extend({
$body: null,
$overlay: null,
$sidebar: null,
$sidebarHeader: null,
$sidebarImg: null,
$toggleButton: null,
constructor: function(){
this.$body = $('body');
this.$overlay = $('.mobile-nav-overlay');
this.$sidebar = $('#mobile-nav');
this.$sidebarHeader = $('#mobile-nav .mobile-nav-header');
this.$toggleButton = $('.navbar-toggle');
this.sidebarImg = this.$sidebarHeader.css('background-image');
this.addEventListeners();
},
addEventListeners: function(){
var _this = this;
_this.$toggleButton.on('click', function() {
_this.$sidebar.toggleClass('open');
if ((_this.$sidebar.hasClass('mobile-nav-fixed-left') || _this.$sidebar.hasClass('mobile-nav-fixed-right')) && _this.$sidebar.hasClass('open')) {
_this.$overlay.addClass('active');
_this.$body.css('overflow', 'hidden');
} else {
_this.$overlay.removeClass('active');
_this.$body.css('overflow', 'auto');
}
return false;
});
_this.$overlay.on('click', function() {
$(this).removeClass('active');
_this.$body.css('overflow', 'auto');
_this.$sidebar.removeClass('open');
});
}
});
window.Sidebar = Sidebar;
})();

View File

@ -0,0 +1,145 @@
/*
Based on Base.js 1.1a (c) 2006-2010, Dean Edwards
Updated to pass JSHint and converted into a module by Kenneth Powers
License: http://www.opensource.org/licenses/mit-license.php
*/
/*global define:true module:true*/
/*jshint eqeqeq:true*/
(function (name, global, definition) {
if (typeof module !== 'undefined') {
module.exports = definition();
} else if (typeof define !== 'undefined' && typeof define.amd === 'object') {
define(definition);
} else {
global[name] = definition();
}
})('Base', this, function () {
// Base Object
var Base = function () {};
// Implementation
Base.extend = function (_instance, _static) { // subclass
var extend = Base.prototype.extend;
// build the prototype
Base._prototyping = true;
var proto = new this();
extend.call(proto, _instance);
proto.base = function () {
// call this method from any other method to invoke that method's ancestor
};
delete Base._prototyping;
// create the wrapper for the constructor function
//var constructor = proto.constructor.valueOf(); //-dean
var constructor = proto.constructor;
var klass = proto.constructor = function () {
if (!Base._prototyping) {
if (this._constructing || this.constructor === klass) { // instantiation
this._constructing = true;
constructor.apply(this, arguments);
delete this._constructing;
} else if (arguments[0] !== null) { // casting
return (arguments[0].extend || extend).call(arguments[0], proto);
}
}
};
// build the class interface
klass.ancestor = this;
klass.extend = this.extend;
klass.forEach = this.forEach;
klass.implement = this.implement;
klass.prototype = proto;
klass.toString = this.toString;
klass.valueOf = function (type) {
return (type === 'object') ? klass : constructor.valueOf();
};
extend.call(klass, _static);
// class initialization
if (typeof klass.init === 'function') klass.init();
return klass;
};
Base.prototype = {
extend: function (source, value) {
if (arguments.length > 1) { // extending with a name/value pair
var ancestor = this[source];
if (ancestor && (typeof value === 'function') && // overriding a method?
// the valueOf() comparison is to avoid circular references
(!ancestor.valueOf || ancestor.valueOf() !== value.valueOf()) && /\bbase\b/.test(value)) {
// get the underlying method
var method = value.valueOf();
// override
value = function () {
var previous = this.base || Base.prototype.base;
this.base = ancestor;
var returnValue = method.apply(this, arguments);
this.base = previous;
return returnValue;
};
// point to the underlying method
value.valueOf = function (type) {
return (type === 'object') ? value : method;
};
value.toString = Base.toString;
}
this[source] = value;
} else if (source) { // extending with an object literal
var extend = Base.prototype.extend;
// if this object has a customized extend method then use it
if (!Base._prototyping && typeof this !== 'function') {
extend = this.extend || extend;
}
var proto = {
toSource: null
};
// do the "toString" and other methods manually
var hidden = ['constructor', 'toString', 'valueOf'];
// if we are prototyping then include the constructor
for (var i = Base._prototyping ? 0 : 1; i < hidden.length; i++) {
var h = hidden[i];
if (source[h] !== proto[h])
extend.call(this, h, source[h]);
}
// copy each of the source object's properties to this object
for (var key in source) {
if (!proto[key]) extend.call(this, key, source[key]);
}
}
return this;
}
};
// initialize
Base = Base.extend({
constructor: function () {
this.extend(arguments[0]);
}
}, {
ancestor: Object,
version: '1.1',
forEach: function (object, block, context) {
for (var key in object) {
if (this.prototype[key] === undefined) {
block.call(context, object[key], key, object);
}
}
},
implement: function () {
for (var i = 0; i < arguments.length; i++) {
if (typeof arguments[i] === 'function') {
// if it's a function, call it
arguments[i](this.prototype);
} else {
// add the interface using the extend method
this.prototype.extend(arguments[i]);
}
}
return this;
},
toString: function () {
return String(this.valueOf());
}
});
// Return Base implementation
return Base;
});

View File

@ -1,58 +1,58 @@
// add dropshadow to nav on scroll
$(document).ready(function(){
$(document).scroll(function() {
var top = $(document).scrollTop();
if (top > 0) $('nav').addClass("drop-shadow");
if (top === 0) $('nav').removeClass("drop-shadow");
});
$(document).scroll(function() {
var top = $(document).scrollTop();
if (top > 0) $('#header').addClass("drop-shadow");
if (top === 0) $('header').removeClass("drop-shadow");
});
});
// open/close documentation side nav on small screens
$(document).ready(function(){
$(".toggle").click(function() {
$(".sidebar-nav ul").slideToggle('slow');
});
$(".toggle").click(function() {
$(".sidebar-nav ul").slideToggle('slow');
});
});
// Redirect to the proper checkout screen for quantity
$(document).ready(function() {
var selectedProduct = "";
var selectedProduct = "";
function setSelectedProduct() {
selectedProduct = $("input[name=product]:checked").val();
function setSelectedProduct() {
selectedProduct = $("input[name=product]:checked").val();
}
$(".buy-form input[name=product]").change(function() {
setSelectedProduct();
var text = selectedProduct.charAt(0).toUpperCase() + selectedProduct.slice(1);
$("#buy-fusion").text("Buy " + text + " Licenses Now");
});
$("#buy-fusion").click(function() {
var seats = parseInt($("#seats").val(), 10);
if (isNaN(seats)) {
alert("The number of seats you want to purchase must be a number.");
return;
} else if (seats <= 0) {
alert("The number of seats you want must be greater than zero.");
return;
}
$(".buy-form input[name=product]").change(function() {
setSelectedProduct();
var text = selectedProduct.charAt(0).toUpperCase() + selectedProduct.slice(1);
$("#buy-fusion").text("Buy " + text + " Licenses Now");
});
$("#buy-fusion").click(function() {
var seats = parseInt($("#seats").val(), 10);
if (isNaN(seats)) {
alert("The number of seats you want to purchase must be a number.");
return;
} else if (seats <= 0) {
alert("The number of seats you want must be greater than zero.");
return;
}
var productId = "";
if (selectedProduct == "fusion") {
productId = "279661674";
} else if (selectedProduct == "workstation") {
productId = "302167489";
} else {
alert("Unknown product selected. Please refresh and try again.");
return;
}
window.location = "http://shopify.hashicorp.com/cart/" + productId + ":" + seats;
});
if ($("#buy-fusion").length > 0) {
setSelectedProduct();
var productId = "";
if (selectedProduct == "fusion") {
productId = "279661674";
} else if (selectedProduct == "workstation") {
productId = "302167489";
} else {
alert("Unknown product selected. Please refresh and try again.");
return;
}
window.location = "http://shopify.hashicorp.com/cart/" + productId + ":" + seats;
});
if ($("#buy-fusion").length > 0) {
setSelectedProduct();
}
});

View File

@ -0,0 +1,23 @@
<!-- Overlay for fixed mobile-nav -->
<div class="mobile-nav-overlay"></div>
<!-- Material mobile-nav -->
<aside id="mobile-nav" class="mobile-nav mobile-nav-default mobile-nav-fixed-right" role="navigation">
<!-- mobile-nav header -->
<div class="mobile-nav-header header-cover">
<!-- mobile-nav brand image -->
<div class="mobile-nav-image">
<img src="<%= image_path('logo-header@2x.png') %>" width="169px" height="46px">
</div>
</div>
<!-- mobile-nav navigation -->
<ul class="main nav mobile-nav-nav">
<li class="pill"><a href="/vmware">VMware Integration</a></li>
<li><a href="/downloads.html">Downloads</a></li>
<li><a href="https://atlas.hashicorp.com/boxes/search">Boxes</a></li>
<li><a href="https://docs.vagrantup.com/">Documentation</a></li>
<li><a href="/blog.html">Blog</a></li>
<li><a href="/about.html">About</a></li>
</ul>
</aside>

View File

@ -20,7 +20,7 @@
<%= javascript_include_tag "vagrantup" %>
<!-- fonts -->
<link href='//fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Inconsolata|Open+Sans:300,600' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="//use.typekit.net/xfs6zus.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
@ -32,24 +32,40 @@
<!-- wrap everything -->
<div class="wrapper">
<!-- nav -->
<nav>
<!-- vagrant logo -->
<a class="vagrant-logo" href="/">Vagrant</a>
<!-- nav -->
<ul class="pull-right unstyled">
<li class="pill"><a href="/vmware">VMware Integration</a></li>
<li><a href="/downloads.html">Downloads</a></li>
<li><a href="https://atlas.hashicorp.com/boxes/search">Boxes</a></li>
<li><a href="https://docs.vagrantup.com/">Documentation</a></li>
<li><a href="/blog.html">Blog</a></li>
<li><a href="/about.html">About</a></li>
</ul>
</nav>
<!-- nav -->
<div id="header" class="navigation">
<div class="container-fluid">
<!-- vagrant logo -->
<div class="navbar-header">
<div class="navbar-brand">
<a class="logo" href="/">Vagrant</a>
<a class="by-hashicorp" href="https://hashicorp.com/"><span class="svg-wrap">by</span><%= partial "layouts/svg/svg-by-hashicorp" %><%= partial "layouts/svg/svg-hashicorp-logo" %>Hashicorp</a>
</div>
<button class="navbar-toggle" type="button">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</button>
</div>
<div class="buttons">
<nav class="navigation-links" role="navigation">
<ul class="main-links nav navbar-nav">
<li class="pill"><a href="/vmware">VMware Integration</a></li>
<li><a href="/downloads.html">Downloads</a></li>
<li><a href="https://atlas.hashicorp.com/boxes/search">Boxes</a></li>
<li><a href="https://docs.vagrantup.com/">Docs</a></li>
<li><a href="/blog.html">Blog</a></li>
<li><a href="/about.html">About</a></li>
</ul>
</nav>
</div>
</div>
</div>
<%= yield %>
<%= partial "layouts/mobile_nav" %>
<!-- footer -->
<footer>
<div class="container">
@ -98,10 +114,15 @@
<!-- close .wrapper -->
</div>
<%= javascript_include_tag "lib/Base" %>
<%= javascript_include_tag "Sidebar" %>
<!-- load scripts -->
<!-- load full-width image into any div with class="big-background -->
<script>
$(".big-background").backstretch("assets/photos/full_width.jpg");
$(".big-background").backstretch("assets/photos/full_width.jpg");
new Sidebar();
</script>
<!-- Google analytics -->
@ -139,4 +160,3 @@
</script>
</body>
</html>

View File

@ -0,0 +1,17 @@
<svg class="svg-by" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="-1337.4 1130.1 73.8 16.1" xml:space="preserve" enable-background="new -1337.4 1130.1 73.8 16.1">
<g>
<path d="M-1329.6 1142.4v-4.9h-4.3v4.9h-2.2v-11.6h2.2v4.8h4.3v-4.8h2.2v11.6H-1329.6z"/>
<path d="M-1318.8 1142.4h-1.7l-0.2-0.6c-0.8 0.5-1.7 0.8-2.5 0.8 -1.6 0-2.2-1.1-2.2-2.5 0-1.7 0.8-2.4 2.5-2.4h2v-0.9c0-0.9-0.3-1.3-1.6-1.3 -0.8 0-1.6 0.1-2.4 0.3l-0.3-1.6c0.8-0.2 2-0.4 2.9-0.4 2.7 0 3.5 0.9 3.5 3.1V1142.4zM-1321 1139.2h-1.6c-0.7 0-0.9 0.2-0.9 0.8 0 0.6 0.2 0.9 0.9 0.9 0.6 0 1.2-0.2 1.6-0.4V1139.2z"/>
<path d="M-1314.2 1142.6c-0.9 0-2.1-0.2-2.9-0.5l0.3-1.6c0.7 0.2 1.7 0.4 2.5 0.4 0.9 0 1.1-0.2 1.1-0.9 0-0.5-0.1-0.8-1.5-1.1 -2.1-0.5-2.3-1-2.3-2.7s0.8-2.5 3.2-2.5c0.8 0 1.8 0.1 2.5 0.3l-0.2 1.7c-0.6-0.1-1.7-0.2-2.3-0.2 -0.9 0-1.1 0.2-1.1 0.7 0 0.7 0.1 0.7 1.2 1 2.4 0.6 2.6 0.9 2.6 2.7C-1311.1 1141.6-1311.6 1142.6-1314.2 1142.6z"/>
<path d="M-1304.3 1142.4v-5.9c0-0.5-0.2-0.7-0.7-0.7s-1.4 0.3-2.2 0.7v5.9h-2.1v-12l2.1-0.3v4.4c0.9-0.5 2.2-0.8 3.1-0.8 1.4 0 1.9 1 1.9 2.5v6.2H-1304.3L-1304.3 1142.4z"/>
<path d="M-1300.1 1132.7v-2.5h2.1v2.5H-1300.1zM-1300.1 1142.4v-8.5h2.1v8.5H-1300.1z"/>
<path d="M-1296 1134c0-2.1 1.2-3.4 4.1-3.4 1.1 0 2.2 0.1 3.2 0.4l-0.2 1.9c-0.9-0.2-2-0.3-2.8-0.3 -1.5 0-2 0.5-2 1.8v4.5c0 1.2 0.5 1.8 2 1.8 0.8 0 1.9-0.1 2.8-0.3l0.2 1.9c-1 0.2-2.1 0.4-3.2 0.4 -2.9 0-4.1-1.2-4.1-3.4V1134z"/>
<path d="M-1283.8 1142.6c-2.9 0-3.7-1.6-3.7-3.3v-2.1c0-1.7 0.8-3.4 3.7-3.4s3.7 1.6 3.7 3.4v2.1C-1280.1 1141-1280.9 1142.6-1283.8 1142.6zM-1283.8 1135.6c-1.1 0-1.6 0.5-1.6 1.5v2.3c0 1 0.4 1.5 1.6 1.5 1.1 0 1.6-0.5 1.6-1.5v-2.4C-1282.2 1136.1-1282.7 1135.6-1283.8 1135.6z"/>
<path d="M-1273.9 1135.7c-0.8 0.4-1.5 0.8-2.3 1.2v5.5h-2.1v-8.5h1.8l0.1 0.9c0.5-0.3 1.5-0.9 2.2-1.1L-1273.9 1135.7z"/>
<path d="M-1265.6 1139.6c0 1.9-0.8 3-2.8 3 -0.8 0-1.6-0.1-2.3-0.2v3.5l-2.1 0.3V1134h1.7l0.2 0.7c0.8-0.5 1.6-0.9 2.7-0.9 1.7 0 2.6 1 2.6 2.9V1139.6L-1265.6 1139.6zM-1270.6 1140.5c0.6 0.1 1.3 0.2 1.9 0.2 0.8 0 1.1-0.4 1.1-1.1v-3c0-0.7-0.3-1.1-1-1.1 -0.7 0-1.4 0.3-1.9 0.8L-1270.6 1140.5 -1270.6 1140.5z"/>
</g>
<g class="svg-bg-line">
<rect x="-1268" y="1145" width="4.3" height="1"/>
<rect x="-1338" y="1145" width="63" height="1"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -0,0 +1,4 @@
<svg id="svg-download" xmlns="http://www.w3.org/2000/svg" viewBox="-345 275 28 28" style="enable-background:new -345 275 28 28;">
<path d="M-319,275h-24c-1.1,0-2,0.9-2,2v24c0,1.1,0.9,2,2,2h24c1.1,0,2-0.9,2-2v-24C-317,275.9-317.9,275-319,275z M-331.2,297.9
l-6.8-5.6l2-2.4l3.2,2.6V282h3.2v10.5l3.2-2.6l2,2.4L-331.2,297.9z"/>
</svg>

After

Width:  |  Height:  |  Size: 333 B

View File

@ -0,0 +1,9 @@
<svg id="svg-download" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" style="enable-background:new 0 0 14 14;">
<style type="text/css">
</style>
<path class="" d="M13,0H1C0.5,0,0,0.5,0,1v12c0,0.5,0.5,1,1,1h4.7c0,0,0,0,0-0.1c0-0.2,0-0.6,0-1.1c-1.8,0.4-2.2-0.9-2.2-0.9
c-0.3-0.8-0.7-1-0.7-1c-0.6-0.4,0-0.4,0-0.4c0.7,0,1,0.7,1,0.7c0.6,1,1.5,0.7,1.9,0.5c0.1-0.4,0.2-0.7,0.4-0.9c-1.5-0.2-3-0.7-3-3.2
c0-0.7,0.3-1.3,0.7-1.8C3.7,5.8,3.5,5.1,3.9,4.2c0,0,0.6-0.2,1.8,0.7c0.5-0.1,1.1-0.2,1.6-0.2c0.6,0,1.1,0.1,1.6,0.2
c1.3-0.8,1.8-0.7,1.8-0.7c0.4,0.9,0.1,1.6,0.1,1.7c0.4,0.5,0.7,1,0.7,1.8c0,2.5-1.5,3.1-3,3.2C8.7,11.1,9,11.5,9,12.1
c0,0.9,0,1.6,0,1.8c0,0,0,0,0,0.1h4c0.5,0,1-0.5,1-1V1C14,0.5,13.5,0,13,0z"/>
</svg>

After

Width:  |  Height:  |  Size: 735 B

View File

@ -0,0 +1,7 @@
<svg class="svg-logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Isolation_Mode" x="0px" y="0px" viewBox="-344 273 29.4 32" xml:space="preserve" enable-background="new -344 273 29.4 32">
<g>
<polygon points="-326.2 296.7 -321.4 294.1 -321.4 275.8 -326.2 273 -326.2 286.6 -332.4 286.6 -332.4 281.3 -337.3 283.9 -337.3 302.2 -332.4 305 -332.4 291.4 -326.2 291.4 "/>
<polygon points="-319.1 277.1 -319.1 295.6 -326.2 299.5 -326.2 305 -314.6 298.3 -314.6 279.7 "/>
<polygon points="-332.4 273 -344 279.7 -344 298.3 -339.5 300.9 -339.5 282.4 -332.4 278.6 "/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 635 B

View File

@ -1,28 +1,28 @@
html {
font-size: 100%;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-rendering: optimizeLegibility;
-webkit-tap-highlight-color: transparent;
font-size: 100%;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-rendering: optimizeLegibility;
-webkit-tap-highlight-color: transparent;
}
body {
font-family: @sans-serif-stack;
font-size: @base-font-size;
line-height: @base-line-height;
color: @black;
background-color: @white;
letter-spacing: 2px;
.museo-sans-regular;
font-family: @sans-serif-stack;
font-size: @base-font-size;
line-height: @base-line-height;
color: @black;
background-color: @white;
letter-spacing: 2px;
.museo-sans-regular;
}
.wrapper {
margin-top: 80px;
margin-top: 80px;
}
.container {
z-index: 999; //keep content on top
position: relative;
z-index: 999; //keep content on top
position: relative;
}
h1,
@ -31,96 +31,96 @@ h3,
h4,
h5,
h6 {
margin: 0;
padding: 0;
color: inherit;
text-rendering: optimizelegibility;
.museo-sans-bold;
margin: 0;
padding: 0;
color: inherit;
text-rendering: optimizelegibility;
.museo-sans-bold;
}
h1 {
@font-size: 70px;
font-size: @font-size;
line-height: 80px;
letter-spacing: 3px;
@font-size: 70px;
font-size: @font-size;
line-height: 80px;
letter-spacing: 3px;
span {
font-size: @headline-span-size;
display: block;
}
span {
font-size: @headline-span-size;
display: block;
}
&.all-caps {
text-transform: uppercase;
text-align: center;
font-size: 40px;
}
&.all-caps {
text-transform: uppercase;
text-align: center;
font-size: 40px;
}
}
h2 {
@font-size: 30px;
font-size: @font-size;
line-height: 35px;
@font-size: 30px;
font-size: @font-size;
line-height: 35px;
}
h3 {
@font-size: 30px;
font-size: @font-size;
line-height: @font-size;
@font-size: 30px;
font-size: @font-size;
line-height: @font-size;
}
h4 {
@font-size: 24px;
font-size: @font-size;
line-height: @font-size;
@font-size: 24px;
font-size: @font-size;
line-height: @font-size;
}
h5 {
@font-size: 20px;
font-size: @font-size;
line-height: @font-size;
@font-size: 20px;
font-size: @font-size;
line-height: @font-size;
}
h6 {
@font-size: 12px;
font-size: @font-size;
line-height: @font-size;
@font-size: 12px;
font-size: @font-size;
line-height: @font-size;
}
p {
letter-spacing: normal;
line-height: 32px;
letter-spacing: normal;
line-height: 32px;
a {
color: @docs-blue;
text-decoration: none;
border-bottom: 1px solid @docs-blue;
a {
color: @docs-blue;
text-decoration: none;
border-bottom: 1px solid @docs-blue;
&:hover {
text-decoration: none;
color: darken(@blue, 10%);
border-bottom: 1px solid darken(@blue, 10%);
}
&:hover {
text-decoration: none;
color: darken(@blue, 10%);
border-bottom: 1px solid darken(@blue, 10%);
}
}
}
a {
color: inherit;
color: inherit;
text-decoration: none;
&:hover {
text-decoration: none;
color: @purple;
.animate-text-color;
}
&:active {
color: @blue;
}
&:hover {
text-decoration: none;
color: @purple;
.animate-text-color;
}
&:visited {
&:active {
color: @blue;
}
&:visited {
}
}
}
ul {
@ -128,53 +128,53 @@ ul {
}
li {
line-height: @base-line-height;
line-height: @base-line-height;
}
blockquote {
border: none;
margin: 60px;
border: none;
margin: 60px;
p { // blockquote p
font-size: @base-font-size * 2;
line-height: @base-line-height * 2;
font-style: italic;
}
p { // blockquote p
font-size: @base-font-size * 2;
line-height: @base-line-height * 2;
font-style: italic;
}
}
strong {
.museo-sans-bold;
.museo-sans-bold;
}
em {
.museo-sans-regular-italic;
.museo-sans-regular-italic;
}
br {
display:block;
line-height: (@baseline * 2);
display:block;
line-height: (@baseline * 2);
}
pre,
code {
font-family: @mono-stack;
font-family: @mono-stack;
}
code {
font-size: inherit;
font-size: inherit;
}
pre {
border: none;
font-size: @code-font-size;
background: @black;
color: @light-gray-text;
padding: 20px;
line-height: @code-line-height;
border: none;
font-size: @code-font-size;
background: @black;
color: @light-gray-text;
padding: 20px;
line-height: @code-line-height;
span {
color: @code-highlight-text;
}
span {
color: @code-highlight-text;
}
}
hr {
@ -182,8 +182,8 @@ hr {
}
.vr {
width: 2px;
height: 100%;
width: 2px;
height: 100%;
}
form {
@ -191,23 +191,23 @@ form {
}
input {
letter-spacing: 3px;
letter-spacing: 3px;
&:focus {
outline: none;
}
&:focus {
outline: none;
}
}
::-webkit-input-placeholder {
overflow: visible;
padding-top: 3px;
color: @light-gray-text;
overflow: visible;
padding-top: 3px;
color: @light-gray-text;
}
input:-moz-placeholder {
overflow: visible;
padding-top: 3px;
color: @light-gray-text;
overflow: visible;
padding-top: 3px;
color: @light-gray-text;
}
@ -215,116 +215,116 @@ input:-moz-placeholder {
.meta,
.legal,
.date {
color: @medium-gray-text;
line-height: @base-line-height;
.museo-sans-regular;
color: @medium-gray-text;
line-height: @base-line-height;
.museo-sans-regular;
}
.date {
text-transform: uppercase;
text-transform: uppercase;
}
.button {
color: @white;
text-align: center;
background-color: @primary-button-color;
display: block;
padding: 15px 0;
margin-top: 20px !important;
text-transform: uppercase;
font-size: 25px;
letter-spacing: 5px;
.museo-sans-light;
color: @white;
text-align: center;
background-color: @primary-button-color;
display: block;
padding: 15px 0;
margin-top: 20px !important;
text-transform: uppercase;
font-size: 25px;
letter-spacing: 5px;
.museo-sans-light;
.rounded;
.hover;
&.inline-button {
background-color: @vagrant-blue;
padding: 5px 20px;
color: @white !important;
font-size: 15px;
letter-spacing: 1px;
.rounded;
.hover;
&.inline-button {
background-color: @vagrant-blue;
padding: 5px 20px;
color: @white !important;
font-size: 15px;
letter-spacing: 1px;
.rounded;
a,
a:hover {
color: @white;
}
a,
a:hover {
color: @white;
}
}
&.white-button {
background: fade(@white, 20%);
&:hover {
background: fade(@white, 30%);
}
}
&.secondary-button {
background: @light-gray;
&:hover {
background: @purple;
}
}
&.with-carat span {
margin-right: -10px; //recenter text if there's a carat after text
}
span {
// button text styles can go here
}
&.white-button {
background: fade(@white, 20%);
&:hover {
background-color: @purple;
.animate-background-color;
background: fade(@white, 30%);
}
}
&:active {
&.secondary-button {
background: @light-gray;
&:hover {
background: @purple;
}
}
&.disabled {
background-color: @light-gray-background;
}
&.with-carat span {
margin-right: -10px; //recenter text if there's a carat after text
}
span {
// button text styles can go here
}
&:hover {
background-color: @purple;
.animate-background-color;
}
&:active {
}
&.disabled {
background-color: @light-gray-background;
}
}
a.read-more {
color: @blue;
color: @blue;
&:hover {
color: darken(@blue, 10%);
}
&:hover {
color: darken(@blue, 10%);
}
}
// misc. styles
.loading {
text-align: center;
font-size: @base-font-size;
text-transform: uppercase;
letter-spacing: 5px;
color: @medium-gray-text;
padding: 30px 0 20px;
text-align: center;
font-size: @base-font-size;
text-transform: uppercase;
letter-spacing: 5px;
color: @medium-gray-text;
padding: 30px 0 20px;
}
.pinned {
position:fixed;
position:fixed;
}
.footnote {
font-size: 14px;
font-size: 14px;
}
.anchor {
display: block;
position: relative;
top: -80px;
visibility: hidden;
display: block;
position: relative;
top: -80px;
visibility: hidden;
}
.center {
text-align: center;
text-align: center;
}

View File

@ -15,14 +15,14 @@
.search {
//.debug;
background: @white;
background: @white;
height: 60px;
input,
button,
form {
.kill-effects;
border: none;
border: none;
height: 60px;
font-size: 20px;
.museo-sans-light-italic;
@ -35,7 +35,7 @@
&:focus {
} //focus
}
}
button {
@ -44,8 +44,8 @@
}
} //search
} //search bar
}
}
//pagination
.pagination {
@ -75,71 +75,71 @@
//downloads
.downloads {
.description {
margin-bottom: 20px;
.description {
margin-bottom: 20px;
}
.download {
border-bottom: 1px solid #b2b2b2;
padding-bottom: 15px;
margin-bottom: 15px;
.details {
padding-left: 95px;
ul {
margin: 0;
}
li {
display: inline-block;
&:after {
content: " | ";
}
&:last-child:after {
content: "";
}
}
a {
font-size: 22px;
color: @docs-blue;
text-decoration: none;
border-bottom: 1px solid @docs-blue;
margin-left: 3px;
&:hover {
color: darken(@blue, 10%);
border-bottom: 1px solid darken(@blue, 10%);
}
&:active {
}
}
}
.download {
border-bottom: 1px solid #b2b2b2;
padding-bottom: 15px;
margin-bottom: 15px;
.details {
padding-left: 95px;
ul {
margin: 0;
}
li {
display: inline-block;
&:after {
content: " | ";
}
&:last-child:after {
content: "";
}
}
a {
font-size: 22px;
color: @docs-blue;
text-decoration: none;
border-bottom: 1px solid @docs-blue;
margin-left: 3px;
&:hover {
color: darken(@blue, 10%);
border-bottom: 1px solid darken(@blue, 10%);
}
&:active {
}
}
}
.icon {
img {
width: 75px;
}
}
.os-name {
font-size: 40px;
margin-bottom: 3px;
}
.icon {
img {
width: 75px;
}
}
.poweredby {
margin-top: 20px;
margin-bottom: 20px;
img {
display: block;
margin: 0 auto;
width: 122px;
}
.os-name {
font-size: 40px;
margin-bottom: 3px;
}
}
.poweredby {
margin-top: 20px;
margin-bottom: 20px;
img {
display: block;
margin: 0 auto;
width: 122px;
}
}
}

View File

@ -1,101 +1,93 @@
// footer
footer {
padding: 80px 0;
background: @black url(/images/footer_background.png) center center;
text-align: center;
color: @white;
z-index: 999;
position: relative; //z-index needs position!
padding: 80px 0;
background: @black url(/images/footer_background.png) center center;
text-align: center;
color: @white;
z-index: 999;
position: relative; //z-index needs position!
ul.footer-nav {
color: @blue;
text-transform: uppercase;
font-size: 15px;
.museo-sans-light;
ul.footer-nav {
color: @blue;
text-transform: uppercase;
font-size: 15px;
.museo-sans-light;
li {
display: inline-block;
margin: 0 10px;
li {
display: inline-block;
margin: 0 10px;
a {
color: @blue;
a {
color: @blue;
&:hover {
color: @purple;
} //li a:hover
} // li a
} //li
&:hover {
color: @purple;
}
}
}
}
} //ul
ul.logos {
margin: (@baseline * 2) 0;
ul.logos {
margin: (@baseline * 2) 0;
li {
display: inline-block;
}
span {
color: @dark-gray-text;
.museo-sans-light;
text-transform: uppercase;
font-size: 40px;
margin: 0 10px;
}
li {
display: inline-block;
}
.vagrant-logo-monochrome,
.hashi-logo-monochrome {
span {
color: @dark-gray-text;
.museo-sans-light;
text-transform: uppercase;
font-size: 40px;
margin: 0 10px;
}
&:hover {
-khtml-opacity: .85;
-moz-opacity: .85;
opacity: .85;
filter: alpha(opacity=85);
.animate-opacity;
}
}
.vagrant-logo-monochrome,
.hashi-logo-monochrome {
.vagrant-logo-monochrome {
height: 80px;
width: 80px;
background: url(/images/footer_vagrant_logo.png) no-repeat center center;
margin-bottom: -25px;
&:hover {
-khtml-opacity: .85;
-moz-opacity: .85;
opacity: .85;
filter: alpha(opacity=85);
.animate-opacity;
}
}
}
.vagrant-logo-monochrome {
height: 80px;
width: 80px;
background: url(/images/footer_vagrant_logo.png) no-repeat center center;
margin-bottom: -25px;
.hashi-logo-monochrome {
height: 80px;
width: 80px;
background: url(/images/footer_hashi_logo.png) no-repeat center center;
margin-bottom: -25px;
}
}
}
.hashi-logo-monochrome {
height: 80px;
width: 80px;
background: url(/images/footer_hashi_logo.png) no-repeat center center;
margin-bottom: -25px;
}
a.contact-link {
color: @dark-gray-text;
line-height: @base-line-height * 2;
font-size: 30px;
}
&:hover {
color: @white;
}
&:visited {
color: inherit;
}
a.contact-link {
color: @dark-gray-text;
line-height: @base-line-height * 2;
font-size: 30px;
&:hover {
color: @white;
}
&:visited {
color: inherit;
}
&:active {
color: @blue;
}
} //contact link
} //footer
&:active {
color: @blue;
}
}
}

View File

@ -0,0 +1,166 @@
//
// Header
// - Project Specific
// - edits should be made here
// --------------------------------------------------
#header {
width: 100%;
// font-size: 15px;
text-transform: uppercase;
height: @header-height;
position: fixed;
top: 0;
left: 0;
background-color: @white;
z-index: 1001;
&.docs {
background: @gray-background;
}
.navbar-toggle{
margin-right: 15px;
}
.navbar-brand {
float: left;
.logo{
padding-left: 36px;
font-size: 0;
line-height: 77px;
width: @project-logo-width;
padding-left: 0;
.img-retina('/images/logo-header.png', @project-logo-width, @project-logo-height, no-repeat);
background-position: 0 center;
&:hover{
opacity: .6;
}
}
.by-hashicorp{
color: @project-link-color;
svg{
path,
polygon,
rect{
fill: @project-link-color;
}
}
&:hover{
color: black;
svg{
path,
polygon,
rect{
fill: black;
}
}
}
.svg-wrap{
font-weight: 400;
}
}
}
.buttons{
display: none;
margin-top: 2px; //baseline everything
.navigation-links{
float: right;
}
}
.main-links,
.external-links {
li > a {
.project-a-style();
}
}
.main-links {
margin-right: 0;
li {
&.pill{
background-color: #48b4fb;
border-radius: 25px;
padding: 5px 2px;
line-height: 26px;
margin-top: 22px;
a{
color: #FFF;
line-height: 24px;
}
}
> a {
color: @project-link-color;
&:hover{
color: @black;
}
}
}
}
}
@media (min-width: 768px) {
.navbar-toggle{
display: none;
}
#header{
.buttons{
display: block;
}
}
}
@media (max-width: 768px) {
.navbar-header{
margin-left: 15px;
}
}
@media (max-width: 414px) {
#header {
height: auto;
.navbar-toggle{
padding-top: 2px;
}
.by-hashicorp{
margin-top: 2px;
}
.navbar-brand {
.logo{
width: @project-logo-width * .75;
background-size: (@project-logo-width * .75) (@project-logo-height * .75);
//background-position: 0 45%;
}
}
}
}
@media (max-width: 320px) {
#header {
.by-hashicorp{
margin-left: -2px;
}
.navbar-brand {
.logo{
width: 40px;
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -63,6 +63,25 @@
padding: @baseline 0;
}
.transition(@transition) {
-webkit-transition: @transition;
-o-transition: @transition;
transition: @transition;
}
.translate3d (@x, @y: 0, @z: 0) {
-webkit-transform: translate3d(@x, @y, @z);
-moz-transform: translate3d(@x, @y, @z);
-ms-transform: translate3d(@x, @y, @z);
-o-transform: translate3d(@x, @y, @z);
}
.clearfix{
zoom:1;
&:before, &:after{ content:""; display:table; }
&:after{ clear: both; }
}
.inner-bg-large {
background-image: #c1b4d5; /* Old browsers */
background-image: url(/images/sidebar_background_inner.png), -moz-linear-gradient(45deg, #c1b4d5 0%, #98d3f8 100%); /* FF3.6+ */
@ -130,15 +149,15 @@
/*
.sidebar-nav-selected {
background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(71,101,118,1) 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0)), color-stop(100%,rgba(71,101,118,1)));
background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(71,101,118,1) 100%);
background: -o-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(71,101,118,1) 100%);
background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(71,101,118,1) 100%);
background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(71,101,118,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#476576',GradientType=1 );
background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(71,101,118,1) 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0)), color-stop(100%,rgba(71,101,118,1)));
background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(71,101,118,1) 100%);
background: -o-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(71,101,118,1) 100%);
background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(71,101,118,1) 100%);
background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(71,101,118,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#476576',GradientType=1 );
}
*/
*/
// helpers

View File

@ -0,0 +1,43 @@
//
// Sidebar
// - Project Specific
// - Make sidebar edits here
// --------------------------------------------------
#mobile-nav {
.mobile-nav-nav {
width: 100%;
text-align: center;
// Links
//----------------
//
li{
float: none;
&.pill{
background-color: #48b4fb;
border-radius: 25px;
padding: 5px 2px;
line-height: 26px;
margin: 10px 10px 10px 10px;
&:focus,
&:hover{
a{
background-color: transparent;
}
}
a{
color: @white;
line-height: 24px;
}
}
a{
.anti-alias();
font-size: 13px;
}
}
}
}

View File

@ -1,72 +1,72 @@
.Modules {
&.blog-archives {
span.meta.date {
font-size: 12px;
}
&.blog-archives {
span.meta.date {
font-size: 12px;
}
}
&.blog-landing, &.blog-post {
article {
letter-spacing: normal;
margin-bottom: 30px;
&.blog-landing, &.blog-post {
article {
letter-spacing: normal;
margin-bottom: 30px;
.meta {
font-size: 16px;
}
.meta {
font-size: 16px;
}
img {
margin-top: 15px;
margin-bottom: 15px;
}
img {
margin-top: 15px;
margin-bottom: 15px;
}
h2 {
font-size: 45px;
font-weight: bold;
margin-top: 2px;
text-transform: none;
}
h2 {
font-size: 45px;
font-weight: bold;
margin-top: 2px;
text-transform: none;
}
h3 {
color: #476576;
font-size: 32px;
font-weight: bold;
border-bottom: 1px solid #476576;
padding-bottom: 15px;
margin-bottom: 20px;
margin-top: 20px;
}
li a {
color: @docs-blue;
text-decoration: none;
border-bottom: 1px solid @docs-blue;
&:hover {
color: darken(@blue, 10%);
border-bottom: 1px solid darken(@blue, 10%);
}
}
}
}
&.blog-sidebar {
h3 {
color: #476576;
font-size: 18px;
line-height: 26px;
}
font-size: 32px;
font-weight: bold;
border-bottom: 1px solid #476576;
padding-bottom: 15px;
margin-bottom: 20px;
margin-top: 20px;
}
&.sponsors {
margin-top: 50px;
li a {
color: @docs-blue;
text-decoration: none;
border-bottom: 1px solid @docs-blue;
ul {
list-style-type: none;
li {
float: left;
text-align: center;
width: 50%;
height: 250px;
}
&:hover {
color: darken(@blue, 10%);
border-bottom: 1px solid darken(@blue, 10%);
}
}
}
}
&.blog-sidebar {
color: #476576;
font-size: 18px;
line-height: 26px;
}
&.sponsors {
margin-top: 50px;
ul {
list-style-type: none;
li {
float: left;
text-align: center;
width: 50%;
height: 250px;
}
}
}
}

View File

@ -1,75 +0,0 @@
// roll your own nav
nav {
width: 100%;
font-size: 15px;
text-transform: uppercase;
.museo-sans-light;
color: @medium-gray-text;
height: 80px;
position: fixed;
top: 0;
left: 0;
background-color: @white;
z-index: 9999999999;
&.docs {
background: @gray-background;
}
.vagrant-logo {
display: block;
text-indent: -999999px;
background: url(/images/logo_vagrant.png) no-repeat 0 0;
height: 70px;
width: 275px;
float: left;
margin: 10px 20px;
}
.vagrant-docs-logo {
display: block;
text-indent: -999999px;
background: url(/images/logo_docs.png) no-repeat 0 0;
height: 70px;
width: 350px;
float: left;
margin: 10px 20px;
}
ul {
margin: 25px 20px;
li {
display: inline;
margin-left: 15px;
font-size: 15px;
}
li.pill {
background-color: #48b4fb;
border-radius: 50px;
color: #FFF;
padding: 10px 18px;
}
}
.active-nav {
color: @blue;
}
.contact {
&:hover {
background-color: @light-gray-background;
padding: 10px;
margin-right: -10px;
margin-left: 5px;
.rounded;
}
&:active {
background-color: darken(@light-gray-background, 5%);
}
}
}

View File

@ -1,467 +1,464 @@
/* page */
.page { //style all pages
.page-background { //page background color
width: 100%;
height: 100%;
left:50%;
top: 0;
position: fixed;
z-index: 1; //keep it in the back
} //.background
.page-background {
width: 100%;
height: 100%;
left:50%;
top: 0;
position: fixed;
z-index: 1; //keep it in the back
}
.page-contents {
h1,
h2 {
text-transform: uppercase;
text-align: left;
.museo-sans-light;
}
h1 {
font-size: 60px;
line-height: 70px;
margin: (@baseline * 2) 0 @baseline;
&:first-child {
margin-top: 0;
}
}
h2 {
font-size: 40px;
line-height: 45px;
margin: (@baseline * 2) 0 @baseline;
&:first-child {
margin-top: @baseline * .5;
}
}
}
/* home */
&.home {
h1 {
text-align: center;
}
.hero {
.padded;
background: @gray-background url(/images/vagrant_header_background.png) no-repeat center -80px;
text-align: center;
border-bottom: 1px solid #c6e0f0;
.hero-content {
top: 50%;
hgroup {
margin: (@baseline * 4) 0 20px 0;
text-shadow: 0 1px 10px rgba(255, 255, 255, 0.4);
h1 {
color: @purple-text;
margin-bottom: (@baseline * 4);
font-size: 60px;
line-height: 60px;
}
h2 {
.museo-sans-light;
color: @blue-text;
font-size: 30px;
line-height: 40px;
}
}
}
}
.why-vagrant {
.padded;
background: @light-blue-background url(/images/steps_background.png) center -120px;
h1 {
color: @blue-text;
text-transform: uppercase;
text-align: center;
font-size: 40px;
line-height: 40px;
}
hgroup {
margin: (@baseline * 3) 0;
width: 530px;
h3 {
text-align: center;
text-transform: uppercase;
font-size: 40px;
margin-bottom: @baseline;
color: @purple-text;
.museo-sans-light;
}
h4 {
font-size: 20px;
line-height: @baseline * 1.5;
.museo-sans-light;
}
}
}
.get-started {
.padded;
.get-started-bg;
h1 {
color: @white;
}
pre {
padding: 60px 80px 40px;
margin: 40px auto;
background: fade(@black, 60%);
}
.button {
//background: fade(@white, 20%);
}
}
.customers {
.padded;
background-color: @black;
border-bottom: 1px solid #333;
h1 {
color: @dark-gray-text;
.museo-sans-light
}
.customer-logos {
margin-top: @baseline * 3;
img {
width:100%;
height: auto;
-khtml-opacity: .5;
-moz-opacity: .5;
opacity: .5;
filter: alpha(opacity=50);
}
}
ul.customer-logos {
li {
img {
}
}
}
}
}
/* inner */
&.inner {
.inner-bg-large; //sidebar background
.page-background {
background-color: @gray-background; //page background
}
.page-contents {
background-color: @gray-background;
.padded;
}
h1,
h2 {
text-transform: uppercase;
text-align: left;
h2 {
color: @dark-blue-text;
}
p {
}
}
/* docs */
&.docs {
.docs-bg-large; //sidebar background
.page-background {
background: @white; //page background
}
.page-contents {
.padded;
background-color: @white;
}
h1,
h2 {
color: @docs-blue;
}
h2.steps img {
margin-top: -7px;
}
&.docs-home {
}
&.docs-inner {
h3 {
color: @docs-blue;
text-transform: uppercase;
margin: @baseline 0;
.museo-sans-light;
}
h4 {
line-height: 30px;
}
h5.subhead {
.museo-sans-light;
color: @purple-text;
line-height: @baseline;
margin: -10px 0 @baseline;
}
h6.subhead {
.museo-sans-regular-italic;
color: @dark-gray-text;
line-height: @baseline;
margin: -10px 0 @baseline;
font-size: 15px;
//text-transform: uppercase;
}
}
}
&.vmware {
h1 {
text-align: center;
}
.hero {
background: @gray-background url(/images/vagrant_vmware_background.png) no-repeat center -20px;
text-align: center;
border-bottom: 1px solid #c6e0f0;
height: 690px;
.hero-content {
top: 50%;
hgroup {
margin: 375px 0 20px 0;
h1 {
color: #FFFFFF;
font-weight: normal;
margin-bottom: 10px;
font-size: 50px;
line-height: 52px;
}
h2 {
.museo-sans-light;
color: #48b4fb;
font-size: 22px;
line-height: 28px;
}
}
h1 {
font-size: 60px;
line-height: 70px;
margin: (@baseline * 2) 0 @baseline;
&:first-child {
margin-top: 0;
} //h1 first child
.button {
font-size: 18px;
margin-top: 0px !important;
padding: 10px 0;
}
#buy-now-button.button {
background-color: #F26C4F;
}
}
}
.why {
.padded;
background: @light-blue-background;
h1 {
color: @blue-text;
text-transform: uppercase;
text-align: center;
font-size: 40px;
line-height: 40px;
margin-bottom: 20px;
}
.reasons {
h2 {
font-size: 40px;
line-height: 45px;
margin: (@baseline * 2) 0 @baseline;
&:first-child {
margin-top: @baseline * .5;
} //h2 first child
} //h2
} //page-contents
/* home */
&.home { //style homepage
h1 {
text-align: center;
}
.hero {
.padded;
background: @gray-background url(/images/vagrant_header_background.png) no-repeat center -80px;
text-align: center;
border-bottom: 1px solid #c6e0f0;
.hero-content {
top: 50%;
hgroup {
margin: (@baseline * 4) 0 20px 0;
text-shadow: 0 1px 10px rgba(255, 255, 255, 0.4);
h1 {
color: @purple-text;
margin-bottom: (@baseline * 4);
font-size: 60px;
line-height: 60px;
}
h2 {
.museo-sans-light;
color: @blue-text;
font-size: 30px;
line-height: 40px;
}
} //hero hgroup
} //hero-content
} //homepage hero
.why-vagrant {
.padded;
background: @light-blue-background url(/images/steps_background.png) center -120px;
h1 {
color: @blue-text;
text-transform: uppercase;
text-align: center;
font-size: 40px;
line-height: 40px;
} //h1
hgroup {
margin: (@baseline * 3) 0;
width: 530px;
h3 {
text-align: center;
text-transform: uppercase;
font-size: 40px;
margin-bottom: @baseline;
color: @purple-text;
.museo-sans-light;
} //h3
h4 {
font-size: 20px;
line-height: @baseline * 1.5;
.museo-sans-light;
} //h4
} //hgroup
} //why-vagrant
.get-started {
.padded;
.get-started-bg;
h1 {
color: @white;
}
pre {
padding: 60px 80px 40px;
margin: 40px auto;
background: fade(@black, 60%);
}
.button {
//background: fade(@white, 20%);
}
} //get-started
.customers {
.padded;
background-color: @black;
border-bottom: 1px solid #333;
h1 {
color: @dark-gray-text;
.museo-sans-light
}
.customer-logos {
margin-top: @baseline * 3;
img {
width:100%;
height: auto;
-khtml-opacity: .5;
-moz-opacity: .5;
opacity: .5;
filter: alpha(opacity=50);
}
}
ul.customer-logos {
li {
img {
} //img
} //li
} //ul.cusotmer-logos
}
} //home
/* inner */
&.inner { //style inner pages
.inner-bg-large; //sidebar background
.page-background { //change inner background color!
background-color: @gray-background; //page background
}
.page-contents {
background-color: @gray-background;
.padded;
}
h2 {
color: @dark-blue-text;
font-size: 20px;
letter-spacing: 1px;
}
p {
line-height: 28px;
}
}
} //inner
.row {
margin-bottom: 20px;
}
/* docs */
&.docs { //style all docs
.docs-bg-large; //sidebar background
.page-background { //change the sidebar background color!
background: @white; //page background
}
.page-contents {
.padded;
background-color: @white;
}
h1,
h2 {
color: @docs-blue;
}
h2.steps img {
margin-top: -7px;
}
&.docs-home { //style docs-home
} //documentation-home
&.docs-inner { //style docs-inner
h3 {
color: @docs-blue;
text-transform: uppercase;
margin: @baseline 0;
.museo-sans-light;
}
h4 {
line-height: 30px;
}
h5.subhead {
.museo-sans-light;
color: @purple-text;
line-height: @baseline;
margin: -10px 0 @baseline;
}
h6.subhead {
.museo-sans-regular-italic;
color: @dark-gray-text;
line-height: @baseline;
margin: -10px 0 @baseline;
font-size: 15px;
//text-transform: uppercase;
}
} //documentation-inner
} //documentation
&.vmware {
h1 {
text-align: center;
}
.hero {
background: @gray-background url(/images/vagrant_vmware_background.png) no-repeat center -20px;
text-align: center;
border-bottom: 1px solid #c6e0f0;
height: 690px;
.hero-content {
top: 50%;
hgroup {
margin: 375px 0 20px 0;
h1 {
color: #FFFFFF;
font-weight: normal;
margin-bottom: 10px;
font-size: 50px;
line-height: 52px;
}
h2 {
.museo-sans-light;
color: #48b4fb;
font-size: 22px;
line-height: 28px;
}
} //hero hgroup
.button {
font-size: 18px;
margin-top: 0px !important;
padding: 10px 0;
}
#buy-now-button.button {
background-color: #F26C4F;
}
} //hero-content
} //vmware hero
.why {
.padded;
background: @light-blue-background;
h1 {
color: @blue-text;
text-transform: uppercase;
text-align: center;
font-size: 40px;
line-height: 40px;
margin-bottom: 20px;
} //h1
.reasons {
h2 {
font-size: 20px;
letter-spacing: 1px;
} //h2
p {
line-height: 28px;
} //p
}
.row {
margin-bottom: 20px;
}
.row.footnotes {
font-size: 12px;
margin-bottom: 0px;
}
} //why
.pricing {
.padded;
.get-started-bg;
color: @white;
h1 {
color: @white;
}
pre {
padding: 60px 80px 40px;
margin: 40px auto;
background: fade(@black, 60%);
}
.button {
//background: fade(@white, 20%);
}
.buy-form {
margin: 0 auto;
width: 500px;
p {
line-height: 28px;
}
.form {
margin-top: 20px;
.products {
margin-bottom: 15px;
}
label {
font-size: 18px;
margin-bottom: 15px;
}
input.text {
border: none;
color: #000000;
letter-spacing: 0px;
height: 40px;
width: 60px;
padding: 5px;
text-align: center;
font-size: 28px;
font-weight: bold;
-webkit-box-shadow:
inset 0 3px 5px rgba(0, 0, 0, 0.4);
}
button {
color: @white;
font-size: 22px;
font-weight: bold;
height: 50px;
background-color: #07B15F;
background-image: none;
border: none;
text-shadow: none;
-webkit-box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.3),
inset 0 -1px 0 rgba(0, 0, 0, 0.1);
-moz-box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.3),
inset 0 -1px 0 rgba(0, 0, 0, 0.1);
-ms-box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.3),
inset 0 -1px 0 rgba(0, 0, 0, 0.1);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.3),
inset 0 -1px 0 rgba(0, 0, 0, 0.1);
padding-right: 15px;
}
}
}
.subtext {
margin-top: 20px;
font-size: 12px;
line-height: 16px;
}
} //.pricing
.customers {
.padded;
background-color: @black;
border-bottom: 1px solid #333;
h1 {
color: @dark-gray-text;
.museo-sans-light
}
.customer-logos {
margin-top: @baseline * 3;
img {
width:100%;
height: auto;
-khtml-opacity: .5;
-moz-opacity: .5;
opacity: .5;
filter: alpha(opacity=50);
}
}
ul.customer-logos {
li {
img {
} //img
} //li
} //ul.cusotmer-logos
}
.row.footnotes {
font-size: 12px;
margin-bottom: 0px;
}
}
} //page
.pricing {
.padded;
.get-started-bg;
color: @white;
h1 {
color: @white;
}
pre {
padding: 60px 80px 40px;
margin: 40px auto;
background: fade(@black, 60%);
}
.button {
//background: fade(@white, 20%);
}
.buy-form {
margin: 0 auto;
width: 500px;
p {
line-height: 28px;
}
.form {
margin-top: 20px;
.products {
margin-bottom: 15px;
}
label {
font-size: 18px;
margin-bottom: 15px;
}
input.text {
border: none;
color: #000000;
letter-spacing: 0px;
height: 40px;
width: 60px;
padding: 5px;
text-align: center;
font-size: 28px;
font-weight: bold;
-webkit-box-shadow:
inset 0 3px 5px rgba(0, 0, 0, 0.4);
}
button {
color: @white;
font-size: 22px;
font-weight: bold;
height: 50px;
background-color: #07B15F;
background-image: none;
border: none;
text-shadow: none;
-webkit-box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.3),
inset 0 -1px 0 rgba(0, 0, 0, 0.1);
-moz-box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.3),
inset 0 -1px 0 rgba(0, 0, 0, 0.1);
-ms-box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.3),
inset 0 -1px 0 rgba(0, 0, 0, 0.1);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.3),
inset 0 -1px 0 rgba(0, 0, 0, 0.1);
padding-right: 15px;
}
}
}
.subtext {
margin-top: 20px;
font-size: 12px;
line-height: 16px;
}
}
.customers {
.padded;
background-color: @black;
border-bottom: 1px solid #333;
h1 {
color: @dark-gray-text;
.museo-sans-light
}
.customer-logos {
margin-top: @baseline * 3;
img {
width:100%;
height: auto;
-khtml-opacity: .5;
-moz-opacity: .5;
opacity: .5;
filter: alpha(opacity=50);
}
}
ul.customer-logos {
li {
img {
}
}
}
}
}
}

View File

@ -44,25 +44,25 @@
}
.sidebar-nav { //style all sidebar-navs
.sidebar-nav {
//position:fixed;
}
ul { //general sidebar list styles
ul {
li { //general sidebar list item styles
li {
font-size: 20px;
.museo-sans-light;
a {
display: block;
} //li a
}
&:hover {
}
} //li
}
ul.sub { //subnav list styles
ul.sub {
border-top: none;
list-style-type: none;
margin:0 0 5px 0;
@ -72,13 +72,13 @@
font-size: 15px;
border: none;
border-bottom: none !important;
} //ul.sub li
} //ul.sub
}
}
} //ul
}
.inner & { //styles for the inner-page sidebar
.inner & {
.padded;
position:fixed;
@ -86,10 +86,10 @@
color: @purple;
}
ul { //style inner list
ul {
li { //style inner list item
li {
color: @dark-blue-text;
padding: 20px 0;
border-top: 1px solid fade(@white, 40%);
@ -98,23 +98,23 @@
border-bottom: 1px solid fade(@white, 40%);
}
&.current { //style the current selected list item
&.current {
} //current
} //li
} //ul
} //.inner .sidebar
}
}
}
}
.docs & { //styles for the documentation sidebar
.docs & {
li.current a {
color: @blue;
}
ul { //style documentation list
ul {
margin-top: 60px;
li { //style documentation list items
li {
text-transform: capitalize;
color: @white;
padding: 12px 0;
@ -128,10 +128,10 @@
border-bottom: 1px solid fade(@white, 20%);
}
&.current { //style the current selected list item
&.current {
} //current
} //li
} //ul
} //.documentation .sidebar
} //sidebar
}
}
}
}
}

View File

@ -1,36 +1,36 @@
//typogrpahy
.museo-sans-light {
font-family: "museo-sans", helvetica, arial, sans-serif;
font-style: normal;
font-weight: 100;
font-family: "museo-sans", helvetica, arial, sans-serif;
font-style: normal;
font-weight: 100;
}
.museo-sans-regular {
font-family: "museo-sans", helvetica, arial, sans-serif;
font-style: normal;
font-weight: 300;
font-family: "museo-sans", helvetica, arial, sans-serif;
font-style: normal;
font-weight: 300;
}
.museo-sans-bold {
font-family: "museo-sans", helvetica, arial, sans-serif;
font-style: normal;
font-weight: 700;
font-family: "museo-sans", helvetica, arial, sans-serif;
font-style: normal;
font-weight: 700;
}
.museo-sans-light-italic {
font-family: "museo-sans", helvetica, arial, sans-serif;
font-style: italic;
font-weight: 100;
font-family: "museo-sans", helvetica, arial, sans-serif;
font-style: italic;
font-weight: 100;
}
.museo-sans-regular-italic {
font-family: "museo-sans", helvetica, arial, sans-serif;
font-style: italic;
font-weight: 300;
font-family: "museo-sans", helvetica, arial, sans-serif;
font-style: italic;
font-weight: 300;
}
.museo-sans-bold-italic {
font-family: "museo-sans", helvetica, arial, sans-serif;
font-style: italic;
font-weight: 700;
}
font-family: "museo-sans", helvetica, arial, sans-serif;
font-style: italic;
font-weight: 700;
}

View File

@ -0,0 +1,351 @@
//
// Hashicorp nav
// --------------------------------------------------
.nav{
float: left;
margin: 0;
padding: 0;
list-style: none;
li{
display: block;
float: left;
a{
position: relative;
display: block;
}
}
}
.navigation {
color: black;
text-rendering: optimizeLegibility;
transition: all 1s ease;
&.white{
.navbar-brand {
.logo {
color: white;
}
}
.main-links,
.external-links {
li > a {
&:hover{
opacity: 1;
}
}
}
}
.navbar-toggle{
height: @header-height;
margin: 0;
position: relative;
float: right;
padding: 9px 10px;
background-color: transparent;
background-image: none;
border: none;
.bar{
display: block;
width: 22px;
height: 2px;
margin-top: 4px;
background-color: @project-link-color;
}
}
.external-links {
&.white{
svg path{
fill: @white;
}
}
li {
position: relative;
svg path{
.transition( all 300ms ease-in );
}
&:hover{
svg path{
.transition( all 300ms ease-in );
}
}
&.download{
margin-right: 10px;
}
> a {
padding-left: 12px !important;
svg{
position: absolute;
left: -12px;
top: 50%;
margin-top: -7px;
width: 14px;
height: 14px;
}
}
}
}
.main-links{
margin-right: @nav-margin-right * 2;
}
.main-links,
.external-links {
&.white{
li > a {
color: white;
}
}
li > a {
.hashi-a-style();
margin: 0 10px;
padding-top: 1px;
line-height: @header-height;
.project-a-style();
}
}
.nav > li > a:hover, .nav > li > a:focus {
background-color: transparent;
.transition( all 300ms ease-in );
}
}
.navbar-brand {
display: block;
height: @header-height;
padding: 0;
margin: 0 10px 0 0;
.logo{
display: inline-block;
height: @header-height;
vertical-align:top;
padding: 0;
line-height: @header-height;
background-position: 0 center;
.transition(all 300ms ease-in);
&:hover{
.transition(all 300ms ease-in);
text-decoration: none;
}
}
}
.navbar-toggle{
&.white{
.icon-bar{
border: 1px solid white;
}
}
}
.by-hashicorp{
display: inline-block;
vertical-align:top;
height: @header-height;
margin-left: -3px;
padding-top: 2px;
color: black;
line-height: @header-height;
font-family: @header-font-family;
font-weight: 600;
font-size: 0;
letter-spacing: 0;
text-decoration: none;
text-transform: none;
&.white{
color: white;
font-weight: 300;
svg{
path,
polygon,
rect{
fill: white;
}
}
}
&:focus,
&:hover{
text-decoration: none;
}
&:hover{
.transition(all 300ms ease-in);
}
.svg-wrap{
font-size: 13px;
.transition(all 300ms ease-in);
}
svg{
&.svg-by{
width: @by-hashicorp-width;
height: @by-hashicorp-height;
margin-bottom: -4px;
margin-left: 4px;
}
&.svg-logo{
width: 16px;
height: 16px;
margin-bottom: -3px;
margin-left: 4px;
}
path,
polygon,
rect{
fill: black;
.transition(all 300ms ease-in);
&:hover{
.transition(all 300ms ease-in);
}
}
}
}
.hashicorp-project{
display: inline-block;
height: 30px;
line-height: 30px;
text-decoration: none;
font-size: 14px;
color: @black;
font-weight: 600;
&.white{
color: white;
svg{
path,
polygon{
fill: white;
}
line{
stroke: white;
}
}
}
&:focus{
text-decoration: none;
}
&:hover{
text-decoration: none;
svg{
&.svg-by{
line{
stroke: @purple;
}
}
}
}
span{
margin-right: 4px;
font-family: @header-font-family;
font-weight: 500;
}
span,
svg{
display: inline-block;
}
svg{
&.svg-by{
width: @by-hashicorp-width;
height: @by-hashicorp-height;
margin-bottom: -4px;
margin-left: -3px;
}
&.svg-logo{
width: 30px;
height: 30px;
margin-bottom: -10px;
margin-left: -1px;
}
path,
line{
fill: @black;
.transition(all 300ms ease-in);
&:hover{
.transition(all 300ms ease-in);
}
}
}
}
@media (max-width: 992px) {
.navigation {
> .container{
width: 100%;
}
}
}
@media (max-width: 768px) {
.navigation {
.main-links{
margin-right: 0;
}
}
}
@media (max-width: 414px) {
#header {
.navbar-toggle{
padding-top: 10px;
height: @header-mobile-height;
}
.navbar-brand {
height: @header-mobile-height;
.logo{
height: @header-mobile-height;
line-height: @header-mobile-height;
}
.by-hashicorp{
height: @header-mobile-height;
line-height: @header-mobile-height;
padding-top: 0;
}
}
.main-links,
.external-links {
li > a {
line-height: @header-mobile-height;
}
}
}
}
@media (min-width: 768px){
.navbar-toggle {
display: none;
}
}

View File

@ -0,0 +1,293 @@
//
// Hashicorp mobile-nav
// - Shared throughout projects
// - Edits should not be made here
// --------------------------------------------------
// Base variables
// --------------------------------------------------
@screen-tablet: 768px;
@gray-darker: #212121; // #212121 - text
@gray-secondary: #757575; // #757575 - secondary text, icons
@gray: #bdbdbd; // #bdbdbd - hint text
@gray-light: #e0e0e0; // #e0e0e0 - divider
@gray-lighter: #f5f5f5; // #f5f5f5 - background
@link-color: @gray-darker;
@link-bg: transparent;
@link-hover-color: @gray-lighter;
@link-hover-bg: @gray-lighter;
@link-active-color: @gray-darker;
@link-active-bg: @gray-light;
@link-disabled-color: @gray-light;
@link-disabled-bg: transparent;
/* -- mobile-nav style ------------------------------- */
// mobile-nav variables
// --------------------------------------------------
@zindex-mobile-nav-fixed: 1035;
@mobile-nav-desktop-width: 280px;
@mobile-nav-width: 240px;
@mobile-nav-padding: 16px;
@mobile-nav-divider: @mobile-nav-padding/2;
@mobile-nav-icon-width: 40px;
@mobile-nav-icon-height: 20px;
.mobile-nav-nav-base {
text-align: center;
&:last-child{
border-bottom: none;
}
li > a {
background-color: @link-bg;
}
li:hover > a {
background-color: @link-hover-bg;
}
li:focus > a, li > a:focus {
background-color: @link-bg;
}
> .open > a {
&,
&:hover,
&:focus {
background-color: @link-hover-bg;
}
}
> .active > a {
&,
&:hover,
&:focus {
background-color: @link-active-bg;
}
}
> .disabled > a {
&,
&:hover,
&:focus {
background-color: @link-disabled-bg;
}
}
// Dropdown menu items
> .dropdown {
// Remove background color from open dropdown
> .dropdown-menu {
background-color: @link-hover-bg;
> li > a {
&:focus {
background-color: @link-hover-bg;
}
&:hover {
background-color: @link-hover-bg;
}
}
> .active > a {
&,
&:hover,
&:focus {
color: @link-active-color;
background-color: @link-active-bg;
}
}
}
}
}
//
// mobile-nav
// --------------------------------------------------
// mobile-nav Elements
//
// Basic style of mobile-nav elements
.mobile-nav {
position: relative;
display: block;
min-height: 100%;
overflow-y: auto;
overflow-x: hidden;
border: none;
.transition(all 0.5s cubic-bezier(0.55, 0, 0.1, 1));
.clearfix();
background-color: @white;
ul{
padding-left: 0;
list-style-type: none;
}
.mobile-nav-divider, .divider {
width: 80%;
height: 1px;
margin: 8px auto;
background-color: lighten(@gray, 20%);
}
// mobile-nav heading
//----------------
.mobile-nav-header {
position: relative;
margin-bottom: @mobile-nav-padding;
.transition(all .2s ease-in-out);
}
.mobile-nav-image {
padding-top: 24px;
img {
display: block;
margin: 0 auto;
}
}
// mobile-nav icons
//----------------
.mobile-nav-icon {
display: inline-block;
height: @mobile-nav-icon-height;
margin-right: @mobile-nav-divider;
text-align: left;
font-size: @mobile-nav-icon-height;
vertical-align: middle;
&:before, &:after {
vertical-align: middle;
}
}
.mobile-nav-nav {
margin: 0;
padding: 0;
.mobile-nav-nav-base();
// Links
//----------------
li {
position: relative;
list-style-type: none;
text-align: center;
a {
position: relative;
cursor: pointer;
user-select: none;
.hashi-a-style-core();
svg{
top: 2px;
width: 14px;
height: 14px;
margin-bottom: -2px;
margin-right: 4px;
}
}
}
}
}
// mobile-nav toggling
//
// Hide mobile-nav
.mobile-nav {
width: 0;
.translate3d(-@mobile-nav-desktop-width, 0, 0);
&.open {
min-width: @mobile-nav-desktop-width;
width: @mobile-nav-desktop-width;
.translate3d(0, 0, 0);
}
}
// mobile-nav positions: fix the left/right mobile-navs
.mobile-nav-fixed-left,
.mobile-nav-fixed-right,
.mobile-nav-stacked {
position: fixed;
top: 0;
bottom: 0;
z-index: @zindex-mobile-nav-fixed;
}
.mobile-nav-stacked {
left: 0;
}
.mobile-nav-fixed-left {
left: 0;
box-shadow: 2px 0px 25px rgba(0,0,0,0.15);
-webkit-box-shadow: 2px 0px 25px rgba(0,0,0,0.15);
}
.mobile-nav-fixed-right {
right: 0;
box-shadow: 0px 2px 25px rgba(0,0,0,0.15);
-webkit-box-shadow: 0px 2px 25px rgba(0,0,0,0.15);
.translate3d(@mobile-nav-desktop-width, 0, 0);
&.open {
.translate3d(0, 0, 0);
}
.icon-material-mobile-nav-arrow:before {
content: "\e614"; // icon-material-arrow-forward
}
}
// mobile-nav size
//
// Change size of mobile-nav and mobile-nav elements on small screens
@media (max-width: @screen-tablet) {
.mobile-nav.open {
min-width: @mobile-nav-width;
width: @mobile-nav-width;
}
.mobile-nav .mobile-nav-header {
//height: @mobile-nav-width * 9/16; // 16:9 header dimension
}
.mobile-nav .mobile-nav-image {
/* img {
width: @mobile-nav-width/4 - @mobile-nav-padding;
height: @mobile-nav-width/4 - @mobile-nav-padding;
} */
}
}
.mobile-nav-overlay {
visibility: hidden;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: 0;
background: @white;
z-index: @zindex-mobile-nav-fixed - 1;
-webkit-transition: visibility 0 linear .4s,opacity .4s cubic-bezier(.4,0,.2,1);
-moz-transition: visibility 0 linear .4s,opacity .4s cubic-bezier(.4,0,.2,1);
transition: visibility 0 linear .4s,opacity .4s cubic-bezier(.4,0,.2,1);
-webkit-transform: translateZ(0);
-moz-transform: translateZ(0);
-ms-transform: translateZ(0);
-o-transform: translateZ(0);
transform: translateZ(0);
}
.mobile-nav-overlay.active {
opacity: 0.3;
visibility: visible;
-webkit-transition-delay: 0;
-moz-transition-delay: 0;
transition-delay: 0;
}

View File

@ -0,0 +1,89 @@
//
// Hashicorp Nav (header/footer) Utiliy Vars and Mixins
//
// Notes:
// - Include this in Application.scss before header and feature-footer
// - Open Sans Google (Semibold - 600) font needs to be included if not already
// --------------------------------------------------
// Variables
@font-family-open-sans: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
@header-font-family: @font-family-open-sans;
@header-font-weight: 600; // semi-bold
@header-height: 80px;
@header-mobile-height: 60px;
@by-hashicorp-width: 74px;
@by-hashicorp-height: 16px;
@nav-margin-right: 12px;
// Mixins
.hashi-a-style-core{
font-family: @header-font-family;
font-weight: @header-font-weight;
font-size: 14px;
//letter-spacing: 0.0625em;
}
.hashi-a-style{
margin: 0 15px;
padding: 0;
line-height: 22px;
.hashi-a-style-core();
.transition( all 0.3s ease );
&:hover{
.transition( all 0.3s ease );
background-color: transparent;
}
}
.img-retina(@image, @width, @height, @repeat: no-repeat) {
@filename : ~`/(.*)\.(jpg|jpeg|png|gif)/.exec(@{image})[1]`;
@extension : ~`/(.*)\.(jpg|jpeg|png|gif)/.exec(@{image})[2]`;
background-image: ~`"url(@{filename}.@{extension})"`;
background-repeat: @repeat;
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min--moz-device-pixel-ratio: 2),
only screen and ( -o-min-device-pixel-ratio: 2/1),
only screen and ( min-device-pixel-ratio: 2),
only screen and ( min-resolution: 192dpi),
only screen and ( min-resolution: 2dppx) {
/* on retina, use image that's scaled by 2 */
background-image: ~`"url(@{filename}@2x.@{extension})"`;
background-size: @width @height;
}
}
//
// -------------------------
.anti-alias() {
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
.open-light() {
font-family: @font-family-open-sans;
font-weight: 300;
}
.open() {
font-family: @font-family-open-sans;
font-weight: 400;
}
.open-sb() {
font-family: @font-family-open-sans;
font-weight: 600;
}
.open-bold() {
font-family: @font-family-open-sans;
font-weight: 700;
}
.bez-1-transition{
.transition( all 300ms ease-in-out );
}

View File

@ -0,0 +1,32 @@
//
// Mixins Specific to project
// - make edits to mixins here
// --------------------------------------------------
// Variables
@project-logo-width: 169px;
@project-logo-height: 46px;
@project-logo-pad-left: 0px;
@project-link-color: #8d9ba8;
// Mixins
.project-a-style{
font-weight: 600;
font-size: 14px;
letter-spacing: 0;
text-transform: none;
color: @project-link-color;
.anti-alias();
&:hover{
color: @black;
}
}
.project-footer-a-style{
line-height: 30px;
&:hover{
opacity: .5;
}
}

View File

@ -8,10 +8,18 @@ v a g r a n t u p
@import '_type';
@import '_mixins';
@import '_base';
@import '_nav';
@import 'hashicorp-shared/_hashicorp-utility';
@import 'hashicorp-shared/_project-utility';
@import 'hashicorp-shared/_hashicorp-header';
@import 'hashicorp-shared/_hashicorp-mobile-nav';
// @import '_nav';
@import '_header';
@import '_components';
@import '_modules';
@import '_sidebar';
@import '_mobile-nav';
@import '_pages';
@import '_footer';
@import '_media-queries';