@primer/css 0.0.0-20220119132053 → 0.0.0-20220120130202

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/CHANGELOG.md CHANGED
@@ -1,12 +1,16 @@
1
1
  # @primer/css
2
2
 
3
- ## 0.0.0-20220119132053
3
+ ## 0.0.0-20220120130202
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Fake entry to force publishing
8
8
 
9
- * [#1890](https://github.com/primer/css/pull/1890) [`0b469228`](https://github.com/primer/css/commit/0b469228c05224609f4ae370f304a0fe58760de8) Thanks [@andrialexandrou](https://github.com/andrialexandrou)! - Adds --color-accent-emphasis and --color-fg-on-emphasis rules for Windows High Contrast Mode
9
+ * [#1890](https://github.com/primer/css/pull/1890) [`74d0438b`](https://github.com/primer/css/commit/74d0438bd4dbaed447b553c5d3c8b945da282836) Thanks [@andrialexandrou](https://github.com/andrialexandrou)! - Adds --color-accent-emphasis and --color-fg-on-emphasis rules for Windows High Contrast Mode
10
+
11
+ - [#1882](https://github.com/primer/css/pull/1882) [`4a06aba1`](https://github.com/primer/css/commit/4a06aba1d3f80bcc228ff4360d0e02d5ace158ff) Thanks [@tqwewe](https://github.com/tqwewe)! - Fix layout gutter none styles
12
+
13
+ * [#1894](https://github.com/primer/css/pull/1894) [`d1adf595`](https://github.com/primer/css/commit/d1adf595308afb97f83c5ca172222944189a5961) Thanks [@simurai](https://github.com/simurai)! - Make `pagination` responsive by default
10
14
 
11
15
  ## 19.2.0
12
16
 
@@ -0,0 +1,25 @@
1
+ ---
2
+ bundle: "dialog"
3
+ generated: true
4
+ ---
5
+
6
+ # Primer CSS: `dialog` bundle
7
+
8
+ ## Usage
9
+
10
+ Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
11
+
12
+ ```scss
13
+ @import "@primer/css/dialog/index.scss";
14
+ ```
15
+
16
+ ## Build
17
+
18
+ The `@primer/css` npm package includes a standalone CSS build of this module in `dist/dialog.css`.
19
+
20
+ ## License
21
+
22
+ [MIT](https://github.com/primer/css/blob/main/LICENSE) © [GitHub](https://github.com/)
23
+
24
+
25
+ [scss]: https://sass-lang.com/documentation/syntax#scss
@@ -0,0 +1,98 @@
1
+ .modal-dialog-backdrop {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ bottom: 0;
6
+ right: 0;
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: center;
10
+ background-color: rgba(0, 0, 0, 0.4);
11
+ animation: 200ms cubic-bezier(0.33, 1, 0.68, 1) 0s 1 normal none running dialog-backdrop-appear;
12
+ }
13
+ modal-dialog {
14
+ display: flex;
15
+ flex-direction: column;
16
+ background-color: rgb(255, 255, 255);
17
+ box-shadow: rgb(27 31 36 / 12%) 0px 1px 3px, rgb(66 74 83 / 12%) 0px 8px 24px;
18
+ min-width: 296px;
19
+ max-width: calc(100vw - 64px);
20
+ max-height: calc(100vh - 64px);
21
+ width: 640px;
22
+ height: auto;
23
+ border-radius: 12px;
24
+ opacity: 1;
25
+ animation: 200ms cubic-bezier(0.33, 1, 0.68, 1) 0s 1 normal none running overlay--dialog-appear;
26
+ }
27
+ modal-dialog header {
28
+ box-shadow: rgb(208 215 222) 0px 1px 0px;
29
+ padding: 8px;
30
+ z-index: 1;
31
+ flex-shrink: 0;
32
+ }
33
+ modal-dialog header .header-container {
34
+ display: flex;
35
+ }
36
+
37
+ modal-dialog header .header-container .header-container-title {
38
+ padding: 6px 8px;
39
+ display: flex;
40
+ flex-direction: column;
41
+ -webkit-box-flex: 1;
42
+ flex-grow: 1;
43
+ }
44
+
45
+ modal-dialog header .header-container .header-container-title .title {
46
+ font-size: 14px;
47
+ font-weight: 600;
48
+ margin: 0px;
49
+ }
50
+
51
+ modal-dialog header .header-container .header-container-title .subtitle {
52
+ font-size: 12px;
53
+ color: rgb(87, 96, 106);
54
+ margin: 4px 0px 0px;
55
+ }
56
+ modal-dialog header .header-container .close-button {
57
+ position: relative;
58
+ display: inline-block;
59
+ font-family: inherit;
60
+ font-weight: 600;
61
+ white-space: nowrap;
62
+ cursor: pointer;
63
+ user-select: none;
64
+ appearance: none;
65
+ text-decoration: none;
66
+ text-align: center;
67
+ font-size: 14px;
68
+ border-radius: 4px;
69
+ background: transparent;
70
+ border: 0px;
71
+ vertical-align: middle;
72
+ color: rgb(87, 96, 106);
73
+ padding: 8px;
74
+ align-self: flex-start;
75
+ line-height: normal;
76
+ box-shadow: none;
77
+ }
78
+ modal-dialog header .header-container .close-button:hover,
79
+ modal-dialog header .header-container .close-button:focus {
80
+ background-color: rgb(243, 244, 246);
81
+ border-color: rgba(27, 31, 36, 0.15);
82
+ }
83
+ modal-dialog .dialog-body {
84
+ -webkit-box-flex: 1;
85
+ flex-grow: 1;
86
+ overflow: auto;
87
+ padding: 16px;
88
+ }
89
+ modal-dialog footer {
90
+ box-shadow: rgb(208 215 222) 0px -1px 0px;
91
+ padding: 16px;
92
+ display: flex;
93
+ flex-flow: wrap;
94
+ -webkit-box-pack: end;
95
+ justify-content: flex-end;
96
+ z-index: 1;
97
+ flex-shrink: 0;
98
+ }
@@ -0,0 +1,2 @@
1
+ @import '../support/index.scss';
2
+ @import './dialog.scss';