@transferwise/neptune-css 0.0.0-experimental-4c688cd → 0.0.0-experimental-5405b30
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/css/accordion.css +1 -235
- package/dist/css/alerts.css +1 -761
- package/dist/css/background.css +1 -20
- package/dist/css/badge.css +1 -90
- package/dist/css/border-radius.css +1 -3
- package/dist/css/breadcrumbs.css +1 -20
- package/dist/css/button-groups.css +1 -412
- package/dist/css/buttons.css +1 -1382
- package/dist/css/chevron.css +1 -35
- package/dist/css/circles.css +1 -284
- package/dist/css/close.css +1 -47
- package/dist/css/column-layout.css +1 -164
- package/dist/css/currency-flags.css +1 -45
- package/dist/css/decision.css +1 -95
- package/dist/css/dropdowns.css +1 -413
- package/dist/css/droppable.css +1 -207
- package/dist/css/flex.css +1 -598
- package/dist/css/footer.css +1 -118
- package/dist/css/grid.css +1 -2369
- package/dist/css/input-groups.css +1 -2706
- package/dist/css/link-callout.css +1 -20
- package/dist/css/list-group.css +1 -267
- package/dist/css/loaders.css +1 -76
- package/dist/css/media.css +1 -74
- package/dist/css/modals.css +1 -185
- package/dist/css/navbar-base.css +1 -1385
- package/dist/css/navbar.css +1 -2397
- package/dist/css/navs.css +1 -296
- package/dist/css/neptune-addons.css +1 -1829
- package/dist/css/neptune-core.css +2 -2037
- package/dist/css/neptune-social-media.css +1 -144
- package/dist/css/neptune.css +2 -24374
- package/dist/css/panels.css +1 -528
- package/dist/css/popovers.css +1 -538
- package/dist/css/process.css +1 -483
- package/dist/css/progress-bars.css +1 -76
- package/dist/css/ring.css +1 -59
- package/dist/css/select.css +1 -99
- package/dist/css/sequences.css +1 -855
- package/dist/css/table.css +1 -446
- package/dist/css/tick.css +1 -32
- package/dist/css/tooltip.css +1 -142
- package/dist/css/utilities.css +1 -145
- package/dist/css/wells.css +1 -74
- package/package.json +2 -3
- package/src/less/buttons.less +6 -2
- package/src/less/core/_scaffolding.less +1 -3
- package/scripts/analyze-css-selectors.js +0 -39
package/dist/css/utilities.css
CHANGED
|
@@ -1,145 +1 @@
|
|
|
1
|
-
.d-inline-block {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
}
|
|
4
|
-
.d-inline {
|
|
5
|
-
display: inline;
|
|
6
|
-
}
|
|
7
|
-
.clearfix::before,
|
|
8
|
-
.clearfix::after {
|
|
9
|
-
content: " ";
|
|
10
|
-
display: table;
|
|
11
|
-
}
|
|
12
|
-
.clearfix::after {
|
|
13
|
-
clear: both;
|
|
14
|
-
}
|
|
15
|
-
.center-block {
|
|
16
|
-
display: block;
|
|
17
|
-
margin-left: auto;
|
|
18
|
-
margin-right: auto;
|
|
19
|
-
}
|
|
20
|
-
.pull-right,
|
|
21
|
-
.pull-xs-right {
|
|
22
|
-
float: right !important;
|
|
23
|
-
}
|
|
24
|
-
[dir="rtl"] .pull-right,
|
|
25
|
-
[dir="rtl"] .pull-xs-right {
|
|
26
|
-
float: left !important;
|
|
27
|
-
}
|
|
28
|
-
.pull-left,
|
|
29
|
-
.pull-xs-left {
|
|
30
|
-
float: left !important;
|
|
31
|
-
}
|
|
32
|
-
[dir="rtl"] .pull-left,
|
|
33
|
-
[dir="rtl"] .pull-xs-left {
|
|
34
|
-
float: right !important;
|
|
35
|
-
}
|
|
36
|
-
.pull-xs-none {
|
|
37
|
-
float: none !important;
|
|
38
|
-
}
|
|
39
|
-
@media (min-width: 576px) {
|
|
40
|
-
.pull-sm-left {
|
|
41
|
-
float: left !important;
|
|
42
|
-
}
|
|
43
|
-
[dir="rtl"] .pull-sm-left {
|
|
44
|
-
float: right !important;
|
|
45
|
-
}
|
|
46
|
-
.pull-sm-right {
|
|
47
|
-
float: right !important;
|
|
48
|
-
}
|
|
49
|
-
[dir="rtl"] .pull-sm-right {
|
|
50
|
-
float: left !important;
|
|
51
|
-
}
|
|
52
|
-
.pull-sm-none {
|
|
53
|
-
float: none !important;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
@media (min-width: 768px) {
|
|
57
|
-
.pull-md-left {
|
|
58
|
-
float: left !important;
|
|
59
|
-
}
|
|
60
|
-
[dir="rtl"] .pull-md-left {
|
|
61
|
-
float: right !important;
|
|
62
|
-
}
|
|
63
|
-
.pull-md-right {
|
|
64
|
-
float: right !important;
|
|
65
|
-
}
|
|
66
|
-
[dir="rtl"] .pull-md-right {
|
|
67
|
-
float: left !important;
|
|
68
|
-
}
|
|
69
|
-
.pull-md-none {
|
|
70
|
-
float: none !important;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
@media (min-width: 992px) {
|
|
74
|
-
.pull-lg-left {
|
|
75
|
-
float: left !important;
|
|
76
|
-
}
|
|
77
|
-
[dir="rtl"] .pull-lg-left {
|
|
78
|
-
float: right !important;
|
|
79
|
-
}
|
|
80
|
-
.pull-lg-right {
|
|
81
|
-
float: right !important;
|
|
82
|
-
}
|
|
83
|
-
[dir="rtl"] .pull-lg-right {
|
|
84
|
-
float: left !important;
|
|
85
|
-
}
|
|
86
|
-
.pull-lg-none {
|
|
87
|
-
float: none !important;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
@media (min-width: 1200px) {
|
|
91
|
-
.pull-xl-left {
|
|
92
|
-
float: left !important;
|
|
93
|
-
}
|
|
94
|
-
[dir="rtl"] .pull-xl-left {
|
|
95
|
-
float: right !important;
|
|
96
|
-
}
|
|
97
|
-
.pull-xl-right {
|
|
98
|
-
float: right !important;
|
|
99
|
-
}
|
|
100
|
-
[dir="rtl"] .pull-xl-right {
|
|
101
|
-
float: left !important;
|
|
102
|
-
}
|
|
103
|
-
.pull-xl-none {
|
|
104
|
-
float: none !important;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
.pull-left-single-direction {
|
|
108
|
-
float: left !important;
|
|
109
|
-
}
|
|
110
|
-
.pull-right-single-direction {
|
|
111
|
-
float: right !important;
|
|
112
|
-
}
|
|
113
|
-
.hide {
|
|
114
|
-
display: none !important;
|
|
115
|
-
}
|
|
116
|
-
.show {
|
|
117
|
-
display: block !important;
|
|
118
|
-
}
|
|
119
|
-
.invisible {
|
|
120
|
-
visibility: hidden;
|
|
121
|
-
}
|
|
122
|
-
.text-hide {
|
|
123
|
-
color: transparent;
|
|
124
|
-
text-shadow: none;
|
|
125
|
-
background-color: transparent;
|
|
126
|
-
border: 0;
|
|
127
|
-
}
|
|
128
|
-
.hidden {
|
|
129
|
-
display: none !important;
|
|
130
|
-
}
|
|
131
|
-
.affix {
|
|
132
|
-
position: fixed;
|
|
133
|
-
}
|
|
134
|
-
.rotate90 {
|
|
135
|
-
transform: rotate(90deg);
|
|
136
|
-
}
|
|
137
|
-
.rotate180 {
|
|
138
|
-
transform: rotate(180deg);
|
|
139
|
-
}
|
|
140
|
-
.rotate270 {
|
|
141
|
-
transform: rotate(270deg);
|
|
142
|
-
}
|
|
143
|
-
.rotate-90 {
|
|
144
|
-
transform: rotate(-90deg);
|
|
145
|
-
}
|
|
1
|
+
.d-inline-block{display:inline-block}.d-inline{display:inline}.clearfix:after,.clearfix:before{content:" ";display:table}.clearfix:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right,.pull-xs-right{float:right!important}.pull-left,.pull-xs-left,[dir=rtl] .pull-right,[dir=rtl] .pull-xs-right{float:left!important}[dir=rtl] .pull-left,[dir=rtl] .pull-xs-left{float:right!important}.pull-xs-none{float:none!important}@media (min-width:576px){.pull-sm-left{float:left!important}.pull-sm-right,[dir=rtl] .pull-sm-left{float:right!important}[dir=rtl] .pull-sm-right{float:left!important}.pull-sm-none{float:none!important}}@media (min-width:768px){.pull-md-left{float:left!important}.pull-md-right,[dir=rtl] .pull-md-left{float:right!important}[dir=rtl] .pull-md-right{float:left!important}.pull-md-none{float:none!important}}@media (min-width:992px){.pull-lg-left{float:left!important}.pull-lg-right,[dir=rtl] .pull-lg-left{float:right!important}[dir=rtl] .pull-lg-right{float:left!important}.pull-lg-none{float:none!important}}@media (min-width:1200px){.pull-xl-left{float:left!important}.pull-xl-right,[dir=rtl] .pull-xl-left{float:right!important}[dir=rtl] .pull-xl-right{float:left!important}.pull-xl-none{float:none!important}}.pull-left-single-direction{float:left!important}.pull-right-single-direction{float:right!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{background-color:transparent;border:0;color:transparent;text-shadow:none}.hidden{display:none!important}.affix{position:fixed}.rotate90{transform:rotate(90deg)}.rotate180{transform:rotate(180deg)}.rotate270{transform:rotate(270deg)}.rotate-90{transform:rotate(-90deg)}
|
package/dist/css/wells.css
CHANGED
|
@@ -1,74 +1 @@
|
|
|
1
|
-
.well
|
|
2
|
-
.well-xs {
|
|
3
|
-
min-height: 24px;
|
|
4
|
-
min-height: var(--size-24);
|
|
5
|
-
margin-bottom: 24px;
|
|
6
|
-
margin-bottom: var(--size-24);
|
|
7
|
-
border-radius: 10px;
|
|
8
|
-
border-radius: var(--radius-small);
|
|
9
|
-
border: solid 1px rgba(0,0,0,0.10196);
|
|
10
|
-
border: solid 1px var(--color-border-neutral);
|
|
11
|
-
padding: 24px;
|
|
12
|
-
padding: var(--size-24);
|
|
13
|
-
box-shadow: none;
|
|
14
|
-
}
|
|
15
|
-
@media only screen and (min-width: 576px) {
|
|
16
|
-
.well-sm {
|
|
17
|
-
min-height: 24px;
|
|
18
|
-
min-height: var(--size-24);
|
|
19
|
-
margin-bottom: 24px;
|
|
20
|
-
margin-bottom: var(--size-24);
|
|
21
|
-
border-radius: 10px;
|
|
22
|
-
border-radius: var(--radius-small);
|
|
23
|
-
border: solid 1px rgba(0,0,0,0.10196);
|
|
24
|
-
border: solid 1px var(--color-border-neutral);
|
|
25
|
-
padding: 24px;
|
|
26
|
-
padding: var(--size-24);
|
|
27
|
-
box-shadow: none;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
@media only screen and (min-width: 768px) {
|
|
31
|
-
.well-md {
|
|
32
|
-
min-height: 24px;
|
|
33
|
-
min-height: var(--size-24);
|
|
34
|
-
margin-bottom: 24px;
|
|
35
|
-
margin-bottom: var(--size-24);
|
|
36
|
-
border-radius: 10px;
|
|
37
|
-
border-radius: var(--radius-small);
|
|
38
|
-
border: solid 1px rgba(0,0,0,0.10196);
|
|
39
|
-
border: solid 1px var(--color-border-neutral);
|
|
40
|
-
padding: 24px;
|
|
41
|
-
padding: var(--size-24);
|
|
42
|
-
box-shadow: none;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
@media only screen and (min-width: 992px) {
|
|
46
|
-
.well-lg {
|
|
47
|
-
min-height: 24px;
|
|
48
|
-
min-height: var(--size-24);
|
|
49
|
-
margin-bottom: 24px;
|
|
50
|
-
margin-bottom: var(--size-24);
|
|
51
|
-
border-radius: 10px;
|
|
52
|
-
border-radius: var(--radius-small);
|
|
53
|
-
border: solid 1px rgba(0,0,0,0.10196);
|
|
54
|
-
border: solid 1px var(--color-border-neutral);
|
|
55
|
-
padding: 24px;
|
|
56
|
-
padding: var(--size-24);
|
|
57
|
-
box-shadow: none;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
@media only screen and (min-width: 1200px) {
|
|
61
|
-
.well-xl {
|
|
62
|
-
min-height: 24px;
|
|
63
|
-
min-height: var(--size-24);
|
|
64
|
-
margin-bottom: 24px;
|
|
65
|
-
margin-bottom: var(--size-24);
|
|
66
|
-
border-radius: 10px;
|
|
67
|
-
border-radius: var(--radius-small);
|
|
68
|
-
border: solid 1px rgba(0,0,0,0.10196);
|
|
69
|
-
border: solid 1px var(--color-border-neutral);
|
|
70
|
-
padding: 24px;
|
|
71
|
-
padding: var(--size-24);
|
|
72
|
-
box-shadow: none;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
1
|
+
.well,.well-xs{border:1px solid #0000001a;border:1px solid var(--color-border-neutral);border-radius:10px;border-radius:var(--radius-small);box-shadow:none;margin-bottom:24px;margin-bottom:var(--size-24);min-height:24px;min-height:var(--size-24);padding:24px;padding:var(--size-24)}@media only screen and (min-width:576px){.well-sm{border:1px solid #0000001a;border:1px solid var(--color-border-neutral);border-radius:10px;border-radius:var(--radius-small);box-shadow:none;margin-bottom:24px;margin-bottom:var(--size-24);min-height:24px;min-height:var(--size-24);padding:24px;padding:var(--size-24)}}@media only screen and (min-width:768px){.well-md{border:1px solid #0000001a;border:1px solid var(--color-border-neutral);border-radius:10px;border-radius:var(--radius-small);box-shadow:none;margin-bottom:24px;margin-bottom:var(--size-24);min-height:24px;min-height:var(--size-24);padding:24px;padding:var(--size-24)}}@media only screen and (min-width:992px){.well-lg{border:1px solid #0000001a;border:1px solid var(--color-border-neutral);border-radius:10px;border-radius:var(--radius-small);box-shadow:none;margin-bottom:24px;margin-bottom:var(--size-24);min-height:24px;min-height:var(--size-24);padding:24px;padding:var(--size-24)}}@media only screen and (min-width:1200px){.well-xl{border:1px solid #0000001a;border:1px solid var(--color-border-neutral);border-radius:10px;border-radius:var(--radius-small);box-shadow:none;margin-bottom:24px;margin-bottom:var(--size-24);min-height:24px;min-height:var(--size-24);padding:24px;padding:var(--size-24)}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/neptune-css",
|
|
3
3
|
"description": "Neptune CSS library",
|
|
4
|
-
"version": "0.0.0-experimental-
|
|
4
|
+
"version": "0.0.0-experimental-5405b30",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -28,13 +28,12 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"modern-normalize": "^2.0.0",
|
|
30
30
|
"yargs": "^17.1.1",
|
|
31
|
-
"@transferwise/less-config": "
|
|
31
|
+
"@transferwise/less-config": "3.0.6"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
|
-
"analyze:css-selectors": "node ./scripts/analyze-css-selectors.js",
|
|
38
37
|
"build": "npm-run-all build:*",
|
|
39
38
|
"build:clean": "rm -rf dist",
|
|
40
39
|
"build:copy-assets": "npm-run-all --parallel copy:*",
|
package/src/less/buttons.less
CHANGED
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
.btn-link,
|
|
201
201
|
.btn-accent:not(.disabled, :disabled).btn-priority-3 {
|
|
202
202
|
color: var(--color-content-accent);
|
|
203
|
-
text-decoration:
|
|
203
|
+
text-decoration: @link-decoration;
|
|
204
204
|
border-color: transparent;
|
|
205
205
|
|
|
206
206
|
&,
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
&:not(.disabled, :disabled):hover,
|
|
215
215
|
&:not(.disabled, :disabled):focus-visible {
|
|
216
216
|
color: var(--color-content-accent-hover);
|
|
217
|
-
text-decoration:
|
|
217
|
+
text-decoration: @link-decoration;
|
|
218
218
|
border-color: transparent;
|
|
219
219
|
background-color: transparent;
|
|
220
220
|
}
|
|
@@ -226,15 +226,18 @@
|
|
|
226
226
|
.np-theme-personal & {
|
|
227
227
|
color: var(--color-interactive-primary);
|
|
228
228
|
border-color: transparent;
|
|
229
|
+
text-decoration-thickness: 2px;
|
|
229
230
|
.link-underline();
|
|
230
231
|
|
|
231
232
|
&:not(.disabled, :disabled):hover,
|
|
232
233
|
&:not(.disabled, :disabled):focus-visible {
|
|
233
234
|
color: var(--color-interactive-primary-hover);
|
|
234
235
|
border-color: transparent;
|
|
236
|
+
text-decoration-thickness: 2px;
|
|
235
237
|
}
|
|
236
238
|
|
|
237
239
|
&:not(.disabled, :disabled):active {
|
|
240
|
+
text-decoration-thickness: 2px;
|
|
238
241
|
color: var(--color-interactive-primary-active);
|
|
239
242
|
background-color: var(--color-background-screen-active) !important;
|
|
240
243
|
}
|
|
@@ -249,6 +252,7 @@
|
|
|
249
252
|
text-decoration: underline;
|
|
250
253
|
|
|
251
254
|
.np-theme-personal & {
|
|
255
|
+
text-decoration-thickness: 2px;
|
|
252
256
|
.link-underline();
|
|
253
257
|
}
|
|
254
258
|
}
|
|
@@ -36,9 +36,7 @@
|
|
|
36
36
|
line-height: var(--line-height-body);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.np-theme-personal
|
|
40
|
-
.np-personal--forest-green,
|
|
41
|
-
.np-personal--bright-green {
|
|
39
|
+
.np-theme-personal {
|
|
42
40
|
--font-family-regular: "Inter", sans-serif, helvetica, arial, sans-serif !important;
|
|
43
41
|
|
|
44
42
|
font-family: var(--font-family-regular);
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-console */
|
|
2
|
-
|
|
3
|
-
const fs = require('node:fs');
|
|
4
|
-
const path = require('node:path');
|
|
5
|
-
|
|
6
|
-
const postcss = require('postcss');
|
|
7
|
-
|
|
8
|
-
const root = postcss.parse(fs.readFileSync(path.join(__dirname, '../dist/css/neptune.css')));
|
|
9
|
-
|
|
10
|
-
/** @type {Set<string>} */
|
|
11
|
-
const selectors = new Set();
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @param {postcss.ChildNode} node
|
|
15
|
-
*/
|
|
16
|
-
function visitNode(node) {
|
|
17
|
-
switch (node.type) {
|
|
18
|
-
case 'rule': {
|
|
19
|
-
for (const selector of node.selectors) {
|
|
20
|
-
selectors.add(selector);
|
|
21
|
-
}
|
|
22
|
-
break;
|
|
23
|
-
}
|
|
24
|
-
case 'atrule': {
|
|
25
|
-
for (const childNode of node.nodes) {
|
|
26
|
-
visitNode(childNode);
|
|
27
|
-
}
|
|
28
|
-
break;
|
|
29
|
-
}
|
|
30
|
-
default:
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
for (const node of root.nodes) {
|
|
35
|
-
visitNode(node);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const sortedClassNameSelectors = [...selectors].filter((selector) => selector.includes('.')).sort();
|
|
39
|
-
console.log(JSON.stringify(sortedClassNameSelectors, null, 2));
|