Add bower_components as it contains the resources used by github pages.

This commit is contained in:
Arpad Csanyi
2016-01-14 00:43:09 +01:00
parent 7b7b550e1a
commit bfffb12f8f
704 changed files with 118925 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
// Alerts
//
// Modify Bootstrap's default alert styles to mimick
// the `.bs-callout` styles from Bootstrap's docs.
//
// @see https://github.com/twbs/bootstrap/blob/master/docs/assets/css/src/docs.css#L711
// @see https://github.com/twbs/bootstrap/blob/master/less/alerts.less
.alert {
background: #fff;
border: 1px solid #eee;
border-left-width: 5px;
border-radius: 3px;
color: #333;
margin: 20px 0;
padding: 20px;
h4 {
font-size: 18px;
margin-top: 0;
margin-bottom: 5px;
}
&-danger {
border-left-color: #ce4844;
h4 {
color: #ce4844;
}
}
&-info {
border-left-color: #1b809e;
h4 {
color: #1b809e;
}
}
&-warning {
border-left-color: #aa6708;
h4 {
color: #aa6708;
}
}
}

View File

@@ -0,0 +1,27 @@
// AnchorJS Styles
.anchorjs-link {
color: inherit;
transition: all .16s linear;
text-decoration: none;
&:link,
&:visited {
text-decoration: none;
color: inherit;
}
@media (max-width: 480px) {
display: none;
}
}
*:hover > .anchorjs-link {
opacity: .5;
margin-left: -0.9em !important;
}
*:hover > .anchorjs-link:hover,
.anchorjs-link:focus {
opacity: 1;
}

View File

@@ -0,0 +1,20 @@
// Buttons
.btn-outline-inverse {
color: #428BCA;
background-color: transparent;
border-color: #428BCA;
padding: 15px 30px;
font-size: 20px;
transition: all .1s ease-in-out;
&:hover {
color: #fff;
border-color: #428BCA;
background-color: #428BCA;
}
}
.btn-toolbar {
margin-bottom: 20px;
}

View File

@@ -0,0 +1,16 @@
// Code (inline and block)
// Inline code within headings retain the heading's background-color
h2 code,
h3 code,
h4 code {
background-color: inherit;
}
// Modify Bootstrap's styles for blocks of code
pre {
padding: 9px 14px;
margin-bottom: 14px;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
}

View File

@@ -0,0 +1,90 @@
// Examples
//
// Styles for the Select2 examples, largely copied
// from Bootstrap's docs styles.
//
// @see https://github.com/twbs/bootstrap/blob/master/docs/assets/css/src/docs.css#L533
.s2-example {
position: relative;
padding: 45px 15px 15px;
margin: 0 -15px 15px;
background-color: #fafafa;
box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.05);
border-color: #e5e5e5 #eee #eee;
border-style: solid;
border-width: 1px 0;
&:after {
content: "Example";
position: absolute;
top: 15px;
left: 15px;
font-size: 12px;
font-weight: bold;
color: #bbb;
text-transform: uppercase;
letter-spacing: 1px;
}
@media (min-width: 768px) {
margin-left: 0;
margin-right: 0;
background-color: #fff;
border-width: 1px;
border-color: #eee;
border-radius: 4px 4px 0 0;
box-shadow: none;
}
}
// styles for the event log in the "DOM events" section of the docs
.s2-event-log {
background: #002451;
color: white;
font-family: Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Consolas, monospace;
margin: 0 -15px 15px;
padding: 45px 15px 15px;
position: relative;
&:after {
content: "Event Log";
position: absolute;
top: 15px;
left: 15px;
font-size: 12px;
font-weight: bold;
color: #BBB;
text-transform: uppercase;
letter-spacing: 1px;
}
@media (min-width: 768px) {
margin-left: 0;
margin-right: 0;
margin-top: -15px;
border-width: 1px;
border-color: #eee;
box-shadow: none;
}
}
.s2-example + pre,
.s2-event-log + pre {
margin: -15px -15px 15px;
border-radius: 0;
border-width: 0 0 1px;
@media (min-width: 768px) {
margin-top: -16px;
margin-left: 0;
margin-right: 0;
border-width: 1px;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
}
.s2-example + .s2-event-log {
margin-top: -15px;
}

View File

@@ -0,0 +1,16 @@
// Homepage featurettes
.s2-docs-featurette {
color: #777;
padding: 15px 0;
text-align: center;
h4 {
margin: 30px 0 15px;
}
.fa {
font-size: 28px;
color: #777;
}
}

View File

@@ -0,0 +1,42 @@
// Footer
.s2-docs-footer {
border-top: 1px solid #eee;
color: #767676;
padding-top: 40px;
padding-bottom: 40px;
margin-top: 100px;
text-align: center;
&-links {
padding-left: 0;
margin-top: 20px;
}
&-links li {
display: inline;
padding: 0 2px;
&:after {
content: "·";
padding-left: 8px;
}
&:first-child {
padding-left: 0;
}
&:last-child:after {
content: "";
padding-left: 0;
}
}
@media (min-width: 768px) {
p {
margin-bottom: 0;
}
}
}

View File

@@ -0,0 +1,49 @@
// Animated hamburger icon
//
// Add an animation to Bootstrap's `.navbar-toggle` hamburger icon,
// courtesy of Julien Melissas.
//
// @see http://codepen.io/JulienMelissas/pen/LEBGLj
// @see http://julienmelissas.com/animated-x-icon-for-the-bootstrap-navbar-toggle/
.navbar-toggle {
border: none;
background: transparent !important;
&:hover {
background: transparent !important;
}
.icon-bar {
width: 22px;
transition: all 0.2s;
}
.top-bar {
transform: rotate(45deg);
transform-origin: 10% 10%;
}
.middle-bar {
opacity: 0;
}
.bottom-bar {
transform: rotate(-45deg);
transform-origin: 10% 90%;
}
&.collapsed {
.top-bar {
transform: rotate(0);
}
.middle-bar {
opacity: 1;
}
.bottom-bar {
transform: rotate(0);
}
}
}

View File

@@ -0,0 +1,31 @@
// Homepage-specific styles
.s2-docs-home {
.jumbotron {
margin-bottom: 0;
color: #000;
h1 {
color: #000;
margin-top: 20px;
}
}
.lead {
text-align: center;
max-width: 800px;
margin: 0 auto 40px;
}
.notice-previous {
background: #f6f6f6;
color: #666;
border-bottom: 1px solid #eee;
padding: 15px 20px;
}
.half-rule {
width: 100px;
margin: 40px auto;
}
}

View File

@@ -0,0 +1,24 @@
// Jumbotron
//
// Modify Bootstrap's default `.jumbotron` styles.
.jumbotron {
background-color: #F6F6F6;
border-bottom: 1px solid #eee;
color: #777;
padding-left: 0;
padding-right: 0;
h1 {
color: #777;
font-size: 36px;
margin-top: 10px;
}
.version {
color: #999;
font-size: 14px;
font-weight: normal;
margin-bottom: 30px;
}
}

View File

@@ -0,0 +1,14 @@
// Layout
.s2-docs-container {
line-height: 1.6;
}
section {
margin-bottom: 40px;
}
.page-header {
padding-bottom: 19px;
margin-bottom: 29px;
}

View File

@@ -0,0 +1,58 @@
// Main navigation
//
// Styles for the top `.navbar` and its dropdowns.
.s2-docs-nav {
margin-bottom: 0;
border-color: #eee;
background-color: #f6f6f6;
.navbar-brand {
font-weight: 500;
img {
margin-right: 4px;
}
}
.navbar-nav > .active > a,
.navbar-nav > .active > a:hover,
.navbar-nav > .active > a:focus {
background-color: #f0f0f0;
color: #000;
}
@media (min-width: 768px) {
.navbar-nav > li > .dropdown-menu:before {
position: absolute;
top: -21px;
left: 24px;
display: block;
width: 0;
height: 0;
border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0.1);
border-style: solid;
border-width: 10px;
content: "";
}
.navbar-nav > li > .dropdown-menu:after {
position: absolute;
top: -20px;
left: 24px;
display: block;
width: 0;
height: 0;
border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #FFF;
border-style: solid;
border-width: 10px;
content: '';
}
.navbar-nav .dropdown-menu {
border-radius: 4px;
border-color: #ddd;
margin-top: -1px;
}
}
}

View File

@@ -0,0 +1,51 @@
// Google Code Prettify styles
.com {
color: #999;
}
.lit {
color: #195f91;
}
.pun, .opn, .clo {
color: #93a1a1;
}
.fun {
color: #dc322f;
}
.str, .atv {
color: #C7254E;
}
.kwd, .prettyprint .tag {
color: #2F6F9F;
}
.typ, .atn, .dec, .var {
/*color: teal;*/
color: #428BCA;
}
.pln {
color: #333;
}
.prettyprint {
padding: 9px 14px;
margin-bottom: 20px;
margin-top: 20px;
border: 1px solid #eee;
&.linenums {
-webkit-box-shadow: inset 40px 0 0 #fbfbfb, inset 41px 0 0 #f6f6f6;
-moz-box-shadow: inset 40px 0 0 #fbfbfb, inset 41px 0 0 #f6f6f6;
box-shadow: inset 40px 0 0 #fbfbfb, inset 41px 0 0 #f6f6f6;
}
}
// Specify class=linenums on a pre to get line numbering
ol.linenums {
margin: 0 0 0 -12px;
li {
padding-left: 12px;
color: #bebebe;
line-height: 18px;
}
}

View File

@@ -0,0 +1,62 @@
// Styles accompanying the "Loading remote data" example `templateResult
.select2-result-repository {
padding-top: 4px;
padding-bottom: 3px;
&__avatar {
float: left;
width: 60px;
margin-right: 10px;
img {
width: 100%;
height: auto;
border-radius: 2px;
}
}
&__meta {
margin-left: 70px;
}
&__title {
color: black;
font-weight: bold;
word-wrap: break-word;
line-height: 1.1;
margin-bottom: 4px;
}
&__forks,
&__stargazers {
margin-right: 1em;
}
&__forks,
&__stargazers,
&__watchers {
display: inline-block;
color: #aaa;
font-size: 11px;
}
&__description {
font-size: 13px;
color: #777;
margin-top: 4px;
}
.select2-results__option--highlighted & {
&__title {
color: white;
}
&__forks,
&__stargazers,
&__description,
&__watchers {
color: mix(#428BCA, white, 30%);
}
}
}

View File

@@ -0,0 +1,152 @@
// Side navigation
//
// Scrollspy and affixed enhanced navigation to
// highlight sections and secondary sections of docs content`.
.s2-docs-sidebar {
// By default it is not affixed in mobile views, so undo that
&.affix {
position: static;
}
@media (min-width: 768px) {
padding-left: 20px;
}
}
// First level of nav
.s2-docs-sidenav {
margin-top: 20px;
margin-bottom: 20px;
}
// All levels of nav
.s2-docs-sidebar .nav {
> li > a {
margin-left: -1px;
display: block;
padding: 4px 20px;
font-size: 13px;
font-weight: 500;
color: #767676;
border-left: 1px solid transparent;
transition: color .2s, border-color .2s;
}
> li > a code {
background-color: inherit;
color: inherit;
}
> li > a:hover,
> li > a:focus {
color: #428BCA;
text-decoration: none;
background-color: transparent;
border-left-color: #428BCA;
}
> .active > a,
> .active:hover > a,
> .active:focus > a {
padding-left: 19px;
font-weight: bold;
color: #428BCA;
background-color: transparent;
border-left: 2px solid #428BCA;
}
// Nav: second level (shown on .active)
.nav {
display: none; // Hide by default, but at >768px, show it
padding-bottom: 10px;
}
.nav > li > a {
padding-top: 1px;
padding-bottom: 1px;
padding-left: 30px;
font-size: 12px;
font-weight: normal;
}
.nav > li > a:hover,
.nav > li > a:focus {
padding-left: 30px;
}
.nav > .active > a,
.nav > .active:hover > a,
.nav > .active:focus > a {
padding-left: 29px;
font-weight: 400;
}
}
// Show and affix the side nav when space allows it
@media (min-width: 992px) {
.s2-docs-sidebar .s2-docs-sidenav {
padding-top: 40px;
transition: border-color .2s;
border-left: 1px solid transparent;
}
.s2-docs-sidebar.affix .s2-docs-sidenav {
border-left-color: #eee;
}
.s2-docs-sidebar .nav > .active > ul {
display: block;
}
// Widen the fixed sidebar
.s2-docs-sidebar.affix,
.s2-docs-sidebar.affix-bottom {
width: 213px;
}
// Undo the static from mobile first approach
.s2-docs-sidebar.affix {
position: fixed;
top: 0px;
}
// Undo the static from mobile first approach
.s2-docs-sidebar.affix-bottom {
position: absolute;
}
.s2-docs-sidebar.affix-bottom .s2-docs-sidenav,
.s2-docs-sidebar.affix .s2-docs-sidenav {
margin-top: 0;
margin-bottom: 0;
}
}
@media (min-width: 1200px) {
// Widen the fixed sidebar again
.s2-docs-sidebar.affix-bottom,
.s2-docs-sidebar.affix {
width: 263px;
}
}
/* Back to top (hidden on mobile) */
.back-to-top {
display: none;
padding: 4px 10px;
margin-top: 10px;
margin-left: 10px;
font-size: 12px;
font-weight: 400;
color: #999;
&:hover {
color: #428BCA;
text-decoration: none;
}
@media (min-width: 768px) {
display: block;
}
}

View File

@@ -0,0 +1,35 @@
// Social buttons
//
// Twitter and GitHub social action buttons.
.s2-docs-social {
margin-bottom: 20px;
text-align: center;
}
.s2-docs-social-buttons {
display: inline-block;
padding-left: 0;
margin-bottom: 0;
list-style: none;
li {
display: inline-block;
padding: 5px 8px;
line-height: 1;
}
.twitter-follow-button {
width: 225px !important;
}
.twitter-share-button {
width: 98px !important;
}
}
// Style the GitHub buttons via CSS instead of inline attributes
.github-btn {
overflow: hidden;
border: 0;
}

View File

@@ -0,0 +1,6 @@
// Typography
h1[id] {
padding-top: 20px;
margin-top: 0;
}