2015-03-21 02:30:22 +03:00
|
|
|
---
|
|
|
|
# Use a comment to ensure Jekyll reads the file to be transformed into CSS later
|
|
|
|
# only main files contain this front matter, not partials.
|
|
|
|
---
|
|
|
|
|
2015-03-24 20:07:14 +03:00
|
|
|
/*
|
|
|
|
* Primer documentation styles
|
|
|
|
* http://primercss.io
|
|
|
|
*
|
|
|
|
* Released under MIT license. Copyright 2015 GitHub, Inc.
|
|
|
|
*/
|
|
|
|
|
2015-03-21 02:30:22 +03:00
|
|
|
//
|
|
|
|
// Import Primer itself
|
|
|
|
//
|
|
|
|
|
|
|
|
@import "../scss/primer";
|
|
|
|
@import "bower_components/octicons/octicons/octicons.css";
|
|
|
|
@import "bower_components/primer-user-content/components/markdown";
|
|
|
|
@import "css/anchor";
|
|
|
|
@import "css/syntax";
|
|
|
|
|
|
|
|
|
|
|
|
//
|
2015-04-04 16:35:56 +03:00
|
|
|
// Overrides
|
2015-03-21 02:30:22 +03:00
|
|
|
//
|
|
|
|
|
|
|
|
// Global type
|
|
|
|
html {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
font-family: "Helvetica Neue", $body-font;
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Make containers responsive
|
|
|
|
.container {
|
|
|
|
width: auto;
|
|
|
|
max-width: 1020px;
|
|
|
|
padding-left: 20px;
|
|
|
|
padding-right: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown-body {
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Custom button
|
|
|
|
//
|
|
|
|
|
|
|
|
.btn-reverse {
|
2016-03-04 20:28:38 +03:00
|
|
|
color: $text-white;
|
2015-03-21 02:30:22 +03:00
|
|
|
background: none;
|
|
|
|
border: 1px solid #fff;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active {
|
2016-03-04 20:10:54 +03:00
|
|
|
color: $text-blue;
|
2016-03-04 20:28:38 +03:00
|
|
|
background: $bg-white;
|
|
|
|
border-color: $white;
|
2015-03-21 02:30:22 +03:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Site header
|
|
|
|
//
|
|
|
|
|
|
|
|
.masthead {
|
|
|
|
padding-top: 1rem;
|
|
|
|
padding-bottom: 1rem;
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
text-align: center;
|
2016-03-04 20:10:54 +03:00
|
|
|
background-color: $bg-blue;
|
2015-03-21 02:30:22 +03:00
|
|
|
|
|
|
|
a {
|
|
|
|
color: rgba(255,255,255,.5);
|
|
|
|
|
|
|
|
&:hover {
|
2016-03-04 20:28:38 +03:00
|
|
|
color: $text-white;
|
2015-03-21 02:30:22 +03:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.masthead-logo {
|
|
|
|
display: inline-block;
|
|
|
|
font-size: 1.5rem;
|
2016-03-04 20:28:38 +03:00
|
|
|
color: $text-white;
|
2015-03-21 02:30:22 +03:00
|
|
|
|
|
|
|
.mega-octicon {
|
|
|
|
float: left;
|
|
|
|
margin-right: .5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 34em) {
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
.masthead-logo {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.masthead-nav {
|
|
|
|
margin-top: 1rem;
|
|
|
|
font-size: 1rem;
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 1.25rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.active {
|
2016-03-04 20:28:38 +03:00
|
|
|
color: $text-white;
|
2015-03-21 02:30:22 +03:00
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 34em) {
|
|
|
|
padding-top: 1rem;
|
|
|
|
border-top: .075rem solid rgba(255, 255, 255, 0.25);
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 34em) {
|
|
|
|
float: right;
|
|
|
|
margin-top: .5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Homepage jumbotron
|
|
|
|
//
|
|
|
|
|
|
|
|
.jumbotron {
|
|
|
|
margin-top: -2rem;
|
2015-03-23 07:09:41 +03:00
|
|
|
margin-bottom: 3rem;
|
2015-03-21 02:30:22 +03:00
|
|
|
padding-top: 2rem;
|
|
|
|
padding-bottom: 4rem;
|
2016-03-04 20:10:54 +03:00
|
|
|
background-color: $bg-blue;
|
2015-03-21 02:30:22 +03:00
|
|
|
font-size: 1.25rem;
|
2016-03-04 20:28:38 +03:00
|
|
|
color: $text-white;
|
2015-03-21 02:30:22 +03:00
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-size: 2.5em;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
padding: .75em 1.15em;
|
|
|
|
font-size: inherit;
|
|
|
|
font-weight: normal;
|
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 34em) {
|
|
|
|
padding-top: 6rem;
|
|
|
|
padding-bottom: 8rem;
|
|
|
|
font-size: 1.5rem;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-23 07:09:41 +03:00
|
|
|
.about-that {
|
2015-03-23 19:53:22 +03:00
|
|
|
|
|
|
|
@media (max-width: 760px) {
|
|
|
|
.column {
|
|
|
|
float: none;
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 30px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-23 07:09:41 +03:00
|
|
|
p {
|
|
|
|
padding-right: .5rem;
|
|
|
|
color: #555;
|
|
|
|
line-height: 1.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-21 02:30:22 +03:00
|
|
|
|
|
|
|
//
|
|
|
|
// Layout
|
|
|
|
//
|
|
|
|
|
|
|
|
// Override the default layout to make it stack
|
|
|
|
.docs-layout {
|
|
|
|
@media (max-width: 34em) {
|
|
|
|
> .column {
|
|
|
|
float: none;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Footer
|
|
|
|
//
|
|
|
|
|
|
|
|
.footer {
|
|
|
|
padding-top: 3rem;
|
|
|
|
padding-bottom: 3rem;
|
|
|
|
margin-top: 3rem;
|
|
|
|
line-height: 1.75;
|
|
|
|
color: #7a7a7a;
|
2015-03-23 07:09:41 +03:00
|
|
|
border-top: 1px solid #eee;
|
2015-04-16 01:06:16 +03:00
|
|
|
|
|
|
|
strong {
|
2016-03-04 20:28:38 +03:00
|
|
|
color: $text-gray-dark;
|
2015-04-16 01:06:16 +03:00
|
|
|
}
|
2015-03-21 02:30:22 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Side menu
|
|
|
|
//
|
|
|
|
|
|
|
|
.docs-menu {
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
@media (min-width: 34em) {
|
|
|
|
margin-right: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Examples
|
|
|
|
//
|
|
|
|
|
|
|
|
.docs-example {
|
|
|
|
position: relative;
|
|
|
|
padding: 15px;
|
|
|
|
font-size: 13px;
|
|
|
|
line-height: 1.4;
|
|
|
|
border: 1px solid #e5e5e5;
|
|
|
|
border-radius: .25rem .25rem 0 0;
|
|
|
|
|
|
|
|
+ .highlight {
|
|
|
|
margin-top: -1px;
|
|
|
|
border: 1px solid #e5e5e5;
|
|
|
|
border-radius: 0 0 .25rem .25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
> p:last-child,
|
|
|
|
> .menu:last-child,
|
|
|
|
> .tabnav:last-child,
|
|
|
|
> blockquote:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu,
|
|
|
|
.filter-list,
|
|
|
|
.sunken-menu {
|
|
|
|
max-width: 200px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Grid
|
|
|
|
.container {
|
|
|
|
width: 100%;
|
|
|
|
padding-left: $grid-gutter;
|
|
|
|
padding-right: $grid-gutter;
|
|
|
|
}
|
|
|
|
.columns + .columns {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
.column {
|
|
|
|
padding: $grid-gutter;
|
|
|
|
font-family: $mono-font;
|
2016-03-04 18:42:22 +03:00
|
|
|
background-color: lighten($green, 40%);
|
|
|
|
border: 1px solid lighten($green, 30%);
|
2015-03-21 02:30:22 +03:00
|
|
|
}
|
|
|
|
|
2015-03-28 11:00:14 +03:00
|
|
|
// Override Markdown styles to restore values from `_type.scss`
|
2015-03-30 21:28:05 +03:00
|
|
|
ul,
|
|
|
|
ol {
|
2015-03-21 02:30:22 +03:00
|
|
|
padding: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2015-06-10 22:39:41 +03:00
|
|
|
dl.form {
|
|
|
|
margin: 15px 0;
|
|
|
|
|
2015-06-24 23:38:28 +03:00
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2015-06-10 22:39:41 +03:00
|
|
|
> dt {
|
|
|
|
margin: 0 0 6px;
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
> dd {
|
|
|
|
padding: 0;
|
2015-06-24 23:38:28 +03:00
|
|
|
margin-bottom: 0;
|
2015-06-10 22:39:41 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-21 02:30:22 +03:00
|
|
|
// Flex table
|
|
|
|
.flex-table-item > .btn {
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.page-title + .markdown-body > p:first-child {
|
|
|
|
@extend .lead;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Markdown generated ToC
|
|
|
|
//
|
|
|
|
|
|
|
|
// Hide the first child li because it's always going to be "Contents".
|
|
|
|
#markdown-toc > li:first-child {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Branding colors
|
|
|
|
//
|
|
|
|
|
|
|
|
.swatch {
|
|
|
|
display: inline-block;
|
|
|
|
width: 6rem;
|
|
|
|
height: 6rem;
|
|
|
|
border-radius: .25rem;
|
|
|
|
}
|
|
|
|
|
2016-03-04 20:10:54 +03:00
|
|
|
.swatch-blue { background-color: $bg-blue; }
|
|
|
|
.swatch-green { background-color: $bg-green; }
|
|
|
|
.swatch-red { background-color: $bg-red; }
|
|
|
|
.swatch-orange { background-color: $bg-orange; }
|
|
|
|
.swatch-purple { background-color: $bg-purple; }
|
2015-03-21 02:30:22 +03:00
|
|
|
|
2016-03-04 20:10:54 +03:00
|
|
|
.swatch-gray-light { background-color: $bg-gray-light; }
|
|
|
|
.swatch-gray { background-color: $bg-gray; }
|
|
|
|
.swatch-gray-dark { background-color: $bg-gray-dark; }
|