* docs(nxdev): consume nx cloud documentation & dedicated menu * docs(nxdev): nx-cloud docs visually indicated nx-cloud docs in nx.dev * docs(nxdev): formatting visually indicated nx-cloud docs in nx.dev * docs(nxdev): fix config * docs(nxdev): fix header link * docs(nxdev): consolidate dte set up guides Co-authored-by: ben <3447705+bcabanes@users.noreply.github.com>
202 lines
3.5 KiB
CSS
202 lines
3.5 KiB
CSS
@tailwind base;
|
|
|
|
/*! purgecss start ignore */
|
|
@import 'nx-dev/feature-search/src/lib/algolia-search.global.css';
|
|
@import 'highlight.js/styles/github-gist.css';
|
|
/*! purgecss end ignore */
|
|
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
/*! purgecss start ignore */
|
|
@import './constellation-wobble.animation.css';
|
|
/*! purgecss end ignore */
|
|
|
|
svg {
|
|
shape-rendering: auto;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
@font-face {
|
|
src: url('../public/fonts/InputMono-Regular.woff2') format('woff2'),
|
|
url('../public/fonts/InputMono-Regular.woff') format('woff');
|
|
font-family: 'InputMono';
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
font-display: swap;
|
|
}
|
|
.font-input-mono {
|
|
font-family: 'InputMono', monospace;
|
|
}
|
|
code,
|
|
pre,
|
|
.prose code,
|
|
.prose pre {
|
|
font-family: 'InputMono', monospace;
|
|
}
|
|
|
|
/*
|
|
General CSS rules for markdown iframes and img
|
|
*/
|
|
iframe[src*='youtube'] {
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
border-radius: 0.375rem;
|
|
}
|
|
.prose iframe,
|
|
.prose img {
|
|
display: block;
|
|
margin: 1.7rem auto;
|
|
}
|
|
.prose iframe {
|
|
width: 100%;
|
|
max-width: 560px;
|
|
}
|
|
.prose img {
|
|
width: max-content;
|
|
}
|
|
|
|
.prose iframe[src^="https://nx.app"]
|
|
{
|
|
border: 1px solid hsla(0, 0%, 85%, 1);
|
|
border-radius: 0.375rem;
|
|
box-shadow: 0 2px 6px hsla(0, 0%, 95%, 1);
|
|
height: 80vh;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
}
|
|
|
|
/*
|
|
Code embed
|
|
*/
|
|
.prose pre {
|
|
background: inherit !important;
|
|
color: inherit !important;
|
|
border: 1px solid #e1e4e8;
|
|
}
|
|
|
|
/*
|
|
Headers
|
|
*/
|
|
|
|
.prose h5,
|
|
.prose h6 {
|
|
font-weight: 600;
|
|
}
|
|
|
|
/*
|
|
Conf
|
|
*/
|
|
.date-container-l,
|
|
.date-container-r {
|
|
position: relative;
|
|
}
|
|
.date-container-l .bg-blue-nx-dark:before {
|
|
background: hsla(214, 61%, 11%, 1);
|
|
content: ' ';
|
|
height: 100%;
|
|
left: -100%;
|
|
position: absolute;
|
|
top: 0;
|
|
width: 100%;
|
|
}
|
|
.date-container-r .bg-blue-nx-dark:after {
|
|
background: hsla(214, 61%, 11%, 1);
|
|
content: ' ';
|
|
height: 100%;
|
|
right: -100%;
|
|
position: absolute;
|
|
top: 0;
|
|
width: 100%;
|
|
}
|
|
.workshop-border-r {
|
|
position: relative;
|
|
}
|
|
.workshop-border-r:after {
|
|
border-bottom: 1px solid rgb(75, 85, 99);
|
|
border-top: 1px solid rgb(75, 85, 99);
|
|
content: ' ';
|
|
height: 100%;
|
|
right: -100%;
|
|
position: absolute;
|
|
top: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
/**
|
|
* Only used for animated background on really big definition
|
|
*/
|
|
@media (min-width: 2400px) {
|
|
div#animated-background {
|
|
background-size: cover !important;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sponsor carousel
|
|
*/
|
|
#sponsors-carousel {
|
|
animation: scroll 80s linear infinite;
|
|
width: calc(192px * 18);
|
|
}
|
|
#sponsors-carousel div {
|
|
margin: 0 24px;
|
|
min-width: 144px;
|
|
width: 144px;
|
|
}
|
|
|
|
@keyframes scroll {
|
|
0% {
|
|
transform: translate3d(0, 0, 0);
|
|
}
|
|
100% {
|
|
transform: translate3d(calc(-192px * 18), 0, 0);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Tooltips
|
|
*/
|
|
[data-tooltip] {
|
|
cursor: help;
|
|
position: relative;
|
|
}
|
|
|
|
[data-tooltip]:before {
|
|
background-color: hsla(214, 61%, 11%, 1);
|
|
border-radius: 0.375rem;
|
|
color: hsla(0, 0%, 95%, 1);
|
|
content: attr(data-tooltip);
|
|
left: 0;
|
|
opacity: 0;
|
|
padding: 0.25rem 0.5rem;
|
|
position: absolute;
|
|
text-align: center;
|
|
text-transform: capitalize;
|
|
top: 120%;
|
|
transition: opacity 150ms ease-out;
|
|
visibility: hidden;
|
|
z-index: 1;
|
|
width: max-content;
|
|
}
|
|
|
|
[data-tooltip]:hover:before {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
/* Nx Cloud section */
|
|
.nx-cloud-section {
|
|
border-left-width: 0.25em;
|
|
border-left-color: hsla(162, 47%, 50%, 1);
|
|
padding-left: 1em;
|
|
margin-left: -1.25em;
|
|
}
|
|
|
|
.nx-cloud-section h2 {
|
|
background: url('/documentation/shared/nx-cloud-logo-horizontal-white.svg')
|
|
no-repeat left center;
|
|
background-size: contain;
|
|
padding-left: 40px;
|
|
}
|