@financial-times/dotcom-ui-base-styles 12.3.0 → 12.3.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/package.json +2 -1
- package/sass/grid/main.scss +22 -0
- package/sass/typography/main.scss +25 -0
- package/sass/util/main.scss +24 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financial-times/dotcom-ui-base-styles",
|
|
3
|
-
"version": "12.3.
|
|
3
|
+
"version": "12.3.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "component.js",
|
|
6
6
|
"browser": "browser.js",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"files": [
|
|
35
35
|
"dist/",
|
|
36
36
|
"src/",
|
|
37
|
+
"sass/",
|
|
37
38
|
"browser.js",
|
|
38
39
|
"component.js",
|
|
39
40
|
"styles.scss"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import '@financial-times/o-grid/main';
|
|
2
|
+
|
|
3
|
+
@mixin dotcomUiGrid {
|
|
4
|
+
@include oGrid($opts: (
|
|
5
|
+
'bleed': true,
|
|
6
|
+
'snappy': true,
|
|
7
|
+
'shuffle-selectors': false,
|
|
8
|
+
'friendly-selectors': false,
|
|
9
|
+
'surface': ('current-layout'),
|
|
10
|
+
'rows': ('compact')
|
|
11
|
+
));
|
|
12
|
+
|
|
13
|
+
// We have disabled "friendly selectors" but output this one as it's useful
|
|
14
|
+
[data-o-grid-colspan~="center"] {
|
|
15
|
+
@include oGridCenter();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@mixin nUiGrid {
|
|
20
|
+
@warn "the nUiGrid mixin has been renamed dotcomUiGrid";
|
|
21
|
+
@include dotcomUiGrid($use-case);
|
|
22
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@import '@financial-times/o-fonts/main';
|
|
2
|
+
@import '@financial-times/o-typography/main';
|
|
3
|
+
|
|
4
|
+
@mixin dotcomUiTypography {
|
|
5
|
+
@include oFonts($opts: (
|
|
6
|
+
'financier-display': (
|
|
7
|
+
('weight': 'regular', 'style': 'normal'),
|
|
8
|
+
('weight': 'bold', 'style': 'normal'),
|
|
9
|
+
('weight': 'medium', 'style': 'normal'),
|
|
10
|
+
),
|
|
11
|
+
'metric': (
|
|
12
|
+
('weight': 'regular', 'style': 'normal'),
|
|
13
|
+
('weight': 'semibold', 'style': 'normal'),
|
|
14
|
+
)
|
|
15
|
+
));
|
|
16
|
+
|
|
17
|
+
a {
|
|
18
|
+
@include oTypographyLink();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin nUiTypography($use-case) {
|
|
23
|
+
@warn "the nUiTypography mixin has been renamed dotcomUiTypography";
|
|
24
|
+
@include dotcomUiTypography($use-case);
|
|
25
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@import '@financial-times/o-normalise/main';
|
|
2
|
+
|
|
3
|
+
@mixin dotcomUiUtil {
|
|
4
|
+
//
|
|
5
|
+
// Display
|
|
6
|
+
//
|
|
7
|
+
.n-ui-hide {
|
|
8
|
+
display: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.no-js .n-ui-hide-no-js,
|
|
12
|
+
.js .n-ui-hide-js,
|
|
13
|
+
.core .n-ui-hide-core,
|
|
14
|
+
.enhanced .n-ui-hide-enhanced,
|
|
15
|
+
.core .o--if-js,
|
|
16
|
+
.enhanced .o--if-no-js {
|
|
17
|
+
display: none !important;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin nUiUtil {
|
|
22
|
+
@warn "the nUiUtil mixin has been renamed dotcomUiUtil";
|
|
23
|
+
@include dotcomUiUtil($use-case);
|
|
24
|
+
}
|