@gitlab/ui 115.9.0 → 115.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/base/avatar_link/avatar_link.js +1 -1
- package/dist/components/base/avatars_inline/avatars_inline.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/package.json +10 -10
- package/src/components/base/avatar_link/avatar_link.vue +1 -1
- package/src/components/base/avatars_inline/avatars_inline.vue +1 -1
- package/src/components/base/markdown/markdown_typescale_demo.html +41 -71
- package/src/scss/variables.scss +1 -1
- package/src/components/base/accordion/accordion.md +0 -3
- package/src/components/base/accordion/accordion_item.md +0 -3
- package/src/components/base/alert/alert.md +0 -35
- package/src/components/base/animated_icon/animated_icon.md +0 -4
- package/src/components/base/avatar/avatar.md +0 -1
- package/src/components/base/avatar_labeled/avatar_labeled.md +0 -20
- package/src/components/base/avatar_link/avatar_link.md +0 -33
- package/src/components/base/avatars_inline/avatars_inline.md +0 -38
- package/src/components/base/badge/badge.md +0 -30
- package/src/components/base/banner/banner.md +0 -35
- package/src/components/base/breadcrumb/breadcrumb.md +0 -52
- package/src/components/base/broadcast_message/broadcast_message.md +0 -25
- package/src/components/base/button/button.md +0 -119
- package/src/components/base/button_group/button_group.md +0 -44
- package/src/components/base/card/card.md +0 -4
- package/src/components/base/collapse/collapse.md +0 -64
- package/src/components/base/datepicker/datepicker.md +0 -8
- package/src/components/base/daterange_picker/daterange_picker.md +0 -32
- package/src/components/base/drawer/drawer.md +0 -17
- package/src/components/base/dropdown/dropdown.md +0 -72
- package/src/components/base/dropdown/dropdown_item.md +0 -2
- package/src/components/base/dropdown/dropdown_section_header.md +0 -7
- package/src/components/base/dropdown/dropdown_text.md +0 -7
- package/src/components/base/filtered_search/filtered_search.md +0 -76
- package/src/components/base/filtered_search/filtered_search_suggestion.md +0 -15
- package/src/components/base/filtered_search/filtered_search_suggestion_list.md +0 -13
- package/src/components/base/filtered_search/filtered_search_term.md +0 -7
- package/src/components/base/filtered_search/filtered_search_token.md +0 -23
- package/src/components/base/filtered_search/filtered_search_token_segment.md +0 -14
- package/src/components/base/form/form_checkbox/form_checkbox.md +0 -6
- package/src/components/base/form/form_input/form_input.md +0 -306
- package/src/components/base/form/form_radio/form_radio.md +0 -23
- package/src/components/base/form/form_radio_group/form_radio_group.md +0 -63
- package/src/components/base/form/form_select/form_select.md +0 -1
- package/src/components/base/form/form_textarea/form_textarea.md +0 -3
- package/src/components/base/icon/icon.md +0 -27
- package/src/components/base/infinite_scroll/infinite_scroll.md +0 -104
- package/src/components/base/keyset_pagination/keyset_pagination.md +0 -49
- package/src/components/base/label/label.md +0 -15
- package/src/components/base/link/link.md +0 -187
- package/src/components/base/loading_icon/loading_icon.md +0 -3
- package/src/components/base/modal/modal.md +0 -30
- package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.md +0 -184
- package/src/components/base/new_dropdowns/listbox/listbox.md +0 -195
- package/src/components/base/pagination/pagination.md +0 -45
- package/src/components/base/path/path.md +0 -41
- package/src/components/base/progress_bar/progress_bar.md +0 -25
- package/src/components/base/search_box_by_click/search_box_by_click.md +0 -1
- package/src/components/base/search_box_by_type/search_box_by_type.md +0 -1
- package/src/components/base/segmented_control/segmented_control.md +0 -26
- package/src/components/base/skeleton_loader/skeleton_loader.md +0 -70
- package/src/components/base/sorting/sorting.md +0 -80
- package/src/components/base/table/table.md +0 -71
- package/src/components/base/table_lite/table_lite.md +0 -68
- package/src/components/base/tabs/tabs/tabs.md +0 -80
- package/src/components/base/toast/toast.md +0 -48
- package/src/components/base/toggle/toggle.md +0 -4
- package/src/components/base/token/token.md +0 -12
- package/src/components/base/tooltip/tooltip.md +0 -52
- package/src/scss/typescale/typeface_demo.html +0 -70
- package/src/scss/typescale/typescale.md +0 -81
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
GitLab UI typescale is an implementation of the Pajamas [typescale specification](https://www.figma.com/file/qEddyqCrI7kPSBjGmwkZzQ/Pajamas-UI-Kit---Beta?node-id=542%3A2).
|
|
2
|
-
|
|
3
|
-
## Usage
|
|
4
|
-
|
|
5
|
-
When you import GitLab UI SCSS, the typescale is not applied automatically. To apply the UI
|
|
6
|
-
Typescale, include the `gl-typescale-ui` `@mixin` in your application SCSS code:
|
|
7
|
-
|
|
8
|
-
```scss
|
|
9
|
-
@import '@gitlab/ui/src/scss/gitlab_ui';
|
|
10
|
-
|
|
11
|
-
@include gl-typescale-ui;
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
You can also include the Typescale and omit the rest of GitLab UI CSS. The following
|
|
15
|
-
code demonstrates the minimal configuration required to use the UI Typescale in a project:
|
|
16
|
-
|
|
17
|
-
```scss
|
|
18
|
-
@import '@gitlab/ui/src/scss/variables';
|
|
19
|
-
@import '@gitlab/ui/src/scss/mixins';
|
|
20
|
-
@import '@gitlab/ui/src/scss/typescale/index';
|
|
21
|
-
|
|
22
|
-
@include gl-typescale-ui;
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Implementation notes
|
|
26
|
-
|
|
27
|
-
### Font stack
|
|
28
|
-
|
|
29
|
-
The Typescale uses the following font stack:
|
|
30
|
-
|
|
31
|
-
- Regular: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu,
|
|
32
|
-
Cantarell, 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
33
|
-
'Noto Color Emoji'`
|
|
34
|
-
- Monospace: `'Menlo', 'DejaVu Sans Mono', 'Liberation Mono', 'Consolas', 'Ubuntu Mono',
|
|
35
|
-
'Courier New', 'andale mono', 'lucida console', monospace`
|
|
36
|
-
|
|
37
|
-
### Font-size
|
|
38
|
-
|
|
39
|
-
Text size is determined by the following parameters:
|
|
40
|
-
|
|
41
|
-
- Content type:
|
|
42
|
-
- UI: default
|
|
43
|
-
- Markdown: `markdown`
|
|
44
|
-
- Compact Markdown: `compact-markdown`
|
|
45
|
-
- Media breakpoints:
|
|
46
|
-
- `min-width: 0`: default
|
|
47
|
-
- `min-width: 768px`: `md`
|
|
48
|
-
- `min-width: 992px`: `lg`
|
|
49
|
-
- `min-width: 1200px`: `xl`
|
|
50
|
-
- Font family:
|
|
51
|
-
- Regular: default
|
|
52
|
-
- Monospace: `monospace`
|
|
53
|
-
- Element type:
|
|
54
|
-
- small paragraph / UI text: `sm`
|
|
55
|
-
- medium paragraph / UI text: default
|
|
56
|
-
- large paragraph / UI text: `lg`
|
|
57
|
-
- headers: `h1..h6`
|
|
58
|
-
|
|
59
|
-
#### Variables
|
|
60
|
-
|
|
61
|
-
Typescale variables are located in the `scss/variables.scss`. They follow the naming convention:
|
|
62
|
-
`$gl-font-size-[content-type]-[font-family]-[element-type]-[breakpoint]`. Default typescale
|
|
63
|
-
parameters are omitted from the variable name. For example:
|
|
64
|
-
|
|
65
|
-
```sass
|
|
66
|
-
// content-type: UI, font-family: regular, element-type: h1, media breakpoint: default
|
|
67
|
-
$gl-font-size-h1: px-to-rem(23px);
|
|
68
|
-
|
|
69
|
-
// content-type: markdown, font-family: regular, element-type: h1, media-breakpoint: min-width: 1200px
|
|
70
|
-
$gl-font-size-markdown-h1-xl: px-to-rem(32px);
|
|
71
|
-
|
|
72
|
-
// content-type: compact markdown, font-family: regular, element-type: large paragraph / label
|
|
73
|
-
$gl-font-size-compact-markdown-lg: px-to-rem(15px);
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
### Line-height
|
|
77
|
-
|
|
78
|
-
The minimum line-height in Pajamas’ typescale specification is `16px`/`1rem`. Label text, which is
|
|
79
|
-
any text that is neither paragraph nor a header, uses this line-height. Paragraphs have a
|
|
80
|
-
line-height of `20px`/`1.25rem`. You can see the line-height for other typescale’s elements in the
|
|
81
|
-
[typescale sketch file](https://gitlab-org.gitlab.io/gitlab-design/hosted/pedro/%23168-responsive-type-spec-previews/).
|