/*! Spectre.css Docs | MIT License | github.com/picturepan2/spectre */ /* Spectre version */ .version::after { content: "0.2.15"; } // Core variables and mixins @import '../../src/variables.less'; @import '../../src/mixins.less'; /* Spectre New Docs */ .s-sidebar { background: @bg-color; flex: 0 0 240px; padding: 30px 0 30px 30px; width: 240px; .float-btn { position: fixed; right: 90px; top: 30px; } .accordion { .accordion-item { margin-bottom: 15px; } input { & ~ .accordion-header { color: darken(@gray-color-dark, 10%); font-size: 12px; font-weight: 600; text-transform: uppercase; } &:checked { & ~ .accordion-header { color: darken(@gray-color-dark, 10%); } } } .menu { .menu-item { padding-left: 20px; & > a { background: transparent; color: @gray-color-dark; display: inline-block; } } } } } .s-content { flex: 1 1 auto; max-width: 960px; padding: 0 80px; .container { padding: 0 10px 30px 10px; } .anchor { color: @primary-color-light; height: 0; margin-left: -2em; overflow: hidden; padding: 0 1em; position: absolute; text-align: center; width: 0; z-index: @zindex-1; &:focus, &:hover { box-shadow: none; height: auto; text-decoration: none; width: 2em; } } .s-title, .s-subtitle { line-height: 32px; margin-bottom: 0; padding-top: 30px; padding-bottom: 30px; position: static; @supports (position: sticky) { position: sticky; top: 0; z-index: @zindex-2; &::before { background: @light-color; bottom: 0; content: ""; display: block; left: -90px; position: absolute; right: -90px; top: -10px; z-index: -@zindex-0; } } &:hover { .anchor { height: auto; width: 1em; } } & + .notes { margin-top: 8px; } } .notes { margin: 30px 0; } .docs-block { border-radius: 2px; padding: 10px 5px; &.bg-gray { background: @bg-color-dark; } } .docs-dot { border-radius: 50%; display: inline-block; height: 10px; padding: 0; width: 10px; } .docs-table { th, td { padding: 15px 5px; } } .docs-color { border-radius: @border-radius; margin: 5px 0; padding: 10px; .color-subtitle { font-size: @font-size-sm; opacity: .75; } } .panel { height: 75vh; .tile { margin: 15px 0; } } .code { color: lighten(@body-font-color, 10%); .com { color: @gray-color; } .tag { color: @primary-color; } .atn { color: lighten(@body-font-color, 10%); } .atv { color: #e06870; } } .empty .icon { font-size: 40px; } .form-autocomplete .menu { position: static; } .example-tile-icon { align-content: space-around; align-items: center; background: @primary-color; border-radius: 2px; color: @light-color; display: flex; font-size: 24px; height: 40px; width: 40px; .icon { margin: auto; } } .comparison-slider { .filter-grayscale { filter: grayscale(75%); } } } .s-nav { bottom: 30px; overflow-y: auto; position: fixed; top: 100px; width: 210px; } .s-brand { color: @primary-color; padding: 0 4px; position: fixed; top: 26px; .s-logo { align-items: center; border-radius: 2px; display: flex; height: 40px; padding: 4px; width: auto; &:focus, &:hover { text-decoration: none; } img { display: inline; height: auto; width: 32px; } h2 { display: inline; font-size: 16px; margin-bottom: 0; margin-left: 10px; margin-right: 10px; } } } .s-footer { color: @gray-color; padding: 10px 10px 30px 10px; a { color: @gray-color-dark; } } /* Spectre docs style */ .section-header { backdrop-filter: blur(10px); // Safari only feature background: @light-color; padding: 20px 10px; position: fixed; top: 0; width: 100%; z-index: @zindex-2; .s-brand { position: static; } } .section-hero { padding: 30px 10px; position: relative; } .section-updates { padding: 30px 10px; .update-branding { height: auto; width: 64px; } } .section-features { padding: 30px 10px; } .section-footer { color: @gray-color; padding: 36px 15px 20px 15px; position: relative; z-index: 200; a { color: @gray-color-dark; } } .grid-hero { margin-top: 100px; margin-bottom: 40px; h1 { color: @body-font-color; font-size: 32px; font-weight: 400; } h2 { color: lighten(@body-font-color, 5%); font-size: 18px; font-weight: 400; line-height: 30px; margin-bottom: 30px; u { border-bottom: 2px solid currentColor; padding-bottom: 1px; text-decoration: none; } } .card { background: none; border: 0; color: lighten(@body-font-color, 10%); padding: 10px; .card-title { color: @primary-color; font-size: 18px; margin-bottom: 0; } } } @media screen and (min-width: 601px) { .section-header { .navbar-section { padding: 0 5px; } } .docs-sidebar { padding: 70px 10px 70px 10px; position: relative; .docs-nav { bottom: 50px; height: ~"calc(100vh - 140px)"; overflow-y: auto; position: fixed; top: 90px; width: 200px; } } .docs-content { width: ~"calc(100% - 240px)"; // Using CSS3 native calc() function } } .docs-nav-clear { display: none; } // Spectre.css Docs Mobile experience @media screen and (max-width: 600px) { .grid-hero { h2 { font-size: 18px; } .card { padding: 0; } } .docs-sidebar { background: @bg-color-light; height: 100%; overflow-y: auto; padding: 60px 30px; position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; z-index: 400; &:target { transform: translateX(0); transition: transform .2s ease; & + .docs-nav-clear { display: block; } } } .docs-nav-clear { background: rgba(0, 0, 0, .15); display: none; height: 100%; left: 0; right: 0; top: 0; position: fixed; width: 100%; z-index: 300; } }