Merge pull request #6691 from captainill/new_header
'by Hashicorp' added to header
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
After Width: | Height: | Size: 6.7 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 8.7 KiB |
|
@ -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;
|
||||
|
||||
})();
|
|
@ -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;
|
||||
});
|
|
@ -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>
|
|
@ -31,20 +31,32 @@
|
|||
<div class="wrapper">
|
||||
|
||||
<!-- nav -->
|
||||
|
||||
<nav class="docs">
|
||||
<div id="header" class="navigation docs">
|
||||
<div class="container-fluid">
|
||||
<!-- 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>
|
||||
<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>
|
||||
|
||||
<%= 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">
|
||||
|
||||
<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>
|
||||
<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>
|
||||
<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 -->
|
||||
|
|
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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+ */
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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%);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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 );
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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';
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 8.7 KiB |
|
@ -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;
|
||||
|
||||
})();
|
|
@ -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;
|
||||
});
|
|
@ -2,8 +2,8 @@
|
|||
$(document).ready(function(){
|
||||
$(document).scroll(function() {
|
||||
var top = $(document).scrollTop();
|
||||
if (top > 0) $('nav').addClass("drop-shadow");
|
||||
if (top === 0) $('nav').removeClass("drop-shadow");
|
||||
if (top > 0) $('#header').addClass("drop-shadow");
|
||||
if (top === 0) $('header').removeClass("drop-shadow");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
||||
|
||||
|
@ -33,23 +33,39 @@
|
|||
<div class="wrapper">
|
||||
|
||||
<!-- nav -->
|
||||
|
||||
<nav>
|
||||
<div id="header" class="navigation">
|
||||
<div class="container-fluid">
|
||||
<!-- vagrant logo -->
|
||||
<a class="vagrant-logo" href="/">Vagrant</a>
|
||||
<!-- nav -->
|
||||
<ul class="pull-right unstyled">
|
||||
<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/">Documentation</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");
|
||||
|
||||
new Sidebar();
|
||||
</script>
|
||||
|
||||
<!-- Google analytics -->
|
||||
|
@ -139,4 +160,3 @@
|
|||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -35,7 +35,7 @@
|
|||
|
||||
&:focus {
|
||||
|
||||
} //focus
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
|
@ -44,8 +44,8 @@
|
|||
}
|
||||
|
||||
|
||||
} //search
|
||||
} //search bar
|
||||
}
|
||||
}
|
||||
|
||||
//pagination
|
||||
.pagination {
|
||||
|
|
|
@ -23,12 +23,10 @@ position: relative; //z-index needs position!
|
|||
|
||||
&:hover {
|
||||
color: @purple;
|
||||
} //li a:hover
|
||||
} // li a
|
||||
} //li
|
||||
|
||||
} //ul
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul.logos {
|
||||
margin: (@baseline * 2) 0;
|
||||
|
@ -75,7 +73,6 @@ position: relative; //z-index needs position!
|
|||
|
||||
}
|
||||
|
||||
|
||||
a.contact-link {
|
||||
color: @dark-gray-text;
|
||||
line-height: @base-line-height * 2;
|
||||
|
@ -92,10 +89,5 @@ position: relative; //z-index needs position!
|
|||
&:active {
|
||||
color: @blue;
|
||||
}
|
||||
} //contact link
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} //footer
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -70,7 +70,7 @@
|
|||
|
||||
.page-contents {
|
||||
|
||||
} //page contents
|
||||
}
|
||||
|
||||
&.home {
|
||||
.hero {
|
||||
|
@ -88,14 +88,14 @@
|
|||
margin-bottom: 30px !important;
|
||||
letter-spacing: 1px;
|
||||
padding-bottom: 50px;
|
||||
} //h1
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 20px !important;
|
||||
line-height: 25px !important;
|
||||
} //h2
|
||||
} //hero
|
||||
} //home
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.vmware {
|
||||
.hero {
|
||||
|
@ -112,7 +112,7 @@
|
|||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
} //vmware
|
||||
}
|
||||
|
||||
.why-vagrant {
|
||||
padding: 40px 0 !important;
|
||||
|
@ -124,7 +124,7 @@
|
|||
:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
} //hgroup
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 30px !important;
|
||||
|
@ -140,7 +140,7 @@
|
|||
h4 {
|
||||
.hyphenate;
|
||||
}
|
||||
} //why-vagrant
|
||||
}
|
||||
|
||||
.get-started {
|
||||
padding: 40px 0 !important;
|
||||
|
@ -154,7 +154,7 @@
|
|||
pre {
|
||||
margin: 30px auto 30px !important;
|
||||
}
|
||||
} //get-started
|
||||
}
|
||||
|
||||
.customers {
|
||||
padding: 40px 0 !important;
|
||||
|
@ -163,7 +163,7 @@
|
|||
font-size: 30px !important;
|
||||
line-height: 30px !important;
|
||||
}
|
||||
} //customers
|
||||
}
|
||||
|
||||
&.inner {
|
||||
padding-top: 30px;
|
||||
|
@ -171,7 +171,7 @@
|
|||
.page-contents {
|
||||
padding: 40px 0;
|
||||
}
|
||||
} //inner
|
||||
}
|
||||
|
||||
&.docs {
|
||||
|
||||
|
@ -193,9 +193,9 @@
|
|||
display: block;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
} //docs
|
||||
}
|
||||
|
||||
} //page
|
||||
}
|
||||
|
||||
footer {
|
||||
padding: 40px 0 !important;
|
||||
|
@ -229,10 +229,10 @@
|
|||
|
||||
a.contact-link {
|
||||
font-size: 20px;
|
||||
} // contact link
|
||||
}
|
||||
}
|
||||
|
||||
} //mobile
|
||||
}
|
||||
|
||||
@media (min-width: 768px) and (max-width: 979px) {
|
||||
nav {
|
||||
|
@ -244,7 +244,7 @@
|
|||
ul {
|
||||
margin: 25px 20px;
|
||||
}
|
||||
} // nav
|
||||
}
|
||||
|
||||
.hero-content {
|
||||
.button {
|
||||
|
@ -262,11 +262,13 @@
|
|||
display: block !important;
|
||||
}
|
||||
|
||||
} // 768 < x < 979
|
||||
}
|
||||
// 768 < x < 979
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
|
||||
} // > 1200
|
||||
}
|
||||
// > 1200
|
||||
|
||||
@media (max-width: 979px) {
|
||||
|
||||
|
@ -289,12 +291,14 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
} // < 979
|
||||
}
|
||||
// < 979
|
||||
|
||||
|
||||
@media (min-width: 980px) {
|
||||
|
||||
} // > 980
|
||||
}
|
||||
// > 980
|
||||
|
||||
@media (min-width: 481px) and (max-width: 767px) {
|
||||
.page {
|
||||
|
@ -308,7 +312,8 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
} // > 481 && < 767
|
||||
}
|
||||
// > 481 && < 767
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.wrapper {
|
||||
|
@ -394,15 +399,15 @@
|
|||
background-color: fade(@black, 5%);
|
||||
.animate-background-color;
|
||||
}
|
||||
} //li
|
||||
}
|
||||
|
||||
ul.sub {
|
||||
|
||||
li {
|
||||
|
||||
}
|
||||
} //ul.sub
|
||||
} //ul
|
||||
}
|
||||
}
|
||||
|
||||
.docs & {
|
||||
.docs-bg-small;
|
||||
|
@ -415,9 +420,9 @@
|
|||
margin-right: -20px;
|
||||
margin-left: -20px;
|
||||
.docs-bg-small;
|
||||
} //docs sidebar-nav
|
||||
} // docs sidebar
|
||||
} //sidebar
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.page {
|
||||
|
||||
|
@ -451,7 +456,7 @@
|
|||
margin-top: @baseline !important;
|
||||
}
|
||||
|
||||
} //home
|
||||
}
|
||||
|
||||
&.vmware {
|
||||
.hero {
|
||||
|
@ -463,12 +468,12 @@
|
|||
font-size: 40px !important;
|
||||
line-height: 40px !important;
|
||||
letter-spacing: 1px;
|
||||
} //h1
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 0 auto;
|
||||
} //h2
|
||||
} //hero
|
||||
}
|
||||
}
|
||||
|
||||
.anchor {
|
||||
top: 0px;
|
||||
|
@ -485,7 +490,7 @@
|
|||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
} //why
|
||||
}
|
||||
|
||||
.pricing {
|
||||
padding: 20px 0 !important;
|
||||
|
@ -500,8 +505,8 @@
|
|||
padding-right: 20px;
|
||||
width: auto;
|
||||
}
|
||||
} //pricing
|
||||
} //vmware
|
||||
}
|
||||
}
|
||||
|
||||
&.inner {
|
||||
|
||||
|
@ -537,8 +542,8 @@
|
|||
|
||||
&.docs {
|
||||
background: transparent;
|
||||
} //docs
|
||||
} //page
|
||||
}
|
||||
}
|
||||
|
||||
.button {
|
||||
margin: 0 auto;
|
||||
|
@ -546,4 +551,4 @@
|
|||
position: relative;
|
||||
//margin: 20px 0 20px 20px;
|
||||
}
|
||||
} // < 767
|
||||
}
|
||||
|
|
|
@ -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+ */
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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%);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,14 +1,14 @@
|
|||
/* page */
|
||||
.page { //style all pages
|
||||
|
||||
.page-background { //page background color
|
||||
.page-background {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left:50%;
|
||||
top: 0;
|
||||
position: fixed;
|
||||
z-index: 1; //keep it in the back
|
||||
} //.background
|
||||
}
|
||||
|
||||
.page-contents {
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
|||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
} //h1 first child
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
|
@ -36,12 +36,12 @@
|
|||
|
||||
&:first-child {
|
||||
margin-top: @baseline * .5;
|
||||
} //h2 first child
|
||||
} //h2
|
||||
} //page-contents
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* home */
|
||||
&.home { //style homepage
|
||||
&.home {
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
|
@ -74,11 +74,11 @@
|
|||
line-height: 40px;
|
||||
}
|
||||
|
||||
} //hero hgroup
|
||||
}
|
||||
|
||||
} //hero-content
|
||||
}
|
||||
|
||||
} //homepage hero
|
||||
}
|
||||
|
||||
.why-vagrant {
|
||||
.padded;
|
||||
|
@ -91,7 +91,7 @@
|
|||
text-align: center;
|
||||
font-size: 40px;
|
||||
line-height: 40px;
|
||||
} //h1
|
||||
}
|
||||
|
||||
hgroup {
|
||||
margin: (@baseline * 3) 0;
|
||||
|
@ -104,15 +104,15 @@
|
|||
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;
|
||||
|
@ -133,7 +133,7 @@
|
|||
//background: fade(@white, 20%);
|
||||
}
|
||||
|
||||
} //get-started
|
||||
}
|
||||
|
||||
.customers {
|
||||
.padded;
|
||||
|
@ -164,19 +164,19 @@
|
|||
|
||||
img {
|
||||
|
||||
} //img
|
||||
|
||||
} //li
|
||||
} //ul.cusotmer-logos
|
||||
}
|
||||
|
||||
} //home
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* inner */
|
||||
&.inner { //style inner pages
|
||||
&.inner {
|
||||
.inner-bg-large; //sidebar background
|
||||
|
||||
.page-background { //change inner background color!
|
||||
.page-background {
|
||||
background-color: @gray-background; //page background
|
||||
}
|
||||
|
||||
|
@ -194,13 +194,13 @@
|
|||
|
||||
}
|
||||
|
||||
} //inner
|
||||
}
|
||||
|
||||
/* docs */
|
||||
&.docs { //style all docs
|
||||
&.docs {
|
||||
.docs-bg-large; //sidebar background
|
||||
|
||||
.page-background { //change the sidebar background color!
|
||||
.page-background {
|
||||
background: @white; //page background
|
||||
}
|
||||
|
||||
|
@ -218,12 +218,12 @@
|
|||
margin-top: -7px;
|
||||
}
|
||||
|
||||
&.docs-home { //style docs-home
|
||||
&.docs-home {
|
||||
|
||||
|
||||
} //documentation-home
|
||||
}
|
||||
|
||||
&.docs-inner { //style docs-inner
|
||||
&.docs-inner {
|
||||
|
||||
h3 {
|
||||
color: @docs-blue;
|
||||
|
@ -252,9 +252,9 @@
|
|||
//text-transform: uppercase;
|
||||
}
|
||||
|
||||
} //documentation-inner
|
||||
}
|
||||
|
||||
} //documentation
|
||||
}
|
||||
|
||||
|
||||
&.vmware {
|
||||
|
@ -290,7 +290,7 @@
|
|||
line-height: 28px;
|
||||
}
|
||||
|
||||
} //hero hgroup
|
||||
}
|
||||
|
||||
.button {
|
||||
font-size: 18px;
|
||||
|
@ -302,9 +302,9 @@
|
|||
background-color: #F26C4F;
|
||||
}
|
||||
|
||||
} //hero-content
|
||||
}
|
||||
|
||||
} //vmware hero
|
||||
}
|
||||
|
||||
.why {
|
||||
.padded;
|
||||
|
@ -318,17 +318,17 @@
|
|||
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 {
|
||||
|
@ -339,7 +339,7 @@
|
|||
font-size: 12px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
} //why
|
||||
}
|
||||
|
||||
.pricing {
|
||||
.padded;
|
||||
|
@ -427,7 +427,7 @@
|
|||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
}
|
||||
} //.pricing
|
||||
}
|
||||
|
||||
.customers {
|
||||
.padded;
|
||||
|
@ -453,15 +453,12 @@
|
|||
}
|
||||
|
||||
ul.customer-logos {
|
||||
|
||||
li {
|
||||
|
||||
img {
|
||||
|
||||
} //img
|
||||
|
||||
} //li
|
||||
} //ul.cusotmer-logos
|
||||
}
|
||||
}
|
||||
} //page
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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 );
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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';
|
||||
|
|