-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(docs): added callouts for documentation pages (#DS-2547) #433
Open
artembelik
wants to merge
1
commit into
main
Choose a base branch
from
feat/DS-2547
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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,127 @@ | ||||||
/* stylelint-disable scss/at-extend-no-missing-placeholder */ | ||||||
|
||||||
/** | ||||||
Usage: | ||||||
|
||||||
```html | ||||||
<div class="kbq-callout kbq-callout_theme"> | ||||||
<div class="kbq-callout__header">...</div> | ||||||
<div class="kbq-callout__content">...</div> | ||||||
</div> | ||||||
``` | ||||||
*/ | ||||||
|
||||||
@use '@koobiq/icons/fonts/kbq-icons'; | ||||||
|
||||||
%kbq-callout_contrast { | ||||||
border-color: var(--kbq-line-contrast-less); | ||||||
background-color: var(--kbq-background-bg-secondary); | ||||||
|
||||||
.kbq-callout__header { | ||||||
color: var(--kbq-foreground-contrast-secondary); | ||||||
|
||||||
&::before { | ||||||
@extend .kbq; | ||||||
@extend .kbq-question-circle_16; | ||||||
} | ||||||
} | ||||||
|
||||||
.kbq-callout__content { | ||||||
color: var(--kbq-foreground-contrast); | ||||||
background-color: var(--kbq-background-bg); | ||||||
} | ||||||
} | ||||||
|
||||||
.kbq-callout { | ||||||
overflow: hidden; | ||||||
border-width: 2px; | ||||||
border-style: solid; | ||||||
border-radius: var(--kbq-size-s); | ||||||
margin-bottom: var(--kbq-size-xl); | ||||||
|
||||||
.kbq-callout__header { | ||||||
display: flex; | ||||||
align-items: center; | ||||||
gap: var(--kbq-size-s); | ||||||
font-size: var(--kbq-md-typography-md-h5-font-size); | ||||||
font-weight: var(--kbq-typography-text-normal-strong-font-weight); | ||||||
line-height: var(--kbq-typography-text-normal-strong-line-height); | ||||||
letter-spacing: var(--kbq-typography-text-normal-strong-letter-spacing); | ||||||
} | ||||||
|
||||||
.kbq-callout__content { | ||||||
font-size: var(--kbq-md-typography-md-body-font-size); | ||||||
font-weight: var(--kbq-md-typography-md-body-font-weight); | ||||||
line-height: var(--kbq-md-typography-md-body-line-height); | ||||||
letter-spacing: var(--kbq-md-typography-md-body-letter-spacing); | ||||||
border-radius: var(--kbq-size-s) var(--kbq-size-s) 0; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. команда UX завела глобальный токен border-radius, у него такое же значение, но он больше подходит для описания бордер радиуса
Suggested change
|
||||||
} | ||||||
|
||||||
.kbq-callout__header, | ||||||
.kbq-callout__content { | ||||||
padding: var(--kbq-size-s) var(--kbq-size-l); | ||||||
} | ||||||
|
||||||
// setup contrast theme by default | ||||||
@extend %kbq-callout_contrast; | ||||||
|
||||||
&.kbq-callout_contrast { | ||||||
@extend %kbq-callout_contrast; | ||||||
} | ||||||
|
||||||
&.kbq-callout_theme { | ||||||
border-color: var(--kbq-line-theme); | ||||||
background-color: var(--kbq-background-theme-fade); | ||||||
|
||||||
.kbq-callout__header { | ||||||
color: var(--kbq-foreground-theme); | ||||||
|
||||||
&::before { | ||||||
@extend .kbq; | ||||||
@extend .kbq-exclamation-circle_16; | ||||||
} | ||||||
} | ||||||
} | ||||||
|
||||||
&.kbq-callout_success { | ||||||
border-color: var(--kbq-line-success); | ||||||
background-color: var(--kbq-background-success-fade); | ||||||
|
||||||
.kbq-callout__header { | ||||||
color: var(--kbq-foreground-success); | ||||||
|
||||||
&::before { | ||||||
@extend .kbq; | ||||||
@extend .kbq-check-circle_16; | ||||||
} | ||||||
} | ||||||
} | ||||||
|
||||||
&.kbq-callout_warning { | ||||||
border-color: var(--kbq-line-warning); | ||||||
background-color: var(--kbq-background-warning-fade); | ||||||
|
||||||
.kbq-callout__header { | ||||||
color: var(--kbq-foreground-warning); | ||||||
|
||||||
&::before { | ||||||
@extend .kbq; | ||||||
@extend .kbq-exclamation-triangle_16; | ||||||
} | ||||||
} | ||||||
} | ||||||
|
||||||
&.kbq-callout_error { | ||||||
border-color: var(--kbq-line-error); | ||||||
background-color: var(--kbq-background-error-fade); | ||||||
|
||||||
.kbq-callout__header { | ||||||
color: var(--kbq-foreground-error); | ||||||
|
||||||
&::before { | ||||||
@extend .kbq; | ||||||
@extend .kbq-minus-circle_16; | ||||||
} | ||||||
} | ||||||
} | ||||||
} |
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
9 changes: 8 additions & 1 deletion
9
packages/components-experimental/form-field/experimental-form-field.md
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
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,12 +1,18 @@ | ||
`<kbq-scrollbar>` - это компонент (обертка над библиотекой [`overlayscrollbars`](https://github.com/KingSora/OverlayScrollbars)), | ||
который используется для настройки параметров скроллбара. | ||
`<kbq-scrollbar>` - это компонент который используется для настройки параметров скроллбара. | ||
|
||
**Обрати внимание!** Для работы компонента, необходимо наличие `[email protected]` зависимости, установи её при отсутствии: | ||
<div class="kbq-callout kbq-callout_warning"> | ||
<div class="kbq-callout__header">Обрати внимание</div> | ||
<div class="kbq-callout__content"> | ||
|
||
``` | ||
Для работы компонента, необходимо наличие [`[email protected]`](https://github.com/KingSora/OverlayScrollbars/tree/v2.7.0) зависимости: | ||
|
||
```bash | ||
npm install [email protected] | ||
``` | ||
|
||
</div> | ||
</div> | ||
|
||
## Настройка и передача параметров: | ||
|
||
- для определенного скроллбара, при помощи атрибута `options`: | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Если стили типографики раздела полностью совпадают с определенным шрифтом, то можно его напрямую использовать