@readme/markdown 6.62.2 → 6.62.4

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.
@@ -1,33 +1,38 @@
1
1
  .markdown-body .embed {
2
- $B: '.embed';
3
- & {
4
- padding: 15px;
5
- color: var(--md-code-text, inherit);
6
- border-radius: var(--md-code-radius, var(--markdown-radius, 3px));
7
- border-radius: 3px;
8
- background: transparent;
9
- box-shadow: inset 0 0 0 1px rgba(black, .15);
10
- transition: .3s ease;
11
- &:hover {
12
- background: var(--md-code-background, #f6f8fa);
13
- box-shadow: inset 0 0 0 1px rgba(black, .1);
2
+ $embed: '.embed';
3
+
4
+ background: transparent;
5
+ border-radius: 3px;
6
+ border-radius: var(--md-code-radius, var(--markdown-radius, 3px));
7
+ box-shadow: inset 0 0 0 1px rgba(black, 0.15);
8
+ color: var(--md-code-text, inherit);
9
+ padding: 15px;
10
+ transition: 0.3s ease;
11
+
12
+ &:hover {
13
+ background: var(--md-code-background, #f6f8fa);
14
+ box-shadow: inset 0 0 0 1px rgba(black, 0.1);
15
+ }
16
+ @at-root .markdown-body > #{$embed}_hasImg:nth-of-type(odd) {
17
+ margin-right: 30px;
18
+ padding-right: 0;
19
+ #{$embed}-link {
20
+ flex-direction: row-reverse;
14
21
  }
15
- @at-root .markdown-body > #{$B}_hasImg:nth-of-type(odd) {
16
- margin-right: 30px;
17
- padding-right: 0;
18
- #{$B}-link { flex-direction: row-reverse }
19
- #{$B}-img {
20
- margin-left: .88em;
21
- margin-right: -30px;
22
- box-shadow: -.3em .3em .9em -.3em rgba(black, .15);
23
- }
22
+ #{$embed}-img {
23
+ box-shadow: -0.3em 0.3em 0.9em -0.3em rgba(black, 0.15);
24
+ margin-left: 0.88em;
25
+ margin-right: -30px;
24
26
  }
25
- @at-root .markdown-body > #{$B}_hasImg:nth-of-type(even) {
26
- margin-left: 30px;
27
- padding-left: 0;
28
- #{$B}-img { margin-left: -30px }
27
+ }
28
+ @at-root .markdown-body > #{$embed}_hasImg:nth-of-type(even) {
29
+ margin-left: 30px;
30
+ padding-left: 0;
31
+ #{$embed}-img {
32
+ margin-left: -30px;
29
33
  }
30
34
  }
35
+
31
36
  &:empty {
32
37
  display: none;
33
38
  }
@@ -35,84 +40,87 @@
35
40
  &-media {
36
41
  display: flex;
37
42
  justify-content: center;
38
- >:only-child {
43
+
44
+ > :only-child {
45
+ border-radius: 0 !important;
39
46
  flex: 1;
40
47
  margin: -15px;
41
- border-radius: 0 !important;
42
48
  }
43
49
  }
44
50
 
45
51
  &-link {
46
- display: flex;
47
52
  align-items: center;
48
53
  color: var(--markdown-text, #333);
54
+ display: flex;
49
55
  text-decoration: none !important;
50
56
  }
51
57
 
52
58
  &-body {
53
59
  flex: 1;
54
60
  line-height: 1.3;
55
- &, #{$B}-title {
61
+ &,
62
+ #{$embed}-title {
56
63
  font-size: 1.15em;
57
64
  overflow: hidden;
58
- white-space: nowrap;
59
65
  text-overflow: ellipsis;
66
+ white-space: nowrap;
60
67
  }
61
- #{$B}-provider {
68
+ #{$embed}-provider {
62
69
  display: block;
70
+ opacity: 0.88;
63
71
  text-decoration-color: transparent !important;
64
- opacity: .88;
65
72
  }
73
+
66
74
  &-url {
67
- opacity: .75;
75
+ opacity: 0.75;
68
76
  }
69
77
  }
70
78
 
71
79
  &-provider {
72
80
  font-size: 0.8em;
73
81
  line-height: 1.6;
82
+ transition: 0.2 ease;
83
+
84
+ code {
85
+ opacity: 0.8;
86
+ }
74
87
 
75
88
  code:only-child {
76
- display: block;
77
- width: 100%;
78
- font-size: 1.15em;
79
- overflow: hidden;
80
- white-space: nowrap;
81
- text-overflow: ellipsis;
82
89
  background: transparent;
90
+ display: block;
91
+ font-size: inherit !important;
83
92
  margin: 0;
93
+ overflow: hidden;
84
94
  padding: 0;
85
- font-size: inherit !important;
86
- }
87
- transition: .2 ease;
88
- code {
89
- opacity: 0.8;
95
+ text-overflow: ellipsis;
96
+ white-space: nowrap;
97
+ width: 100%;
90
98
  }
91
- }
99
+ }
92
100
 
93
101
  &-img {
94
- width: 5em;
95
- max-width: 5em;
96
- margin: 0 .88em 0 0;
97
- padding: 4px;
98
102
  background: white;
99
- border: 1px solid rgba(black, .15);
103
+ border: 1px solid rgba(black, 0.15);
100
104
  border-radius: 3px;
105
+ box-shadow: 0.3em 0.3em 0.9em -0.3em rgba(black, 0.15);
106
+ margin: 0 0.88em 0 0;
107
+ max-width: 5em;
108
+ padding: 4px;
101
109
  transition: inherit;
102
- box-shadow: .3em .3em .9em -.3em rgba(black, .15);
110
+ width: 5em;
103
111
  }
104
- &:not(:hover) #{$B}-img {
105
- box-shadow: 0 .25em 1em -.5em rgba(black, .133);
112
+ &:not(:hover) #{$embed}-img {
113
+ box-shadow: 0 0.25em 1em -0.5em rgba(black, 0.133);
106
114
  }
107
- &:hover #{$B}-img {
108
- border: 1px solid rgba(black, .2);
115
+ &:hover #{$embed}-img {
116
+ border: 1px solid rgba(black, 0.2);
109
117
  }
110
118
 
111
119
  &-favicon {
112
- width: 12px !important;
113
120
  height: 12px !important;
114
- margin-top: 4px;
115
- margin-right: 6px;
116
121
  margin-bottom: 12px;
122
+ margin-right: 6px;
123
+ margin-top: 4px;
124
+ width: 12px !important;
117
125
  }
118
- }
126
+ }
@@ -1,36 +1,48 @@
1
+ /* stylelint-disable declaration-property-value-disallowed-list */
2
+ /* stylelint-disable custom-property-pattern */
3
+ /* stylelint-disable order/order */
1
4
  .GlossaryItem {
2
5
  &-trigger {
3
6
  border-bottom: 1px solid #737c83;
4
- border-style: dotted;
5
- border-top: none;
6
7
  border-left: none;
7
8
  border-right: none;
9
+ border-style: dotted;
10
+ border-top: none;
8
11
  cursor: pointer;
9
12
  }
10
13
 
11
14
  &-tooltip-content {
12
15
  --GlossaryItem-bg: var(--color-bg-page, var(--white));
13
16
  --GlossaryItem-color: var(--color-text-default, var(--gray20));
14
- --GlossaryItem-shadow: var(--box-shadow-menu-light, 0 5px 10px rgba(0, 0, 0, .05),
15
- 0 2px 6px rgba(0, 0, 0, .025),
16
- 0 1px 3px rgba(0, 0, 0, .025));
17
+ --GlossaryItem-shadow: var(
18
+ --box-shadow-menu-light,
19
+ 0 5px 10px rgba(0, 0, 0, 5%),
20
+ 0 2px 6px rgba(0, 0, 0, 2.5%),
21
+ 0 1px 3px rgba(0, 0, 0, 2.5%)
22
+ );
17
23
 
18
24
  /* what the dark-mode mixin does in the readme project */
19
25
  [data-color-mode='dark'] & {
20
26
  --GlossaryItem-bg: var(--gray15);
21
27
  --GlossaryItem-color: var(--color-text-default, var(--white));
22
- --GlossaryItem-shadow: var(--box-shadow-menu-dark, 0 1px 3px rgba(0, 0, 0, 0.025),
23
- 0 2px 6px rgba(0, 0, 0, 0.025),
24
- 0 5px 10px rgba(0, 0, 0, 0.05))
28
+ --GlossaryItem-shadow: var(
29
+ --box-shadow-menu-dark,
30
+ 0 1px 3px rgba(0, 0, 0, 2.5%),
31
+ 0 2px 6px rgba(0, 0, 0, 2.5%),
32
+ 0 5px 10px rgba(0, 0, 0, 5%)
33
+ );
25
34
  }
26
35
 
27
36
  @media (prefers-color-scheme: dark) {
28
37
  [data-color-mode='auto'] & {
29
38
  --GlossaryItem-bg: var(--Tooltip-bg, var(--gray0));
30
39
  --GlossaryItem-color: var(--color-text-default, var(--white));
31
- --GlossaryItem-shadow: var(--box-shadow-menu-dark, 0 1px 3px rgba(0, 0, 0, 0.025),
32
- 0 2px 6px rgba(0, 0, 0, 0.025),
33
- 0 5px 10px rgba(0, 0, 0, 0.05))
40
+ --GlossaryItem-shadow: var(
41
+ --box-shadow-menu-dark,
42
+ 0 1px 3px rgba(0, 0, 0, 2.5%),
43
+ 0 2px 6px rgba(0, 0, 0, 2.5%),
44
+ 0 5px 10px rgba(0, 0, 0, 5%)
45
+ );
34
46
  }
35
47
  }
36
48
 
@@ -1,37 +1,43 @@
1
1
  .heading.heading {
2
+ align-items: center;
2
3
  display: flex;
3
4
  justify-content: flex-start;
4
- align-items: center;
5
5
  position: relative;
6
+
6
7
  .heading-text {
7
8
  flex: 1 100%;
8
9
  }
10
+
9
11
  .heading-anchor-deprecated {
10
12
  position: absolute;
11
13
  top: 0;
12
14
  }
15
+
13
16
  .heading-anchor {
14
17
  top: -1rem !important;
15
18
  }
19
+
16
20
  .heading-anchor,
17
21
  .heading-anchor-icon {
18
- position: absolute !important;
22
+ color: inherit;
19
23
  display: inline !important;
24
+ font-size: 0.8rem !important;
25
+ margin-right: -0.8rem;
20
26
  order: -1;
27
+ padding: 0.8rem 0.2rem 0.8rem 0 !important;
28
+ position: absolute !important;
21
29
  right: 100%;
22
- top: unset !important;
23
- margin-right: -.8rem;
24
- padding: .8rem .2rem .8rem 0 !important;
25
- font-size: .8rem !important;
26
30
  text-decoration: none;
27
- color: inherit;
31
+ top: unset !important;
28
32
  transform: translateX(-100%);
29
- transition: .2s ease;
33
+ transition: 0.2s ease;
34
+
30
35
  &:hover {
31
36
  opacity: 1;
32
37
  }
33
38
  }
39
+
34
40
  &:not(:hover) .heading-anchor-icon {
35
41
  opacity: 0;
36
42
  }
37
- }
43
+ }
@@ -48,10 +48,10 @@ class Image extends React.Component {
48
48
 
49
49
  render() {
50
50
  const { props } = this;
51
- const { alt, lazy = true } = props;
51
+ const { alt, lazy = true, ...otherProps } = props;
52
52
 
53
53
  if (this.isEmoji) {
54
- return <img {...props} alt={alt} loading={lazy ? 'lazy' : ''} />;
54
+ return <img alt={alt} loading={lazy ? 'lazy' : ''} {...otherProps} />;
55
55
  }
56
56
 
57
57
  return (
@@ -64,7 +64,7 @@ class Image extends React.Component {
64
64
  tabIndex={0}
65
65
  >
66
66
  <span className="lightbox-inner">
67
- <img {...props} alt={alt} loading={lazy ? 'lazy' : ''} />
67
+ <img alt={alt} loading={lazy ? 'lazy' : ''} {...otherProps} />
68
68
  </span>
69
69
  </span>
70
70
  );
@@ -1,12 +1,17 @@
1
+ /* stylelint-disable selector-max-compound-selectors */
2
+ /* stylelint-disable no-descending-specificity */
3
+ /* stylelint-disable font-family-no-missing-generic-family-keyword */
1
4
  %img-align {
2
5
  &-right {
3
6
  float: right;
4
7
  margin-left: 0.75rem;
5
8
  }
9
+
6
10
  &-left {
7
11
  float: left;
8
12
  margin-right: 0.75rem;
9
13
  }
14
+
10
15
  &-center {
11
16
  display: block;
12
17
  }
@@ -14,26 +19,25 @@
14
19
 
15
20
  .markdown-body {
16
21
  img {
17
- & {
18
- box-sizing: content-box;
19
- display: inline-block;
20
- vertical-align: middle;
21
- max-width: 100%;
22
- margin-left: auto;
23
- margin-right: auto;
24
- border-style: none;
25
-
26
- outline: none !important;
27
- }
22
+ border-style: none;
23
+ box-sizing: content-box;
24
+ display: inline-block;
25
+ margin-left: auto;
26
+ margin-right: auto;
27
+ max-width: 100%;
28
+ outline: none !important;
29
+ vertical-align: middle;
28
30
 
29
31
  &[align='right'],
30
32
  &[alt~='align-right'] {
31
33
  @extend %img-align-right;
32
34
  }
35
+
33
36
  &[align='left'],
34
37
  &[alt~='align-left'] {
35
38
  @extend %img-align-left;
36
39
  }
40
+
37
41
  &[width='80%'],
38
42
  &[align='center'],
39
43
  &[alt~='align-center'] {
@@ -41,24 +45,23 @@
41
45
  }
42
46
 
43
47
  &[width='smart'] {
44
- width: auto;
45
- max-width: 100%;
46
48
  max-height: 450px;
49
+ max-width: 100%;
50
+ width: auto;
47
51
  }
48
52
 
49
53
  &.border {
50
- border: 1px solid rgba(0, 0, 0, 0.2);
54
+ border: 1px solid rgba(0, 0, 0, 20%);
51
55
  }
52
56
  }
53
57
 
54
58
  figure {
55
- & {
56
- margin: 15px auto;
57
- }
59
+ margin: 15px auto;
60
+
58
61
  figcaption {
59
- margin-top: 8px;
60
62
  font-size: 0.93em;
61
63
  font-style: italic;
64
+ margin-top: 8px;
62
65
  text-align: center;
63
66
  }
64
67
  }
@@ -70,88 +73,83 @@
70
73
 
71
74
  figure .img {
72
75
  display: inline-block;
73
- &,
76
+
74
77
  > img:only-of-type {
75
78
  display: block;
76
79
  }
77
80
  }
78
81
 
79
82
  .lightbox.open {
80
- & {
81
- position: fixed;
82
- z-index: 9999999;
83
- top: 0;
84
- left: 0;
85
-
86
- display: flex;
87
- flex-flow: nowrap column;
88
- justify-content: flex-start;
89
- align-items: center;
90
-
91
- width: 100vw;
92
- height: 100vh;
93
- overflow: hidden;
94
- overflow-y: scroll;
95
- background: rgba(white, 0.966);
96
- user-select: none;
97
-
98
- margin-top: 0;
99
- margin-bottom: 0;
100
- }
83
+ align-items: center;
84
+ background: rgba(white, 0.966);
85
+ display: flex;
86
+ flex-flow: nowrap column;
87
+ height: 100vh;
88
+ justify-content: flex-start;
89
+ left: 0;
90
+ margin-bottom: 0;
91
+ margin-top: 0;
92
+ overflow: hidden;
93
+ overflow-y: scroll;
94
+ position: fixed;
95
+ top: 0;
96
+ user-select: none;
97
+ width: 100vw;
98
+ z-index: 9999999;
101
99
 
102
100
  // Close Button
103
- //
104
- &:after {
105
- position: fixed;
106
- top: 1em;
107
- right: 1em;
101
+ &::after {
108
102
  content: '\f00d';
103
+ cursor: pointer;
109
104
  display: inline-block;
110
105
  font: normal normal normal 2em/1 FontAwesome;
111
106
  font-size: inherit;
112
- text-rendering: auto;
113
107
  -webkit-font-smoothing: antialiased;
114
108
  -moz-osx-font-smoothing: grayscale;
115
- transform: translate(0, 0);
116
- display: inline-block;
117
- cursor: pointer;
118
-
119
109
  opacity: 1;
110
+ position: fixed;
111
+ right: 1em;
112
+ text-rendering: auto;
113
+ top: 1em;
114
+ transform: translate(0, 0);
120
115
  transform: scale(1.5);
121
116
  transition: 0.3s 0.3s ease-in;
122
117
  }
123
- &:not(.open):after {
124
- transform: scale(0);
118
+
119
+ &:not(.open)::after {
125
120
  opacity: 0;
121
+ transform: scale(0);
126
122
  }
127
123
 
128
124
  .lightbox-inner {
129
- position: relative;
125
+ align-items: center;
126
+ box-sizing: content-box;
130
127
  display: inline-flex;
131
128
  justify-content: center;
132
- align-items: center;
133
- min-height: calc(100vh + 8px);
134
129
  margin: auto;
130
+ min-height: calc(100vh + 8px);
135
131
  padding: 0;
136
- box-sizing: content-box;
132
+ position: relative;
137
133
  }
138
134
 
139
135
  img {
140
- width: auto !important;
141
136
  height: auto !important;
142
- min-width: unset !important;
143
- max-width: 97.5vw !important;
144
137
  max-height: 97.5vh !important;
138
+ max-width: 97.5vw !important;
139
+ min-width: unset !important;
140
+ width: auto !important;
141
+
145
142
  &.border,
146
143
  &:not([src$='.png']):not([src$='.svg']):not([src$='.jp2']):not([src$='.tiff']) {
147
- box-shadow: 0 0.5em 3em -1em rgba(0, 0, 0, 0.2);
144
+ box-shadow: 0 0.5em 3em -1em rgba(0, 0, 0, 20%);
148
145
  }
146
+
149
147
  &[src$='svg'] {
150
- width: 42vw !important;
151
- min-width: 200px !important;
152
- max-width: 100% !important;
153
- height: 66vw !important;
154
148
  display: block !important;
149
+ height: 66vw !important;
150
+ max-width: 100% !important;
151
+ min-width: 200px !important;
152
+ width: 42vw !important;
155
153
  }
156
154
  }
157
155
  }
@@ -1,15 +1,14 @@
1
- @mixin markdown-table(
2
- $row: #fff,
3
- $head: #f6f8fa,
4
- $stripe: #fbfcfd,
5
- $edges: #dfe2e5,
6
- ) {
1
+ /* stylelint-disable selector-max-compound-selectors */
2
+ /* stylelint-disable no-descending-specificity */
3
+ /* stylelint-disable declaration-property-value-disallowed-list */
4
+ /* stylelint-disable scss/selector-no-redundant-nesting-selector */
5
+ @mixin markdown-table($row: #fff, $head: #f6f8fa, $stripe: #fbfcfd, $edges: #dfe2e5) {
7
6
  table {
8
- display: table;
9
7
  border-collapse: collapse;
10
8
  border-spacing: 0;
11
- width: 100%;
12
9
  color: var(--table-text);
10
+ display: table;
11
+ width: 100%;
13
12
 
14
13
  thead {
15
14
  color: var(--table-head-text, inherit);
@@ -21,6 +20,7 @@
21
20
 
22
21
  tr {
23
22
  background-color: var(--table-row, #{$row});
23
+
24
24
  & + tr {
25
25
  border-top: 1px solid var(--table-edges, #{$edges});
26
26
  }
@@ -29,6 +29,7 @@
29
29
  th,
30
30
  thead td {
31
31
  font-weight: 600;
32
+
32
33
  &:empty {
33
34
  padding: 0;
34
35
  }
@@ -36,13 +37,20 @@
36
37
 
37
38
  td,
38
39
  th {
39
- padding: 0;
40
- color: inherit;
41
- vertical-align: middle;
42
40
  border: 1px solid var(--table-edges, #{$edges});
41
+ color: inherit;
43
42
  padding: 6px 13px;
44
- > :first-child, > :only-child { margin-top: 0 !important }
45
- > :last-child, > :only-child { margin-bottom: 0 !important }
43
+ vertical-align: middle;
44
+
45
+ > :first-child,
46
+ > :only-child {
47
+ margin-top: 0 !important;
48
+ }
49
+
50
+ > :last-child,
51
+ > :only-child {
52
+ margin-bottom: 0 !important;
53
+ }
46
54
  }
47
55
 
48
56
  &:not(.plain) tr:nth-child(2n) {
@@ -57,10 +65,8 @@
57
65
  .rdmd-table {
58
66
  $border-wrap-width: 1px;
59
67
 
60
- & {
61
- display: block;
62
- position: relative;
63
- }
68
+ display: block;
69
+ position: relative;
64
70
 
65
71
  &-inner {
66
72
  box-sizing: content-box;