mirror of
https://github.com/fleetdm/fleet
synced 2026-05-20 07:29:08 +00:00
* added docsearch with test config (currently breaks non docs pages) * added docsearch.less to mixins and variables * consolidated the search bar styles * changed doc search layout, removed css link for doc search * style for mobile search bar * cleaning up indentation and tags * added Docsearch Note: there needs to be a matching docsearch input in the layout or docsearch will throw an error * remove TODO * adjusting styles to match wireframes * moving DocSearch to documentation page script & added DocSearch to dependencies * link fixes * renaming customized DocSearch style sheet * lint fixes, style tweaks, changing class names & IDs, bringing customized styles back out of dependencies * Update index.less * Update code-blocks.less * Update basic-documentation.page.js
478 lines
7.9 KiB
Text
Vendored
478 lines
7.9 KiB
Text
Vendored
#basic-documentation {
|
|
|
|
h1 {
|
|
font-size: 36px;
|
|
line-height: 48px;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 22px;
|
|
line-height: 36px;
|
|
}
|
|
|
|
h4 {
|
|
font-size: 18px;
|
|
padding-top: 24px;
|
|
}
|
|
|
|
h5 {
|
|
font-weight: 800;
|
|
}
|
|
|
|
h6 {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
font-family: @main-font;
|
|
}
|
|
|
|
a {
|
|
color: @core-vibrant-blue;
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
padding-left: 8px;
|
|
|
|
li {
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
}
|
|
|
|
[purpose='search'] {
|
|
|
|
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;
|
|
}
|
|
|
|
.input-group:focus-within {
|
|
border: 1px solid @core-vibrant-blue;
|
|
}
|
|
|
|
.docsearch-input {
|
|
height: 100%;
|
|
width: 98%;
|
|
}
|
|
|
|
.ds-input:focus-visible {
|
|
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-landing-page'] {
|
|
|
|
h3 {
|
|
font-size: 24px;
|
|
line-height: 32px;
|
|
}
|
|
|
|
a {
|
|
color: @core-vibrant-blue;
|
|
}
|
|
|
|
[purpose='cta-cards'] {
|
|
|
|
.cta-card {
|
|
cursor: pointer;
|
|
border: 1px solid @ui-gray;
|
|
border-radius: 8px;
|
|
box-shadow: 1px 2px 2px rgba(197, 199, 209, 0.2);
|
|
|
|
.cta-image {
|
|
max-height: 60px;
|
|
width: auto;
|
|
}
|
|
|
|
.cta-text {
|
|
|
|
a {
|
|
color: @core-fleet-black;
|
|
text-decoration: none;
|
|
}
|
|
|
|
img {
|
|
padding-left: 8px;
|
|
transition: 0.2s ease-in-out;
|
|
-o-transition: 0.2s ease-in-out;
|
|
-ms-transition: 0.2s ease-in-out;
|
|
-moz-transition: 0.2s ease-in-out;
|
|
-webkit-transition: 0.2s ease-in-out;
|
|
}
|
|
|
|
&:hover {
|
|
|
|
.arrow {
|
|
|
|
img {
|
|
padding-left: 11px;
|
|
transition: 0.2s ease-in-out;
|
|
-o-transition: 0.2s ease-in-out;
|
|
-ms-transition: 0.2s ease-in-out;
|
|
-moz-transition: 0.2s ease-in-out;
|
|
-webkit-transition: 0.2s ease-in-out;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[purpose='docs-tree'] {
|
|
|
|
a {
|
|
color: @core-fleet-black;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
color: @core-vibrant-blue;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
.cta-card {
|
|
max-width: 437px;
|
|
min-height: 160px;
|
|
|
|
.cta-image {
|
|
max-height: 72px;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
[purpose='docs-template'] {
|
|
|
|
h3 {
|
|
|
|
code {
|
|
color: @core-fleet-black;
|
|
}
|
|
|
|
}
|
|
|
|
[purpose='search'] {
|
|
|
|
.form-control {
|
|
height: 36px;
|
|
font-size: 16px;
|
|
padding: 0;
|
|
}
|
|
|
|
}
|
|
|
|
[purpose='breadcrumbs'] {
|
|
|
|
p, a {
|
|
font-size: 14px;
|
|
}
|
|
|
|
}
|
|
|
|
[purpose='mobile-docs-nav'] {
|
|
|
|
a {
|
|
color: @core-fleet-black;
|
|
text-decoration: none;
|
|
|
|
&.active {
|
|
color: @core-vibrant-blue;
|
|
}
|
|
|
|
}
|
|
|
|
[purpose='docs-nav-button'] {
|
|
color: @core-fleet-black;
|
|
background-color: transparent;
|
|
font-family: 'Nunito';
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
padding: 0;
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
|
|
&:focus {
|
|
box-shadow: none;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[purpose='left-sidebar'] {
|
|
font-size: 14px;
|
|
border-right: 1px solid @core-fleet-black-25;
|
|
|
|
a {
|
|
color: @core-fleet-black;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
color: #6A67FE;
|
|
}
|
|
|
|
&.btn-primary {
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-primary {
|
|
color: #fff;
|
|
background-color: #ff5c83;
|
|
border-color: #ff5c83;
|
|
|
|
&:hover {
|
|
background-color: darken(#ff5c83, 10%);
|
|
border-color: darken(#ff5c83, 10%);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.left-nav {
|
|
border-bottom: 1px solid @core-fleet-black-25;
|
|
}
|
|
|
|
.topic {
|
|
padding-left: 0px;
|
|
&.active {
|
|
color: @core-vibrant-blue;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[purpose='right-sidebar'] {
|
|
|
|
p, a {
|
|
font-size: 14px;
|
|
}
|
|
|
|
a {
|
|
&:hover {
|
|
color: #6A67FE;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
[purpose='content'] {
|
|
|
|
h1 {
|
|
padding-bottom: 16px;
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 28px;
|
|
line-height: 36px;
|
|
padding-top: 24px;
|
|
padding-bottom: 24px;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 24px;
|
|
line-height: 28px;
|
|
padding-top: 24px;
|
|
padding-bottom: 24px;
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
h4 {
|
|
padding-bottom: 16px;
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
h5 {
|
|
margin-top: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
ul {
|
|
list-style-type: disc;
|
|
padding-left: 32px;
|
|
}
|
|
|
|
img {
|
|
display: flex;
|
|
width: 100%;
|
|
height: auto;
|
|
padding-top: 24px;
|
|
padding-bottom: 24px;
|
|
}
|
|
|
|
h1 + ul {
|
|
display: none; // Hides links at top of some markdown files
|
|
}
|
|
|
|
h2 + h3 {
|
|
padding-top: 8px;
|
|
}
|
|
|
|
table {
|
|
border: 1px solid @border-lt-gray;
|
|
border-collapse: collapse;
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
margin-bottom: 16px;
|
|
|
|
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;
|
|
}
|
|
}
|
|
.note {
|
|
background-color: @core-vibrant-blue-10;
|
|
border-radius: 12px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
}
|
|
|
|
// for smaller screens
|
|
@media (max-width: 991px) {
|
|
|
|
[purpose='right-sidebar'] {
|
|
width: 100%;
|
|
|
|
[purpose='subtopics'] {
|
|
color: @core-fleet-black;
|
|
|
|
a {
|
|
color: @core-vibrant-blue;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[purpose='content'] {
|
|
width: 100%;
|
|
|
|
h1:first-of-type {
|
|
display: none; // hides on mobile
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// for larger screens
|
|
@media (min-width: 992px) {
|
|
|
|
ul {
|
|
.topic {
|
|
padding-left: 8px;
|
|
}
|
|
}
|
|
|
|
[purpose='search'] {
|
|
|
|
.input-group {
|
|
min-width: 400px;
|
|
}
|
|
|
|
}
|
|
|
|
[purpose='page-title'] {
|
|
|
|
h1 {
|
|
display: block;
|
|
}
|
|
|
|
}
|
|
|
|
[purpose='right-sidebar'] {
|
|
min-width: 190px;
|
|
max-width: 210px;
|
|
|
|
[purpose='subtopics'] {
|
|
color: @core-fleet-black;
|
|
padding-top: 4px;
|
|
padding-bottom: 4px;
|
|
border-left: 1px solid @core-vibrant-blue-25;
|
|
|
|
a {
|
|
color: @core-fleet-black;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
color: @core-vibrant-blue;
|
|
}
|
|
|
|
}
|
|
|
|
// .active {
|
|
// color: @core-vibrant-blue;
|
|
// position: absolute;
|
|
// height: 32px;
|
|
// transform: translate(-2px, -4px);
|
|
// border-left: 3px solid @core-vibrant-blue;
|
|
// border-radius: 2px;
|
|
// a {
|
|
// color: @core-vibrant-blue;
|
|
// }
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[purpose='content'] {
|
|
min-width: 0px; // in order for <pre> elements to shrink properly, the parent flex element needs to override min-width auto
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@import 'code-blocks.less'; // styles for code blocks and hljs
|
|
|
|
}
|