Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge n-ui-foundations into dotcom-ui-base-styles #1062

Merged
merged 274 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
274 commits
Select commit Hold shift + click to select a range
d7accb8
spacing
wheresrhys Feb 22, 2017
de1b13b
Update README.md
wheresrhys Feb 22, 2017
1dec371
Merge pull request #5 from Financial-Times/rhys/docs
wheresrhys Feb 22, 2017
62983e7
moved visualy hidden into mixin
wheresrhys Feb 23, 2017
7aade25
Merge pull request #6 from Financial-Times/rhys/vis-hidden-mixin
wheresrhys Feb 23, 2017
cfd1d9f
Update README.md
wheresrhys Feb 23, 2017
d06ed4a
Update README.md
wheresrhys Feb 23, 2017
e6b399f
Update README.md
wheresrhys Feb 23, 2017
aae2ef4
Merge pull request #7 from Financial-Times/wheresrhys-patch-1
wheresrhys Feb 23, 2017
720f0ba
adding deploy-by-day to n.Makefile
wheresrhys Mar 2, 2017
a0fb2e1
Update README.md
wheresrhys Mar 7, 2017
e719006
Fix specificity accessibility issue
debugwand Mar 8, 2017
da1da9c
Merge pull request #8 from Financial-Times/color-accessibility
debugwand Mar 8, 2017
ff47ec1
Remove old, unused links use-cases
leafrogers Mar 8, 2017
20f4dc4
Merge pull request #9 from Financial-Times/remove-old-links-use-cases
leafrogers Mar 8, 2017
57e5c13
Add experimental BEM modifier for keyboard focussed stuff
leafrogers Mar 8, 2017
e4f9af6
Merge pull request #10 from Financial-Times/add-keyboard-focus-experi…
leafrogers Mar 8, 2017
a9fc58f
focus style links
lc512k Mar 23, 2017
e0c3082
blank space
lc512k Mar 23, 2017
ff0fecb
Update grid gutters - 20px on M, 30px on XL
adgad Mar 28, 2017
ccb604c
Merge pull request #12 from Financial-Times/update-grid-gutters
adgad Mar 28, 2017
e8c5060
Merge pull request #11 from Financial-Times/focus
lc512k Mar 29, 2017
9c4dc6c
outline fix
lc512k Mar 30, 2017
f6cb464
SPACE
lc512k Mar 30, 2017
3c2f271
Updated tools to v20
lc512k Mar 30, 2017
4e49f34
important
lc512k Mar 30, 2017
c9735f0
export IGNORE_ALLY = true
lc512k Mar 30, 2017
70baeae
Merge pull request #13 from Financial-Times/outline
lc512k Mar 30, 2017
0fca347
Make gutters smaller again
adgad Apr 25, 2017
fc395a4
Merge pull request #15 from Financial-Times/smaller-gutters
adgad Apr 26, 2017
4b827c2
Steal ownership
leafrogers Jun 15, 2017
8dc349a
Upgrade to n-gage from n-makefile
leafrogers Jun 16, 2017
09ff818
Ignore node_modules
leafrogers Jun 16, 2017
7aa68cc
Update pa11y ignore var
leafrogers Jun 16, 2017
a579140
Merge pull request #16 from Financial-Times/make-it-so
leafrogers Jun 16, 2017
5321a61
Bump to new Origami major versions
leafrogers May 30, 2017
9bd7960
Migrate to o-colors v4
leafrogers May 30, 2017
bdc319b
Migrate to o-typography v5
leafrogers May 31, 2017
e5ec5c5
Remove deprecated mixin
leafrogers May 31, 2017
e096b6e
Bump o-buttons to v5
leafrogers Jun 2, 2017
1edfabd
Tidy up a warning message a bit
leafrogers Jun 24, 2017
6bbd295
Add missing semicolons
leafrogers Jun 24, 2017
cca9a16
Tidy up Makefile
leafrogers Jun 26, 2017
af357ff
Give package manager files a spring clean
leafrogers Jun 26, 2017
3c06724
Add context to uuid in secrets file
leafrogers Jun 26, 2017
9a0dd5e
Update font-loader.js (#17)
leggsimon Jun 28, 2017
09b6ef8
rerange o-icons
gvonkoss Jun 28, 2017
55088b7
actually rerange o-icons -_-
gvonkoss Jun 28, 2017
490a390
i dont even.
gvonkoss Jun 28, 2017
aba587b
Merge pull request #18 from Financial-Times/v2
gvonkoss Jun 29, 2017
848e222
Update main.scss
lc512k Jun 29, 2017
e660bb3
Update main.scss
lc512k Jun 30, 2017
859f1d6
add abiliity to include perf mark as single component
wheresrhys Jul 4, 2017
f44386b
Merge pull request #20 from Financial-Times/rhys/small-font-loader
wheresrhys Jul 5, 2017
c8f988e
Merge pull request #19 from Financial-Times/remove_outline
lc512k Jul 6, 2017
c278bef
use cookies branch of o-typography
wheresrhys Jul 6, 2017
afd7eae
Merge pull request #23 from Financial-Times/rhys/o-typography-beta
wheresrhys Jul 6, 2017
35ff37d
Update bower.json
wheresrhys Jul 6, 2017
753a932
remove font loader
wheresrhys Jul 10, 2017
bfc1f63
Merge pull request #24 from Financial-Times/rhys/no-loader
wheresrhys Jul 10, 2017
d16dc38
nicer fonts
wheresrhys Jul 10, 2017
ebb8947
Merge pull request #25 from Financial-Times/wheresrhys-patch-2
wheresrhys Jul 11, 2017
8e31eaf
Put o-typography back to silent mode
leafrogers Aug 25, 2017
227d92f
Merge pull request #31 from Financial-Times/silence-o-typography
leafrogers Aug 29, 2017
3413fcc
Remove old o-typography styles
leafrogers Aug 29, 2017
d9c8c17
Merge pull request #32 from Financial-Times/remove-old-o-typog-styles
leafrogers Sep 1, 2017
606b6ce
Smooth out text in macOS Firefox
leafrogers Oct 5, 2017
3e62db6
Fix mistake
leafrogers Oct 6, 2017
d3b55e7
Merge pull request #33 from Financial-Times/smooth-out-firefox-text
leafrogers Oct 6, 2017
d38795f
Make the space linter happy 🖖
leafrogers Nov 1, 2017
87a9a91
Merge pull request #35 from Financial-Times/happy-linter
leafrogers Nov 1, 2017
354afcc
Add createToggler utility
leafrogers Nov 6, 2017
23b74d0
Merge pull request #37 from Financial-Times/add-toggler-util
leafrogers Nov 6, 2017
3ff0689
Tidy up package management files
leafrogers Nov 2, 2017
5c9f24f
Stop outputting human-friendly selectors
leafrogers Nov 2, 2017
6f7d531
Change global spacing unit
leafrogers Nov 2, 2017
1af4980
Use o-normalise
leafrogers Nov 2, 2017
47d9797
Throw if nGetImage is used for icons
leafrogers Nov 2, 2017
92a24ad
Pare down nGetImage (breaking change)
leafrogers Nov 2, 2017
5d46c50
Rename icons folder to images
leafrogers Nov 3, 2017
3cc4087
Use o-utils
leafrogers Nov 3, 2017
f8c5ea0
Tidy up and update documentation
leafrogers Nov 3, 2017
3a62124
Remove mixins that have an o- equivalent (breaking change)
leafrogers Nov 3, 2017
d65c56e
Remove unused rule
leafrogers Nov 3, 2017
ead8467
Use oTypographyLink
leafrogers Nov 3, 2017
372716c
Rename n-util- to n-ui-
leafrogers Nov 3, 2017
8e6dc6c
Merge pull request #36 from Financial-Times/v3
adgad Nov 23, 2017
496d7c5
update style linting
wheresrhys Feb 6, 2018
676d71d
Merge pull request #38 from Financial-Times/lint
wheresrhys Feb 6, 2018
82592f5
Use Browserstack for tests
adgad May 10, 2018
a85bf4f
Merge pull request #39 from Financial-Times/browserstack
adgad May 10, 2018
6af6037
Add browserstack timeouts and use standard polyfill URL
adgad Jun 4, 2018
6ca1993
Merge pull request #40 from Financial-Times/browserstack-timeout
adgad Jun 4, 2018
7f7ef4b
Migrate to circle 2
benbarnett Jul 25, 2018
b89935a
Merge pull request #41 from Financial-Times/circle2-migration
benbarnett Jul 25, 2018
94e80a7
Update ft.yml
sjparkinson Aug 21, 2018
bcc0e45
Enable dependent projects to import n-ui-foundation without applying
gallal Aug 28, 2018
67291eb
Clarify what `n-ui-foundations-is-silent` variable is for
gallal Aug 28, 2018
1f4a0b5
Merge pull request #42 from Financial-Times/AT-2096-add-qualtrics-fee…
gallal Aug 30, 2018
4700438
Update ft.yml
sjparkinson Aug 31, 2018
3059d73
use new o-grid method to skip ie8 feature detects;
wheresrhys Sep 24, 2018
73943fe
Merge pull request #43 from Financial-Times/no-ie8-grid-test
wheresrhys Sep 24, 2018
c68ad48
Security fixes
debugwand Nov 5, 2018
2b1632d
Merge pull request #44 from Financial-Times/security
debugwand Nov 5, 2018
c0a299d
Remove nht and upgrade n-gage
adgad Dec 10, 2018
6e3984d
Merge pull request #45 from Financial-Times/update-nht-deps
adgad Dec 11, 2018
7b1f977
Add renovate.json
renovate-bot Jan 15, 2019
a3a1fa8
🤖 Add Renovate configuration to automatically manage dependencies.
sjparkinson Nov 19, 2018
78d6219
Merge pull request #46 from Financial-Times/renovate/configure
gallal Jan 16, 2019
0351d12
Update dependency chai to v4
renovate-bot Jan 16, 2019
384f1d1
Merge pull request #48 from Financial-Times/renovate-chai-4.x
maxcbc Jan 18, 2019
3de49ff
pins the version of firefox running our browserstack tests
magsallen Feb 12, 2019
1d8a1f9
Update dependency mocha to v6
renovate-bot Feb 18, 2019
74ea534
Unpin Firefox version if Browserstack bug is fixed
Feb 26, 2019
90e94c5
Merge pull request #52 from Financial-Times/browserstack-bug-check
kateloschinina Feb 26, 2019
1c4c24b
Transform: CODEOWNERS
Mar 8, 2019
96f1536
Merge pull request #53 from Financial-Times/2019-03-codeowners
ker-an Mar 18, 2019
5c39bae
Update CODEOWNERS
gallal Mar 19, 2019
9ae25e1
Merge pull request #55 from Financial-Times/remove-gallal-as-codeowner
ker-an Mar 20, 2019
21d8888
Add MetricWeb medium font face.
notlee Mar 28, 2019
52582f2
Merge pull request #56 from Financial-Times/add-metricweb-medium-font…
notlee Mar 28, 2019
df38212
Update dependency @financial-times/n-gage to v3.5.0
renovate-bot Apr 1, 2019
e7846f5
Bump ftdomdelegate
i-like-robots Apr 4, 2019
bceeb62
Merge pull request #57 from Financial-Times/matth/ftdomdelegate-3.0
i-like-robots Apr 5, 2019
a33a99e
Merge pull request #54 from Financial-Times/renovate-next-build-tools
i-like-robots Apr 5, 2019
ff9ae4c
Merge pull request #51 from Financial-Times/renovate-mocha-6.x
i-like-robots Apr 5, 2019
c3d9e37
Transform: Unpin @financial-times/n-gage.
sjparkinson Apr 11, 2019
fb71cf3
Merge pull request #59 from Financial-Times/unpin-ngage-patch
Apr 15, 2019
fe7be30
Add Snyk to app
jenniferemshepherd May 28, 2019
7d445a7
Bump the o-date version
GlynnPhillips May 31, 2019
b0ccd8d
Merge pull request #64 from Financial-Times/o-date-bump
GlynnPhillips Jun 3, 2019
7520693
Support o-date v2 or v3.
notlee Jun 6, 2019
2a94c57
Merge pull request #65 from notlee/patch-1
notlee Jun 7, 2019
2f4f173
Merge pull request #62 from Financial-Times/add-snyk
jenniferemshepherd Jul 1, 2019
2467f92
chore(deps): upgrade bower to ^1.8.8
sjparkinson Jul 17, 2019
f571859
Merge pull request #67 from Financial-Times/bower-1.8.8-upgrade
Jul 17, 2019
cf6960d
move origami imports and main mixin to mixins.scss
apaleslimghost Nov 14, 2019
67085ce
ExPecTEd a NeWLiNe aT THe EnD oF THe FiLe
apaleslimghost Nov 14, 2019
f8e0a88
Merge pull request #70 from Financial-Times/split-mixins
apaleslimghost Nov 15, 2019
6941f45
Update readme with better descriptions for the Sass and JS features p…
i-like-robots Nov 25, 2019
263ca8e
Add script to test Sass build 🐿 v2.12.5
i-like-robots Nov 25, 2019
ba2edce
Upgrade o-grid from v4 to v5 🐿 v2.12.5
i-like-robots Nov 25, 2019
a726cc1
Bump ftdomdelegate from v3 to v4 (no changes required) 🐿 v2.12.5
i-like-robots Nov 25, 2019
5b54bff
Remove unused dependency on o-date 🐿 v2.12.5
i-like-robots Nov 25, 2019
edfa91e
Upgrade o-colors from v4 to v5, update color use-case definitions and…
i-like-robots Nov 25, 2019
a4a7601
Upgrade o-fonts from v3 to v4 and o-typography from v5 to v6 and upda…
i-like-robots Nov 25, 2019
19d2fe6
Bump o-icons dependency from v5 to v6 🐿 v2.12.5
i-like-robots Nov 25, 2019
e5d9d48
Upgrade o-normalise from v1 to v2 and update integration to use prima…
i-like-robots Nov 25, 2019
9d69de7
Bump o-visual-effects from v2 to v3 (no changes required) 🐿 v2.12.5
i-like-robots Nov 25, 2019
5da702d
Remove unnecessary origami component bower resolutions 🐿 v2.12.5
i-like-robots Nov 25, 2019
8a94c77
Remove unused .n-ui-text- class names 🐿 v2.12.5
i-like-robots Nov 25, 2019
9da6899
Remove old deprecated utility mixins 🐿 v2.12.5
i-like-robots Nov 25, 2019
b96f019
Remove getColor() and getColorFor() Sass functions in favour of using…
i-like-robots Nov 25, 2019
75389aa
Merge pull request #71 from Financial-Times/matth/version-4
i-like-robots Nov 25, 2019
23ed7b0
Remove all color use cases in favour of using those configured upstre…
i-like-robots Nov 25, 2019
1aa2e1f
Merge pull request #72 from Financial-Times/matth/no-color-use-cases
i-like-robots Nov 25, 2019
937d241
Update o-grid to latest patch release
i-like-robots Dec 6, 2019
abca510
Adding github settings.yml
edds Dec 30, 2019
39337e2
Merge pull request #73 from Financial-Times/github-settings
edds Jan 21, 2020
32435a5
Adding a new financier weight (medium) 🐿 v2.12.6
chivchila Apr 3, 2020
76cfb40
Removing Metric medium font 🐿 v2.12.6
chivchila Apr 3, 2020
dbc4b47
Merge pull request #76 from Financial-Times/add_new_weight
chivchila Apr 22, 2020
139906c
Update CODEOWNERS to @Financial-Times/platforms team
andygout May 6, 2020
0fa2952
Merge pull request #77 from Financial-Times/update-codeowners
andygout May 7, 2020
7f1341e
Do not output a snappy grid by default.
notlee May 18, 2020
f0a8d1c
Revise migration guide to reflect existing v5 release
andygout Jun 4, 2020
9919e52
Merge pull request #79 from Financial-Times/remove-forced-snappy-grid
andygout Jun 4, 2020
4d21246
Upgrade README v5 to v6 migration guide
andygout Jul 7, 2020
cd21742
Merge pull request #83 from Financial-Times/update-readme-v5-to-v6-mi…
andygout Jul 7, 2020
758528d
Remove unused CircleCI Lambda Docker container
andygout Sep 23, 2020
a4e973a
Merge pull request #84 from Financial-Times/remove-unused-circle-ci-l…
andygout Sep 23, 2020
d29d99a
Upgrade Node to v14.11
andygout Sep 23, 2020
6f3b5fd
Merge pull request #85 from Financial-Times/upgrade-node-to-v14
andygout Sep 30, 2020
484b89d
Use Node v12
andygout Oct 2, 2020
2c57b9b
Merge pull request #87 from Financial-Times/use-node-v12
andygout Oct 2, 2020
c12eafe
Amend CircleCI Docker image Node version
andygout Oct 26, 2020
19b8aea
Merge pull request #88 from Financial-Times/amend-circleci-docker-ima…
andygout Oct 26, 2020
633deb6
circelci config to wait on approval on renovate and nori
emortong Nov 3, 2020
fab42c5
Merge pull request #89 from Financial-Times/nori/CPP-298-renovate-nor…
emortong Nov 9, 2020
126defa
Make CircleCI container config references version-agnostic
andygout Nov 24, 2020
2c0af5e
Merge pull request #91 from Financial-Times/nori/revise-circle-ci-doc…
andygout Nov 24, 2020
ca2ab9d
Set chai + mocha as devDependencies (i.e. not dependencies)
andygout Dec 4, 2020
7d9e03b
Merge pull request #93 from Financial-Times/set-chai-mocha-as-dev-dep…
andygout Dec 4, 2020
6426057
removed references to master and replace them with main or HEAD
emortong Feb 4, 2021
9deafe2
Merge pull request #94 from Financial-Times/nori/CPP-442-master-to-main
emortong Feb 4, 2021
52d94d9
Update n-gage and add npm lockfile
ivomurrell Aug 2, 2021
54beda4
Merge pull request #98 from Financial-Times/nori/add-package-lock
ivomurrell Aug 4, 2021
1d4c118
Update to npm 7 and fix peer dependency conflicts
ivomurrell Aug 10, 2021
61bfaf8
Add tooling changes for npm 7 upgrade
ivomurrell Aug 17, 2021
9786c2b
Merge pull request #104 from Financial-Times/npm7
ivomurrell Aug 24, 2021
2cf1f66
using renovate-config-next-beta
emortong Sep 13, 2021
d8ecf8f
Merge pull request #108 from Financial-Times/nori/use-renovate-config…
emortong Sep 13, 2021
4dbf8c2
Don't enforce npm 7 if installing as a dependency
ivomurrell Sep 27, 2021
a7d8760
Merge pull request #109 from Financial-Times/nori/npm7-loosen
ivomurrell Oct 4, 2021
2865642
Update docker image to cimg/node*
serena97 Nov 19, 2021
87e137a
Merge pull request #117 from Financial-Times/nori/CPP-642-circleci-do…
serena97 Dec 7, 2021
f0e921a
bower to npm migration
emortong Dec 9, 2021
0bb198a
fix failing test by including node_modules in karma.conf
emortong Dec 9, 2021
baa9bef
delete resolution-buster file
emortong Dec 13, 2021
8d9cabc
Merge pull request #119 from Financial-Times/bower-to-npm-migration
emortong Dec 13, 2021
1c8c8d8
add ftdomdelegate and superstore
emortong Dec 13, 2021
ceba96b
Merge pull request #120 from Financial-Times/bower-to-npm-migration
emortong Dec 13, 2021
ff3118a
Improve compatibility of check-engines guard
ivomurrell Dec 14, 2021
34d8659
Allow npm 8 to be used for project.
ivomurrell Dec 14, 2021
8afb640
Merge pull request #121 from Financial-Times/fix-engines
ivomurrell Dec 14, 2021
e3bfea5
moving origami components to peer and dev deps
leannecornish-ft Jan 27, 2022
164bfa0
Merge pull request #122 from Financial-Times/cpp-748-origami-peer-deps
leannecornish-ft Jan 28, 2022
c87ea3a
Delete deps that were only being used transitively
ivomurrell Feb 21, 2022
8eae9cf
Merge pull request #139 from Financial-Times/delete-transitive-deps
ivomurrell Feb 22, 2022
d363145
add npm-publish-token context to circleci config
serena97 Mar 11, 2022
cf45576
Merge pull request #143 from Financial-Times/nori/add-context-npm-pub…
leannecornish-ft Mar 14, 2022
d99ad5a
removed o-assets-global-path referece
diegoFernandoMauroFT Apr 19, 2022
3616976
Merge pull request #145 from Financial-Times/CPP-827-migrate-origami-…
diegoFernandoMauroFT Apr 20, 2022
bcdbd52
Apply workflows filtering for scheduled nightly pipeline
serena97 Jun 13, 2022
bffa050
Merge pull request #146 from Financial-Times/nori/scheduled-pipeline
serena97 Jun 15, 2022
a5e63d9
Update to node 16 and test node 14 in the CI
ivomurrell Jun 27, 2022
f6e73c0
Replace broken install-npm job in CircleCI config
ivomurrell Jun 27, 2022
e126bff
Update Origami components
kavanagh Oct 20, 2022
1102b17
Merge pull request #149 from Financial-Times/lk/bump-origami
kavanagh Oct 20, 2022
1f5112e
Merge pull request #147 from Financial-Times/upgrade-node
kavanagh Oct 21, 2022
24c6cc3
Drop Node.js 14 support
rowanmanning Apr 17, 2023
8d8f8e7
Merge pull request #163 from Financial-Times/drop-node-14
rowanmanning Apr 18, 2023
751afab
chore: update to node 18
ivomurrell Jun 14, 2023
3fe35c4
ci: remove step to install npm 8
ivomurrell Jun 14, 2023
2269b98
Merge pull request #165 from Financial-Times/nori/upgrade-node
joelcarr Jun 30, 2023
684b951
Remove polyfill.io from Karma config
rowanmanning Jun 26, 2024
f877a9e
Merge pull request #169 from Financial-Times/remove-polyfill-1
rowanmanning Jun 26, 2024
a1cc12f
backstage: remove .github/settings.yml
apaleslimghost Jul 15, 2024
768561f
refactor: don't duplicate the o-normalise helpers
apaleslimghost Sep 9, 2024
afb9805
test: don't test on ie11
apaleslimghost Sep 9, 2024
c7ef340
Merge pull request #170 from Financial-Times/nori/delete-settings-yml
apaleslimghost Sep 9, 2024
9312e23
Merge pull request #171 from Financial-Times/normalise-helpers
apaleslimghost Sep 9, 2024
76d59cc
feat!: remove unused legacy n-ui-configured variable
apaleslimghost Sep 9, 2024
4b9e7ea
Merge pull request #175 from Financial-Times/apaleslimghost-patch-2
apaleslimghost Sep 9, 2024
bda88de
feat!: remove image mixin
apaleslimghost Sep 9, 2024
0275139
Merge pull request #172 from Financial-Times/remove-image-mixin
apaleslimghost Sep 9, 2024
93a1073
feat!: remove $spacing-unit
apaleslimghost Sep 9, 2024
01a1591
Merge pull request #173 from Financial-Times/apaleslimghost-patch-1
apaleslimghost Sep 9, 2024
ccdf1ff
feat!: remove unused nUiStylesheet mixins
apaleslimghost Sep 9, 2024
176933a
Merge pull request #174 from Financial-Times/remove-code-splitting-mi…
apaleslimghost Sep 9, 2024
3dd498e
feat!: remove default html font size
apaleslimghost Sep 10, 2024
326c2bd
Merge pull request #176 from Financial-Times/apaleslimghost-patch-1
apaleslimghost Sep 10, 2024
7214949
feat!: remove unused javascript utils
apaleslimghost Sep 10, 2024
06f6d88
feat: add deprecation warning for remaining javascript utils
apaleslimghost Sep 10, 2024
14c3938
test: remove javascript utils tests for deleted utils
apaleslimghost Sep 10, 2024
3f9038e
build: disable eslint no-console rule
apaleslimghost Sep 10, 2024
0f78014
build: remove karma and associated npm packages
apaleslimghost Sep 10, 2024
a59d1c4
Merge pull request #177 from Financial-Times/deprecate-javascript
apaleslimghost Sep 12, 2024
24042eb
chore: remove all non-sass files
apaleslimghost Sep 16, 2024
95d5232
Merge branch 'base-styles' of ../n-ui-foundations into ui-foundations…
apaleslimghost Jan 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions packages/dotcom-ui-base-styles/sass/_mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Primitives
@import 'grid/main';
@import 'typography/main';
@import 'util/main';
@import '@financial-times/o-icons/main';
@import '@financial-times/o-colors/main';
@import '@financial-times/o-normalise/main';
@import '@financial-times/o-visual-effects/main';

@mixin nUiFoundations {
@include oNormalise;
@include nUiGrid;
@include nUiTypography;
@include nUiUtil;
}
31 changes: 31 additions & 0 deletions packages/dotcom-ui-base-styles/sass/grid/_mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@mixin _nUiGridOffsetRules($layout, $mode, $columns) {
@if $mode == offset {
@include oGridOffset($columns);
} @else if $mode == pull {
@include oGridPull($columns);
} @else if $mode == push {
@include oGridPush($columns);
}
}

/// Grid column offset
/// @param {Null|String} $layout-name - S to XL or null
/// @param {Number} $columns - 1 to 12
/// @param {String} $mode - offset, push or pull
@mixin nUiGridOffset($layout-name: null, $columns: 1, $mode: offset) {
$selector: $mode + $columns;

@if $layout-name {
$selector: $layout-name + $selector;
}

[data-o-grid-colspan~="#{$selector}"] {
@if $layout-name {
@include oGridRespondTo($layout-name) {
@include _nUiGridOffsetRules($layout-name, $mode, $columns);
}
} @else {
@include _nUiGridOffsetRules($layout-name, $mode, $columns);
}
}
}
18 changes: 18 additions & 0 deletions packages/dotcom-ui-base-styles/sass/grid/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@import '@financial-times/o-grid/main';
@import 'mixins';

@mixin nUiGrid {
@include oGrid($opts: (
'bleed': true,
'snappy': true,
'shuffle-selectors': false,
'friendly-selectors': false,
'surface': ('current-layout'),
'rows': ('compact')
));

// We have disabled "friendly selectors" but output this one as it's useful
[data-o-grid-colspan~="center"] {
@include oGridCenter();
}
}
16 changes: 16 additions & 0 deletions packages/dotcom-ui-base-styles/sass/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*

This includes all the basic Origami styles and mixins you can
expect to be available when a page uses n-ui

*/

@import 'mixins';

$n-ui-foundations-is-silent: false !default; // 'silent' means don't apply styles
$n-ui-foundations-applied: false !default;

@if $n-ui-foundations-applied == false and $n-ui-foundations-is-silent == false {
$n-ui-foundations-applied: true;
@include nUiFoundations;
}
20 changes: 20 additions & 0 deletions packages/dotcom-ui-base-styles/sass/typography/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@import '@financial-times/o-fonts/main';
@import '@financial-times/o-typography/main';

@mixin nUiTypography {
@include oFonts($opts: (
'financier-display': (
('weight': 'regular', 'style': 'normal'),
('weight': 'bold', 'style': 'normal'),
('weight': 'medium', 'style': 'normal'),
),
'metric': (
('weight': 'regular', 'style': 'normal'),
('weight': 'semibold', 'style': 'normal'),
)
));

a {
@include oTypographyLink();
}
}
39 changes: 39 additions & 0 deletions packages/dotcom-ui-base-styles/sass/util/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# n-ui-foundations utilities

Utility HTML classes for FT.com.

## Usage

### Sass

This module is bundled by default and cannot be configured.

### HTML

#### Layout

#### Display

##### `.n-ui-hide`

Hide an element.

##### `.n-ui-hide@screen`

Hide an element for screens.

##### `.n-ui-hide@print`

Hide an element for print.

##### `.n-ui-hide-enhanced`

Hide an element in the enhanced experience.

##### `.n-ui-hide-core`

Hide an element in the core experience.

#### o-normalise

All of [o-normalise’s helpers](https://github.com/Financial-Times/o-normalise/blob/v1.4.2/main.scss#L12) are included in the output of nUiUtil.
31 changes: 31 additions & 0 deletions packages/dotcom-ui-base-styles/sass/util/_mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
////
/// @group n-ui-foundations mixins
////

/// Basis of n-ui z-indexes
/// @type Number
$n-ui-z-index-basis: 100;

/// Ordered list of z-indexes use cases
/// @type List
$n-ui-z-index-order: (
'welcome',
'meganav',
'sticky-header',
'drawer',
'typeahead',
'overlay',
'notification'
);

@mixin nUiZIndexFor($use-case) {
// scss-lint:disable ImportantRule
$index: index($n-ui-z-index-order, $use-case);

@if $index {
z-index: $n-ui-z-index-basis + $index !important;
} @else {
@warn 'z-index for use case "#{$use-case}" not found.';
}
// scss-lint:enable ImportantRule
}
40 changes: 40 additions & 0 deletions packages/dotcom-ui-base-styles/sass/util/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
@import '@financial-times/o-normalise/main';
@import 'mixins';

//BREAKING CHANGE: .n-ui-clearfix -> .o-normalise-clearfix
//BREAKING CHANGE: .n-ui-visually-hidden -> .o-normalise-visually-hidden
//BREAKING CHANGE: Any remaining instances of n-util- -> n-ui-

@mixin nUiUtil {

//
// Display
//
.n-ui-hide {
display: none;
}

@media screen {
/* stylelint-disable */
.n-ui-hide\@screen {
/* stylelint-enable */
display: none;
}

}

@media print {
/* stylelint-disable */
.n-ui-hide\@print {
/* stylelint-enable */
display: none;
}
}

.no-js .n-ui-hide-no-js,
.js .n-ui-hide-js,
.core .n-ui-hide-core,
.enhanced .n-ui-hide-enhanced {
display: none;
}
}