1
0
mirror of https://github.com/minio/docs.git synced 2025-07-27 08:41:57 +03:00
Files
docs/source/_static/scss/includes/_reset.scss
Rushan 51da56df3c UI Enhancements: scroll, component naming, and more (#582)
- Fixed the sidebar scroll - with this fix, you'll be able to scroll to
the end of the left sidebar at any given screen height.
- Renamed content-navigation component and CSS class names for better
consistency.
- Changed the footer style by including it as part of the main content
area. This change is required to have the scroll fix mentioned at point
no. 1.
- Reduced the hero height by a small margin, in order to have more
sidebar scroll room on smaller devices such as 13 inch laptop and all.
- Used higher contrast color on search modal's bg and scrollbar thumb to
have better color consistency.
- Made scrollbar thumbs visible by default.
- Set sidebar scroll position to match the active doc item.
- Added custom scrollbars for code blocks.
2022-09-27 09:31:41 -05:00

319 lines
5.2 KiB
SCSS

// ----------------------
// Links
// ----------------------
a {
color: var(--link-color);
&:hover {
color: var(--link-hover-color);
}
&, &:hover {
text-decoration: none;
}
& > img.anchor {
box-shadow: none;
height: 1rem;
}
&.reference {
&, &:hover {
border-bottom: none;
}
}
}
// ----------------------
// Headings
// ----------------------
h1 {
margin-top: -0.15rem;
margin-bottom: 1rem;
}
h2, h3, h4, h5, h6 {
margin: 2rem 0 1rem;
}
h1, h2, h3, h4, h5, h6 {
line-height: 1.2;
&,
& > a,
code {
color: var(--headings-color);
font-size: inherit;
padding: 0;
}
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 1rem; }
*.headerlink-wrapper {
position: relative;
padding-left: 1.5rem;
margin-left: -1.5rem;
}
a.headerlink {
position: absolute;
left: -1rem;
top: 0;
bottom: 0;
margin: auto 0;
width: 1.5rem;
height: 1.5rem;
border: 1px solid var(--header-link-border-color);
background-color: var(--header-link-bg);
z-index: 11;
border-radius: $border-radius;
font-size: 0;
&, &:hover {
background-position: center;
background-repeat: no-repeat;
background-image: var(--header-link-icon);
}
&:hover {
background-color: var(--header-link-border-color);
}
@include breakpoint-max(breakpoints(lg)) {
display: none;
}
}
// ----------------------
// Code
// ----------------------
tt.xref, code.xref,
code,
pre,
div.highlight {
--scrollbar-bg: var(--pre-scrollbar-bg);
--scrollbar-hover-bg: var(--pre-scrollbar-hover-bg);
font-family: $font-family-mono;
font-weight: $font-weight-bold;
background-color: var(--code-bg);
color: var(--code-color);
border-radius: $border-radius;
font-size: $font-size-md;
}
tt.xref, code.xref,
code {
padding: 0.1rem 0.35rem;
line-height: 100%;
border: 0;
}
.content__main {
a {
code.xref,
code {
color: var(--code-link-color);
background-color: var(--code-link-bg);
transition: opacity 300ms;
}
&:hover {
code {
background-color: var(--code-link-bg);
opacity: 0.8;
}
}
}
}
.highlight {
pre {
background-color: transparent;
}
.w {
text-decoration: none;
}
.s1,
.s2 {
color: #3f7a08;
}
}
pre {
border-radius: $border-radius;
padding: 1.25rem 1.5rem;
}
dl pre,
blockquote pre,
li pre {
padding-left: 1.5rem;
}
// ----------------------
// Image
// ----------------------
[data-lightbox] {
img {
padding: 0.25rem;
border: 1px solid var(--theme-light-bg);
border-radius: $border-radius;
}
&:hover {
img {
border-color: var(--theme-light-hover-bg);
}
}
}
// ----------------------
// Table
// ----------------------
table.docutils {
box-shadow: none;
margin: 1rem 0 2rem;
td,
th {
border-color: var(--table-border-color);
padding: 0.75rem 1rem;
line-height: 1.5;
vertical-align: top;
text-align: left;
}
th {
font-weight: $font-weight-medium;
color: var(--headings-color);
font-size: $font-size-sm;
}
caption {
font-size: $font-size-sm;
font-style: italic;
margin-bottom: 0.5rem;
opacity: 0.5;
}
}
.table-responsive {
margin: 1rem 0 2rem;
border: 1px solid var(--table-border-color);
&.scrollbar {
overflow-x: auto;
overflow-x: overlay;
-webkit-overflow-scrolling: touch;
}
table {
margin: 0;
tr {
&:first-child {
th {
border-top-color: transparent;
}
}
&:last-child {
td {
border-bottom-color: transparent;
}
}
td, th {
&:first-child {
border-left-color: transparent;
}
&:last-child {
border-right-color: transparent;
}
}
}
}
}
// ----------------------
// Form
// ----------------------
form {
margin: 0;
}
input,
textarea {
font-family: $font-family-base;
}
// ----------------------
// Media
// ----------------------
video {
display: block;
}
// ----------------------
// List
// ----------------------
dl {
margin-bottom: 1rem;
dt {
margin: 1.5rem 0 0.5rem;
font-weight: $font-weight-medium;
color: var(--headings-color);
}
dd {
margin: 0;
}
}
ul, ol {
margin-left: 1.25rem;
}
ul {
list-style-type: disc;
}
// ----------------------
// Misc
// ----------------------
abbr, acronym {
border-bottom: none;
text-underline-offset: 0.15rem;
}
.guilabel,
.menuselection {
font-family: inherit;
}
dt:target,
span.highlighted {
background-color: transparent;
}