vue-mapbox
Version:
> Combine powers of [Vue.js](https://vuejs.org/) and [Mapbox Gl JS](https://mapbox.com/mapbox-gl-js)
1,476 lines (1,475 loc) • 29.5 kB
CSS
#nprogress {
pointer-events: none;
}
#nprogress .bar {
background: #3eaf7c;
position: fixed;
z-index: 1031;
top: 0;
left: 0;
width: 100%;
height: 2px;
}
#nprogress .peg {
display: block;
position: absolute;
right: 0;
width: 100px;
height: 100%;
-webkit-box-shadow: 0 0 10px #3eaf7c, 0 0 5px #3eaf7c;
box-shadow: 0 0 10px #3eaf7c, 0 0 5px #3eaf7c;
opacity: 1;
-webkit-transform: rotate(3deg) translateY(-4px);
transform: rotate(3deg) translateY(-4px);
}
#nprogress .spinner {
display: block;
position: fixed;
z-index: 1031;
top: 15px;
right: 15px;
}
#nprogress .spinner-icon {
width: 18px;
height: 18px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border: 2px solid transparent;
border-top-color: #3eaf7c;
border-left-color: #3eaf7c;
border-radius: 50%;
-webkit-animation: nprogress-spinner 0.4s linear infinite;
animation: nprogress-spinner 0.4s linear infinite;
}
.nprogress-custom-parent {
overflow: hidden;
position: relative;
}
.nprogress-custom-parent #nprogress .bar,
.nprogress-custom-parent #nprogress .spinner {
position: absolute;
}
@-webkit-keyframes nprogress-spinner {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(1turn);
transform: rotate(1turn);
}
}
@keyframes nprogress-spinner {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(1turn);
transform: rotate(1turn);
}
}
.icon.outbound {
color: #aaa;
display: inline-block;
}
.home {
padding: 3.6rem 2rem 0;
max-width: 960px;
margin: 0 auto;
display: block;
}
.home .hero {
text-align: center;
}
.home .hero img {
max-width: 100%;
max-height: 280px;
display: block;
margin: 3rem auto 1.5rem;
}
.home .hero h1 {
font-size: 3rem;
}
.home .hero .action,
.home .hero .description,
.home .hero h1 {
margin: 1.8rem auto;
}
.home .hero .description {
max-width: 35rem;
font-size: 1.6rem;
line-height: 1.3;
color: #6a8bad;
}
.home .hero .action-button {
display: inline-block;
font-size: 1.2rem;
color: #fff;
background-color: #3eaf7c;
padding: 0.8rem 1.6rem;
border-radius: 4px;
-webkit-transition: background-color 0.1s ease;
transition: background-color 0.1s ease;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-bottom: 1px solid #389d70;
}
.home .hero .action-button:hover {
background-color: #4abf8a;
}
.home .features {
border-top: 1px solid #eaecef;
padding: 1.2rem 0;
margin-top: 2.5rem;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
}
.home .feature {
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
-ms-flex-preferred-size: 30%;
flex-basis: 30%;
max-width: 30%;
}
.home .feature h2 {
font-size: 1.4rem;
font-weight: 500;
border-bottom: none;
padding-bottom: 0;
color: #3a5169;
}
.home .feature p {
color: #4e6e8e;
}
.home .footer {
padding: 2.5rem;
border-top: 1px solid #eaecef;
text-align: center;
color: #4e6e8e;
}
@media (max-width: 719px) {
.home .features {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
.home .feature {
max-width: 100%;
padding: 0 2.5rem;
}
}
@media (max-width: 419px) {
.home {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
.home .hero img {
max-height: 210px;
margin: 2rem auto 1.2rem;
}
.home .hero h1 {
font-size: 2rem;
}
.home .hero .action,
.home .hero .description,
.home .hero h1 {
margin: 1.2rem auto;
}
.home .hero .description {
font-size: 1.2rem;
}
.home .hero .action-button {
font-size: 1rem;
padding: 0.6rem 1.2rem;
}
.home .feature h2 {
font-size: 1.25rem;
}
}
.sidebar-button {
cursor: pointer;
display: none;
width: 1.25rem;
height: 1.25rem;
position: absolute;
padding: 0.6rem;
top: 0.6rem;
left: 1rem;
}
.sidebar-button .icon {
display: block;
width: 1.25rem;
height: 1.25rem;
}
@media (max-width: 719px) {
.sidebar-button {
display: block;
}
}
.search-box {
display: inline-block;
position: relative;
margin-right: 1rem;
}
.search-box input {
cursor: text;
width: 10rem;
height: 2rem;
color: #4e6e8e;
display: inline-block;
border: 1px solid #cfd4db;
border-radius: 2rem;
font-size: 0.9rem;
line-height: 2rem;
padding: 0 0.5rem 0 2rem;
outline: none;
-webkit-transition: all 0.2s ease;
transition: all 0.2s ease;
background: #fff url(/vue-mapbox/assets/img/search.83621669.svg) 0.6rem 0.5rem
no-repeat;
background-size: 1rem;
}
.search-box input:focus {
cursor: auto;
border-color: #3eaf7c;
}
.search-box .suggestions {
background: #fff;
width: 20rem;
position: absolute;
top: 1.5rem;
border: 1px solid #cfd4db;
border-radius: 6px;
padding: 0.4rem;
list-style-type: none;
}
.search-box .suggestions.align-right {
right: 0;
}
.search-box .suggestion {
line-height: 1.4;
padding: 0.4rem 0.6rem;
border-radius: 4px;
cursor: pointer;
}
.search-box .suggestion a {
white-space: normal;
color: #5d82a6;
}
.search-box .suggestion a .page-title {
font-weight: 600;
}
.search-box .suggestion a .header {
font-size: 0.9em;
margin-left: 0.25em;
}
.search-box .suggestion.focused {
background-color: #f3f4f5;
}
.search-box .suggestion.focused a {
color: #3eaf7c;
}
@media (max-width: 959px) {
.search-box input {
cursor: pointer;
width: 0;
border-color: transparent;
position: relative;
}
.search-box input:focus {
cursor: text;
left: 0;
width: 10rem;
}
}
@media (-ms-high-contrast: none) {
.search-box input {
height: 2rem;
}
}
@media (max-width: 959px) and (min-width: 719px) {
.search-box .suggestions {
left: 0;
}
}
@media (max-width: 719px) {
.search-box {
margin-right: 0;
}
.search-box input {
left: 1rem;
}
.search-box .suggestions {
right: 0;
}
}
@media (max-width: 419px) {
.search-box .suggestions {
width: calc(100vw - 4rem);
}
.search-box input:focus {
width: 8rem;
}
}
.dropdown-enter,
.dropdown-leave-to {
height: 0 ;
}
.dropdown-wrapper {
cursor: pointer;
}
.dropdown-wrapper .dropdown-title {
display: block;
}
.dropdown-wrapper .dropdown-title:hover {
border-color: transparent;
}
.dropdown-wrapper .dropdown-title .arrow {
vertical-align: middle;
margin-top: -1px;
margin-left: 0.4rem;
}
.dropdown-wrapper .nav-dropdown .dropdown-item {
color: inherit;
line-height: 1.7rem;
}
.dropdown-wrapper .nav-dropdown .dropdown-item h4 {
margin: 0.45rem 0 0;
border-top: 1px solid #eee;
padding: 0.45rem 1.5rem 0 1.25rem;
}
.dropdown-wrapper .nav-dropdown .dropdown-item .dropdown-subitem-wrapper {
padding: 0;
list-style: none;
}
.dropdown-wrapper
.nav-dropdown
.dropdown-item
.dropdown-subitem-wrapper
.dropdown-subitem {
font-size: 0.9em;
}
.dropdown-wrapper .nav-dropdown .dropdown-item a {
display: block;
line-height: 1.7rem;
position: relative;
border-bottom: none;
font-weight: 400;
margin-bottom: 0;
padding: 0 1.5rem 0 1.25rem;
}
.dropdown-wrapper .nav-dropdown .dropdown-item a.router-link-active,
.dropdown-wrapper .nav-dropdown .dropdown-item a:hover {
color: #3eaf7c;
}
.dropdown-wrapper .nav-dropdown .dropdown-item a.router-link-active:after {
content: "";
width: 0;
height: 0;
border-left: 5px solid #3eaf7c;
border-top: 3px solid transparent;
border-bottom: 3px solid transparent;
position: absolute;
top: calc(50% - 2px);
left: 9px;
}
.dropdown-wrapper .nav-dropdown .dropdown-item:first-child h4 {
margin-top: 0;
padding-top: 0;
border-top: 0;
}
@media (max-width: 719px) {
.dropdown-wrapper.open .dropdown-title {
margin-bottom: 0.5rem;
}
.dropdown-wrapper .nav-dropdown {
-webkit-transition: height 0.1s ease-out;
transition: height 0.1s ease-out;
overflow: hidden;
}
.dropdown-wrapper .nav-dropdown .dropdown-item h4 {
border-top: 0;
margin-top: 0;
padding-top: 0;
}
.dropdown-wrapper .nav-dropdown .dropdown-item > a,
.dropdown-wrapper .nav-dropdown .dropdown-item h4 {
font-size: 15px;
line-height: 2rem;
}
.dropdown-wrapper .nav-dropdown .dropdown-item .dropdown-subitem {
font-size: 14px;
padding-left: 1rem;
}
}
@media (min-width: 719px) {
.dropdown-wrapper {
height: 1.8rem;
}
.dropdown-wrapper:hover .nav-dropdown {
display: block ;
}
.dropdown-wrapper .dropdown-title .arrow {
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 6px solid #ccc;
border-bottom: 0;
}
.dropdown-wrapper .nav-dropdown {
display: none;
height: auto ;
-webkit-box-sizing: border-box;
box-sizing: border-box;
max-height: calc(100vh - 2.7rem);
overflow-y: auto;
position: absolute;
top: 100%;
right: 0;
background-color: #fff;
padding: 0.6rem 0;
border: 1px solid #ddd;
border-bottom-color: #ccc;
text-align: left;
border-radius: 0.25rem;
white-space: nowrap;
margin: 0;
}
}
.nav-links {
display: inline-block;
}
.nav-links a {
line-height: 1.4rem;
color: inherit;
}
.nav-links a.router-link-active,
.nav-links a:hover {
color: #3eaf7c;
}
.nav-links .nav-item {
position: relative;
display: inline-block;
margin-left: 1.5rem;
line-height: 2rem;
}
.nav-links .nav-item:first-child {
margin-left: 0;
}
.nav-links .repo-link {
margin-left: 1.5rem;
}
@media (max-width: 719px) {
.nav-links .nav-item,
.nav-links .repo-link {
margin-left: 0;
}
}
@media (min-width: 719px) {
.nav-links a.router-link-active,
.nav-links a:hover {
color: #2c3e50;
}
.nav-item > a:not(.external).router-link-active,
.nav-item > a:not(.external):hover {
margin-bottom: -2px;
border-bottom: 2px solid #46bd87;
}
}
.navbar {
padding: 0.7rem 1.5rem;
line-height: 2.2rem;
}
.navbar a,
.navbar img,
.navbar span {
display: inline-block;
}
.navbar .logo {
height: 2.2rem;
min-width: 2.2rem;
margin-right: 0.8rem;
vertical-align: top;
}
.navbar .site-name {
font-size: 1.3rem;
font-weight: 600;
color: #2c3e50;
position: relative;
}
.navbar .links {
padding-left: 1.5rem;
-webkit-box-sizing: border-box;
box-sizing: border-box;
background-color: #fff;
white-space: nowrap;
font-size: 0.9rem;
position: absolute;
right: 1.5rem;
top: 0.7rem;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.navbar .links .search-box {
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
vertical-align: top;
}
@media (max-width: 719px) {
.navbar {
padding-left: 4rem;
}
.navbar .can-hide {
display: none;
}
.navbar .links {
padding-left: 1.5rem;
}
}
.page-edit,
.page-nav {
max-width: 740px;
margin: 0 auto;
padding: 2rem 2.5rem;
}
@media (max-width: 959px) {
.page-edit,
.page-nav {
padding: 2rem;
}
}
@media (max-width: 419px) {
.page-edit,
.page-nav {
padding: 1.5rem;
}
}
.page {
padding-bottom: 2rem;
display: block;
}
.page-edit {
padding-top: 1rem;
padding-bottom: 1rem;
overflow: auto;
}
.page-edit .edit-link {
display: inline-block;
}
.page-edit .edit-link a {
color: #4e6e8e;
margin-right: 0.25rem;
}
.page-edit .last-updated {
float: right;
font-size: 0.9em;
}
.page-edit .last-updated .prefix {
font-weight: 500;
color: #4e6e8e;
}
.page-edit .last-updated .time {
font-weight: 400;
color: #aaa;
}
.page-nav {
padding-top: 1rem;
padding-bottom: 0;
}
.page-nav .inner {
min-height: 2rem;
margin-top: 0;
border-top: 1px solid #eaecef;
padding-top: 1rem;
overflow: auto;
}
.page-nav .next {
float: right;
}
@media (max-width: 719px) {
.page-edit .edit-link {
margin-bottom: 0.5rem;
}
.page-edit .last-updated {
font-size: 0.8em;
float: none;
text-align: left;
}
}
.sidebar-group .sidebar-group {
padding-left: 0.5em;
}
.sidebar-group:not(.collapsable) .sidebar-heading:not(.clickable) {
cursor: auto;
color: inherit;
}
.sidebar-group.is-sub-group {
padding-left: 0;
}
.sidebar-group.is-sub-group > .sidebar-heading {
font-size: 0.95em;
line-height: 1.4;
font-weight: 400;
padding-left: 2rem;
}
.sidebar-group.is-sub-group > .sidebar-heading:not(.clickable) {
opacity: 0.5;
}
.sidebar-group.is-sub-group > .sidebar-group-items {
padding-left: 1rem;
}
.sidebar-group.is-sub-group > .sidebar-group-items > li > .sidebar-link {
font-size: 0.95em;
border-left: none;
}
.sidebar-group.depth-2 > .sidebar-heading {
border-left: none;
}
.sidebar-heading {
color: #2c3e50;
-webkit-transition: color 0.15s ease;
transition: color 0.15s ease;
cursor: pointer;
font-size: 1.1em;
font-weight: 700;
padding: 0.35rem 1.5rem 0.35rem 1.25rem;
width: 100%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
border-left: 0.25rem solid transparent;
}
.sidebar-heading.open,
.sidebar-heading:hover {
color: inherit;
}
.sidebar-heading .arrow {
position: relative;
top: -0.12em;
left: 0.5em;
}
.sidebar-heading.clickable.active {
font-weight: 600;
color: #3eaf7c;
border-left-color: #3eaf7c;
}
.sidebar-heading.clickable:hover {
color: #3eaf7c;
}
.sidebar-group-items {
-webkit-transition: height 0.1s ease-out;
transition: height 0.1s ease-out;
font-size: 0.95em;
overflow: hidden;
}
.sidebar .sidebar-sub-headers {
padding-left: 1rem;
font-size: 0.95em;
}
a.sidebar-link {
font-size: 1em;
font-weight: 400;
display: inline-block;
color: #2c3e50;
border-left: 0.25rem solid transparent;
padding: 0.35rem 1rem 0.35rem 1.25rem;
line-height: 1.4;
width: 100%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
a.sidebar-link:hover {
color: #3eaf7c;
}
a.sidebar-link.active {
font-weight: 600;
color: #3eaf7c;
border-left-color: #3eaf7c;
}
.sidebar-group a.sidebar-link {
padding-left: 2rem;
}
.sidebar-sub-headers a.sidebar-link {
padding-top: 0.25rem;
padding-bottom: 0.25rem;
border-left: none;
}
.sidebar-sub-headers a.sidebar-link.active {
font-weight: 500;
}
.sidebar ul {
padding: 0;
margin: 0;
list-style-type: none;
}
.sidebar a {
display: inline-block;
}
.sidebar .nav-links {
display: none;
border-bottom: 1px solid #eaecef;
padding: 0.5rem 0 0.75rem 0;
}
.sidebar .nav-links a {
font-weight: 600;
}
.sidebar .nav-links .nav-item,
.sidebar .nav-links .repo-link {
display: block;
line-height: 1.25rem;
font-size: 1.1em;
padding: 0.5rem 0 0.5rem 1.5rem;
}
.sidebar > .sidebar-links {
padding: 1.5rem 0;
}
.sidebar > .sidebar-links > li > a.sidebar-link {
font-size: 1.1em;
line-height: 1.7;
font-weight: 700;
}
.sidebar > .sidebar-links > li:not(:first-child) {
margin-top: 0.75rem;
}
@media (max-width: 719px) {
.sidebar .nav-links {
display: block;
}
.sidebar
.nav-links
.dropdown-wrapper
.nav-dropdown
.dropdown-item
a.router-link-active:after {
top: calc(1rem - 2px);
}
.sidebar > .sidebar-links {
padding: 1rem 0;
}
}
code[class*="language-"],
pre[class*="language-"] {
color: #ccc;
background: none;
font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
pre[class*="language-"] {
padding: 1em;
margin: 0.5em 0;
overflow: auto;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #2d2d2d;
}
:not(pre) > code[class*="language-"] {
padding: 0.1em;
border-radius: 0.3em;
white-space: normal;
}
.token.block-comment,
.token.cdata,
.token.comment,
.token.doctype,
.token.prolog {
color: #999;
}
.token.punctuation {
color: #ccc;
}
.token.attr-name,
.token.deleted,
.token.namespace,
.token.tag {
color: #e2777a;
}
.token.function-name {
color: #6196cc;
}
.token.boolean,
.token.function,
.token.number {
color: #f08d49;
}
.token.class-name,
.token.constant,
.token.property,
.token.symbol {
color: #f8c555;
}
.token.atrule,
.token.builtin,
.token.important,
.token.keyword,
.token.selector {
color: #cc99cd;
}
.token.attr-value,
.token.char,
.token.regex,
.token.string,
.token.variable {
color: #7ec699;
}
.token.entity,
.token.operator,
.token.url {
color: #67cdcc;
}
.token.bold,
.token.important {
font-weight: 700;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
.token.inserted {
color: green;
}
.content code {
color: #476582;
padding: 0.25rem 0.5rem;
margin: 0;
font-size: 0.85em;
background-color: rgba(27, 31, 35, 0.05);
border-radius: 3px;
}
.content code .token.deleted {
color: #ec5975;
}
.content code .token.inserted {
color: #3eaf7c;
}
.content pre,
.content pre[class*="language-"] {
line-height: 1.4;
padding: 1.25rem 1.5rem;
margin: 0.85rem 0;
background-color: #282c34;
border-radius: 6px;
overflow: auto;
}
.content pre[class*="language-"] code,
.content pre code {
color: #fff;
padding: 0;
background-color: transparent;
border-radius: 0;
}
div[class*="language-"] {
position: relative;
background-color: #282c34;
border-radius: 6px;
}
div[class*="language-"] .highlight-lines {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
padding-top: 1.3rem;
position: absolute;
top: 0;
left: 0;
width: 100%;
line-height: 1.4;
}
div[class*="language-"] .highlight-lines .highlighted {
background-color: rgba(0, 0, 0, 0.66);
}
div[class*="language-"] pre,
div[class*="language-"] pre[class*="language-"] {
background: transparent;
position: relative;
z-index: 1;
}
div[class*="language-"]:before {
position: absolute;
z-index: 3;
top: 0.8em;
right: 1em;
font-size: 0.75rem;
color: hsla(0, 0%, 100%, 0.4);
}
div[class*="language-"]:not(.line-numbers-mode) .line-numbers-wrapper {
display: none;
}
div[class*="language-"].line-numbers-mode .highlight-lines .highlighted {
position: relative;
}
div[class*="language-"].line-numbers-mode .highlight-lines .highlighted:before {
content: " ";
position: absolute;
z-index: 3;
left: 0;
top: 0;
display: block;
width: 3.5rem;
height: 100%;
background-color: rgba(0, 0, 0, 0.66);
}
div[class*="language-"].line-numbers-mode pre {
padding-left: 4.5rem;
vertical-align: middle;
}
div[class*="language-"].line-numbers-mode .line-numbers-wrapper {
position: absolute;
top: 0;
width: 3.5rem;
text-align: center;
color: hsla(0, 0%, 100%, 0.3);
padding: 1.25rem 0;
line-height: 1.4;
}
div[class*="language-"].line-numbers-mode .line-numbers-wrapper .line-number,
div[class*="language-"].line-numbers-mode .line-numbers-wrapper br {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
div[class*="language-"].line-numbers-mode .line-numbers-wrapper .line-number {
position: relative;
z-index: 4;
font-size: 0.85em;
}
div[class*="language-"].line-numbers-mode:after {
content: "";
position: absolute;
z-index: 2;
top: 0;
left: 0;
width: 3.5rem;
height: 100%;
border-radius: 6px 0 0 6px;
border-right: 1px solid rgba(0, 0, 0, 0.66);
background-color: #282c34;
}
div[class~="language-js"]:before {
content: "js";
}
div[class~="language-ts"]:before {
content: "ts";
}
div[class~="language-html"]:before {
content: "html";
}
div[class~="language-md"]:before {
content: "md";
}
div[class~="language-vue"]:before {
content: "vue";
}
div[class~="language-css"]:before {
content: "css";
}
div[class~="language-sass"]:before {
content: "sass";
}
div[class~="language-scss"]:before {
content: "scss";
}
div[class~="language-less"]:before {
content: "less";
}
div[class~="language-stylus"]:before {
content: "stylus";
}
div[class~="language-go"]:before {
content: "go";
}
div[class~="language-java"]:before {
content: "java";
}
div[class~="language-c"]:before {
content: "c";
}
div[class~="language-sh"]:before {
content: "sh";
}
div[class~="language-yaml"]:before {
content: "yaml";
}
div[class~="language-py"]:before {
content: "py";
}
div[class~="language-docker"]:before {
content: "docker";
}
div[class~="language-dockerfile"]:before {
content: "dockerfile";
}
div[class~="language-makefile"]:before {
content: "makefile";
}
div[class~="language-javascript"]:before {
content: "js";
}
div[class~="language-typescript"]:before {
content: "ts";
}
div[class~="language-markup"]:before {
content: "html";
}
div[class~="language-markdown"]:before {
content: "md";
}
div[class~="language-json"]:before {
content: "json";
}
div[class~="language-ruby"]:before {
content: "rb";
}
div[class~="language-python"]:before {
content: "py";
}
div[class~="language-bash"]:before {
content: "sh";
}
div[class~="language-php"]:before {
content: "php";
}
.custom-block .custom-block-title {
font-weight: 600;
margin-bottom: -0.4rem;
}
.custom-block.danger,
.custom-block.tip,
.custom-block.warning {
padding: 0.1rem 1.5rem;
border-left-width: 0.5rem;
border-left-style: solid;
margin: 1rem 0;
}
.custom-block.tip {
background-color: #f3f5f7;
border-color: #42b983;
}
.custom-block.warning {
background-color: rgba(255, 229, 100, 0.3);
border-color: #e7c000;
color: #6b5900;
}
.custom-block.warning .custom-block-title {
color: #b29400;
}
.custom-block.warning a {
color: #2c3e50;
}
.custom-block.danger {
background-color: #ffe6e6;
border-color: #c00;
color: #4d0000;
}
.custom-block.danger .custom-block-title {
color: #900;
}
.custom-block.danger a {
color: #2c3e50;
}
pre.vue-container {
border-left-width: 0.5rem;
border-left-style: solid;
border-color: #42b983;
border-radius: 0;
}
pre.vue-container > code {
font-size: 14px ;
}
pre.vue-container > code > p {
margin: -5px 0 -20px 0;
}
pre.vue-container > code code {
background-color: #42b983 ;
padding: 3px 5px;
border-radius: 3px;
color: #000;
}
pre.vue-container > code em {
color: gray;
font-weight: light;
}
.arrow {
display: inline-block;
width: 0;
height: 0;
}
.arrow.up {
border-bottom: 6px solid #ccc;
}
.arrow.down,
.arrow.up {
border-left: 4px solid transparent;
border-right: 4px solid transparent;
}
.arrow.down {
border-top: 6px solid #ccc;
}
.arrow.right {
border-left: 6px solid #ccc;
}
.arrow.left,
.arrow.right {
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
}
.arrow.left {
border-right: 6px solid #ccc;
}
.content:not(.custom) {
max-width: 740px;
margin: 0 auto;
padding: 2rem 2.5rem;
}
@media (max-width: 959px) {
.content:not(.custom) {
padding: 2rem;
}
}
@media (max-width: 419px) {
.content:not(.custom) {
padding: 1.5rem;
}
}
.table-of-contents .badge {
vertical-align: middle;
}
body,
html {
padding: 0;
margin: 0;
background-color: #fff;
}
body {
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 16px;
color: #2c3e50;
}
.page {
padding-left: 20rem;
}
.navbar {
z-index: 20;
right: 0;
height: 3.6rem;
background-color: #fff;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-bottom: 1px solid #eaecef;
}
.navbar,
.sidebar-mask {
position: fixed;
top: 0;
left: 0;
}
.sidebar-mask {
z-index: 9;
width: 100vw;
height: 100vh;
display: none;
}
.sidebar {
font-size: 16px;
background-color: #fff;
width: 20rem;
position: fixed;
z-index: 10;
margin: 0;
top: 3.6rem;
left: 0;
bottom: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-right: 1px solid #eaecef;
overflow-y: auto;
}
.content:not(.custom) > :first-child {
margin-top: 3.6rem;
}
.content:not(.custom) a:hover {
text-decoration: underline;
}
.content:not(.custom) p.demo {
padding: 1rem 1.5rem;
border: 1px solid #ddd;
border-radius: 4px;
}
.content:not(.custom) img {
max-width: 100%;
}
.content.custom {
padding: 0;
margin: 0;
}
.content.custom img {
max-width: 100%;
}
a {
font-weight: 500;
text-decoration: none;
}
a,
p a code {
color: #3eaf7c;
}
p a code {
font-weight: 400;
}
kbd {
background: #eee;
border: 0.15rem solid #ddd;
border-bottom: 0.25rem solid #ddd;
border-radius: 0.15rem;
padding: 0 0.15em;
}
blockquote {
font-size: 0.9rem;
color: #999;
border-left: 0.5rem solid #dfe2e5;
margin: 0.5rem 0;
padding: 0.25rem 0 0.25rem 1rem;
}
blockquote > p {
margin: 0;
}
ol,
ul {
padding-left: 1.2em;
}
strong {
font-weight: 600;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 600;
line-height: 1.25;
}
.content:not(.custom) > h1,
.content:not(.custom) > h2,
.content:not(.custom) > h3,
.content:not(.custom) > h4,
.content:not(.custom) > h5,
.content:not(.custom) > h6 {
margin-top: -3.1rem;
padding-top: 4.6rem;
margin-bottom: 0;
}
.content:not(.custom) > h1:first-child,
.content:not(.custom) > h2:first-child,
.content:not(.custom) > h3:first-child,
.content:not(.custom) > h4:first-child,
.content:not(.custom) > h5:first-child,
.content:not(.custom) > h6:first-child {
margin-top: -1.5rem;
margin-bottom: 1rem;
}
.content:not(.custom) > h1:first-child + .custom-block,
.content:not(.custom) > h1:first-child + p,
.content:not(.custom) > h1:first-child + pre,
.content:not(.custom) > h2:first-child + .custom-block,
.content:not(.custom) > h2:first-child + p,
.content:not(.custom) > h2:first-child + pre,
.content:not(.custom) > h3:first-child + .custom-block,
.content:not(.custom) > h3:first-child + p,
.content:not(.custom) > h3:first-child + pre,
.content:not(.custom) > h4:first-child + .custom-block,
.content:not(.custom) > h4:first-child + p,
.content:not(.custom) > h4:first-child + pre,
.content:not(.custom) > h5:first-child + .custom-block,
.content:not(.custom) > h5:first-child + p,
.content:not(.custom) > h5:first-child + pre,
.content:not(.custom) > h6:first-child + .custom-block,
.content:not(.custom) > h6:first-child + p,
.content:not(.custom) > h6:first-child + pre {
margin-top: 2rem;
}
h1:hover .header-anchor,
h2:hover .header-anchor,
h3:hover .header-anchor,
h4:hover .header-anchor,
h5:hover .header-anchor,
h6:hover .header-anchor {
opacity: 1;
}
h1 {
font-size: 2.2rem;
}
h2 {
font-size: 1.65rem;
padding-bottom: 0.3rem;
border-bottom: 1px solid #eaecef;
}
h3 {
font-size: 1.35rem;
}
a.header-anchor {
font-size: 0.85em;
float: left;
margin-left: -0.87em;
padding-right: 0.23em;
margin-top: 0.125em;
opacity: 0;
}
a.header-anchor:hover {
text-decoration: none;
}
.line-number,
code,
kbd {
font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace;
}
ol,
p,
ul {
line-height: 1.7;
}
hr {
border: 0;
border-top: 1px solid #eaecef;
}
table {
border-collapse: collapse;
margin: 1rem 0;
display: block;
overflow-x: auto;
}
tr {
border-top: 1px solid #dfe2e5;
}
tr:nth-child(2n) {
background-color: #f6f8fa;
}
td,
th {
border: 1px solid #dfe2e5;
padding: 0.6em 1em;
}
.theme-container.sidebar-open .sidebar-mask {
display: block;
}
.theme-container.no-navbar .content:not(.custom) > h1,
.theme-container.no-navbar h2,
.theme-container.no-navbar h3,
.theme-container.no-navbar h4,
.theme-container.no-navbar h5,
.theme-container.no-navbar h6 {
margin-top: 1.5rem;
padding-top: 0;
}
.theme-container.no-navbar .sidebar {
top: 0;
}
@media (min-width: 720px) {
.theme-container.no-sidebar .sidebar {
display: none;
}
.theme-container.no-sidebar .page {
padding-left: 0;
}
}
@media (max-width: 959px) {
.sidebar {
font-size: 15px;
width: 16.4rem;
}
.page {
padding-left: 16.4rem;
}
}
@media (max-width: 719px) {
.sidebar {
top: 0;
padding-top: 3.6rem;
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
-webkit-transition: -webkit-transform 0.2s ease;
transition: -webkit-transform 0.2s ease;
transition: transform 0.2s ease;
transition: transform 0.2s ease, -webkit-transform 0.2s ease;
}
.page {
padding-left: 0;
}
.theme-container.sidebar-open .sidebar {
-webkit-transform: translateX(0);
transform: translateX(0);
}
.theme-container.no-navbar .sidebar {
padding-top: 0;
}
}
@media (max-width: 419px) {
h1 {
font-size: 1.9rem;
}
.content div[class*="language-"] {
margin: 0.85rem -1.5rem;
border-radius: 0;
}
}
.badge[data-v-efceadb8] {
display: inline-block;
font-size: 14px;
height: 18px;
line-height: 18px;
border-radius: 3px;
padding: 0 6px;
color: #fff;
margin-right: 5px;
background-color: #42b983;
}
.badge.middle[data-v-efceadb8] {
vertical-align: middle;
}
.badge.top[data-v-efceadb8] {
vertical-align: top;
}
.badge.green[data-v-efceadb8],
.badge.tip[data-v-efceadb8] {
background-color: #42b983;
}
.badge.error[data-v-efceadb8] {
background-color: #da5961;
}
.badge.warn[data-v-efceadb8],
.badge.warning[data-v-efceadb8],
.badge.yellow[data-v-efceadb8] {
background-color: #e7c000;
}