Wallet downloads page (#60)
* adds new dash community logos * adds os logos, removes mistakenly uploaded dash logos * adds correct images from design PSD * adds wallets page and hero * initial OS logos * adds bootstrap min js and scss files for modals, navs, and tooltips * implements pills and tab panes * adds html module for win-core modal * formats prototype modal
34
_i18n/en.yml
|
@ -2,6 +2,39 @@
|
||||||
# For multiple paragraph content add two line breaks
|
# For multiple paragraph content add two line breaks
|
||||||
pages:
|
pages:
|
||||||
|
|
||||||
|
wallets:
|
||||||
|
title: Dash Wallets
|
||||||
|
description: Get the right Dash wallet for your platform
|
||||||
|
hero-heading: Get a Dash wallet
|
||||||
|
hero-image: get-dash-n.jpg
|
||||||
|
hero-wallets-btn: Wallets
|
||||||
|
hero-guide-btn: Guide
|
||||||
|
hero-security-btn: Security
|
||||||
|
wallets-desktop-header: Desktop
|
||||||
|
wallets-desktop-subtitle: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
|
||||||
|
wallets-mobile-header: Mobile
|
||||||
|
wallets-mobile-subtitle: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
|
||||||
|
wallets-hardware-header: Hardware
|
||||||
|
wallets-hardware-subtitle: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
|
||||||
|
wallets-paper-header: Paper
|
||||||
|
wallets-paper-subtitle: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
|
||||||
|
wallets-security-header: Security
|
||||||
|
wallets-security-subtitle: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
|
||||||
|
modal-core-header: Download Dash Core
|
||||||
|
modal-electrum-header: Download Dash Electrum
|
||||||
|
modal-win-core-description: Brief Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
|
||||||
|
modal-win-core-security-key: Security
|
||||||
|
modal-win-core-security-value: .(full node/spv/hosted)
|
||||||
|
modal-win-core-source-code-key: Source Code
|
||||||
|
modal-win-core-source-code-value: .(link/ closed source)
|
||||||
|
modal-core-users-text: General Users
|
||||||
|
modal-core-users-value: 0.12.0.58
|
||||||
|
modal-core-masternode-text: Masternode Operators
|
||||||
|
modal-core-masternode-value: 0.12.0.58
|
||||||
|
modal-core-pool-text: Pool Operators
|
||||||
|
modal-core-pool-value: 0.12.0.58
|
||||||
|
|
||||||
|
|
||||||
contact:
|
contact:
|
||||||
title: Contact Dash
|
title: Contact Dash
|
||||||
description: Contact Dash
|
description: Contact Dash
|
||||||
|
@ -94,6 +127,7 @@ pages:
|
||||||
hero-wallet-version: Dash Wallet (Fullclient v12.0.56) for OSX
|
hero-wallet-version: Dash Wallet (Fullclient v12.0.56) for OSX
|
||||||
hero-wallet-version-select: Choose Another
|
hero-wallet-version-select: Choose Another
|
||||||
hero-download-btn: Download
|
hero-download-btn: Download
|
||||||
|
hero-all-wallets-btn: All Wallets
|
||||||
hero-guide-btn: Setup Guide
|
hero-guide-btn: Setup Guide
|
||||||
hero-buy-btn: Buy Dash
|
hero-buy-btn: Buy Dash
|
||||||
hero-spend-btn: Spend Dash
|
hero-spend-btn: Spend Dash
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
<div class="hero__buttons hero__buttons--get-dash">
|
<div class="hero__buttons hero__buttons--get-dash">
|
||||||
<a href="#" class="btn-blue-solid btn-large">{% t pages.get-dash.hero-download-btn %}</a>
|
<a href="#" class="btn-blue-solid btn-large">{% t pages.get-dash.hero-download-btn %}</a>
|
||||||
|
<a href="../wallets/" class="btn-large btn-white-solid">{% t pages.get-dash.hero-all-wallets-btn %}</a>
|
||||||
</div>
|
</div>
|
||||||
<p class="hero__text">{% t pages.get-dash.hero-wallet-version %} – (<a href="#" class="hero__link">{% t pages.get-dash.hero-wallet-version-select %}</a>)</p>
|
<p class="hero__text">{% t pages.get-dash.hero-wallet-version %} – (<a href="#" class="hero__link">{% t pages.get-dash.hero-wallet-version-select %}</a>)</p>
|
||||||
<div class="hero__buttons">
|
<div class="hero__buttons">
|
||||||
|
|
26
_includes/hero/wallets.html
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
<div class="hero hero--light" id="hero">
|
||||||
|
<div class="hero__background">
|
||||||
|
{% capture heroimage %}hero/{% t pages.wallets.hero-image %}{% endcapture %}
|
||||||
|
{% srcset hero/get-dash-n.jpg ppi:1,2 class="hero__background-image" %}
|
||||||
|
{% srcset_source width:1920 %}
|
||||||
|
{% srcset_source width:960 %}
|
||||||
|
{% endsrcset %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Navigation -->
|
||||||
|
{% include nav-desktop.html logo-color='black' %}
|
||||||
|
|
||||||
|
<!-- Hero content -->
|
||||||
|
<div class="hero__content">
|
||||||
|
<h1 class="hero__title">{% t pages.wallets.hero-heading %}</h1>
|
||||||
|
|
||||||
|
<div class="hero__buttons">
|
||||||
|
<a href="#getdash-wallet-setup" class="btn-white-solid">{% t pages.wallets.hero-wallets-btn %}</a>
|
||||||
|
<a href="#getdash-buy" class="btn-white-solid">{% t pages.wallets.hero-guide-btn %}</a>
|
||||||
|
<a href="#getdash-shop" class="btn-white-solid">{% t pages.wallets.hero-security-btn %}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Hero stripe -->
|
||||||
|
<div class="hero__stripe"></div>
|
||||||
|
</div>
|
81
_includes/modals/win-core.html
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- Modal -->
|
||||||
|
<div id="winDashCore" class="modal fade" role="dialog" tabindex="-1">
|
||||||
|
<div class="modal-dialog modal-lg" role="document">
|
||||||
|
|
||||||
|
<!-- Modal content-->
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close text-right" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
|
<h4 class="modal-title text-center">{% t pages.wallets.modal-core-header %}</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-8">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<p class="bottom-space">{% t pages.wallets.modal-win-core-description %}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<p class="bottom-space"><u>{% t pages.wallets.modal-win-core-security-key %}: </u>{% t pages.wallets.modal-win-core-security-value %} <a href="#" data-toggle="tooltip" title="security tooltip">?</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<p class="bottom-space"><u>{% t pages.wallets.modal-win-core-source-code-key %}: </u>{% t pages.wallets.modal-win-core-source-code-value %} <a href="#" data-toggle="tooltip" title="source code tooltip">?</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<select name="" id="" class="bottom-space">
|
||||||
|
<option value="win32">Windows 32-bit</option>
|
||||||
|
<option value="win64">Windows 64-bit</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row bottom-space">
|
||||||
|
<div class="col-xs-4"><a href="#">Hash</a></div>
|
||||||
|
<div class="col-xs-4"><a href="#">PGP</a></div>
|
||||||
|
<div class="col-xs-4"><a href="#">VERIFY</a></div>
|
||||||
|
</div>
|
||||||
|
<div class="row bottom-space">
|
||||||
|
<div class="col-xs-6">
|
||||||
|
<button type="button" class="btn btn-white-solid">Installer</button>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-6">
|
||||||
|
<button type="button" class="btn btn-white-solid">
|
||||||
|
Portable
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-4">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<h5>{% t pages.wallets.modal-core-users-text %}</h5>
|
||||||
|
<p class="bottom-space">{% t pages.wallets.modal-core-users-value %}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<h5>{% t pages.wallets.modal-core-masternode-text %}</h5>
|
||||||
|
<p class="bottom-space">{% t pages.wallets.modal-core-masternode-value %}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<h5>{% t pages.wallets.modal-core-pool-text %}</h5>
|
||||||
|
<p class="bottom-space">{% t pages.wallets.modal-core-pool-value %}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
BIN
assets/img/community/android.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
assets/img/community/electrum.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
assets/img/community/exodus.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
assets/img/community/github_octocat.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
assets/img/community/jaxx.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
assets/img/community/linux_32.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
assets/img/community/linux_64.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
assets/img/community/mycelium.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
assets/img/community/osx.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
assets/img/community/win_32.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
assets/img/community/win_64.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
11
src/js/bootstrap.min.js
vendored
Normal file
|
@ -5,6 +5,28 @@ you're in a hurry or lost or you just need to Make It Work©
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
.center-block {
|
||||||
|
margin: 0 auto;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bottom-space {
|
||||||
|
margin-bottom: 3%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet-tile {
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
height: 150px;
|
||||||
|
}
|
||||||
|
|
||||||
img.staff {
|
img.staff {
|
||||||
max-width: 100px;
|
max-width: 100px;
|
||||||
float: left;
|
float: left;
|
||||||
|
|
40
src/scss/_mixins.scss
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
// Mixins
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Utilities
|
||||||
|
@import "mixins/hide-text";
|
||||||
|
@import "mixins/opacity";
|
||||||
|
@import "mixins/image";
|
||||||
|
@import "mixins/labels";
|
||||||
|
@import "mixins/reset-filter";
|
||||||
|
@import "mixins/resize";
|
||||||
|
@import "mixins/responsive-visibility";
|
||||||
|
@import "mixins/size";
|
||||||
|
@import "mixins/tab-focus";
|
||||||
|
@import "mixins/reset-text";
|
||||||
|
@import "mixins/text-emphasis";
|
||||||
|
@import "mixins/text-overflow";
|
||||||
|
@import "mixins/vendor-prefixes";
|
||||||
|
|
||||||
|
// Components
|
||||||
|
@import "mixins/alerts";
|
||||||
|
@import "mixins/buttons";
|
||||||
|
@import "mixins/panels";
|
||||||
|
@import "mixins/pagination";
|
||||||
|
@import "mixins/list-group";
|
||||||
|
@import "mixins/nav-divider";
|
||||||
|
@import "mixins/forms";
|
||||||
|
@import "mixins/progress-bar";
|
||||||
|
@import "mixins/table-row";
|
||||||
|
|
||||||
|
// Skins
|
||||||
|
@import "mixins/background-variant";
|
||||||
|
@import "mixins/border-radius";
|
||||||
|
@import "mixins/gradients";
|
||||||
|
|
||||||
|
// Layout
|
||||||
|
@import "mixins/clearfix";
|
||||||
|
@import "mixins/center-block";
|
||||||
|
@import "mixins/nav-vertical-align";
|
||||||
|
@import "mixins/grid-framework";
|
||||||
|
@import "mixins/grid";
|
150
src/scss/_modals.scss
Normal file
|
@ -0,0 +1,150 @@
|
||||||
|
//
|
||||||
|
// Modals
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// .modal-open - body class for killing the scroll
|
||||||
|
// .modal - container to scroll within
|
||||||
|
// .modal-dialog - positioning shell for the actual modal
|
||||||
|
// .modal-content - actual modal w/ bg and corners and shit
|
||||||
|
|
||||||
|
// Kill the scroll on the body
|
||||||
|
.modal-open {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Container that the modal scrolls within
|
||||||
|
.modal {
|
||||||
|
display: none;
|
||||||
|
overflow: hidden;
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: $zindex-modal;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
|
||||||
|
// Prevent Chrome on Windows from adding a focus outline. For details, see
|
||||||
|
// https://github.com/twbs/bootstrap/pull/10951.
|
||||||
|
outline: 0;
|
||||||
|
|
||||||
|
// When fading in the modal, animate it to slide down
|
||||||
|
&.fade .modal-dialog {
|
||||||
|
@include translate(0, -25%);
|
||||||
|
@include transition-transform(0.3s ease-out);
|
||||||
|
}
|
||||||
|
&.in .modal-dialog { @include translate(0, 0) }
|
||||||
|
}
|
||||||
|
.modal-open .modal {
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Shell div to position the modal with bottom padding
|
||||||
|
.modal-dialog {
|
||||||
|
position: relative;
|
||||||
|
width: auto;
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Actual modal
|
||||||
|
.modal-content {
|
||||||
|
position: relative;
|
||||||
|
background-color: $modal-content-bg;
|
||||||
|
border: 1px solid $modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
|
||||||
|
border: 1px solid $modal-content-border-color;
|
||||||
|
border-radius: $border-radius-large;
|
||||||
|
@include box-shadow(0 3px 9px rgba(0,0,0,.5));
|
||||||
|
background-clip: padding-box;
|
||||||
|
// Remove focus outline from opened modal
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Modal background
|
||||||
|
.modal-backdrop {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: $zindex-modal-background;
|
||||||
|
background-color: $modal-backdrop-bg;
|
||||||
|
// Fade for backdrop
|
||||||
|
&.fade { @include opacity(0); }
|
||||||
|
&.in { @include opacity($modal-backdrop-opacity); }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Modal header
|
||||||
|
// Top section of the modal w/ title and dismiss
|
||||||
|
.modal-header {
|
||||||
|
padding: $modal-title-padding;
|
||||||
|
border-bottom: 1px solid $modal-header-border-color;
|
||||||
|
@include clearfix;
|
||||||
|
}
|
||||||
|
// Close icon
|
||||||
|
.modal-header .close {
|
||||||
|
margin-top: -2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Title text within header
|
||||||
|
.modal-title {
|
||||||
|
margin: 0;
|
||||||
|
line-height: $modal-title-line-height;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Modal body
|
||||||
|
// Where all modal content resides (sibling of .modal-header and .modal-footer)
|
||||||
|
.modal-body {
|
||||||
|
position: relative;
|
||||||
|
padding: $modal-inner-padding;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Footer (for actions)
|
||||||
|
.modal-footer {
|
||||||
|
padding: $modal-inner-padding;
|
||||||
|
text-align: right; // right align buttons
|
||||||
|
border-top: 1px solid $modal-footer-border-color;
|
||||||
|
@include clearfix; // clear it in case folks use .pull-* classes on buttons
|
||||||
|
|
||||||
|
// Properly space out buttons
|
||||||
|
.btn + .btn {
|
||||||
|
margin-left: 5px;
|
||||||
|
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
|
||||||
|
}
|
||||||
|
// but override that for button groups
|
||||||
|
.btn-group .btn + .btn {
|
||||||
|
margin-left: -1px;
|
||||||
|
}
|
||||||
|
// and override it for block buttons as well
|
||||||
|
.btn-block + .btn-block {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Measure scrollbar width for padding body during modal show/hide
|
||||||
|
.modal-scrollbar-measure {
|
||||||
|
position: absolute;
|
||||||
|
top: -9999px;
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
overflow: scroll;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Scale up the modal
|
||||||
|
@media (min-width: $screen-sm-min) {
|
||||||
|
// Automatically set modal's width for larger viewports
|
||||||
|
.modal-dialog {
|
||||||
|
width: $modal-md;
|
||||||
|
margin: 30px auto;
|
||||||
|
}
|
||||||
|
.modal-content {
|
||||||
|
@include box-shadow(0 5px 15px rgba(0,0,0,.5));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Modal sizes
|
||||||
|
.modal-sm { width: $modal-sm; }
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: $screen-md-min) {
|
||||||
|
.modal-lg { width: $modal-lg; }
|
||||||
|
}
|
242
src/scss/_navs.scss
Normal file
|
@ -0,0 +1,242 @@
|
||||||
|
//
|
||||||
|
// Navs
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Base class
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
.nav2 {
|
||||||
|
margin-bottom: 0;
|
||||||
|
padding-left: 0; // Override default ul/ol
|
||||||
|
list-style: none;
|
||||||
|
@include clearfix;
|
||||||
|
|
||||||
|
> li {
|
||||||
|
position: relative;
|
||||||
|
display: block;
|
||||||
|
|
||||||
|
> a {
|
||||||
|
position: relative;
|
||||||
|
display: block;
|
||||||
|
padding: $nav-link-padding;
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: $nav-link-hover-bg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Disabled state sets text to gray and nukes hover/tab effects
|
||||||
|
&.disabled > a {
|
||||||
|
color: $nav-disabled-link-color;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: $nav-disabled-link-hover-color;
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: transparent;
|
||||||
|
cursor: $cursor-disabled;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Open dropdowns
|
||||||
|
.open > a {
|
||||||
|
&,
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
background-color: $nav-link-hover-bg;
|
||||||
|
border-color: $link-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Nav dividers (deprecated with v3.0.1)
|
||||||
|
//
|
||||||
|
// This should have been removed in v3 with the dropping of `.nav-list`, but
|
||||||
|
// we missed it. We don't currently support this anywhere, but in the interest
|
||||||
|
// of maintaining backward compatibility in case you use it, it's deprecated.
|
||||||
|
.nav-divider {
|
||||||
|
@include nav-divider;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prevent IE8 from misplacing imgs
|
||||||
|
//
|
||||||
|
// See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989
|
||||||
|
> li > a > img {
|
||||||
|
max-width: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Tabs
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
// Give the tabs something to sit on
|
||||||
|
.nav-tabs {
|
||||||
|
border-bottom: 1px solid $nav-tabs-border-color;
|
||||||
|
> li {
|
||||||
|
float: left;
|
||||||
|
// Make the list-items overlay the bottom border
|
||||||
|
margin-bottom: -1px;
|
||||||
|
|
||||||
|
// Actual tabs (as links)
|
||||||
|
> a {
|
||||||
|
margin-right: 2px;
|
||||||
|
line-height: $line-height-base;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
border-radius: $border-radius-base $border-radius-base 0 0;
|
||||||
|
&:hover {
|
||||||
|
border-color: $nav-tabs-link-hover-border-color $nav-tabs-link-hover-border-color $nav-tabs-border-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Active state, and its :hover to override normal :hover
|
||||||
|
&.active > a {
|
||||||
|
&,
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: $nav-tabs-active-link-hover-color;
|
||||||
|
background-color: $nav-tabs-active-link-hover-bg;
|
||||||
|
border: 1px solid $nav-tabs-active-link-hover-border-color;
|
||||||
|
border-bottom-color: transparent;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// pulling this in mainly for less shorthand
|
||||||
|
&.nav-justified {
|
||||||
|
@extend .nav-justified;
|
||||||
|
@extend .nav-tabs-justified;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Pills
|
||||||
|
// -------------------------
|
||||||
|
.nav-pills {
|
||||||
|
> li {
|
||||||
|
float: left;
|
||||||
|
|
||||||
|
// Links rendered as pills
|
||||||
|
> a {
|
||||||
|
border-radius: $nav-pills-border-radius;
|
||||||
|
}
|
||||||
|
+ li {
|
||||||
|
margin-left: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Active state
|
||||||
|
&.active > a {
|
||||||
|
&,
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: $nav-pills-active-link-hover-color;
|
||||||
|
background-color: $nav-pills-active-link-hover-bg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Stacked pills
|
||||||
|
.nav-stacked {
|
||||||
|
> li {
|
||||||
|
float: none;
|
||||||
|
+ li {
|
||||||
|
margin-top: 2px;
|
||||||
|
margin-left: 0; // no need for this gap between nav items
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Nav variations
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Justified nav links
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
.nav-justified {
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
> li {
|
||||||
|
float: none;
|
||||||
|
> a {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> .dropdown .dropdown-menu {
|
||||||
|
top: auto;
|
||||||
|
left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: $screen-sm-min) {
|
||||||
|
> li {
|
||||||
|
display: table-cell;
|
||||||
|
width: 1%;
|
||||||
|
> a {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Move borders to anchors instead of bottom of list
|
||||||
|
//
|
||||||
|
// Mixin for adding on top the shared `.nav-justified` styles for our tabs
|
||||||
|
.nav-tabs-justified {
|
||||||
|
border-bottom: 0;
|
||||||
|
|
||||||
|
> li > a {
|
||||||
|
// Override margin from .nav-tabs
|
||||||
|
margin-right: 0;
|
||||||
|
border-radius: $border-radius-base;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .active > a,
|
||||||
|
> .active > a:hover,
|
||||||
|
> .active > a:focus {
|
||||||
|
border: 1px solid $nav-tabs-justified-link-border-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: $screen-sm-min) {
|
||||||
|
> li > a {
|
||||||
|
border-bottom: 1px solid $nav-tabs-justified-link-border-color;
|
||||||
|
border-radius: $border-radius-base $border-radius-base 0 0;
|
||||||
|
}
|
||||||
|
> .active > a,
|
||||||
|
> .active > a:hover,
|
||||||
|
> .active > a:focus {
|
||||||
|
border-bottom-color: $nav-tabs-justified-active-link-border-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Tabbable tabs
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
// Hide tabbable panes to start, show them when `.active`
|
||||||
|
.tab-content {
|
||||||
|
> .tab-pane {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
> .active {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Dropdowns
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
// Specific dropdowns
|
||||||
|
.nav-tabs .dropdown-menu {
|
||||||
|
// make dropdown border overlap tab border
|
||||||
|
margin-top: -1px;
|
||||||
|
// Remove the top rounded corners here since there is a hard edge above the menu
|
||||||
|
@include border-top-radius(0);
|
||||||
|
}
|
|
@ -22,5 +22,8 @@ $m: 'page';
|
||||||
|
|
||||||
&--blog {
|
&--blog {
|
||||||
|
|
||||||
|
}
|
||||||
|
&--wallets {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
101
src/scss/_tooltip.scss
Normal file
|
@ -0,0 +1,101 @@
|
||||||
|
//
|
||||||
|
// Tooltips
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Base class
|
||||||
|
.tooltip {
|
||||||
|
position: absolute;
|
||||||
|
z-index: $zindex-tooltip;
|
||||||
|
display: block;
|
||||||
|
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
|
||||||
|
// So reset our font and text properties to avoid inheriting weird values.
|
||||||
|
@include reset-text;
|
||||||
|
font-size: $font-size-small;
|
||||||
|
|
||||||
|
@include opacity(0);
|
||||||
|
|
||||||
|
&.in { @include opacity($tooltip-opacity); }
|
||||||
|
&.top { margin-top: -3px; padding: $tooltip-arrow-width 0; }
|
||||||
|
&.right { margin-left: 3px; padding: 0 $tooltip-arrow-width; }
|
||||||
|
&.bottom { margin-top: 3px; padding: $tooltip-arrow-width 0; }
|
||||||
|
&.left { margin-left: -3px; padding: 0 $tooltip-arrow-width; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Wrapper for the tooltip content
|
||||||
|
.tooltip-inner {
|
||||||
|
max-width: $tooltip-max-width;
|
||||||
|
padding: 3px 8px;
|
||||||
|
color: $tooltip-color;
|
||||||
|
text-align: center;
|
||||||
|
background-color: $tooltip-bg;
|
||||||
|
border-radius: $border-radius-base;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Arrows
|
||||||
|
.tooltip-arrow {
|
||||||
|
position: absolute;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-color: transparent;
|
||||||
|
border-style: solid;
|
||||||
|
}
|
||||||
|
// Note: Deprecated .top-left, .top-right, .bottom-left, and .bottom-right as of v3.3.1
|
||||||
|
.tooltip {
|
||||||
|
&.top .tooltip-arrow {
|
||||||
|
bottom: 0;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -$tooltip-arrow-width;
|
||||||
|
border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
|
||||||
|
border-top-color: $tooltip-arrow-color;
|
||||||
|
}
|
||||||
|
&.top-left .tooltip-arrow {
|
||||||
|
bottom: 0;
|
||||||
|
right: $tooltip-arrow-width;
|
||||||
|
margin-bottom: -$tooltip-arrow-width;
|
||||||
|
border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
|
||||||
|
border-top-color: $tooltip-arrow-color;
|
||||||
|
}
|
||||||
|
&.top-right .tooltip-arrow {
|
||||||
|
bottom: 0;
|
||||||
|
left: $tooltip-arrow-width;
|
||||||
|
margin-bottom: -$tooltip-arrow-width;
|
||||||
|
border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
|
||||||
|
border-top-color: $tooltip-arrow-color;
|
||||||
|
}
|
||||||
|
&.right .tooltip-arrow {
|
||||||
|
top: 50%;
|
||||||
|
left: 0;
|
||||||
|
margin-top: -$tooltip-arrow-width;
|
||||||
|
border-width: $tooltip-arrow-width $tooltip-arrow-width $tooltip-arrow-width 0;
|
||||||
|
border-right-color: $tooltip-arrow-color;
|
||||||
|
}
|
||||||
|
&.left .tooltip-arrow {
|
||||||
|
top: 50%;
|
||||||
|
right: 0;
|
||||||
|
margin-top: -$tooltip-arrow-width;
|
||||||
|
border-width: $tooltip-arrow-width 0 $tooltip-arrow-width $tooltip-arrow-width;
|
||||||
|
border-left-color: $tooltip-arrow-color;
|
||||||
|
}
|
||||||
|
&.bottom .tooltip-arrow {
|
||||||
|
top: 0;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -$tooltip-arrow-width;
|
||||||
|
border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
|
||||||
|
border-bottom-color: $tooltip-arrow-color;
|
||||||
|
}
|
||||||
|
&.bottom-left .tooltip-arrow {
|
||||||
|
top: 0;
|
||||||
|
right: $tooltip-arrow-width;
|
||||||
|
margin-top: -$tooltip-arrow-width;
|
||||||
|
border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
|
||||||
|
border-bottom-color: $tooltip-arrow-color;
|
||||||
|
}
|
||||||
|
&.bottom-right .tooltip-arrow {
|
||||||
|
top: 0;
|
||||||
|
left: $tooltip-arrow-width;
|
||||||
|
margin-top: -$tooltip-arrow-width;
|
||||||
|
border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
|
||||||
|
border-bottom-color: $tooltip-arrow-color;
|
||||||
|
}
|
||||||
|
}
|
874
src/scss/_variables.scss
Normal file
|
@ -0,0 +1,874 @@
|
||||||
|
$bootstrap-sass-asset-helper: false !default;
|
||||||
|
//
|
||||||
|
// Variables
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
//== Colors
|
||||||
|
//
|
||||||
|
//## Gray and brand colors for use across Bootstrap.
|
||||||
|
|
||||||
|
$gray-base: #000 !default;
|
||||||
|
$gray-darker: lighten($gray-base, 13.5%) !default; // #222
|
||||||
|
$gray-dark: lighten($gray-base, 20%) !default; // #333
|
||||||
|
$gray: lighten($gray-base, 33.5%) !default; // #555
|
||||||
|
$gray-light: lighten($gray-base, 46.7%) !default; // #777
|
||||||
|
$gray-lighter: lighten($gray-base, 93.5%) !default; // #eee
|
||||||
|
|
||||||
|
$brand-primary: darken(#428bca, 6.5%) !default; // #337ab7
|
||||||
|
$brand-success: #5cb85c !default;
|
||||||
|
$brand-info: #5bc0de !default;
|
||||||
|
$brand-warning: #f0ad4e !default;
|
||||||
|
$brand-danger: #d9534f !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Scaffolding
|
||||||
|
//
|
||||||
|
//## Settings for some of the most global styles.
|
||||||
|
|
||||||
|
//** Background color for `<body>`.
|
||||||
|
$body-bg: #fff !default;
|
||||||
|
//** Global text color on `<body>`.
|
||||||
|
$text-color: $gray-dark !default;
|
||||||
|
|
||||||
|
//** Global textual link color.
|
||||||
|
$link-color: $brand-primary !default;
|
||||||
|
//** Link hover color set via `darken()` function.
|
||||||
|
$link-hover-color: darken($link-color, 15%) !default;
|
||||||
|
//** Link hover decoration.
|
||||||
|
$link-hover-decoration: underline !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Typography
|
||||||
|
//
|
||||||
|
//## Font, line-height, and color for body text, headings, and more.
|
||||||
|
|
||||||
|
$font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
|
||||||
|
$font-family-serif: Georgia, "Times New Roman", Times, serif !default;
|
||||||
|
//** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
|
||||||
|
$font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace !default;
|
||||||
|
$font-family-base: $font-family-sans-serif !default;
|
||||||
|
|
||||||
|
$font-size-base: 14px !default;
|
||||||
|
$font-size-large: ceil(($font-size-base * 1.25)) !default; // ~18px
|
||||||
|
$font-size-small: ceil(($font-size-base * 0.85)) !default; // ~12px
|
||||||
|
|
||||||
|
$font-size-h1: floor(($font-size-base * 2.6)) !default; // ~36px
|
||||||
|
$font-size-h2: floor(($font-size-base * 2.15)) !default; // ~30px
|
||||||
|
$font-size-h3: ceil(($font-size-base * 1.7)) !default; // ~24px
|
||||||
|
$font-size-h4: ceil(($font-size-base * 1.25)) !default; // ~18px
|
||||||
|
$font-size-h5: $font-size-base !default;
|
||||||
|
$font-size-h6: ceil(($font-size-base * 0.85)) !default; // ~12px
|
||||||
|
|
||||||
|
//** Unit-less `line-height` for use in components like buttons.
|
||||||
|
$line-height-base: 1.428571429 !default; // 20/14
|
||||||
|
//** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
|
||||||
|
$line-height-computed: floor(($font-size-base * $line-height-base)) !default; // ~20px
|
||||||
|
|
||||||
|
//** By default, this inherits from the `<body>`.
|
||||||
|
$headings-font-family: inherit !default;
|
||||||
|
$headings-font-weight: 500 !default;
|
||||||
|
$headings-line-height: 1.1 !default;
|
||||||
|
$headings-color: inherit !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Iconography
|
||||||
|
//
|
||||||
|
//## Specify custom location and filename of the included Glyphicons icon font. Useful for those including Bootstrap via Bower.
|
||||||
|
|
||||||
|
//** Load fonts from this directory.
|
||||||
|
|
||||||
|
// [converter] If $bootstrap-sass-asset-helper if used, provide path relative to the assets load path.
|
||||||
|
// [converter] This is because some asset helpers, such as Sprockets, do not work with file-relative paths.
|
||||||
|
$icon-font-path: if($bootstrap-sass-asset-helper, "bootstrap/", "../fonts/bootstrap/") !default;
|
||||||
|
|
||||||
|
//** File name for all font files.
|
||||||
|
$icon-font-name: "glyphicons-halflings-regular" !default;
|
||||||
|
//** Element ID within SVG icon file.
|
||||||
|
$icon-font-svg-id: "glyphicons_halflingsregular" !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Components
|
||||||
|
//
|
||||||
|
//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
|
||||||
|
|
||||||
|
$padding-base-vertical: 6px !default;
|
||||||
|
$padding-base-horizontal: 12px !default;
|
||||||
|
|
||||||
|
$padding-large-vertical: 10px !default;
|
||||||
|
$padding-large-horizontal: 16px !default;
|
||||||
|
|
||||||
|
$padding-small-vertical: 5px !default;
|
||||||
|
$padding-small-horizontal: 10px !default;
|
||||||
|
|
||||||
|
$padding-xs-vertical: 1px !default;
|
||||||
|
$padding-xs-horizontal: 5px !default;
|
||||||
|
|
||||||
|
$line-height-large: 1.3333333 !default; // extra decimals for Win 8.1 Chrome
|
||||||
|
$line-height-small: 1.5 !default;
|
||||||
|
|
||||||
|
$border-radius-base: 4px !default;
|
||||||
|
$border-radius-large: 6px !default;
|
||||||
|
$border-radius-small: 3px !default;
|
||||||
|
|
||||||
|
//** Global color for active items (e.g., navs or dropdowns).
|
||||||
|
$component-active-color: #fff !default;
|
||||||
|
//** Global background color for active items (e.g., navs or dropdowns).
|
||||||
|
$component-active-bg: $brand-primary !default;
|
||||||
|
|
||||||
|
//** Width of the `border` for generating carets that indicate dropdowns.
|
||||||
|
$caret-width-base: 4px !default;
|
||||||
|
//** Carets increase slightly in size for larger components.
|
||||||
|
$caret-width-large: 5px !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Tables
|
||||||
|
//
|
||||||
|
//## Customizes the `.table` component with basic values, each used across all table variations.
|
||||||
|
|
||||||
|
//** Padding for `<th>`s and `<td>`s.
|
||||||
|
$table-cell-padding: 8px !default;
|
||||||
|
//** Padding for cells in `.table-condensed`.
|
||||||
|
$table-condensed-cell-padding: 5px !default;
|
||||||
|
|
||||||
|
//** Default background color used for all tables.
|
||||||
|
$table-bg: transparent !default;
|
||||||
|
//** Background color used for `.table-striped`.
|
||||||
|
$table-bg-accent: #f9f9f9 !default;
|
||||||
|
//** Background color used for `.table-hover`.
|
||||||
|
$table-bg-hover: #f5f5f5 !default;
|
||||||
|
$table-bg-active: $table-bg-hover !default;
|
||||||
|
|
||||||
|
//** Border color for table and cell borders.
|
||||||
|
$table-border-color: #ddd !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Buttons
|
||||||
|
//
|
||||||
|
//## For each of Bootstrap's buttons, define text, background and border color.
|
||||||
|
|
||||||
|
$btn-font-weight: normal !default;
|
||||||
|
|
||||||
|
$btn-default-color: #333 !default;
|
||||||
|
$btn-default-bg: #fff !default;
|
||||||
|
$btn-default-border: #ccc !default;
|
||||||
|
|
||||||
|
$btn-primary-color: #fff !default;
|
||||||
|
$btn-primary-bg: $brand-primary !default;
|
||||||
|
$btn-primary-border: darken($btn-primary-bg, 5%) !default;
|
||||||
|
|
||||||
|
$btn-success-color: #fff !default;
|
||||||
|
$btn-success-bg: $brand-success !default;
|
||||||
|
$btn-success-border: darken($btn-success-bg, 5%) !default;
|
||||||
|
|
||||||
|
$btn-info-color: #fff !default;
|
||||||
|
$btn-info-bg: $brand-info !default;
|
||||||
|
$btn-info-border: darken($btn-info-bg, 5%) !default;
|
||||||
|
|
||||||
|
$btn-warning-color: #fff !default;
|
||||||
|
$btn-warning-bg: $brand-warning !default;
|
||||||
|
$btn-warning-border: darken($btn-warning-bg, 5%) !default;
|
||||||
|
|
||||||
|
$btn-danger-color: #fff !default;
|
||||||
|
$btn-danger-bg: $brand-danger !default;
|
||||||
|
$btn-danger-border: darken($btn-danger-bg, 5%) !default;
|
||||||
|
|
||||||
|
$btn-link-disabled-color: $gray-light !default;
|
||||||
|
|
||||||
|
// Allows for customizing button radius independently from global border radius
|
||||||
|
$btn-border-radius-base: $border-radius-base !default;
|
||||||
|
$btn-border-radius-large: $border-radius-large !default;
|
||||||
|
$btn-border-radius-small: $border-radius-small !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Forms
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
//** `<input>` background color
|
||||||
|
$input-bg: #fff !default;
|
||||||
|
//** `<input disabled>` background color
|
||||||
|
$input-bg-disabled: $gray-lighter !default;
|
||||||
|
|
||||||
|
//** Text color for `<input>`s
|
||||||
|
$input-color: $gray !default;
|
||||||
|
//** `<input>` border color
|
||||||
|
$input-border: #ccc !default;
|
||||||
|
|
||||||
|
// TODO: Rename `$input-border-radius` to `$input-border-radius-base` in v4
|
||||||
|
//** Default `.form-control` border radius
|
||||||
|
// This has no effect on `<select>`s in some browsers, due to the limited stylability of `<select>`s in CSS.
|
||||||
|
$input-border-radius: $border-radius-base !default;
|
||||||
|
//** Large `.form-control` border radius
|
||||||
|
$input-border-radius-large: $border-radius-large !default;
|
||||||
|
//** Small `.form-control` border radius
|
||||||
|
$input-border-radius-small: $border-radius-small !default;
|
||||||
|
|
||||||
|
//** Border color for inputs on focus
|
||||||
|
$input-border-focus: #66afe9 !default;
|
||||||
|
|
||||||
|
//** Placeholder text color
|
||||||
|
$input-color-placeholder: #999 !default;
|
||||||
|
|
||||||
|
//** Default `.form-control` height
|
||||||
|
$input-height-base: ($line-height-computed + ($padding-base-vertical * 2) + 2) !default;
|
||||||
|
//** Large `.form-control` height
|
||||||
|
$input-height-large: (ceil($font-size-large * $line-height-large) + ($padding-large-vertical * 2) + 2) !default;
|
||||||
|
//** Small `.form-control` height
|
||||||
|
$input-height-small: (floor($font-size-small * $line-height-small) + ($padding-small-vertical * 2) + 2) !default;
|
||||||
|
|
||||||
|
//** `.form-group` margin
|
||||||
|
$form-group-margin-bottom: 15px !default;
|
||||||
|
|
||||||
|
$legend-color: $gray-dark !default;
|
||||||
|
$legend-border-color: #e5e5e5 !default;
|
||||||
|
|
||||||
|
//** Background color for textual input addons
|
||||||
|
$input-group-addon-bg: $gray-lighter !default;
|
||||||
|
//** Border color for textual input addons
|
||||||
|
$input-group-addon-border-color: $input-border !default;
|
||||||
|
|
||||||
|
//** Disabled cursor for form controls and buttons.
|
||||||
|
$cursor-disabled: not-allowed !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Dropdowns
|
||||||
|
//
|
||||||
|
//## Dropdown menu container and contents.
|
||||||
|
|
||||||
|
//** Background for the dropdown menu.
|
||||||
|
$dropdown-bg: #fff !default;
|
||||||
|
//** Dropdown menu `border-color`.
|
||||||
|
$dropdown-border: rgba(0,0,0,.15) !default;
|
||||||
|
//** Dropdown menu `border-color` **for IE8**.
|
||||||
|
$dropdown-fallback-border: #ccc !default;
|
||||||
|
//** Divider color for between dropdown items.
|
||||||
|
$dropdown-divider-bg: #e5e5e5 !default;
|
||||||
|
|
||||||
|
//** Dropdown link text color.
|
||||||
|
$dropdown-link-color: $gray-dark !default;
|
||||||
|
//** Hover color for dropdown links.
|
||||||
|
$dropdown-link-hover-color: darken($gray-dark, 5%) !default;
|
||||||
|
//** Hover background for dropdown links.
|
||||||
|
$dropdown-link-hover-bg: #f5f5f5 !default;
|
||||||
|
|
||||||
|
//** Active dropdown menu item text color.
|
||||||
|
$dropdown-link-active-color: $component-active-color !default;
|
||||||
|
//** Active dropdown menu item background color.
|
||||||
|
$dropdown-link-active-bg: $component-active-bg !default;
|
||||||
|
|
||||||
|
//** Disabled dropdown menu item background color.
|
||||||
|
$dropdown-link-disabled-color: $gray-light !default;
|
||||||
|
|
||||||
|
//** Text color for headers within dropdown menus.
|
||||||
|
$dropdown-header-color: $gray-light !default;
|
||||||
|
|
||||||
|
//** Deprecated `$dropdown-caret-color` as of v3.1.0
|
||||||
|
$dropdown-caret-color: #000 !default;
|
||||||
|
|
||||||
|
|
||||||
|
//-- Z-index master list
|
||||||
|
//
|
||||||
|
// Warning: Avoid customizing these values. They're used for a bird's eye view
|
||||||
|
// of components dependent on the z-axis and are designed to all work together.
|
||||||
|
//
|
||||||
|
// Note: These variables are not generated into the Customizer.
|
||||||
|
|
||||||
|
$zindex-navbar: 1000 !default;
|
||||||
|
$zindex-dropdown: 1000 !default;
|
||||||
|
$zindex-popover: 1060 !default;
|
||||||
|
$zindex-tooltip: 1070 !default;
|
||||||
|
$zindex-navbar-fixed: 1030 !default;
|
||||||
|
$zindex-modal-background: 1040 !default;
|
||||||
|
$zindex-modal: 1050 !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Media queries breakpoints
|
||||||
|
//
|
||||||
|
//## Define the breakpoints at which your layout will change, adapting to different screen sizes.
|
||||||
|
|
||||||
|
// Extra small screen / phone
|
||||||
|
//** Deprecated `$screen-xs` as of v3.0.1
|
||||||
|
$screen-xs: 480px !default;
|
||||||
|
//** Deprecated `$screen-xs-min` as of v3.2.0
|
||||||
|
$screen-xs-min: $screen-xs !default;
|
||||||
|
//** Deprecated `$screen-phone` as of v3.0.1
|
||||||
|
$screen-phone: $screen-xs-min !default;
|
||||||
|
|
||||||
|
// Small screen / tablet
|
||||||
|
//** Deprecated `$screen-sm` as of v3.0.1
|
||||||
|
$screen-sm: 768px !default;
|
||||||
|
$screen-sm-min: $screen-sm !default;
|
||||||
|
//** Deprecated `$screen-tablet` as of v3.0.1
|
||||||
|
$screen-tablet: $screen-sm-min !default;
|
||||||
|
|
||||||
|
// Medium screen / desktop
|
||||||
|
//** Deprecated `$screen-md` as of v3.0.1
|
||||||
|
$screen-md: 992px !default;
|
||||||
|
$screen-md-min: $screen-md !default;
|
||||||
|
//** Deprecated `$screen-desktop` as of v3.0.1
|
||||||
|
$screen-desktop: $screen-md-min !default;
|
||||||
|
|
||||||
|
// Large screen / wide desktop
|
||||||
|
//** Deprecated `$screen-lg` as of v3.0.1
|
||||||
|
$screen-lg: 1200px !default;
|
||||||
|
$screen-lg-min: $screen-lg !default;
|
||||||
|
//** Deprecated `$screen-lg-desktop` as of v3.0.1
|
||||||
|
$screen-lg-desktop: $screen-lg-min !default;
|
||||||
|
|
||||||
|
// So media queries don't overlap when required, provide a maximum
|
||||||
|
$screen-xs-max: ($screen-sm-min - 1) !default;
|
||||||
|
$screen-sm-max: ($screen-md-min - 1) !default;
|
||||||
|
$screen-md-max: ($screen-lg-min - 1) !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Grid system
|
||||||
|
//
|
||||||
|
//## Define your custom responsive grid.
|
||||||
|
|
||||||
|
//** Number of columns in the grid.
|
||||||
|
$grid-columns: 12 !default;
|
||||||
|
//** Padding between columns. Gets divided in half for the left and right.
|
||||||
|
$grid-gutter-width: 30px !default;
|
||||||
|
// Navbar collapse
|
||||||
|
//** Point at which the navbar becomes uncollapsed.
|
||||||
|
$grid-float-breakpoint: $screen-sm-min !default;
|
||||||
|
//** Point at which the navbar begins collapsing.
|
||||||
|
$grid-float-breakpoint-max: ($grid-float-breakpoint - 1) !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Container sizes
|
||||||
|
//
|
||||||
|
//## Define the maximum width of `.container` for different screen sizes.
|
||||||
|
|
||||||
|
// Small screen / tablet
|
||||||
|
$container-tablet: (720px + $grid-gutter-width) !default;
|
||||||
|
//** For `$screen-sm-min` and up.
|
||||||
|
$container-sm: $container-tablet !default;
|
||||||
|
|
||||||
|
// Medium screen / desktop
|
||||||
|
$container-desktop: (940px + $grid-gutter-width) !default;
|
||||||
|
//** For `$screen-md-min` and up.
|
||||||
|
$container-md: $container-desktop !default;
|
||||||
|
|
||||||
|
// Large screen / wide desktop
|
||||||
|
$container-large-desktop: (1140px + $grid-gutter-width) !default;
|
||||||
|
//** For `$screen-lg-min` and up.
|
||||||
|
$container-lg: $container-large-desktop !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Navbar
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
// Basics of a navbar
|
||||||
|
$navbar-height: 50px !default;
|
||||||
|
$navbar-margin-bottom: $line-height-computed !default;
|
||||||
|
$navbar-border-radius: $border-radius-base !default;
|
||||||
|
$navbar-padding-horizontal: floor(($grid-gutter-width / 2)) !default;
|
||||||
|
$navbar-padding-vertical: (($navbar-height - $line-height-computed) / 2) !default;
|
||||||
|
$navbar-collapse-max-height: 340px !default;
|
||||||
|
|
||||||
|
$navbar-default-color: #777 !default;
|
||||||
|
$navbar-default-bg: #f8f8f8 !default;
|
||||||
|
$navbar-default-border: darken($navbar-default-bg, 6.5%) !default;
|
||||||
|
|
||||||
|
// Navbar links
|
||||||
|
$navbar-default-link-color: #777 !default;
|
||||||
|
$navbar-default-link-hover-color: #333 !default;
|
||||||
|
$navbar-default-link-hover-bg: transparent !default;
|
||||||
|
$navbar-default-link-active-color: #555 !default;
|
||||||
|
$navbar-default-link-active-bg: darken($navbar-default-bg, 6.5%) !default;
|
||||||
|
$navbar-default-link-disabled-color: #ccc !default;
|
||||||
|
$navbar-default-link-disabled-bg: transparent !default;
|
||||||
|
|
||||||
|
// Navbar brand label
|
||||||
|
$navbar-default-brand-color: $navbar-default-link-color !default;
|
||||||
|
$navbar-default-brand-hover-color: darken($navbar-default-brand-color, 10%) !default;
|
||||||
|
$navbar-default-brand-hover-bg: transparent !default;
|
||||||
|
|
||||||
|
// Navbar toggle
|
||||||
|
$navbar-default-toggle-hover-bg: #ddd !default;
|
||||||
|
$navbar-default-toggle-icon-bar-bg: #888 !default;
|
||||||
|
$navbar-default-toggle-border-color: #ddd !default;
|
||||||
|
|
||||||
|
|
||||||
|
//=== Inverted navbar
|
||||||
|
// Reset inverted navbar basics
|
||||||
|
$navbar-inverse-color: lighten($gray-light, 15%) !default;
|
||||||
|
$navbar-inverse-bg: #222 !default;
|
||||||
|
$navbar-inverse-border: darken($navbar-inverse-bg, 10%) !default;
|
||||||
|
|
||||||
|
// Inverted navbar links
|
||||||
|
$navbar-inverse-link-color: lighten($gray-light, 15%) !default;
|
||||||
|
$navbar-inverse-link-hover-color: #fff !default;
|
||||||
|
$navbar-inverse-link-hover-bg: transparent !default;
|
||||||
|
$navbar-inverse-link-active-color: $navbar-inverse-link-hover-color !default;
|
||||||
|
$navbar-inverse-link-active-bg: darken($navbar-inverse-bg, 10%) !default;
|
||||||
|
$navbar-inverse-link-disabled-color: #444 !default;
|
||||||
|
$navbar-inverse-link-disabled-bg: transparent !default;
|
||||||
|
|
||||||
|
// Inverted navbar brand label
|
||||||
|
$navbar-inverse-brand-color: $navbar-inverse-link-color !default;
|
||||||
|
$navbar-inverse-brand-hover-color: #fff !default;
|
||||||
|
$navbar-inverse-brand-hover-bg: transparent !default;
|
||||||
|
|
||||||
|
// Inverted navbar toggle
|
||||||
|
$navbar-inverse-toggle-hover-bg: #333 !default;
|
||||||
|
$navbar-inverse-toggle-icon-bar-bg: #fff !default;
|
||||||
|
$navbar-inverse-toggle-border-color: #333 !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Navs
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
//=== Shared nav styles
|
||||||
|
$nav-link-padding: 10px 15px !default;
|
||||||
|
$nav-link-hover-bg: $gray-lighter !default;
|
||||||
|
|
||||||
|
$nav-disabled-link-color: $gray-light !default;
|
||||||
|
$nav-disabled-link-hover-color: $gray-light !default;
|
||||||
|
|
||||||
|
//== Tabs
|
||||||
|
$nav-tabs-border-color: #ddd !default;
|
||||||
|
|
||||||
|
$nav-tabs-link-hover-border-color: $gray-lighter !default;
|
||||||
|
|
||||||
|
$nav-tabs-active-link-hover-bg: $body-bg !default;
|
||||||
|
$nav-tabs-active-link-hover-color: $gray !default;
|
||||||
|
$nav-tabs-active-link-hover-border-color: #ddd !default;
|
||||||
|
|
||||||
|
$nav-tabs-justified-link-border-color: #ddd !default;
|
||||||
|
$nav-tabs-justified-active-link-border-color: $body-bg !default;
|
||||||
|
|
||||||
|
//== Pills
|
||||||
|
$nav-pills-border-radius: $border-radius-base !default;
|
||||||
|
$nav-pills-active-link-hover-bg: $component-active-bg !default;
|
||||||
|
$nav-pills-active-link-hover-color: $component-active-color !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Pagination
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
$pagination-color: $link-color !default;
|
||||||
|
$pagination-bg: #fff !default;
|
||||||
|
$pagination-border: #ddd !default;
|
||||||
|
|
||||||
|
$pagination-hover-color: $link-hover-color !default;
|
||||||
|
$pagination-hover-bg: $gray-lighter !default;
|
||||||
|
$pagination-hover-border: #ddd !default;
|
||||||
|
|
||||||
|
$pagination-active-color: #fff !default;
|
||||||
|
$pagination-active-bg: $brand-primary !default;
|
||||||
|
$pagination-active-border: $brand-primary !default;
|
||||||
|
|
||||||
|
$pagination-disabled-color: $gray-light !default;
|
||||||
|
$pagination-disabled-bg: #fff !default;
|
||||||
|
$pagination-disabled-border: #ddd !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Pager
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
$pager-bg: $pagination-bg !default;
|
||||||
|
$pager-border: $pagination-border !default;
|
||||||
|
$pager-border-radius: 15px !default;
|
||||||
|
|
||||||
|
$pager-hover-bg: $pagination-hover-bg !default;
|
||||||
|
|
||||||
|
$pager-active-bg: $pagination-active-bg !default;
|
||||||
|
$pager-active-color: $pagination-active-color !default;
|
||||||
|
|
||||||
|
$pager-disabled-color: $pagination-disabled-color !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Jumbotron
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
$jumbotron-padding: 30px !default;
|
||||||
|
$jumbotron-color: inherit !default;
|
||||||
|
$jumbotron-bg: $gray-lighter !default;
|
||||||
|
$jumbotron-heading-color: inherit !default;
|
||||||
|
$jumbotron-font-size: ceil(($font-size-base * 1.5)) !default;
|
||||||
|
$jumbotron-heading-font-size: ceil(($font-size-base * 4.5)) !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Form states and alerts
|
||||||
|
//
|
||||||
|
//## Define colors for form feedback states and, by default, alerts.
|
||||||
|
|
||||||
|
$state-success-text: #3c763d !default;
|
||||||
|
$state-success-bg: #dff0d8 !default;
|
||||||
|
$state-success-border: darken(adjust-hue($state-success-bg, -10), 5%) !default;
|
||||||
|
|
||||||
|
$state-info-text: #31708f !default;
|
||||||
|
$state-info-bg: #d9edf7 !default;
|
||||||
|
$state-info-border: darken(adjust-hue($state-info-bg, -10), 7%) !default;
|
||||||
|
|
||||||
|
$state-warning-text: #8a6d3b !default;
|
||||||
|
$state-warning-bg: #fcf8e3 !default;
|
||||||
|
$state-warning-border: darken(adjust-hue($state-warning-bg, -10), 5%) !default;
|
||||||
|
|
||||||
|
$state-danger-text: #a94442 !default;
|
||||||
|
$state-danger-bg: #f2dede !default;
|
||||||
|
$state-danger-border: darken(adjust-hue($state-danger-bg, -10), 5%) !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Tooltips
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
//** Tooltip max width
|
||||||
|
$tooltip-max-width: 200px !default;
|
||||||
|
//** Tooltip text color
|
||||||
|
$tooltip-color: #fff !default;
|
||||||
|
//** Tooltip background color
|
||||||
|
$tooltip-bg: #000 !default;
|
||||||
|
$tooltip-opacity: .9 !default;
|
||||||
|
|
||||||
|
//** Tooltip arrow width
|
||||||
|
$tooltip-arrow-width: 5px !default;
|
||||||
|
//** Tooltip arrow color
|
||||||
|
$tooltip-arrow-color: $tooltip-bg !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Popovers
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
//** Popover body background color
|
||||||
|
$popover-bg: #fff !default;
|
||||||
|
//** Popover maximum width
|
||||||
|
$popover-max-width: 276px !default;
|
||||||
|
//** Popover border color
|
||||||
|
$popover-border-color: rgba(0,0,0,.2) !default;
|
||||||
|
//** Popover fallback border color
|
||||||
|
$popover-fallback-border-color: #ccc !default;
|
||||||
|
|
||||||
|
//** Popover title background color
|
||||||
|
$popover-title-bg: darken($popover-bg, 3%) !default;
|
||||||
|
|
||||||
|
//** Popover arrow width
|
||||||
|
$popover-arrow-width: 10px !default;
|
||||||
|
//** Popover arrow color
|
||||||
|
$popover-arrow-color: $popover-bg !default;
|
||||||
|
|
||||||
|
//** Popover outer arrow width
|
||||||
|
$popover-arrow-outer-width: ($popover-arrow-width + 1) !default;
|
||||||
|
//** Popover outer arrow color
|
||||||
|
$popover-arrow-outer-color: fade_in($popover-border-color, 0.05) !default;
|
||||||
|
//** Popover outer arrow fallback color
|
||||||
|
$popover-arrow-outer-fallback-color: darken($popover-fallback-border-color, 20%) !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Labels
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
//** Default label background color
|
||||||
|
$label-default-bg: $gray-light !default;
|
||||||
|
//** Primary label background color
|
||||||
|
$label-primary-bg: $brand-primary !default;
|
||||||
|
//** Success label background color
|
||||||
|
$label-success-bg: $brand-success !default;
|
||||||
|
//** Info label background color
|
||||||
|
$label-info-bg: $brand-info !default;
|
||||||
|
//** Warning label background color
|
||||||
|
$label-warning-bg: $brand-warning !default;
|
||||||
|
//** Danger label background color
|
||||||
|
$label-danger-bg: $brand-danger !default;
|
||||||
|
|
||||||
|
//** Default label text color
|
||||||
|
$label-color: #fff !default;
|
||||||
|
//** Default text color of a linked label
|
||||||
|
$label-link-hover-color: #fff !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Modals
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
//** Padding applied to the modal body
|
||||||
|
$modal-inner-padding: 15px !default;
|
||||||
|
|
||||||
|
//** Padding applied to the modal title
|
||||||
|
$modal-title-padding: 15px !default;
|
||||||
|
//** Modal title line-height
|
||||||
|
$modal-title-line-height: $line-height-base !default;
|
||||||
|
|
||||||
|
//** Background color of modal content area
|
||||||
|
$modal-content-bg: #fff !default;
|
||||||
|
//** Modal content border color
|
||||||
|
$modal-content-border-color: rgba(0,0,0,.2) !default;
|
||||||
|
//** Modal content border color **for IE8**
|
||||||
|
$modal-content-fallback-border-color: #999 !default;
|
||||||
|
|
||||||
|
//** Modal backdrop background color
|
||||||
|
$modal-backdrop-bg: #000 !default;
|
||||||
|
//** Modal backdrop opacity
|
||||||
|
$modal-backdrop-opacity: .5 !default;
|
||||||
|
//** Modal header border color
|
||||||
|
$modal-header-border-color: #e5e5e5 !default;
|
||||||
|
//** Modal footer border color
|
||||||
|
$modal-footer-border-color: $modal-header-border-color !default;
|
||||||
|
|
||||||
|
$modal-lg: 900px !default;
|
||||||
|
$modal-md: 600px !default;
|
||||||
|
$modal-sm: 300px !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Alerts
|
||||||
|
//
|
||||||
|
//## Define alert colors, border radius, and padding.
|
||||||
|
|
||||||
|
$alert-padding: 15px !default;
|
||||||
|
$alert-border-radius: $border-radius-base !default;
|
||||||
|
$alert-link-font-weight: bold !default;
|
||||||
|
|
||||||
|
$alert-success-bg: $state-success-bg !default;
|
||||||
|
$alert-success-text: $state-success-text !default;
|
||||||
|
$alert-success-border: $state-success-border !default;
|
||||||
|
|
||||||
|
$alert-info-bg: $state-info-bg !default;
|
||||||
|
$alert-info-text: $state-info-text !default;
|
||||||
|
$alert-info-border: $state-info-border !default;
|
||||||
|
|
||||||
|
$alert-warning-bg: $state-warning-bg !default;
|
||||||
|
$alert-warning-text: $state-warning-text !default;
|
||||||
|
$alert-warning-border: $state-warning-border !default;
|
||||||
|
|
||||||
|
$alert-danger-bg: $state-danger-bg !default;
|
||||||
|
$alert-danger-text: $state-danger-text !default;
|
||||||
|
$alert-danger-border: $state-danger-border !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Progress bars
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
//** Background color of the whole progress component
|
||||||
|
$progress-bg: #f5f5f5 !default;
|
||||||
|
//** Progress bar text color
|
||||||
|
$progress-bar-color: #fff !default;
|
||||||
|
//** Variable for setting rounded corners on progress bar.
|
||||||
|
$progress-border-radius: $border-radius-base !default;
|
||||||
|
|
||||||
|
//** Default progress bar color
|
||||||
|
$progress-bar-bg: $brand-primary !default;
|
||||||
|
//** Success progress bar color
|
||||||
|
$progress-bar-success-bg: $brand-success !default;
|
||||||
|
//** Warning progress bar color
|
||||||
|
$progress-bar-warning-bg: $brand-warning !default;
|
||||||
|
//** Danger progress bar color
|
||||||
|
$progress-bar-danger-bg: $brand-danger !default;
|
||||||
|
//** Info progress bar color
|
||||||
|
$progress-bar-info-bg: $brand-info !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== List group
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
//** Background color on `.list-group-item`
|
||||||
|
$list-group-bg: #fff !default;
|
||||||
|
//** `.list-group-item` border color
|
||||||
|
$list-group-border: #ddd !default;
|
||||||
|
//** List group border radius
|
||||||
|
$list-group-border-radius: $border-radius-base !default;
|
||||||
|
|
||||||
|
//** Background color of single list items on hover
|
||||||
|
$list-group-hover-bg: #f5f5f5 !default;
|
||||||
|
//** Text color of active list items
|
||||||
|
$list-group-active-color: $component-active-color !default;
|
||||||
|
//** Background color of active list items
|
||||||
|
$list-group-active-bg: $component-active-bg !default;
|
||||||
|
//** Border color of active list elements
|
||||||
|
$list-group-active-border: $list-group-active-bg !default;
|
||||||
|
//** Text color for content within active list items
|
||||||
|
$list-group-active-text-color: lighten($list-group-active-bg, 40%) !default;
|
||||||
|
|
||||||
|
//** Text color of disabled list items
|
||||||
|
$list-group-disabled-color: $gray-light !default;
|
||||||
|
//** Background color of disabled list items
|
||||||
|
$list-group-disabled-bg: $gray-lighter !default;
|
||||||
|
//** Text color for content within disabled list items
|
||||||
|
$list-group-disabled-text-color: $list-group-disabled-color !default;
|
||||||
|
|
||||||
|
$list-group-link-color: #555 !default;
|
||||||
|
$list-group-link-hover-color: $list-group-link-color !default;
|
||||||
|
$list-group-link-heading-color: #333 !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Panels
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
$panel-bg: #fff !default;
|
||||||
|
$panel-body-padding: 15px !default;
|
||||||
|
$panel-heading-padding: 10px 15px !default;
|
||||||
|
$panel-footer-padding: $panel-heading-padding !default;
|
||||||
|
$panel-border-radius: $border-radius-base !default;
|
||||||
|
|
||||||
|
//** Border color for elements within panels
|
||||||
|
$panel-inner-border: #ddd !default;
|
||||||
|
$panel-footer-bg: #f5f5f5 !default;
|
||||||
|
|
||||||
|
$panel-default-text: $gray-dark !default;
|
||||||
|
$panel-default-border: #ddd !default;
|
||||||
|
$panel-default-heading-bg: #f5f5f5 !default;
|
||||||
|
|
||||||
|
$panel-primary-text: #fff !default;
|
||||||
|
$panel-primary-border: $brand-primary !default;
|
||||||
|
$panel-primary-heading-bg: $brand-primary !default;
|
||||||
|
|
||||||
|
$panel-success-text: $state-success-text !default;
|
||||||
|
$panel-success-border: $state-success-border !default;
|
||||||
|
$panel-success-heading-bg: $state-success-bg !default;
|
||||||
|
|
||||||
|
$panel-info-text: $state-info-text !default;
|
||||||
|
$panel-info-border: $state-info-border !default;
|
||||||
|
$panel-info-heading-bg: $state-info-bg !default;
|
||||||
|
|
||||||
|
$panel-warning-text: $state-warning-text !default;
|
||||||
|
$panel-warning-border: $state-warning-border !default;
|
||||||
|
$panel-warning-heading-bg: $state-warning-bg !default;
|
||||||
|
|
||||||
|
$panel-danger-text: $state-danger-text !default;
|
||||||
|
$panel-danger-border: $state-danger-border !default;
|
||||||
|
$panel-danger-heading-bg: $state-danger-bg !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Thumbnails
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
//** Padding around the thumbnail image
|
||||||
|
$thumbnail-padding: 4px !default;
|
||||||
|
//** Thumbnail background color
|
||||||
|
$thumbnail-bg: $body-bg !default;
|
||||||
|
//** Thumbnail border color
|
||||||
|
$thumbnail-border: #ddd !default;
|
||||||
|
//** Thumbnail border radius
|
||||||
|
$thumbnail-border-radius: $border-radius-base !default;
|
||||||
|
|
||||||
|
//** Custom text color for thumbnail captions
|
||||||
|
$thumbnail-caption-color: $text-color !default;
|
||||||
|
//** Padding around the thumbnail caption
|
||||||
|
$thumbnail-caption-padding: 9px !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Wells
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
$well-bg: #f5f5f5 !default;
|
||||||
|
$well-border: darken($well-bg, 7%) !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Badges
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
$badge-color: #fff !default;
|
||||||
|
//** Linked badge text color on hover
|
||||||
|
$badge-link-hover-color: #fff !default;
|
||||||
|
$badge-bg: $gray-light !default;
|
||||||
|
|
||||||
|
//** Badge text color in active nav link
|
||||||
|
$badge-active-color: $link-color !default;
|
||||||
|
//** Badge background color in active nav link
|
||||||
|
$badge-active-bg: #fff !default;
|
||||||
|
|
||||||
|
$badge-font-weight: bold !default;
|
||||||
|
$badge-line-height: 1 !default;
|
||||||
|
$badge-border-radius: 10px !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Breadcrumbs
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
$breadcrumb-padding-vertical: 8px !default;
|
||||||
|
$breadcrumb-padding-horizontal: 15px !default;
|
||||||
|
//** Breadcrumb background color
|
||||||
|
$breadcrumb-bg: #f5f5f5 !default;
|
||||||
|
//** Breadcrumb text color
|
||||||
|
$breadcrumb-color: #ccc !default;
|
||||||
|
//** Text color of current page in the breadcrumb
|
||||||
|
$breadcrumb-active-color: $gray-light !default;
|
||||||
|
//** Textual separator for between breadcrumb elements
|
||||||
|
$breadcrumb-separator: "/" !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Carousel
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
$carousel-text-shadow: 0 1px 2px rgba(0,0,0,.6) !default;
|
||||||
|
|
||||||
|
$carousel-control-color: #fff !default;
|
||||||
|
$carousel-control-width: 15% !default;
|
||||||
|
$carousel-control-opacity: .5 !default;
|
||||||
|
$carousel-control-font-size: 20px !default;
|
||||||
|
|
||||||
|
$carousel-indicator-active-bg: #fff !default;
|
||||||
|
$carousel-indicator-border-color: #fff !default;
|
||||||
|
|
||||||
|
$carousel-caption-color: #fff !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Close
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
$close-font-weight: bold !default;
|
||||||
|
$close-color: #000 !default;
|
||||||
|
$close-text-shadow: 0 1px 0 #fff !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Code
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
$code-color: #c7254e !default;
|
||||||
|
$code-bg: #f9f2f4 !default;
|
||||||
|
|
||||||
|
$kbd-color: #fff !default;
|
||||||
|
$kbd-bg: #333 !default;
|
||||||
|
|
||||||
|
$pre-bg: #f5f5f5 !default;
|
||||||
|
$pre-color: $gray-dark !default;
|
||||||
|
$pre-border-color: #ccc !default;
|
||||||
|
$pre-scrollable-max-height: 340px !default;
|
||||||
|
|
||||||
|
|
||||||
|
//== Type
|
||||||
|
//
|
||||||
|
//##
|
||||||
|
|
||||||
|
//** Horizontal offset for forms and lists.
|
||||||
|
$component-offset-horizontal: 180px !default;
|
||||||
|
//** Text muted color
|
||||||
|
$text-muted: $gray-light !default;
|
||||||
|
//** Abbreviations and acronyms border color
|
||||||
|
$abbr-border-color: $gray-light !default;
|
||||||
|
//** Headings small color
|
||||||
|
$headings-small-color: $gray-light !default;
|
||||||
|
//** Blockquote small color
|
||||||
|
$blockquote-small-color: $gray-light !default;
|
||||||
|
//** Blockquote font size
|
||||||
|
$blockquote-font-size: ($font-size-base * 1.25) !default;
|
||||||
|
//** Blockquote border color
|
||||||
|
$blockquote-border-color: $gray-lighter !default;
|
||||||
|
//** Page header border color
|
||||||
|
$page-header-border-color: $gray-lighter !default;
|
||||||
|
//** Width of horizontal description list titles
|
||||||
|
$dl-horizontal-offset: $component-offset-horizontal !default;
|
||||||
|
//** Point at which .dl-horizontal becomes horizontal
|
||||||
|
$dl-horizontal-breakpoint: $grid-float-breakpoint !default;
|
||||||
|
//** Horizontal line color.
|
||||||
|
$hr-border: $gray-lighter !default;
|
|
@ -12,6 +12,11 @@
|
||||||
@import "grid";
|
@import "grid";
|
||||||
|
|
||||||
//stuff every page needss
|
//stuff every page needss
|
||||||
|
@import "mixins";
|
||||||
|
@import "variables";
|
||||||
|
@import "modals";
|
||||||
|
@import "tooltip";
|
||||||
|
@import "navs";
|
||||||
@import "nav";
|
@import "nav";
|
||||||
@import "hero";
|
@import "hero";
|
||||||
@import "header";
|
@import "header";
|
||||||
|
|
14
src/scss/mixins/_alerts.scss
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
// Alerts
|
||||||
|
|
||||||
|
@mixin alert-variant($background, $border, $text-color) {
|
||||||
|
background-color: $background;
|
||||||
|
border-color: $border;
|
||||||
|
color: $text-color;
|
||||||
|
|
||||||
|
hr {
|
||||||
|
border-top-color: darken($border, 5%);
|
||||||
|
}
|
||||||
|
.alert-link {
|
||||||
|
color: darken($text-color, 10%);
|
||||||
|
}
|
||||||
|
}
|
12
src/scss/mixins/_background-variant.scss
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
// Contextual backgrounds
|
||||||
|
|
||||||
|
// [converter] $parent hack
|
||||||
|
@mixin bg-variant($parent, $color) {
|
||||||
|
#{$parent} {
|
||||||
|
background-color: $color;
|
||||||
|
}
|
||||||
|
a#{$parent}:hover,
|
||||||
|
a#{$parent}:focus {
|
||||||
|
background-color: darken($color, 10%);
|
||||||
|
}
|
||||||
|
}
|
18
src/scss/mixins/_border-radius.scss
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
// Single side border-radius
|
||||||
|
|
||||||
|
@mixin border-top-radius($radius) {
|
||||||
|
border-top-right-radius: $radius;
|
||||||
|
border-top-left-radius: $radius;
|
||||||
|
}
|
||||||
|
@mixin border-right-radius($radius) {
|
||||||
|
border-bottom-right-radius: $radius;
|
||||||
|
border-top-right-radius: $radius;
|
||||||
|
}
|
||||||
|
@mixin border-bottom-radius($radius) {
|
||||||
|
border-bottom-right-radius: $radius;
|
||||||
|
border-bottom-left-radius: $radius;
|
||||||
|
}
|
||||||
|
@mixin border-left-radius($radius) {
|
||||||
|
border-bottom-left-radius: $radius;
|
||||||
|
border-top-left-radius: $radius;
|
||||||
|
}
|
65
src/scss/mixins/_buttons.scss
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
// Button variants
|
||||||
|
//
|
||||||
|
// Easily pump out default styles, as well as :hover, :focus, :active,
|
||||||
|
// and disabled options for all buttons
|
||||||
|
|
||||||
|
@mixin button-variant($color, $background, $border) {
|
||||||
|
color: $color;
|
||||||
|
background-color: $background;
|
||||||
|
border-color: $border;
|
||||||
|
|
||||||
|
&:focus,
|
||||||
|
&.focus {
|
||||||
|
color: $color;
|
||||||
|
background-color: darken($background, 10%);
|
||||||
|
border-color: darken($border, 25%);
|
||||||
|
}
|
||||||
|
&:hover {
|
||||||
|
color: $color;
|
||||||
|
background-color: darken($background, 10%);
|
||||||
|
border-color: darken($border, 12%);
|
||||||
|
}
|
||||||
|
&:active,
|
||||||
|
&.active,
|
||||||
|
.open > &.dropdown-toggle {
|
||||||
|
color: $color;
|
||||||
|
background-color: darken($background, 10%);
|
||||||
|
border-color: darken($border, 12%);
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus,
|
||||||
|
&.focus {
|
||||||
|
color: $color;
|
||||||
|
background-color: darken($background, 17%);
|
||||||
|
border-color: darken($border, 25%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:active,
|
||||||
|
&.active,
|
||||||
|
.open > &.dropdown-toggle {
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
&.disabled,
|
||||||
|
&[disabled],
|
||||||
|
fieldset[disabled] & {
|
||||||
|
&:hover,
|
||||||
|
&:focus,
|
||||||
|
&.focus {
|
||||||
|
background-color: $background;
|
||||||
|
border-color: $border;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge {
|
||||||
|
color: $background;
|
||||||
|
background-color: $color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Button sizes
|
||||||
|
@mixin button-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) {
|
||||||
|
padding: $padding-vertical $padding-horizontal;
|
||||||
|
font-size: $font-size;
|
||||||
|
line-height: $line-height;
|
||||||
|
border-radius: $border-radius;
|
||||||
|
}
|
7
src/scss/mixins/_center-block.scss
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
// Center-align a block level element
|
||||||
|
|
||||||
|
@mixin center-block() {
|
||||||
|
display: block;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
22
src/scss/mixins/_clearfix.scss
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
// Clearfix
|
||||||
|
//
|
||||||
|
// For modern browsers
|
||||||
|
// 1. The space content is one way to avoid an Opera bug when the
|
||||||
|
// contenteditable attribute is included anywhere else in the document.
|
||||||
|
// Otherwise it causes space to appear at the top and bottom of elements
|
||||||
|
// that are clearfixed.
|
||||||
|
// 2. The use of `table` rather than `block` is only necessary if using
|
||||||
|
// `:before` to contain the top-margins of child elements.
|
||||||
|
//
|
||||||
|
// Source: http://nicolasgallagher.com/micro-clearfix-hack/
|
||||||
|
|
||||||
|
@mixin clearfix() {
|
||||||
|
&:before,
|
||||||
|
&:after {
|
||||||
|
content: " "; // 1
|
||||||
|
display: table; // 2
|
||||||
|
}
|
||||||
|
&:after {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
}
|
88
src/scss/mixins/_forms.scss
Normal file
|
@ -0,0 +1,88 @@
|
||||||
|
// Form validation states
|
||||||
|
//
|
||||||
|
// Used in forms.less to generate the form validation CSS for warnings, errors,
|
||||||
|
// and successes.
|
||||||
|
|
||||||
|
@mixin form-control-validation($text-color: #555, $border-color: #ccc, $background-color: #f5f5f5) {
|
||||||
|
// Color the label and help text
|
||||||
|
.help-block,
|
||||||
|
.control-label,
|
||||||
|
.radio,
|
||||||
|
.checkbox,
|
||||||
|
.radio-inline,
|
||||||
|
.checkbox-inline,
|
||||||
|
&.radio label,
|
||||||
|
&.checkbox label,
|
||||||
|
&.radio-inline label,
|
||||||
|
&.checkbox-inline label {
|
||||||
|
color: $text-color;
|
||||||
|
}
|
||||||
|
// Set the border and box shadow on specific inputs to match
|
||||||
|
.form-control {
|
||||||
|
border-color: $border-color;
|
||||||
|
@include box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
|
||||||
|
&:focus {
|
||||||
|
border-color: darken($border-color, 10%);
|
||||||
|
$shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten($border-color, 20%);
|
||||||
|
@include box-shadow($shadow);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Set validation states also for addons
|
||||||
|
.input-group-addon {
|
||||||
|
color: $text-color;
|
||||||
|
border-color: $border-color;
|
||||||
|
background-color: $background-color;
|
||||||
|
}
|
||||||
|
// Optional feedback icon
|
||||||
|
.form-control-feedback {
|
||||||
|
color: $text-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Form control focus state
|
||||||
|
//
|
||||||
|
// Generate a customized focus state and for any input with the specified color,
|
||||||
|
// which defaults to the `$input-border-focus` variable.
|
||||||
|
//
|
||||||
|
// We highly encourage you to not customize the default value, but instead use
|
||||||
|
// this to tweak colors on an as-needed basis. This aesthetic change is based on
|
||||||
|
// WebKit's default styles, but applicable to a wider range of browsers. Its
|
||||||
|
// usability and accessibility should be taken into account with any change.
|
||||||
|
//
|
||||||
|
// Example usage: change the default blue border and shadow to white for better
|
||||||
|
// contrast against a dark gray background.
|
||||||
|
@mixin form-control-focus($color: $input-border-focus) {
|
||||||
|
$color-rgba: rgba(red($color), green($color), blue($color), .6);
|
||||||
|
&:focus {
|
||||||
|
border-color: $color;
|
||||||
|
outline: 0;
|
||||||
|
@include box-shadow(inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px $color-rgba);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Form control sizing
|
||||||
|
//
|
||||||
|
// Relative text size, padding, and border-radii changes for form controls. For
|
||||||
|
// horizontal sizing, wrap controls in the predefined grid classes. `<select>`
|
||||||
|
// element gets special love because it's special, and that's a fact!
|
||||||
|
// [converter] $parent hack
|
||||||
|
@mixin input-size($parent, $input-height, $padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) {
|
||||||
|
#{$parent} {
|
||||||
|
height: $input-height;
|
||||||
|
padding: $padding-vertical $padding-horizontal;
|
||||||
|
font-size: $font-size;
|
||||||
|
line-height: $line-height;
|
||||||
|
border-radius: $border-radius;
|
||||||
|
}
|
||||||
|
|
||||||
|
select#{$parent} {
|
||||||
|
height: $input-height;
|
||||||
|
line-height: $input-height;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea#{$parent},
|
||||||
|
select[multiple]#{$parent} {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
}
|
58
src/scss/mixins/_gradients.scss
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
// Gradients
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Horizontal gradient, from left to right
|
||||||
|
//
|
||||||
|
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
||||||
|
// Color stops are not available in IE9 and below.
|
||||||
|
@mixin gradient-horizontal($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
|
||||||
|
background-image: -webkit-linear-gradient(left, $start-color $start-percent, $end-color $end-percent); // Safari 5.1-6, Chrome 10+
|
||||||
|
background-image: -o-linear-gradient(left, $start-color $start-percent, $end-color $end-percent); // Opera 12
|
||||||
|
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down
|
||||||
|
}
|
||||||
|
|
||||||
|
// Vertical gradient, from top to bottom
|
||||||
|
//
|
||||||
|
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
||||||
|
// Color stops are not available in IE9 and below.
|
||||||
|
@mixin gradient-vertical($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
|
||||||
|
background-image: -webkit-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Safari 5.1-6, Chrome 10+
|
||||||
|
background-image: -o-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Opera 12
|
||||||
|
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin gradient-directional($start-color: #555, $end-color: #333, $deg: 45deg) {
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
background-image: -webkit-linear-gradient($deg, $start-color, $end-color); // Safari 5.1-6, Chrome 10+
|
||||||
|
background-image: -o-linear-gradient($deg, $start-color, $end-color); // Opera 12
|
||||||
|
background-image: linear-gradient($deg, $start-color, $end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||||
|
}
|
||||||
|
@mixin gradient-horizontal-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
|
||||||
|
background-image: -webkit-linear-gradient(left, $start-color, $mid-color $color-stop, $end-color);
|
||||||
|
background-image: -o-linear-gradient(left, $start-color, $mid-color $color-stop, $end-color);
|
||||||
|
background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down, gets no color-stop at all for proper fallback
|
||||||
|
}
|
||||||
|
@mixin gradient-vertical-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
|
||||||
|
background-image: -webkit-linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
||||||
|
background-image: -o-linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
||||||
|
background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
|
||||||
|
}
|
||||||
|
@mixin gradient-radial($inner-color: #555, $outer-color: #333) {
|
||||||
|
background-image: -webkit-radial-gradient(circle, $inner-color, $outer-color);
|
||||||
|
background-image: radial-gradient(circle, $inner-color, $outer-color);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
@mixin gradient-striped($color: rgba(255,255,255,.15), $angle: 45deg) {
|
||||||
|
background-image: -webkit-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
||||||
|
background-image: -o-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
||||||
|
background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
||||||
|
}
|
81
src/scss/mixins/_grid-framework.scss
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
// Framework grid generation
|
||||||
|
//
|
||||||
|
// Used only by Bootstrap to generate the correct number of grid classes given
|
||||||
|
// any value of `$grid-columns`.
|
||||||
|
|
||||||
|
// [converter] This is defined recursively in LESS, but Sass supports real loops
|
||||||
|
@mixin make-grid-columns($i: 1, $list: ".col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}") {
|
||||||
|
@for $i from (1 + 1) through $grid-columns {
|
||||||
|
$list: "#{$list}, .col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}";
|
||||||
|
}
|
||||||
|
#{$list} {
|
||||||
|
position: relative;
|
||||||
|
// Prevent columns from collapsing when empty
|
||||||
|
min-height: 1px;
|
||||||
|
// Inner gutter via padding
|
||||||
|
padding-left: ceil(($grid-gutter-width / 2));
|
||||||
|
padding-right: floor(($grid-gutter-width / 2));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// [converter] This is defined recursively in LESS, but Sass supports real loops
|
||||||
|
@mixin float-grid-columns($class, $i: 1, $list: ".col-#{$class}-#{$i}") {
|
||||||
|
@for $i from (1 + 1) through $grid-columns {
|
||||||
|
$list: "#{$list}, .col-#{$class}-#{$i}";
|
||||||
|
}
|
||||||
|
#{$list} {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@mixin calc-grid-column($index, $class, $type) {
|
||||||
|
@if ($type == width) and ($index > 0) {
|
||||||
|
.col-#{$class}-#{$index} {
|
||||||
|
width: percentage(($index / $grid-columns));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@if ($type == push) and ($index > 0) {
|
||||||
|
.col-#{$class}-push-#{$index} {
|
||||||
|
left: percentage(($index / $grid-columns));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@if ($type == push) and ($index == 0) {
|
||||||
|
.col-#{$class}-push-0 {
|
||||||
|
left: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@if ($type == pull) and ($index > 0) {
|
||||||
|
.col-#{$class}-pull-#{$index} {
|
||||||
|
right: percentage(($index / $grid-columns));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@if ($type == pull) and ($index == 0) {
|
||||||
|
.col-#{$class}-pull-0 {
|
||||||
|
right: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@if ($type == offset) {
|
||||||
|
.col-#{$class}-offset-#{$index} {
|
||||||
|
margin-left: percentage(($index / $grid-columns));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// [converter] This is defined recursively in LESS, but Sass supports real loops
|
||||||
|
@mixin loop-grid-columns($columns, $class, $type) {
|
||||||
|
@for $i from 0 through $columns {
|
||||||
|
@include calc-grid-column($i, $class, $type);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Create grid for specific class
|
||||||
|
@mixin make-grid($class) {
|
||||||
|
@include float-grid-columns($class);
|
||||||
|
@include loop-grid-columns($grid-columns, $class, width);
|
||||||
|
@include loop-grid-columns($grid-columns, $class, pull);
|
||||||
|
@include loop-grid-columns($grid-columns, $class, push);
|
||||||
|
@include loop-grid-columns($grid-columns, $class, offset);
|
||||||
|
}
|
122
src/scss/mixins/_grid.scss
Normal file
|
@ -0,0 +1,122 @@
|
||||||
|
// Grid system
|
||||||
|
//
|
||||||
|
// Generate semantic grid columns with these mixins.
|
||||||
|
|
||||||
|
// Centered container element
|
||||||
|
@mixin container-fixed($gutter: $grid-gutter-width) {
|
||||||
|
margin-right: auto;
|
||||||
|
margin-left: auto;
|
||||||
|
padding-left: floor(($gutter / 2));
|
||||||
|
padding-right: ceil(($gutter / 2));
|
||||||
|
@include clearfix;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Creates a wrapper for a series of columns
|
||||||
|
@mixin make-row($gutter: $grid-gutter-width) {
|
||||||
|
margin-left: ceil(($gutter / -2));
|
||||||
|
margin-right: floor(($gutter / -2));
|
||||||
|
@include clearfix;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Generate the extra small columns
|
||||||
|
@mixin make-xs-column($columns, $gutter: $grid-gutter-width) {
|
||||||
|
position: relative;
|
||||||
|
float: left;
|
||||||
|
width: percentage(($columns / $grid-columns));
|
||||||
|
min-height: 1px;
|
||||||
|
padding-left: ($gutter / 2);
|
||||||
|
padding-right: ($gutter / 2);
|
||||||
|
}
|
||||||
|
@mixin make-xs-column-offset($columns) {
|
||||||
|
margin-left: percentage(($columns / $grid-columns));
|
||||||
|
}
|
||||||
|
@mixin make-xs-column-push($columns) {
|
||||||
|
left: percentage(($columns / $grid-columns));
|
||||||
|
}
|
||||||
|
@mixin make-xs-column-pull($columns) {
|
||||||
|
right: percentage(($columns / $grid-columns));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Generate the small columns
|
||||||
|
@mixin make-sm-column($columns, $gutter: $grid-gutter-width) {
|
||||||
|
position: relative;
|
||||||
|
min-height: 1px;
|
||||||
|
padding-left: ($gutter / 2);
|
||||||
|
padding-right: ($gutter / 2);
|
||||||
|
|
||||||
|
@media (min-width: $screen-sm-min) {
|
||||||
|
float: left;
|
||||||
|
width: percentage(($columns / $grid-columns));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@mixin make-sm-column-offset($columns) {
|
||||||
|
@media (min-width: $screen-sm-min) {
|
||||||
|
margin-left: percentage(($columns / $grid-columns));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@mixin make-sm-column-push($columns) {
|
||||||
|
@media (min-width: $screen-sm-min) {
|
||||||
|
left: percentage(($columns / $grid-columns));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@mixin make-sm-column-pull($columns) {
|
||||||
|
@media (min-width: $screen-sm-min) {
|
||||||
|
right: percentage(($columns / $grid-columns));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Generate the medium columns
|
||||||
|
@mixin make-md-column($columns, $gutter: $grid-gutter-width) {
|
||||||
|
position: relative;
|
||||||
|
min-height: 1px;
|
||||||
|
padding-left: ($gutter / 2);
|
||||||
|
padding-right: ($gutter / 2);
|
||||||
|
|
||||||
|
@media (min-width: $screen-md-min) {
|
||||||
|
float: left;
|
||||||
|
width: percentage(($columns / $grid-columns));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@mixin make-md-column-offset($columns) {
|
||||||
|
@media (min-width: $screen-md-min) {
|
||||||
|
margin-left: percentage(($columns / $grid-columns));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@mixin make-md-column-push($columns) {
|
||||||
|
@media (min-width: $screen-md-min) {
|
||||||
|
left: percentage(($columns / $grid-columns));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@mixin make-md-column-pull($columns) {
|
||||||
|
@media (min-width: $screen-md-min) {
|
||||||
|
right: percentage(($columns / $grid-columns));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Generate the large columns
|
||||||
|
@mixin make-lg-column($columns, $gutter: $grid-gutter-width) {
|
||||||
|
position: relative;
|
||||||
|
min-height: 1px;
|
||||||
|
padding-left: ($gutter / 2);
|
||||||
|
padding-right: ($gutter / 2);
|
||||||
|
|
||||||
|
@media (min-width: $screen-lg-min) {
|
||||||
|
float: left;
|
||||||
|
width: percentage(($columns / $grid-columns));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@mixin make-lg-column-offset($columns) {
|
||||||
|
@media (min-width: $screen-lg-min) {
|
||||||
|
margin-left: percentage(($columns / $grid-columns));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@mixin make-lg-column-push($columns) {
|
||||||
|
@media (min-width: $screen-lg-min) {
|
||||||
|
left: percentage(($columns / $grid-columns));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@mixin make-lg-column-pull($columns) {
|
||||||
|
@media (min-width: $screen-lg-min) {
|
||||||
|
right: percentage(($columns / $grid-columns));
|
||||||
|
}
|
||||||
|
}
|
21
src/scss/mixins/_hide-text.scss
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
// CSS image replacement
|
||||||
|
//
|
||||||
|
// Heads up! v3 launched with only `.hide-text()`, but per our pattern for
|
||||||
|
// mixins being reused as classes with the same name, this doesn't hold up. As
|
||||||
|
// of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`.
|
||||||
|
//
|
||||||
|
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
|
||||||
|
|
||||||
|
// Deprecated as of v3.0.1 (has been removed in v4)
|
||||||
|
@mixin hide-text() {
|
||||||
|
font: 0/0 a;
|
||||||
|
color: transparent;
|
||||||
|
text-shadow: none;
|
||||||
|
background-color: transparent;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// New mixin to use as of v3.0.1
|
||||||
|
@mixin text-hide() {
|
||||||
|
@include hide-text;
|
||||||
|
}
|
33
src/scss/mixins/_image.scss
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
// Image Mixins
|
||||||
|
// - Responsive image
|
||||||
|
// - Retina image
|
||||||
|
|
||||||
|
|
||||||
|
// Responsive image
|
||||||
|
//
|
||||||
|
// Keep images from scaling beyond the width of their parents.
|
||||||
|
@mixin img-responsive($display: block) {
|
||||||
|
display: $display;
|
||||||
|
max-width: 100%; // Part 1: Set a maximum relative to the parent
|
||||||
|
height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Retina image
|
||||||
|
//
|
||||||
|
// Short retina mixin for setting background-image and -size. Note that the
|
||||||
|
// spelling of `min--moz-device-pixel-ratio` is intentional.
|
||||||
|
@mixin img-retina($file-1x, $file-2x, $width-1x, $height-1x) {
|
||||||
|
background-image: url(if($bootstrap-sass-asset-helper, twbs-image-path("#{$file-1x}"), "#{$file-1x}"));
|
||||||
|
|
||||||
|
@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) {
|
||||||
|
background-image: url(if($bootstrap-sass-asset-helper, twbs-image-path("#{$file-2x}"), "#{$file-2x}"));
|
||||||
|
background-size: $width-1x $height-1x;
|
||||||
|
}
|
||||||
|
}
|
12
src/scss/mixins/_labels.scss
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
// Labels
|
||||||
|
|
||||||
|
@mixin label-variant($color) {
|
||||||
|
background-color: $color;
|
||||||
|
|
||||||
|
&[href] {
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
background-color: darken($color, 10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
32
src/scss/mixins/_list-group.scss
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
// List Groups
|
||||||
|
|
||||||
|
@mixin list-group-item-variant($state, $background, $color) {
|
||||||
|
.list-group-item-#{$state} {
|
||||||
|
color: $color;
|
||||||
|
background-color: $background;
|
||||||
|
|
||||||
|
// [converter] extracted a&, button& to a.list-group-item-#{$state}, button.list-group-item-#{$state}
|
||||||
|
}
|
||||||
|
|
||||||
|
a.list-group-item-#{$state},
|
||||||
|
button.list-group-item-#{$state} {
|
||||||
|
color: $color;
|
||||||
|
|
||||||
|
.list-group-item-heading {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: $color;
|
||||||
|
background-color: darken($background, 5%);
|
||||||
|
}
|
||||||
|
&.active,
|
||||||
|
&.active:hover,
|
||||||
|
&.active:focus {
|
||||||
|
color: #fff;
|
||||||
|
background-color: $color;
|
||||||
|
border-color: $color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
10
src/scss/mixins/_nav-divider.scss
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
// Horizontal dividers
|
||||||
|
//
|
||||||
|
// Dividers (basically an hr) within dropdowns and nav lists
|
||||||
|
|
||||||
|
@mixin nav-divider($color: #e5e5e5) {
|
||||||
|
height: 1px;
|
||||||
|
margin: (($line-height-computed / 2) - 1) 0;
|
||||||
|
overflow: hidden;
|
||||||
|
background-color: $color;
|
||||||
|
}
|
9
src/scss/mixins/_nav-vertical-align.scss
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
// Navbar vertical align
|
||||||
|
//
|
||||||
|
// Vertically center elements in the navbar.
|
||||||
|
// Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.
|
||||||
|
|
||||||
|
@mixin navbar-vertical-align($element-height) {
|
||||||
|
margin-top: (($navbar-height - $element-height) / 2);
|
||||||
|
margin-bottom: (($navbar-height - $element-height) / 2);
|
||||||
|
}
|
8
src/scss/mixins/_opacity.scss
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
// Opacity
|
||||||
|
|
||||||
|
@mixin opacity($opacity) {
|
||||||
|
opacity: $opacity;
|
||||||
|
// IE8 filter
|
||||||
|
$opacity-ie: ($opacity * 100);
|
||||||
|
filter: alpha(opacity=$opacity-ie);
|
||||||
|
}
|
24
src/scss/mixins/_pagination.scss
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
// Pagination
|
||||||
|
|
||||||
|
@mixin pagination-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) {
|
||||||
|
> li {
|
||||||
|
> a,
|
||||||
|
> span {
|
||||||
|
padding: $padding-vertical $padding-horizontal;
|
||||||
|
font-size: $font-size;
|
||||||
|
line-height: $line-height;
|
||||||
|
}
|
||||||
|
&:first-child {
|
||||||
|
> a,
|
||||||
|
> span {
|
||||||
|
@include border-left-radius($border-radius);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:last-child {
|
||||||
|
> a,
|
||||||
|
> span {
|
||||||
|
@include border-right-radius($border-radius);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
24
src/scss/mixins/_panels.scss
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
// Panels
|
||||||
|
|
||||||
|
@mixin panel-variant($border, $heading-text-color, $heading-bg-color, $heading-border) {
|
||||||
|
border-color: $border;
|
||||||
|
|
||||||
|
& > .panel-heading {
|
||||||
|
color: $heading-text-color;
|
||||||
|
background-color: $heading-bg-color;
|
||||||
|
border-color: $heading-border;
|
||||||
|
|
||||||
|
+ .panel-collapse > .panel-body {
|
||||||
|
border-top-color: $border;
|
||||||
|
}
|
||||||
|
.badge {
|
||||||
|
color: $heading-bg-color;
|
||||||
|
background-color: $heading-text-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
& > .panel-footer {
|
||||||
|
+ .panel-collapse > .panel-body {
|
||||||
|
border-bottom-color: $border;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
10
src/scss/mixins/_progress-bar.scss
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
// Progress bars
|
||||||
|
|
||||||
|
@mixin progress-bar-variant($color) {
|
||||||
|
background-color: $color;
|
||||||
|
|
||||||
|
// Deprecated parent class requirement as of v3.2.0
|
||||||
|
.progress-striped & {
|
||||||
|
@include gradient-striped;
|
||||||
|
}
|
||||||
|
}
|
8
src/scss/mixins/_reset-filter.scss
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
// Reset filters for IE
|
||||||
|
//
|
||||||
|
// When you need to remove a gradient background, do not forget to use this to reset
|
||||||
|
// the IE filter for IE9 and below.
|
||||||
|
|
||||||
|
@mixin reset-filter() {
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
}
|
18
src/scss/mixins/_reset-text.scss
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
@mixin reset-text() {
|
||||||
|
font-family: $font-family-base;
|
||||||
|
// We deliberately do NOT reset font-size.
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
letter-spacing: normal;
|
||||||
|
line-break: auto;
|
||||||
|
line-height: $line-height-base;
|
||||||
|
text-align: left; // Fallback for where `start` is not supported
|
||||||
|
text-align: start;
|
||||||
|
text-decoration: none;
|
||||||
|
text-shadow: none;
|
||||||
|
text-transform: none;
|
||||||
|
white-space: normal;
|
||||||
|
word-break: normal;
|
||||||
|
word-spacing: normal;
|
||||||
|
word-wrap: normal;
|
||||||
|
}
|
6
src/scss/mixins/_resize.scss
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
// Resize anything
|
||||||
|
|
||||||
|
@mixin resizable($direction) {
|
||||||
|
resize: $direction; // Options: horizontal, vertical, both
|
||||||
|
overflow: auto; // Per CSS3 UI, `resize` only applies when `overflow` isn't `visible`
|
||||||
|
}
|
21
src/scss/mixins/_responsive-visibility.scss
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
// Responsive utilities
|
||||||
|
|
||||||
|
//
|
||||||
|
// More easily include all the states for responsive-utilities.less.
|
||||||
|
// [converter] $parent hack
|
||||||
|
@mixin responsive-visibility($parent) {
|
||||||
|
#{$parent} {
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
table#{$parent} { display: table !important; }
|
||||||
|
tr#{$parent} { display: table-row !important; }
|
||||||
|
th#{$parent},
|
||||||
|
td#{$parent} { display: table-cell !important; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// [converter] $parent hack
|
||||||
|
@mixin responsive-invisibility($parent) {
|
||||||
|
#{$parent} {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
10
src/scss/mixins/_size.scss
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
// Sizing shortcuts
|
||||||
|
|
||||||
|
@mixin size($width, $height) {
|
||||||
|
width: $width;
|
||||||
|
height: $height;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin square($size) {
|
||||||
|
@include size($size, $size);
|
||||||
|
}
|
9
src/scss/mixins/_tab-focus.scss
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
// WebKit-style focus
|
||||||
|
|
||||||
|
@mixin tab-focus() {
|
||||||
|
// WebKit-specific. Other browsers will keep their default outline style.
|
||||||
|
// (Initially tried to also force default via `outline: initial`,
|
||||||
|
// but that seems to erroneously remove the outline in Firefox altogether.)
|
||||||
|
outline: 5px auto -webkit-focus-ring-color;
|
||||||
|
outline-offset: -2px;
|
||||||
|
}
|
28
src/scss/mixins/_table-row.scss
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
// Tables
|
||||||
|
|
||||||
|
@mixin table-row-variant($state, $background) {
|
||||||
|
// Exact selectors below required to override `.table-striped` and prevent
|
||||||
|
// inheritance to nested tables.
|
||||||
|
.table > thead > tr,
|
||||||
|
.table > tbody > tr,
|
||||||
|
.table > tfoot > tr {
|
||||||
|
> td.#{$state},
|
||||||
|
> th.#{$state},
|
||||||
|
&.#{$state} > td,
|
||||||
|
&.#{$state} > th {
|
||||||
|
background-color: $background;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hover states for `.table-hover`
|
||||||
|
// Note: this is not available for cells or rows within `thead` or `tfoot`.
|
||||||
|
.table-hover > tbody > tr {
|
||||||
|
> td.#{$state}:hover,
|
||||||
|
> th.#{$state}:hover,
|
||||||
|
&.#{$state}:hover > td,
|
||||||
|
&:hover > .#{$state},
|
||||||
|
&.#{$state}:hover > th {
|
||||||
|
background-color: darken($background, 5%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
12
src/scss/mixins/_text-emphasis.scss
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
// Typography
|
||||||
|
|
||||||
|
// [converter] $parent hack
|
||||||
|
@mixin text-emphasis-variant($parent, $color) {
|
||||||
|
#{$parent} {
|
||||||
|
color: $color;
|
||||||
|
}
|
||||||
|
a#{$parent}:hover,
|
||||||
|
a#{$parent}:focus {
|
||||||
|
color: darken($color, 10%);
|
||||||
|
}
|
||||||
|
}
|
8
src/scss/mixins/_text-overflow.scss
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
// Text overflow
|
||||||
|
// Requires inline-block or block for proper styling
|
||||||
|
|
||||||
|
@mixin text-overflow() {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
222
src/scss/mixins/_vendor-prefixes.scss
Normal file
|
@ -0,0 +1,222 @@
|
||||||
|
// Vendor Prefixes
|
||||||
|
//
|
||||||
|
// All vendor mixins are deprecated as of v3.2.0 due to the introduction of
|
||||||
|
// Autoprefixer in our Gruntfile. They have been removed in v4.
|
||||||
|
|
||||||
|
// - Animations
|
||||||
|
// - Backface visibility
|
||||||
|
// - Box shadow
|
||||||
|
// - Box sizing
|
||||||
|
// - Content columns
|
||||||
|
// - Hyphens
|
||||||
|
// - Placeholder text
|
||||||
|
// - Transformations
|
||||||
|
// - Transitions
|
||||||
|
// - User Select
|
||||||
|
|
||||||
|
|
||||||
|
// Animations
|
||||||
|
@mixin animation($animation) {
|
||||||
|
-webkit-animation: $animation;
|
||||||
|
-o-animation: $animation;
|
||||||
|
animation: $animation;
|
||||||
|
}
|
||||||
|
@mixin animation-name($name) {
|
||||||
|
-webkit-animation-name: $name;
|
||||||
|
animation-name: $name;
|
||||||
|
}
|
||||||
|
@mixin animation-duration($duration) {
|
||||||
|
-webkit-animation-duration: $duration;
|
||||||
|
animation-duration: $duration;
|
||||||
|
}
|
||||||
|
@mixin animation-timing-function($timing-function) {
|
||||||
|
-webkit-animation-timing-function: $timing-function;
|
||||||
|
animation-timing-function: $timing-function;
|
||||||
|
}
|
||||||
|
@mixin animation-delay($delay) {
|
||||||
|
-webkit-animation-delay: $delay;
|
||||||
|
animation-delay: $delay;
|
||||||
|
}
|
||||||
|
@mixin animation-iteration-count($iteration-count) {
|
||||||
|
-webkit-animation-iteration-count: $iteration-count;
|
||||||
|
animation-iteration-count: $iteration-count;
|
||||||
|
}
|
||||||
|
@mixin animation-direction($direction) {
|
||||||
|
-webkit-animation-direction: $direction;
|
||||||
|
animation-direction: $direction;
|
||||||
|
}
|
||||||
|
@mixin animation-fill-mode($fill-mode) {
|
||||||
|
-webkit-animation-fill-mode: $fill-mode;
|
||||||
|
animation-fill-mode: $fill-mode;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Backface visibility
|
||||||
|
// Prevent browsers from flickering when using CSS 3D transforms.
|
||||||
|
// Default value is `visible`, but can be changed to `hidden`
|
||||||
|
|
||||||
|
@mixin backface-visibility($visibility) {
|
||||||
|
-webkit-backface-visibility: $visibility;
|
||||||
|
-moz-backface-visibility: $visibility;
|
||||||
|
backface-visibility: $visibility;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Drop shadows
|
||||||
|
//
|
||||||
|
// Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's
|
||||||
|
// supported browsers that have box shadow capabilities now support it.
|
||||||
|
|
||||||
|
@mixin box-shadow($shadow...) {
|
||||||
|
-webkit-box-shadow: $shadow; // iOS <4.3 & Android <4.1
|
||||||
|
box-shadow: $shadow;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Box sizing
|
||||||
|
@mixin box-sizing($boxmodel) {
|
||||||
|
-webkit-box-sizing: $boxmodel;
|
||||||
|
-moz-box-sizing: $boxmodel;
|
||||||
|
box-sizing: $boxmodel;
|
||||||
|
}
|
||||||
|
|
||||||
|
// CSS3 Content Columns
|
||||||
|
@mixin content-columns($column-count, $column-gap: $grid-gutter-width) {
|
||||||
|
-webkit-column-count: $column-count;
|
||||||
|
-moz-column-count: $column-count;
|
||||||
|
column-count: $column-count;
|
||||||
|
-webkit-column-gap: $column-gap;
|
||||||
|
-moz-column-gap: $column-gap;
|
||||||
|
column-gap: $column-gap;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Optional hyphenation
|
||||||
|
@mixin hyphens($mode: auto) {
|
||||||
|
word-wrap: break-word;
|
||||||
|
-webkit-hyphens: $mode;
|
||||||
|
-moz-hyphens: $mode;
|
||||||
|
-ms-hyphens: $mode; // IE10+
|
||||||
|
-o-hyphens: $mode;
|
||||||
|
hyphens: $mode;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Placeholder text
|
||||||
|
@mixin placeholder($color: $input-color-placeholder) {
|
||||||
|
// Firefox
|
||||||
|
&::-moz-placeholder {
|
||||||
|
color: $color;
|
||||||
|
opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526
|
||||||
|
}
|
||||||
|
&:-ms-input-placeholder { color: $color; } // Internet Explorer 10+
|
||||||
|
&::-webkit-input-placeholder { color: $color; } // Safari and Chrome
|
||||||
|
}
|
||||||
|
|
||||||
|
// Transformations
|
||||||
|
@mixin scale($ratio...) {
|
||||||
|
-webkit-transform: scale($ratio);
|
||||||
|
-ms-transform: scale($ratio); // IE9 only
|
||||||
|
-o-transform: scale($ratio);
|
||||||
|
transform: scale($ratio);
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin scaleX($ratio) {
|
||||||
|
-webkit-transform: scaleX($ratio);
|
||||||
|
-ms-transform: scaleX($ratio); // IE9 only
|
||||||
|
-o-transform: scaleX($ratio);
|
||||||
|
transform: scaleX($ratio);
|
||||||
|
}
|
||||||
|
@mixin scaleY($ratio) {
|
||||||
|
-webkit-transform: scaleY($ratio);
|
||||||
|
-ms-transform: scaleY($ratio); // IE9 only
|
||||||
|
-o-transform: scaleY($ratio);
|
||||||
|
transform: scaleY($ratio);
|
||||||
|
}
|
||||||
|
@mixin skew($x, $y) {
|
||||||
|
-webkit-transform: skewX($x) skewY($y);
|
||||||
|
-ms-transform: skewX($x) skewY($y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+
|
||||||
|
-o-transform: skewX($x) skewY($y);
|
||||||
|
transform: skewX($x) skewY($y);
|
||||||
|
}
|
||||||
|
@mixin translate($x, $y) {
|
||||||
|
-webkit-transform: translate($x, $y);
|
||||||
|
-ms-transform: translate($x, $y); // IE9 only
|
||||||
|
-o-transform: translate($x, $y);
|
||||||
|
transform: translate($x, $y);
|
||||||
|
}
|
||||||
|
@mixin translate3d($x, $y, $z) {
|
||||||
|
-webkit-transform: translate3d($x, $y, $z);
|
||||||
|
transform: translate3d($x, $y, $z);
|
||||||
|
}
|
||||||
|
@mixin rotate($degrees) {
|
||||||
|
-webkit-transform: rotate($degrees);
|
||||||
|
-ms-transform: rotate($degrees); // IE9 only
|
||||||
|
-o-transform: rotate($degrees);
|
||||||
|
transform: rotate($degrees);
|
||||||
|
}
|
||||||
|
@mixin rotateX($degrees) {
|
||||||
|
-webkit-transform: rotateX($degrees);
|
||||||
|
-ms-transform: rotateX($degrees); // IE9 only
|
||||||
|
-o-transform: rotateX($degrees);
|
||||||
|
transform: rotateX($degrees);
|
||||||
|
}
|
||||||
|
@mixin rotateY($degrees) {
|
||||||
|
-webkit-transform: rotateY($degrees);
|
||||||
|
-ms-transform: rotateY($degrees); // IE9 only
|
||||||
|
-o-transform: rotateY($degrees);
|
||||||
|
transform: rotateY($degrees);
|
||||||
|
}
|
||||||
|
@mixin perspective($perspective) {
|
||||||
|
-webkit-perspective: $perspective;
|
||||||
|
-moz-perspective: $perspective;
|
||||||
|
perspective: $perspective;
|
||||||
|
}
|
||||||
|
@mixin perspective-origin($perspective) {
|
||||||
|
-webkit-perspective-origin: $perspective;
|
||||||
|
-moz-perspective-origin: $perspective;
|
||||||
|
perspective-origin: $perspective;
|
||||||
|
}
|
||||||
|
@mixin transform-origin($origin) {
|
||||||
|
-webkit-transform-origin: $origin;
|
||||||
|
-moz-transform-origin: $origin;
|
||||||
|
-ms-transform-origin: $origin; // IE9 only
|
||||||
|
transform-origin: $origin;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Transitions
|
||||||
|
|
||||||
|
@mixin transition($transition...) {
|
||||||
|
-webkit-transition: $transition;
|
||||||
|
-o-transition: $transition;
|
||||||
|
transition: $transition;
|
||||||
|
}
|
||||||
|
@mixin transition-property($transition-property...) {
|
||||||
|
-webkit-transition-property: $transition-property;
|
||||||
|
transition-property: $transition-property;
|
||||||
|
}
|
||||||
|
@mixin transition-delay($transition-delay) {
|
||||||
|
-webkit-transition-delay: $transition-delay;
|
||||||
|
transition-delay: $transition-delay;
|
||||||
|
}
|
||||||
|
@mixin transition-duration($transition-duration...) {
|
||||||
|
-webkit-transition-duration: $transition-duration;
|
||||||
|
transition-duration: $transition-duration;
|
||||||
|
}
|
||||||
|
@mixin transition-timing-function($timing-function) {
|
||||||
|
-webkit-transition-timing-function: $timing-function;
|
||||||
|
transition-timing-function: $timing-function;
|
||||||
|
}
|
||||||
|
@mixin transition-transform($transition...) {
|
||||||
|
-webkit-transition: -webkit-transform $transition;
|
||||||
|
-moz-transition: -moz-transform $transition;
|
||||||
|
-o-transition: -o-transform $transition;
|
||||||
|
transition: transform $transition;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// User select
|
||||||
|
// For selecting text on the page
|
||||||
|
|
||||||
|
@mixin user-select($select) {
|
||||||
|
-webkit-user-select: $select;
|
||||||
|
-moz-user-select: $select;
|
||||||
|
-ms-user-select: $select; // IE10+
|
||||||
|
user-select: $select;
|
||||||
|
}
|
230
wallets/index.html
Normal file
|
@ -0,0 +1,230 @@
|
||||||
|
---
|
||||||
|
layout: default
|
||||||
|
title: pages.wallets.title
|
||||||
|
description: pages.wallets.description
|
||||||
|
---
|
||||||
|
|
||||||
|
{% include hero/wallets.html %}
|
||||||
|
|
||||||
|
<div class="page page--wallets">
|
||||||
|
<section class="section">
|
||||||
|
<div class="section__content">
|
||||||
|
<h3>{% t pages.wallets.wallets-desktop-header %}</h3>
|
||||||
|
<p>{% t pages.wallets.wallets-desktop-subtitle %}</p>
|
||||||
|
<ul class="nav2 nav-pills bottom-space">
|
||||||
|
<li class="active"><a data-toggle="pill" href="#windows">Windows</a></li>
|
||||||
|
<li><a data-toggle="pill" href="#osx">OSX</a></li>
|
||||||
|
<li><a data-toggle="pill" href="#linux">Linux</a></li>
|
||||||
|
<li><a data-toggle="pill" href="#ppa">PPA</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="tab-content">
|
||||||
|
<div id="windows" class="tab-pane fade in active">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Dash Core</h4>
|
||||||
|
<button type="button" class="btn center-block" data-toggle="modal" data-target="#winDashCore">Open</button>
|
||||||
|
{% include modals/win-core.html %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Dash Electrum</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Jaxx</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Exodus</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="osx" class="tab-pane fade">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Dash Core</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Dash Electrum</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Jaxx</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Exodus</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="linux" class="tab-pane fade">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Dash Core</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Dash Electrum</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Jaxx</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Exodus</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="ppa" class="tab-pane fade">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Dash Core</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center"> Dash Electrum</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Jaxx</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Exodus</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="section">
|
||||||
|
<div class="section__content">
|
||||||
|
<h3>{% t pages.wallets.wallets-mobile-header %}</h3>
|
||||||
|
<p>{% t pages.wallets.wallets-mobile-subtitle %}</p>
|
||||||
|
<ul class="nav2 nav-pills">
|
||||||
|
<li class="active"><a data-toggle="pill" href="#android">Android</a></li>
|
||||||
|
<li><a data-toggle="pill" href="#ios">iOS</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="tab-content">
|
||||||
|
<div id="android" class="tab-pane fade in active">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Dash Core</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Coinomi</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Jaxx</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Exodus</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="ios" class="tab-pane fade">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Dash Core</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Coinomi</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Jaxx</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Exodus</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="section">
|
||||||
|
<div class="section__content">
|
||||||
|
<h3>{% t pages.wallets.wallets-hardware-header %}</h3>
|
||||||
|
<p>{% t pages.wallets.wallets-hardware-subtitle %}</p>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Trezor</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">KeepKey</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<div class="wallet-tile">
|
||||||
|
<h4 class="text-center">Ledger</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="section">
|
||||||
|
<div class="section__content">
|
||||||
|
<h3>{% t pages.wallets.wallets-paper-header %}</h3>
|
||||||
|
<p>{% t pages.wallets.wallets-paper-subtitle %}</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="section">
|
||||||
|
<div class="section__content">
|
||||||
|
<h3>{% t pages.wallets.wallets-security-header %}</h3>
|
||||||
|
<p>{% t pages.wallets.wallets-security-subtitle %}</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</div>
|