-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
12,273 additions
and
103 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
@import '@diplodoc/transform/dist/css/yfm.css'; | ||
@import '@diplodoc/components'; | ||
@import '@diplodoc/components/themes/common'; | ||
@import '@diplodoc/openapi-extension/runtime/styles'; | ||
@import '../../styles/default.scss'; | ||
@import '../../styles/typography.scss'; | ||
|
||
.App { | ||
margin: 0; | ||
min-height: 100vh; | ||
} | ||
|
||
.yc-root { | ||
.g-root { | ||
--dc-header-height: 0px; | ||
--mermaid-zoom-control-color: var(--yc-color-text-primary); | ||
--mermaid-zoom-control-color: var(--g-color-text-primary); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: inherit; | ||
} | ||
|
||
html, | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
|
||
--dc-header-height: 0; | ||
--dc-subheader-height: 40px; | ||
|
||
--dc-error-image-403: url('data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs='); | ||
--dc-error-image-404: url('data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs='); | ||
--dc-error-image-500: url('data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs='); | ||
|
||
.g-root { | ||
--g-scrollbar-width: 6px; | ||
|
||
&::-webkit-scrollbar, | ||
*::-webkit-scrollbar { | ||
height: var(--g-scrollbar-width); | ||
background: transparent; | ||
} | ||
|
||
&::-webkit-scrollbar-track, | ||
*::-webkit-scrollbar-track { | ||
background: transparent; | ||
} | ||
} | ||
} | ||
|
||
#root { | ||
min-height: 100vh; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
@import './variables'; | ||
|
||
@mixin text-size($name) { | ||
font-size: var(--yc-text-#{$name}-font-size); | ||
line-height: var(--yc-text-#{$name}-line-height); | ||
} | ||
|
||
@mixin reset-list-style() { | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
} | ||
|
||
@mixin fixAnchorPosition($offset: 0px) { | ||
padding-top: calc(var(--dc-header-height, #{$headerHeight})); | ||
margin-top: calc(#{$offset} - var(--dc-header-height, #{$headerHeight})); | ||
} | ||
|
||
@mixin reset-link-style() { | ||
color: inherit; | ||
text-decoration: none; | ||
} | ||
|
||
@mixin islands-focus() { | ||
outline: none; | ||
|
||
.utilityfocus &:focus { | ||
outline: 2px solid #ffdb4d; | ||
} | ||
} | ||
|
||
@mixin link() { | ||
@include islands-focus(); | ||
|
||
color: var(--yc-color-text-link); | ||
text-decoration: none; | ||
cursor: pointer; | ||
|
||
&:hover, | ||
&:active { | ||
color: var(--yc-color-text-link-hover); | ||
} | ||
} | ||
|
||
@mixin heading1() { | ||
@include text-size(display-3); | ||
font-weight: 500; | ||
|
||
@media (max-width: map-get($screenBreakpoints, 'md') - 1) { | ||
@include text-size(display-2); | ||
} | ||
} | ||
|
||
@mixin heading2() { | ||
@include text-size(display-1); | ||
font-weight: 500; | ||
} | ||
|
||
@mixin heading3() { | ||
@include text-size(header-2); | ||
font-weight: 500; | ||
} | ||
|
||
@mixin heading4() { | ||
@include text-size(header-1); | ||
font-weight: 500; | ||
} | ||
|
||
@mixin heading5() { | ||
@include text-size(body-3); | ||
font-weight: 500; | ||
} | ||
|
||
@mixin heading6() { | ||
@include text-size(body-3); | ||
font-weight: 400; | ||
} | ||
|
||
@mixin contributors-text() { | ||
font-size: 13px; | ||
font-weight: 400; | ||
margin-right: 5px; | ||
align-self: center; | ||
} | ||
|
||
@mixin text-body-1() { | ||
font-size: var(--yc-text-body-1-font-size); | ||
line-height: var(--yc-text-body-1-line-height); | ||
font-weight: var(--yc-text-body-font-weight); | ||
} | ||
|
||
@mixin desktop-only() { | ||
@media (max-width: map-get($screenBreakpoints, 'md') - 1) { | ||
display: none; | ||
} | ||
} | ||
|
||
@mixin desktop-tablet-only() { | ||
@media (max-width: map-get($screenBreakpoints, 'sm') - 1) { | ||
display: none; | ||
} | ||
} | ||
|
||
@mixin mobile-tablet-only() { | ||
@media (min-width: map-get($screenBreakpoints, 'md')) { | ||
display: none; | ||
} | ||
} | ||
|
||
@mixin mobile-only() { | ||
@media (min-width: map-get($screenBreakpoints, 'sm')) { | ||
display: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
@import './variables'; | ||
@import './mixins'; | ||
|
||
body.g-root { | ||
font-feature-settings: 'liga', 'kern'; | ||
text-size-adjust: 100%; | ||
|
||
/* stylelint-disable-next-line value-keyword-case */ | ||
text-rendering: optimizeLegibility; | ||
} | ||
|
||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
margin: 0; | ||
} | ||
|
||
h1 { | ||
@include heading1(); | ||
} | ||
|
||
h2 { | ||
@include heading2(); | ||
} | ||
|
||
h3 { | ||
@include heading3(); | ||
} | ||
|
||
h4 { | ||
@include heading4(); | ||
} | ||
|
||
h5 { | ||
@include heading5(); | ||
} | ||
|
||
h6 { | ||
@include heading6(); | ||
} | ||
|
||
p, | ||
div.p { | ||
margin: 0 0 20px; | ||
|
||
&:last-child { | ||
margin-bottom: 0; | ||
} | ||
} | ||
|
||
sub, | ||
sup { | ||
font-size: 0.75em; | ||
line-height: 0; | ||
} | ||
|
||
a { | ||
@include link(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Sizes | ||
$headerHeight: 0px; | ||
$normalOffset: 20px; | ||
$miniTocOffset: 56px; | ||
$blockMarginBottomLarge: 20px; | ||
$blockMarginBottomMedium: 15px; | ||
$headerMarginTopLarge: 40px; | ||
$headerMarginTopMedium: 32px; | ||
$popupPadding: 16px; | ||
$centerBlockMaxWidth: 736px; | ||
|
||
$screenBreakpoints: ( | ||
'xs': 375px, | ||
'sm': 577px, | ||
'md': 769px, | ||
'lg': 1081px, | ||
'xl': 1185px, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters