air-datepicker/docs/sass/_docs.scss

380 lines
5.4 KiB
SCSS

/* -------------------------------------------------
Page styles
------------------------------------------------- */
$fontFamily: Tahoma, sans-serif;
html {
color: #333;
font-family: $fontFamily;
font-size: 14px;
}
p {
line-height: 1.3;
margin-bottom: 14px;
}
h1, h2, h3, h4 {
font-family: 'Fira Sans', sans-serif;
line-height: 1;
}
h2 {
font-weight: 100;
font-size: 32px;
margin: 48px 0 8px;
}
h3 {
font-weight: 500;
font-size: 18px;
margin: 24px 0 8px;
}
h4 {
font-weight: normal;
color: #939393;
font-size: 16px;
margin: 24px 0 0;
}
article {
h2, h3 {
position: relative;
z-index: 1;
&:after {
content: '';
background: rgba(#FF9A19, .2);
border-radius: 4px;
opacity: 0;
left: -8px;
right: -8px;
top: -10px;
bottom: -4px;
position: absolute;
z-index: -1;
transition: all .3s .7s linear;
}
&.-hilited- {
&:after {
opacity: 1;
}
}
}
}
.container {
max-width: 960px;
margin: 0 auto;
padding: 1px 0;
article {
margin: 60px 0 30px;
}
@media all and (max-width: 1525px) {
margin-left: 270px;
}
@media all and (max-width: 1280px) {
margin-right: 20px;
}
@media all and (max-width: 650px) {
margin-right: 20px;
margin-left: 20px;
}
}
.-text-center- {
text-align: center;
}
input[type='text'] {
outline: none;
height: 32px;
border: 1px solid #b5b5b5;
padding: 0 8px;
margin: 0 0 14px;
color: #444;
font-family: $fontFamily;
transition: all .2s;
width: 250px;
&:focus {
border-color: #ffd75c;
}
}
ul {
margin: 0 0 16px;
li {
list-style: none;
margin-bottom: 8px;
}
}
/* Example
------------------------------------------------- */
%example-label {
background: #ececec;
border-radius: 0 0 4px 4px;
position: absolute;
padding: 4px 12px;
right: 8px;
top: 0;
}
$exampleBorderRadius: 4px;
.hljs {
font-family: Consolas, monospace;
line-height: 1.2;
tab-size: 4;
}
.example {
border: 1px solid #ececec;
border-radius: $exampleBorderRadius;
position: relative;
margin: 16px 0;
.example-code {
border: none;
border-radius: 0 0 $exampleBorderRadius $exampleBorderRadius;
border-top: 1px solid #ececec;
margin: 0;
}
}
.example-inline {
background: red;
display: inline-block;
vertical-align: middle;
margin: 0 4px;
.hljs {
padding: 0 4px;
}
}
.example--label {
@extend %example-label;
}
.example-content {
padding: 32px;
h1, h2, h3 {
&:first-child {
margin-top: 0;
}
}
>*:last-child {
margin-bottom: 0 !important;
}
}
a {
color: #47A6EC;
&:hover {
color: #ff767e;
}
}
.example-code {
border: 1px solid #ddd;
border-radius: $exampleBorderRadius;
overflow: hidden;
margin: 16px 0;
font-size: 13px;
code {
padding: 16px 32px;
}
}
// Param
// -------------------------------------------------
.param-inline {
font-family: Consolas, monospace;
strong {
background: #efefef;
color: #333;
border-radius: $exampleBorderRadius;
font-weight: normal;
display: inline-block;
vertical-align: middle;
padding: 3px 6px 4px;
margin-right: 4px;
}
i {
color: #838383;
font-size: .95em;
font-style: normal;
font-weight: 100;
font-family: 'Fira Sans', sans-serif;
display: inline-block;
vertical-align: middle;
margin-right: 4px;
}
}
// Promo block
// -------------------------------------------------
.promo-header {
font-size: 48px;
font-weight: 100;
text-align: center;
span {
display: block;
font-size: .5em;
}
}
.datepicker-promo {
text-align: center;
.datepicker-inline {
display: inline-block;
}
}
// Range example
// -------------------------------------------------
.range-example {
input[type='text'] {
width: 150px;
}
span {
display: inline-block;
margin: 0 8px;
}
}
// Param header
// -------------------------------------------------
.param-header {
margin-bottom: 8px;
h3 {
margin-bottom: 2px;
}
p {
margin: 0;
font-size: 13px;
}
}
.param-header--row {
}
.param {
margin-bottom: 32px;
}
.param-header--label {
color: #707070;
display: inline-block;
vertical-align: middle;
}
// Navigation
// -------------------------------------------------
.nav-wrap {
background: #fff;
position: fixed;
overflow: hidden;
width: 250px;
top: 0;
left: 0;
bottom: 0;
box-shadow: 0 0 4px rgba(0, 0, 0, .3);
@media all and (max-width: 650px) {
display: none;
}
&:after, &:before {
content: '';
pointer-events: none;
position: absolute;
left: 0;
right: 0;
height: 28px;
}
&:after {
background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0));
bottom: 0;
}
}
.nav {
position: absolute;
padding: 18px;
right: -20px;
top: 0;
left: 0;
bottom: 0;
overflow: auto;
}
.nav--section {
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
}
.nav--section-title {
line-height: 1;
font-size: 22px;
margin: 0 0 8px;
a {
color: #000;
text-decoration: none;
&:hover {
color: #ff767e;
}
}
}
.nav--subsection {
margin-left: 2px;
}
.nav--subsection-title {
font-size: 13px;
margin: 0 0 8px;
font-weight: normal;
font-family: Tahoma, sans-serif;
a {
color: #787878;
text-decoration: none;
&:hover {
color: #ff767e;
}
}
}