fleet/website/assets/styles/pages/docs/basic-documentation.less
Eric 308e5f3dc8
Website: Update style mixins and variables (#43801)
Changes:
- Created spacing.less, a file that contains the common
padding/margin/gap values used on the website
- Updated containers.less to contain mixins for page containers
- Added feature-blocks.less, a file that contains three mixins:
`.feature-with-image()`, `.three-column-features()`, and
`.responsive-feature-row()`
- Added mixins for common text styles to typography.less
- Updated pages to use the new mixins

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Centralized spacing and typography system for consistent, responsive
layouts
* Reusable feature-block patterns for image/text rows and multi-column
feature grids

* **Style**
* Standardized page containers and content areas with responsive padding
and max-widths
  * Unified heading/body styles via new typography utilities
* Simplified markup and improved feature image/text alignment and
responsiveness
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-20 14:55:27 -05:00

1227 lines
29 KiB
Text
Vendored

#basic-documentation {
[purpose='page-container'] {
padding: @page-padding-sm;
}
[purpose='page-content'] {
.page-content-docs();
}
h1 {
font-size: 30px;
}
h2 {
font-size: 28px;
}
h3 {
font-size: 24px;
}
h4 {
font-size: 20px;
}
h5 {
font-size: 18px;
}
h6 {
font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
line-height: 120%;
}
ul {
list-style: none;
padding-left: 8px;
li {
margin-bottom: 8px;
}
}
[parasails-component='bubble'] {
margin-right: 4px;
}
.markdown-heading:hover {
.markdown-link {
height: 16px;
vertical-align: middle;
margin-left: 8px;
content: url('/images/icon-link-green-16x16@2x.png');
}
}
.markdown-heading.copied::before {
content: 'Link copied to clipboard';
display: flex;
font-weight: 400;
position: relative;
top: -25px;
height: 0px;
font-size: 14px;
// line-height: 14px;
color: @core-vibrant-green;
animation-name: copiedText;
animation-duration: 4s;
animation-fill-mode: forwards;
}
@keyframes copiedText {
0% {opacity: 0;}
20% {opacity: 100;}
30% {opacity: 80;}
50% {opacity: 60;}
70% {opacity: 40;}
80% {opacity: 20;}
100% {opacity: 0;}
}
[purpose='mobile-custom-select'] {
display: flex;
cursor: pointer;
height: 48px;
padding: 0px 12px;
justify-content: space-between;
align-items: center;
align-self: stretch;
border-radius: 6px;
border: 1px solid #E2E4EA;
background: #FFF;
width: 100%;
margin-top: 16px;
margin-bottom: 32px;
p {
color: #192147;
font-family: Inter;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 24px; /* 150% */
}
img {
height: 16px;
}
&:hover {
border-radius: 6px;
border: 1px solid #E2E4EA;
background: #FFF;
box-shadow: 0px 0px 0px 2px rgba(25, 33, 71, 0.05);
}
}
[purpose='mobile-table-of-contents'] {
display: flex;
cursor: pointer;
height: 48px;
padding: 0px 12px;
justify-content: start;
align-items: center;
align-self: stretch;
border-radius: 6px;
border: 1px solid #E2E4EA;
background: #FFF;
width: 100%;
margin-bottom: 8px;
p {
color: #192147;
font-family: Inter;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 24px; /* 150% */
}
img {
height: 14px;
margin-right: 16px;
}
&:hover {
border-radius: 6px;
border: 1px solid #E2E4EA;
background: #FFF;
box-shadow: 0px 0px 0px 2px rgba(25, 33, 71, 0.05);
}
}
[purpose='search'] {
// Note: We're using classes here to override the default Docsearch styles;
button {
width: 100%;
cursor: text;
margin: 0;
}
.DocSearch-Button {
border-top-left-radius: 6px;
border-bottom-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-right-radius: 6px;
border: 1px solid @core-fleet-black-25;
background-color: #FFF;
padding: 6px;
height: 48px;
}
.DocSearch-Button:hover {
box-shadow: none;
border: 1px solid @core-fleet-black-25;
color: @core-fleet-black-50;
}
.DocSearch-Search-Icon {
margin-left: 10px;
height: 16px;
width: 16px;
color: @core-fleet-black-50;
stroke-width: 3px;
}
.DocSearch-Button-Keys {
display: none;
}
.input-group:focus-within {
border: 1px solid @core-vibrant-blue;
}
.DocSearch-Button-Placeholder {
font-size: 16px;
font-weight: 400;
padding-left: 12px;
}
.DocSearch-Button-Placeholder::after {
content: ' the docs...';
}
input {
padding-top: 6px;
padding-bottom: 6px;
border: none;
} &::placeholder {
font-size: 16px;
line-height: 24px;
}
.input-group {
border-top-left-radius: 6px;
border-bottom-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-right-radius: 6px;
border: 1px solid @core-fleet-black-25;
background-color: #FFF;
}
.input-group:focus-within {
border: 1px solid @core-vibrant-blue;
}
.docsearch-input {
height: 100%;
width: 98%;
}
.docsearch-input:focus-visible {
outline: none;
}
.ds-input:focus {
outline: rgba(0, 0, 0, 0);
}
.input-group-text {
color: @core-fleet-black-50;
}
.form-control {
height: 48px;
padding: 0px;
font-size: 16px;
} &:focus {
border: none;
}
}
[purpose='docs-template'] {
h3 {
code {
color: @core-fleet-black;
}
}
[purpose='edit-button-container'] {
position: relative;
}
[purpose='edit-button'], [purpose='faq-edit-button'] {
color: @core-vibrant-green;
font-size: 12px;
position: absolute;
right: 230px;
top: 27px;
cursor: pointer;
border: 1px solid @core-vibrant-green;
border-radius: 4px;
padding: 4px 8px;
text-decoration: none;
i {
height: 16px;
padding-right: 5px;
} &:hover {
background: @core-vibrant-green;
color: @accent-white;
text-decoration: none;
}
}
[purpose='faq-edit-button'] {
right: 0px;
}
[purpose='left-sidebar'] {
scrollbar-width: none;
font-size: 14px;
max-width: 200px;
[purpose='left-sidebar-links'] {
border-bottom: 1px solid @core-fleet-black-25;
margin-bottom: 16px;
}
[purpose='section-title'] {
margin-bottom: 8px;
color: #192147;
font-family: Inter;
font-size: 14px;
font-weight: 800;
line-height: 120%;
}
[purpose='subpage-link'] {
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 21px;
color: @core-fleet-black-75;
text-decoration: none;
display: block;
padding: 4px 8px;
&:hover {
text-decoration: none;
border-radius: 4px;
background: #f6f7f8;
}
&.active {
border-radius: 4px;
background: #f6f7f8;
color: @core-fleet-black;
}
}
[purpose='expanded-nav'] {
display: flex;
flex-direction: column;
padding-top: 8px;
padding-bottom: 16px;
[purpose='nav-section']:not(:last-of-type) {
border-bottom: 1px solid #E2E4EA;
margin-bottom: 16px;
}
[purpose='nav-section'] {
padding-bottom: 12px;
[purpose='nav-section-title'] {
font-size: 13px;
font-weight: 500;
line-height: 18px;
text-transform: uppercase;
margin-bottom: 12px;
padding-top: 8px;
color: @core-fleet-black;
}
}
}
}
[purpose='left-sidebar']::-webkit-scrollbar, [purpose='right-sidebar']::-webkit-scrollbar, [purpose='subtopics']::-webkit-scrollbar {
display: none;
}
[purpose='right-sidebar'] {
scrollbar-width: none;
p, a {
font-size: 14px;
}
a {
color: @core-fleet-black-75!important;
text-decoration: none;
&:hover {
text-decoration: none;
border-radius: 4px;
background: #f6f7f8;
}
&.active {
color: @core-fleet-black;
border-radius: 4px;
background: #f6f7f8;
}
}
li {
margin-bottom: 0;
}
}
[purpose='swag-cta'] {
cursor: pointer;
display: flex;
border: 1px solid #E3E3E3;
box-shadow: 1px 2px 2px rgba(197, 199, 209, 0.2);
border-radius: 6px;
padding: 20px;
margin-top: 24px;
color: @core-fleet-black;
width: 200px;
position: sticky;
top: 104px;
a {
text-decoration: none;
color: @core-fleet-black;
&:hover {
color: @core-fleet-black;
}
}
p {
white-space: nowrap;
font-weight: 700;
font-size: 14px;
line-height: 24px;
}
span {
text-align: center;
font-size: 14px;
line-height: 19px;
color: @core-fleet-black;
}
}
[purpose='right-sidebar-buttons'] {
margin-top: 30px;
[purpose='premium-cta'] {
margin-top: 16px;
text-align: center;
padding: 16px;
color: #FFF;
border-radius: 6px;
p {
font-size: 15px;
line-height: 17px;
span {
font-weight: 800;
}
}
[purpose='docs-cta-image'] {
margin-bottom: 16px;
img {
width: 124px;
height: 124px;
}
}
[purpose='premium-cta-btn'] {
text-align: center;
font-weight: 700;
padding: 4px 16px;
display: flex;
justify-content: center;
width: 100%;
position: relative;
background: #192147;
box-shadow: 1px 1px 2px rgba(25, 33, 71, 0.24);
border-radius: 4px;
color: #fff;
overflow: hidden;
}
[purpose='premium-cta-btn']::before {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
opacity: 1;
content: ' ';
position: absolute;
top: 0;
left: -5px;
width: 55%;
height: 100%;
transform: skew(-10deg);
transition: left 0.5s ease-in, opacity 0.50s ease-in, width 0.5s ease-in;
}
[purpose='premium-cta-btn']:hover:before {
opacity: 0;
left: 160px;
width: 110%;
}
}
[purpose='demo-cta'] {
display: flex;
border: 1px solid #E3E3E3;
box-shadow: 1px 2px 2px rgba(197, 199, 209, 0.2);
border-radius: 6px;
padding: 20px 16px;
color: @core-fleet-black;
width: 100%;
cursor: pointer;
a {
text-decoration: none;
color: @core-fleet-black;
&:hover {
color: @core-fleet-black;
}
}
p {
font-weight: 700;
font-size: 14px;
line-height: 18px;
}
span {
text-align: center;
font-size: 14px;
line-height: 19px;
color: @core-fleet-black;
}
}
}
[purpose='content'] {
width: 100%;
padding-left: 32px;
hr {
margin: 0px;
padding: 0px;
display: none;
}
h1:first-of-type {
// Note: We're adding right margin to the first h1 to make sure it won't overlap the edit page button.
margin-right: 100px;
}
h1 {
padding-bottom: 16px;
scroll-margin-top: 104px;
}
h2 {
border-top: 1px solid @core-fleet-black-25;
margin-top: 32px;
padding-top: 52px;
padding-bottom: 24px;
scroll-margin-top: 80px;
&:first-of-type {
border-top: none;
padding-top: 24px;
scroll-margin-top: 108px;
margin-top: 0px;
}
}
h3 {
padding-bottom: 16px;
margin-top: 40px;
scroll-margin-top: 104px;
}
h4 {
padding-bottom: 24px;
margin-top: 24px;
margin-bottom: 0px;
scroll-margin-top: 104px;
}
h5 {
font-weight: 700;
font-family: @main-font;
margin-top: 16px;
margin-bottom: 24px;
scroll-margin-top: 104px;
}
h6 {
font-weight: 700;
font-family: @main-font;
margin-top: 16px;
margin-bottom: 24px;
scroll-margin-top: 104px;
}
pre + hr + h3 {
padding-top: 0px;
}
pre + h3 {
padding-top: 0px;
}
blockquote {
margin: 24px 0 32px 32px;
display: block;
position: relative;
}
[purpose='deploying-guide-buttons'] {
margin-bottom: 32px;
[purpose='deploying-guide-button-row'] {
margin-bottom: 16px;
div {
display: flex;
flex-direction: column;
align-content: center;
justify-content: center;
text-align: center;
flex-grow: 1;
p {
font-size: 14px;
font-style: normal;
font-weight: 400;
margin-bottom: 0px;
line-height: 150%;
}
img {
padding: 0;
width: auto;
height: 48px;
margin-bottom: 8px;
}
}
a {
width: 50%;
// margin-bottom: 40px;
padding: 24px;
border: 1px solid @core-fleet-black-25;
margin-left: 8px;
margin-right: 8px;
border-radius: 12px;
flex-grow: 1;
text-decoration: none;
color: unset;
display: flex;
align-items: center;
&:hover {
box-shadow: 0px 0px 0px 2px rgba(234, 235, 237, 1);
}
}
}
}
[purpose='deploy-to-render-button'] {
img {
margin: 0;
}
&::after {
content: none;
}
&:hover::after {
content: none;
}
}
[purpose='quote'] {
font-style: italic;
line-height: 36px;
font-size: 24px;
}
[purpose='large-quote'] {
font-style: italic;
line-height: 24px;
font-size: 16px;
}
[purpose='large-quote']::before, [purpose='quote']::before {
content: ' ';
background-image: url('/images/icon-quote-mark-22x18@2x.png');
background-size: 22px 18px;
display: block;
position: relative;
top: 16px;
left: -32px;
width: 22px;
height: 18px;
}
[purpose='tip'] {
.tip-block();
}
ul {
list-style-type: disc;
padding-left: 32px;
padding-inline-start: 16px;
padding: 0 0 0 32px;
margin-top: 16px;
margin-bottom: 20px;
pre {
margin: 0px 0px 16px;
}
}
ol {
counter-reset: custom-counter;
list-style-type: none;
padding-inline-start: 0px;
padding: 0;
margin-top: 16px;
margin-bottom: 20px;
ul > li {
text-indent: 0px;
margin-left: 0px;
}
> li {
counter-increment: custom-counter;
margin-left: 36px;
text-indent: -36px;
padding-left: 0px;
padding-bottom: 24px;
code:not(.nohighlight):not(.mermaid) {
display: inline;
}
> pre:not(.algolia-autocomplete):not(.ds-dropdown-menu):not(.json) {
margin-top: 32px;
margin-bottom: 16px;
text-indent: 0px;
}
p {
padding-bottom: 16px;
display: inline;
margin-bottom: 0px;
}
blockquote {
text-indent: 0px;
p {
padding-bottom: 0px;
}
}
}
> li::before {
content: counter(custom-counter);
background-color: #E2E4EA;
width: 24px;
font-size: 13px;
display: inline-block;
border-radius: 50%;
margin-right: 10px;
padding: 2px 4px;
text-align: center;
line-height: 20px;
text-indent: 0px;
}
}
li {
margin-bottom: 16px;
padding-left: 8px;
}
img {
display: flex;
max-width: 100%;
height: auto;
margin: auto;
padding-top: 24px;
padding-bottom: 24px;
}
h1 + ul {
display: none; // Hides links at top of some markdown files
}
table {
border: 1px solid @border-lt-gray;
width: 100%;
border-collapse: collapse;
font-size: 16px;
line-height: 24px;
margin-bottom: 0;
word-wrap: break-word;
th {
font-weight: @bold;
font-family: @header-font;
border: 1px solid @border-lt-gray;
padding: 8px 7px 7px 8px;
}
td {
font-family: @main-font;
border: 1px solid @border-lt-gray;
padding: 8px 7px 7px 8px;
}
}
.table-responsive {
margin-bottom: 32px;
}
.note {
background-color: @core-vibrant-blue-10;
border-radius: 12px;
text-decoration: none;
}
[purpose='next-steps-button'] {
font-size: 16px;
line-height: 25px;
padding: 20px;
img {
display: inline;
height: 24px;
width: auto;
padding-top: 0px;
padding-bottom: 0px;
margin: 0px;
}
}
[purpose='docs-start-cta'] {
margin-top: 40px;
border: 1px solid @core-fleet-black-10;
border-radius: 16px;
overflow: hidden;
[purpose='docs-start-cta-image'] {
height: 180px;
background-image: url('/images/docs-cta-stage-1-314x180@2x.png');
background-size: cover;
background-position-y: center;
}
[purpose='docs-start-cta-content'] {
flex-direction: column;
align-items: center;
padding: 20px 24px;
flex-grow: 1;
h2 {
padding: 0;
margin-bottom: 4px;
}
p {
margin-bottom: 12px;
}
}
[purpose='continue-button'] {
font-size: 14px;
padding: 6px 12px;
width: 131px;
&:hover {
color: #FFF;
}
}
}
[purpose='checklist-item'] {
display: flex;
input[type='checkbox'] {
margin-left: -18px;
min-width: 16px;
min-height: 16px;
align-self: center;
}
input:checked, input:active {
accent-color: @core-vibrant-blue;
}
[purpose='task'] {
margin-left: 8px;
input {
display: none;
}
p {
margin-bottom: 0px;
}
}
}
[purpose='checklist-item']::marker {
display: none;
}
[purpose='embedded-content'] {
position: relative;
margin-bottom: 40px;
width: 100%;
padding-bottom: 56%;
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
border-radius: 12px;
}
}
}
}
[purpose='subtopics-modal'] {
.modal.fade .modal-dialog {
transition: transform 0.2s ease-out;
-webkit-transform: translate(-25%, 0%);
transform: translate(125%, 0%);
}
.modal.show .modal-dialog {
-webkit-transform: translate(0, 0);
transform: translate(0, 0);
}
[parasails-component='modal'] {
[purpose='modal-dialog'] {
margin-right: 16px;
}
}
}
[purpose='table-of-contents-modal'] {
.modal.fade .modal-dialog {
transition: transform 0.2s ease-out;
-webkit-transform: translate(-25%, 0%);
transform: translate(-125%, 0%);
}
.modal.show .modal-dialog {
-webkit-transform: translate(0, 0);
transform: translate(0, 0);
}
[parasails-component='modal'] {
[purpose='modal-dialog'] {
margin-left: 16px;
}
}
}
[parasails-component='modal'] {
[purpose='modal-dialog'] {
// margin-left: 16px;
margin-top: 16px;
margin-bottom: 16px;
max-width: 366px;
// max-height: calc(~'100vh - 32px');
[purpose='modal-content'] {
display: flex;
height: calc(~'100vh - 32px');
margin-top: 0px;
max-width: 366px;
padding: 48px 19px 24px 24px;
flex-direction: column;
align-items: flex-start;
scrollbar-width: none;
flex-shrink: 0;
[purpose='modal-links'] {
height: 100%;
width: 100%;
scrollbar-width: none;
overflow: auto;
[purpose='section-title'] {
color: #192147;
font-family: Inter;
font-size: 14px;
font-weight: 800;
line-height: 120%;
margin-bottom: 8px;
}
[purpose='expanded-nav'] {
padding-top: 8px;
padding-bottom: 16px;
}
[purpose='modal-docs-links'] {
border-bottom: 1px solid @core-fleet-black-25;
margin-bottom: 16px;
}
[purpose='modal-nav-link'] {
font-family: Inter;
font-size: 14px;
line-height: 150%;
width: 100%;
display: block;
padding: 4px 8px;
text-decoration: none;
&:hover {
text-decoration: none;
border-radius: 4px;
background: #f6f7f8;
}
&.active {
border-radius: 4px;
background: #f6f7f8;
color: @core-fleet-black;
}
}
[purpose='modal-subtopics'] {
a {
color: @core-fleet-black-75;
font-family: Inter;
margin-right: 5px;
font-size: 14px;
line-height: 150%;
width: 100%;
text-decoration: none;
padding: 4px 8px;
&:hover {
text-decoration: none;
border-radius: 4px;
background: #f6f7f8;
}
&.active {
border-radius: 4px;
background: #f6f7f8;
}
}
}
}
}
}
}
// for larger screens
@media (min-width: 992px) {
[purpose='docs-template'] {
[purpose='search'] {
.input-group {
min-width: 400px;
}
}
[purpose='page-title'] {
h1 {
display: block;
margin-right: 100px;
}
}
.header-hidden { // For scrolling the sidebars with the sticky header
transform: translateY(-80px);
}
[purpose='left-sidebar'] {
height: fit-content;
min-width: 200px;
margin-right: 16px;
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 500ms;
}
[purpose='swag-cta'] {
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 500ms;
}
[purpose='right-sidebar'] {
p {
line-height: 21px;
}
min-width: 220px;
position: sticky;
top: 104px;
margin-left: 24px;
height: fit-content;
overflow-y: auto;
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 500ms;
[purpose='subtopics-heading'] {
color: #192147;
font-size: 14px;
font-weight: 800;
line-height: 120%;
margin-bottom: 24px;
}
[purpose='subtopics'] {
scrollbar-width: none;
overflow-y: auto;
color: @core-fleet-black;
max-height: calc(~'100vh - 60px');
dispaly: flex;
flex-direction: column;
transition-property: max-height;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 500ms;
[purpose='swag-cta'] {
width: 190px;
position: static;
a {
&:hover {
background: none;
}
}
}
a {
display: block;
color: #515774;
text-decoration: none;
padding: 4px 8px;
&:hover {
color: #515774;
border-radius: 4px;
background: #f6f7f8;
}
}
}
&:not(.header-hidden) {
[purpose='subtopics'] {
max-height: calc(~'100vh - 140px'); // Using a calculated max-height to allow the sidebars to be fully scrollable before the content is scrolled.
}
}
}
[purpose='content'] {
min-width: 0px; // in order for <pre> elements to shrink properly, the parent flex element needs to override min-width auto
}
}
[purpose='back-to-top-button-container'] {
position: sticky;
bottom: 200px;
right: 0px;
overflow-x: hidden;
pointer-events: none;
}
[purpose='back-to-top-button'] {
display: inline-block;
position: relative;
left: calc(~'100% - 103px');
width: 104px;
background: #FFFFFF;
padding: 8px 12px;
transition: transform 0.5s;
transform: translateX(104px);
cursor: pointer;
border: 1px solid #E2E4EA;
border-radius: 16px 0px 0px 16px;
pointer-events: auto;
p {
color: #515774;
font-size: 11px;
font-weight: 700;
line-height: 16px;
}
img {
height: 12px;
margin-right: 6px;
}
}
[purpose='back-to-top-button'].show {
display: inline-block;
transition: transform 0.5s;
transform: translateX(0);
}
[purpose='back-to-top-button'].show:hover {
background: #f6f7f8;
}
}
// for smaller screens
@media (max-width: 991px) {
[purpose='page-container'] {
padding: @page-padding-tablet;
}
[purpose='back-to-top-button-container'] {
display: none;
}
[purpose='docs-template'] {
padding: 0px 40px;
[purpose='back-to-top-button'].show {
display: none;
}
[purpose='edit-button'], [purpose='faq-edit-button'] {
top: -55px;
right: 0px;
}
[purpose='right-sidebar'] {
width: 100%;
// Note: we're specifying a minimum height for this element to be the height of the edit page button.
// Even if there are no subtopics on a documentation page, we can be sure that the edit page button will not overlap the pages content.
min-height: 30px;
[purpose='subtopics'] {
color: @core-fleet-black;
a {
color: @core-vibrant-blue;
}
}
}
[purpose='content'] {
width: 100%;
padding-left: 0px;
margin-left: 0px;
a {
word-wrap: break-word;
}
h1:first-of-type {
display: none; // hides on mobile
}
}
}
}
@media (max-width: 768px) {
[purpose='content'] {
h1:first-of-type {
// Note: We're adding right margin to the first h1 to make sure it won't overlap the edit page button.
margin-right: 100px;
}
}
[purpose='docs-template'] {
[purpose='edit-button'] {
top: -20px;
right: 0px;
}
}
}
// for mobile
@media (max-width: 575px) {
[purpose='docs-template'] {
padding: 0px 24px;
}
[purpose='page-container'] {
padding: @page-padding-tablet-mobile;
}
[purpose='subtopics-modal'] {
.modal.fade .modal-dialog {
transition: transform 0.1s ease-out;
-webkit-transform: translate(-25%, 0%);
transform: translate(0, 125%);
}
.modal.show .modal-dialog {
-webkit-transform: translate(0, 0);
transform: translate(0, 0);
}
[parasails-component='modal'] {
[purpose='modal-dialog'] {
margin-right: 16px;
}
}
}
[purpose='table-of-contents-modal'] {
.modal.fade .modal-dialog {
transition: transform 0.1s ease-out;
-webkit-transform: translate(-25%, 0%);
transform: translate(0%, 125%);
}
.modal.show .modal-dialog {
-webkit-transform: translate(0, 0);
transform: translate(0, 0);
}
[parasails-component='modal'] {
[purpose='modal-dialog'] {
margin-left: 16px;
}
}
}
[parasails-component='modal'] {
[purpose='modal-dialog'] {
margin: 16px;
width: 100%;
max-width: calc(~'100% - 32px');
max-height: calc(~'100vh - 32px');
[purpose='modal-content'] {
max-width: 100%;
height: calc(~'100vh - 72px');
}
}
}
}
@media(hover) {
[purpose='docs-template'] {
[purpose='edit-button'], [purpose='faq-edit-button'] {
opacity: 0;
}
}
[purpose='docs-template']:hover {
[purpose='edit-button'], [purpose='faq-edit-button'] {
opacity: 1;
}
}
}
@import 'code-blocks.less'; // styles for code blocks and hljs
}