@eeacms/volto-eea-design-system 0.2.4 → 0.3.0

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +40 -1
  2. package/package.json +1 -1
  3. package/src/semantic.less +2 -2
  4. package/src/ui/Callout/Callout.jsx +12 -0
  5. package/src/ui/Callout/Callout.stories.jsx +42 -0
  6. package/src/ui/{Pullquote/Pullquote.jsx → Quote/Quote.jsx} +9 -9
  7. package/src/ui/{Pullquote/Pullquote.stories.jsx → Quote/Quote.stories.jsx} +18 -18
  8. package/src/ui/{Testimonial → Quote/Testimonial}/Testimonial.jsx +10 -11
  9. package/src/ui/{Testimonial → Quote/Testimonial}/Testimonial.stories.jsx +17 -8
  10. package/src/ui/index.js +3 -3
  11. package/theme/theme.config +1 -1
  12. package/theme/themes/eea/collections/table.overrides +48 -0
  13. package/theme/themes/eea/collections/table.variables +16 -0
  14. package/theme/themes/eea/extras/avatar.variables +28 -0
  15. package/theme/themes/eea/extras/callout.less +43 -0
  16. package/theme/themes/eea/extras/callout.variables +19 -0
  17. package/theme/themes/eea/extras/{pullquote.less → quote.less} +20 -20
  18. package/theme/themes/eea/extras/quote.variables +34 -0
  19. package/theme/themes/eea/extras/testimonial.less +46 -6
  20. package/theme/themes/eea/extras/testimonial.variables +14 -6
  21. package/theme/themes/eea/globals/site.variables +2 -0
  22. package/theme/themes/eea/modules/accordion.variables +2 -2
  23. package/theme/themes/eea/tokens/fonts.less +38 -0
  24. package/theme/themes/eea/tokens/sizes.less +17 -0
  25. package/theme/themes/eea/tokens/tokens.less +2 -0
  26. package/src/ui/Blockquote/Blockquote.jsx +0 -16
  27. package/src/ui/Blockquote/Blockquote.stories.jsx +0 -48
  28. package/theme/themes/eea/extras/blockquote.less +0 -92
  29. package/theme/themes/eea/extras/blockquote.variables +0 -35
  30. package/theme/themes/eea/extras/pullquote.variables +0 -34
package/CHANGELOG.md CHANGED
@@ -4,8 +4,48 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [0.3.0](https://github.com/eea/volto-eea-design-system/compare/0.2.4...0.3.0)
8
+
9
+ - [R2] Quote [`#158`](https://github.com/eea/volto-eea-design-system/pull/158)
10
+ - [R2] Refactor table [`#159`](https://github.com/eea/volto-eea-design-system/pull/159)
11
+ - Release 0.3.0 [`8724b28`](https://github.com/eea/volto-eea-design-system/commit/8724b2809027b2e359dcd64e418a33cade4ad487)
12
+ - Autobuild of docusaurus docs [`368a09d`](https://github.com/eea/volto-eea-design-system/commit/368a09de4885a7ce01e238c37d48db6a13af64e4)
13
+ - feat(callout): Align the Callout component with Volto slate component [`e9343ff`](https://github.com/eea/volto-eea-design-system/commit/e9343ff7008cd3d60700929e8861c7bdd06df4d3)
14
+ - Autobuild of docusaurus docs [`cabb7a5`](https://github.com/eea/volto-eea-design-system/commit/cabb7a55c655e6fa5669a6ce904da46290e31f55)
15
+ - Autobuild of docusaurus docs [`aaadafd`](https://github.com/eea/volto-eea-design-system/commit/aaadafd9844c79a2323718f3392173fe6d6da352)
16
+ - Autobuild of docusaurus docs [`33eff2e`](https://github.com/eea/volto-eea-design-system/commit/33eff2e246328d2a0f2afb56656719a3dfaed531)
17
+ - feature(tokens): added tokens folder for design tokens we can use in the system [`a542172`](https://github.com/eea/volto-eea-design-system/commit/a542172cfd84dde0286b4332e66a617a1f3d13bf)
18
+ - Autobuild of docusaurus docs [`081ad83`](https://github.com/eea/volto-eea-design-system/commit/081ad832ecedee400779b8023d2e5eab8e67639e)
19
+ - fix(accordion): Fix accordion active title color [`57af165`](https://github.com/eea/volto-eea-design-system/commit/57af1650a0b830e01c79e21b130784190defbcc0)
20
+ - refactor(quote): update action name to match the functionality [`caf2e35`](https://github.com/eea/volto-eea-design-system/commit/caf2e359cada8056f280d2cd137776d64f82a2af)
21
+ - refactor(table): add borders to responsive table with celled attribute [`8a71a67`](https://github.com/eea/volto-eea-design-system/commit/8a71a670fb34a11fbe4cef7365b91c6be84b5b54)
22
+ - change(table): make use of headerSortableWhiteSpace variable [`fd836fb`](https://github.com/eea/volto-eea-design-system/commit/fd836fbe82e92864a628bf4d9d3093674890f722)
23
+ - fix(table): tweak responsive table for extra long headers [`7f9f9e2`](https://github.com/eea/volto-eea-design-system/commit/7f9f9e25f7c57d4bf7edd2546a7579b892867b5c)
24
+ - change(table): use the @mobileLandscapeBreakpoint for max 480px media query [`90880ab`](https://github.com/eea/volto-eea-design-system/commit/90880ab324b6a66c7741819dd0d913504751454f)
25
+ - refactor(Table):wrap table with semantic ui container [`24ac2bb`](https://github.com/eea/volto-eea-design-system/commit/24ac2bb4813df33547f684220e1e12af5ca6df7e)
26
+ - refactor(Callout): wrap story with semantic ui container [`ead362d`](https://github.com/eea/volto-eea-design-system/commit/ead362d88f43fa1380e8be5481cbc38c055060f8)
27
+ - refactor(Table):add responsive mobile table story and styles [`aed69e6`](https://github.com/eea/volto-eea-design-system/commit/aed69e698e5b89e33a4c331570755934267492af)
28
+ - refactor(testimonial): readjust rounded card [`b419334`](https://github.com/eea/volto-eea-design-system/commit/b41933417a44dabcf829a3346d91c142dd6472d3)
29
+ - fix(quote): fix color and padding issue [`310d6b3`](https://github.com/eea/volto-eea-design-system/commit/310d6b37bdf5df3da2d2103eab8f4fa5020c95ab)
30
+ - feat(Callout):create Callout component with Blockquote style [`3d486b1`](https://github.com/eea/volto-eea-design-system/commit/3d486b1c2c7f74ee8bc4b3a5e1bf3993ac98f6dd)
31
+ - refactor(Quote):rename Quote.Metadata to Quote.SourceInfo [`dfae8b1`](https://github.com/eea/volto-eea-design-system/commit/dfae8b1c147659d24dfd1a13fb4c3098e5865a12)
32
+ - refactor(Quote):move Testimonial component under Quote folder [`e2467c2`](https://github.com/eea/volto-eea-design-system/commit/e2467c2089577d67ef5689a2507cb860a837f6a0)
33
+ - refactor(Quote):rename pullquote to Quote in Testimonial [`f54da19`](https://github.com/eea/volto-eea-design-system/commit/f54da192ab3b0823b0d6c77254f8954ab94506c8)
34
+ - refactor(Quote): rename Author to Source [`6d400f6`](https://github.com/eea/volto-eea-design-system/commit/6d400f6a0ec0062f58782b4e170f4a1a9a31c56c)
35
+ - refactor(Quote):rename Pullquote component to Quote [`9384a0c`](https://github.com/eea/volto-eea-design-system/commit/9384a0c129b8e4eed637e51a9669c41d8ade69d4)
36
+ - refactor(Testimonial): prettier changes [`904594b`](https://github.com/eea/volto-eea-design-system/commit/904594b9814c3d8900656f0e4c8d3a99481efe94)
37
+ - refactor(Testimonial): change card class name [`e995c32`](https://github.com/eea/volto-eea-design-system/commit/e995c32bc70780e4315c4dc02d6b6fa9a0c5b29d)
38
+ - refactor(Testimonial):minor storybook bug fix [`7b6d128`](https://github.com/eea/volto-eea-design-system/commit/7b6d128c6be3b2481d4765cebca82af6cafbea05)
39
+ - perf(lint): fix [`f2ef3ab`](https://github.com/eea/volto-eea-design-system/commit/f2ef3abb9daa8fee3dd103adc14246c412951427)
40
+ - refactor(testimonial): adjust to volto design | fix avatar image size [`546070e`](https://github.com/eea/volto-eea-design-system/commit/546070e494ad187c50913b5742dab49ce5475a84)
41
+ - fix(testimonial): remove info arguement [`9593d95`](https://github.com/eea/volto-eea-design-system/commit/9593d95f6352fb5aea48c3611b27b4bc6a9ae7e4)
42
+ - fix(testimonial): fix storybook arg names [`b9df52f`](https://github.com/eea/volto-eea-design-system/commit/b9df52f7151ef759fd672d365b2d74f6db535ad0)
43
+
7
44
  #### [0.2.4](https://github.com/eea/volto-eea-design-system/compare/0.2.3...0.2.4)
8
45
 
46
+ > 13 May 2022
47
+
48
+ - Add storybook/docusaurus on PRs Refs #148775 [`#157`](https://github.com/eea/volto-eea-design-system/pull/157)
9
49
  - Autobuild of docusaurus docs [`18c8b77`](https://github.com/eea/volto-eea-design-system/commit/18c8b77b6d0677f304a83965ed4d6849f75bc179)
10
50
  - change(header): wrap header globalnav links useful for editing section [`10d4f56`](https://github.com/eea/volto-eea-design-system/commit/10d4f56624510eb63155ab330dcf0475b0728ed4)
11
51
  - Autobuild of docusaurus docs [`5f4c47c`](https://github.com/eea/volto-eea-design-system/commit/5f4c47c93bf102fb198efc97e9f2cc60c162d0e3)
@@ -25,7 +65,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
25
65
  - change(breakpoints): added also contentBreakpoint for backward compatibility [`b6c9212`](https://github.com/eea/volto-eea-design-system/commit/b6c9212378a37639e6154d8d8e837169bcbac8b5)
26
66
  - Autobuild of docusaurus docs [`7928530`](https://github.com/eea/volto-eea-design-system/commit/792853064185f960f3f0a83a70b626b8bfc93d39)
27
67
  - change(breakpoints): restore Semantic UI breakpoints, adding extra needed values [`e7f5b1e`](https://github.com/eea/volto-eea-design-system/commit/e7f5b1e4fac6453458078bb02cdc66c328843b59)
28
- - Add storybook/docusaurus on PRs Refs #148775 [`0bab90a`](https://github.com/eea/volto-eea-design-system/commit/0bab90ad27d0ba27bd48399f1cab131a8bd88d58)
29
68
 
30
69
  #### [0.2.3](https://github.com/eea/volto-eea-design-system/compare/0.2.2...0.2.3)
31
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "0.2.4",
3
+ "version": "0.3.0",
4
4
  "description": "@eeacms/volto-eea-design-system: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/src/semantic.less CHANGED
@@ -202,11 +202,11 @@
202
202
 
203
203
  // EEA Design custom components
204
204
  & {
205
- @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/blockquote';
205
+ @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/callout';
206
206
  }
207
207
 
208
208
  & {
209
- @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/pullquote';
209
+ @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/quote';
210
210
  }
211
211
 
212
212
  & {
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+
3
+ function Callout({ children, as, bold, ...rest }) {
4
+ const As = as || 'div';
5
+ return (
6
+ <As className="eea callout" {...rest}>
7
+ {bold ? <strong>{children}</strong> : children}
8
+ </As>
9
+ );
10
+ }
11
+
12
+ export default Callout;
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ import { Container } from 'semantic-ui-react';
3
+ import Callout from './Callout';
4
+
5
+ const CITATION =
6
+ 'An interconnected grid will help deliver the ultimate goal of the Energy Union, to make sure affordable, secure and sustainable energy, and also growth across the EU.';
7
+
8
+ export default {
9
+ title: 'Components/Callout',
10
+ component: Callout,
11
+ argTypes: {
12
+ content: {
13
+ name: 'content',
14
+ description: 'Callout content',
15
+ type: { name: 'string', required: true },
16
+ },
17
+ as: {
18
+ name: 'as',
19
+ description: 'HTML tag to be used. Default: blockquote',
20
+ type: { name: 'string', required: false },
21
+ },
22
+ bold: {
23
+ name: 'bold',
24
+ description: 'Bolder text',
25
+ type: { summary: 'boolean' },
26
+ },
27
+ },
28
+ };
29
+
30
+ export const Default = (args) => (
31
+ <Container>
32
+ <Callout as={args.as} bold={args.bold}>
33
+ {args.content}
34
+ </Callout>
35
+ </Container>
36
+ );
37
+
38
+ Default.args = {
39
+ content: CITATION,
40
+ as: 'div',
41
+ bold: false,
42
+ };
@@ -2,21 +2,21 @@ import React from 'react';
2
2
  import { Icon } from 'semantic-ui-react';
3
3
  import PropTypes from 'prop-types';
4
4
 
5
- Pullquote.propTypes = {
5
+ Quote.propTypes = {
6
6
  quote: PropTypes.string,
7
7
  source: PropTypes.string,
8
8
  quotePosition: PropTypes.oneOf(['left', 'right', 'none', 'inherit']),
9
9
  };
10
10
 
11
- function Pullquote({ children, ...rest }) {
11
+ function Quote({ children, ...rest }) {
12
12
  return (
13
- <blockquote className={`eea pullquote ${rest.quotePosition}`}>
13
+ <blockquote className={`eea quote ${rest.quotePosition}`}>
14
14
  <div className="content">{children}</div>
15
15
  </blockquote>
16
16
  );
17
17
  }
18
18
 
19
- Pullquote.Quote = ({ children, as: As, ...rest }) => (
19
+ Quote.Quote = ({ children, as: As, ...rest }) => (
20
20
  <div className="quotes wrapper">
21
21
  <Icon className="ri-double-quotes-l"></Icon>
22
22
  {As ? (
@@ -30,15 +30,15 @@ Pullquote.Quote = ({ children, as: As, ...rest }) => (
30
30
  </div>
31
31
  );
32
32
 
33
- Pullquote.Author = ({ children, ...rest }) => (
34
- <p className="author" {...rest}>
33
+ Quote.Source = ({ children, ...rest }) => (
34
+ <p className="source" {...rest}>
35
35
  {children}
36
36
  </p>
37
37
  );
38
38
 
39
- Pullquote.Metadata = ({ children, ...rest }) => (
40
- <p className="meta" {...rest}>
39
+ Quote.SourceInfo = ({ children, ...rest }) => (
40
+ <p className="info" {...rest}>
41
41
  {children}
42
42
  </p>
43
43
  );
44
- export default Pullquote;
44
+ export default Quote;
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
- import Pullquote from './Pullquote';
2
+ import Quote from './Quote';
3
3
  import { Container } from 'semantic-ui-react';
4
4
 
5
5
  export default {
6
- title: 'Components/Pullquote',
7
- component: Pullquote,
6
+ title: 'Components/Quote',
7
+ component: Quote,
8
8
  argTypes: {
9
9
  quote: {
10
- description: 'Pullquote content',
10
+ description: 'Quote content',
11
11
  type: { name: 'string' },
12
12
  table: {
13
13
  defaultValue: { summary: '""' },
@@ -20,8 +20,8 @@ export default {
20
20
  defaultValue: { summary: '""' },
21
21
  },
22
22
  },
23
- metadata: {
24
- description: 'quote metadata',
23
+ sourceInfo: {
24
+ description: 'quote source info',
25
25
  type: { name: 'string' },
26
26
  table: {
27
27
  defaultValue: { summary: '""' },
@@ -51,11 +51,11 @@ export default {
51
51
  export const Default = (args) => (
52
52
  <Container>
53
53
  <p>{args.content}</p>
54
- <Pullquote quotePosition={args.quotePosition}>
55
- <Pullquote.Quote>{args.quote}</Pullquote.Quote>
56
- <Pullquote.Author>{args.source}</Pullquote.Author>
57
- <Pullquote.Metadata>{args.metadata}</Pullquote.Metadata>
58
- </Pullquote>
54
+ <Quote quotePosition={args.quotePosition}>
55
+ <Quote.Quote>{args.quote}</Quote.Quote>
56
+ <Quote.Source>{args.source}</Quote.Source>
57
+ <Quote.SourceInfo>{args.sourceInfo}</Quote.SourceInfo>
58
+ </Quote>
59
59
  <p>{args.content}</p>
60
60
  <p>{args.content}</p>
61
61
  <p>{args.content}</p>
@@ -68,7 +68,7 @@ Default.args = {
68
68
  quote:
69
69
  'Nulla viverra magna curabitur leo nisl scelerisque. Velit fusce sed sem ut. Molestie fermentum congue nunc cras posuere orci. Duis eu ultrices nisi, est a pellentesque eget tellus mauris. Amet, tortor quis pellentesque suspendisse convallis lacinia. Aliquam.',
70
70
  source: 'Arthur Abbott',
71
- metadata: 'EEA Analyst',
71
+ sourceInfo: 'EEA Analyst',
72
72
  content:
73
73
  'Cursus turpis massa tincidunt dui ut ornare lectus sit amet. Venenatis tellus in metus vulputate eu. Sagittis id consectetur purus ut. Ultricies mi eget mauris pharetra et ultrices. Eu lobortis elementum nibh tellus molestie nunc non blandit massa. Mattis pellentesque id nibh tortor id aliquet. Amet nisl purus in mollis nunc. Quisque non tellus orci ac auctor augue mauris. Faucibus vitae aliquet nec ullamcorper sit amet risus nullam eget.',
74
74
  quotePosition: 'left',
@@ -77,11 +77,11 @@ Default.args = {
77
77
  export const Reversed = (args) => (
78
78
  <Container>
79
79
  <p>{args.content}</p>
80
- <Pullquote quotePosition={args.quotePosition}>
81
- <Pullquote.Author>{args.source}</Pullquote.Author>
82
- <Pullquote.Metadata>{args.metadata}</Pullquote.Metadata>
83
- <Pullquote.Quote>{args.quote}</Pullquote.Quote>
84
- </Pullquote>
80
+ <Quote quotePosition={args.quotePosition}>
81
+ <Quote.Source>{args.source}</Quote.Source>
82
+ <Quote.SourceInfo>{args.sourceInfo}</Quote.SourceInfo>
83
+ <Quote.Quote>{args.quote}</Quote.Quote>
84
+ </Quote>
85
85
  <p>{args.content}</p>
86
86
  <p>{args.content}</p>
87
87
  <p>{args.content}</p>
@@ -94,7 +94,7 @@ Reversed.args = {
94
94
  quote:
95
95
  'Nulla viverra magna curabitur leo nisl scelerisque. Velit fusce sed sem ut. Molestie fermentum congue nunc cras posuere orci. Duis eu ultrices nisi, est a pellentesque eget tellus mauris. Amet, tortor quis pellentesque suspendisse convallis lacinia. Aliquam.',
96
96
  source: 'Arthur Abbott',
97
- metadata: 'EEA Analyst',
97
+ sourceInfo: 'EEA Analyst',
98
98
  content:
99
99
  'Cursus turpis massa tincidunt dui ut ornare lectus sit amet. Venenatis tellus in metus vulputate eu. Sagittis id consectetur purus ut. Ultricies mi eget mauris pharetra et ultrices. Eu lobortis elementum nibh tellus molestie nunc non blandit massa. Mattis pellentesque id nibh tortor id aliquet. Amet nisl purus in mollis nunc. Quisque non tellus orci ac auctor augue mauris. Faucibus vitae aliquet nec ullamcorper sit amet risus nullam eget.',
100
100
  quotePosition: 'left',
@@ -1,13 +1,12 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import Divider from '../Divider/Divider';
3
+ import Divider from '../../Divider/Divider';
4
4
 
5
- import Pullquote from '../Pullquote/Pullquote';
5
+ import Quote from '../Quote';
6
6
  import { Grid, Card, Image } from 'semantic-ui-react';
7
7
 
8
8
  Testimonial.propTypes = {
9
9
  title: PropTypes.string,
10
- info: PropTypes.string,
11
10
  };
12
11
 
13
12
  function Testimonial({ children, ...rest }) {
@@ -22,9 +21,9 @@ function Testimonial({ children, ...rest }) {
22
21
 
23
22
  Testimonial.Avatar = ({ children, ...rest }) => {
24
23
  return (
25
- <Grid.Column mobile={12} tablet={2} computer={2}>
24
+ <Grid.Column mobile={12} tablet={3} computer={2}>
26
25
  <div className="avatar-wrapper">
27
- <Card className={`eea avatar small`} fluid={rest.fluid}>
26
+ <Card className={`eea rounded small`} fluid={rest.fluid}>
28
27
  <Image src={rest.src} wrapped ui={false} alt="card image" />
29
28
  <Card.Content>
30
29
  <Card.Header>{rest.title}</Card.Header>
@@ -38,17 +37,17 @@ Testimonial.Avatar = ({ children, ...rest }) => {
38
37
 
39
38
  Testimonial.Content = ({ children }) => {
40
39
  return (
41
- <Grid.Column mobile={12} tablet={10} computer={10}>
40
+ <Grid.Column mobile={12} tablet={9} computer={10}>
42
41
  <div className="content">{children}</div>
43
42
  </Grid.Column>
44
43
  );
45
44
  };
46
45
 
47
- Testimonial.Title = ({ children }) => <p className="title">{children}</p>;
48
- Testimonial.Pullquote = ({ children, ...rest }) => (
49
- <Pullquote quotePosition="none">
50
- <Pullquote.Quote>{children}</Pullquote.Quote>
51
- </Pullquote>
46
+ Testimonial.Title = ({ children }) => <h3 className="title">{children}</h3>;
47
+ Testimonial.Quote = ({ children, ...rest }) => (
48
+ <Quote quotePosition="none">
49
+ <Quote.Quote>{children}</Quote.Quote>
50
+ </Quote>
52
51
  );
53
52
 
54
53
  export default Testimonial;
@@ -5,7 +5,7 @@ import Testimonial from './Testimonial';
5
5
  import { Container } from 'semantic-ui-react';
6
6
 
7
7
  export default {
8
- title: 'Components/Testimonial',
8
+ title: 'Components/Quote/Testimonial',
9
9
  component: Testimonial,
10
10
  argTypes: {
11
11
  title: {
@@ -15,7 +15,15 @@ export default {
15
15
  type: { summary: 'string' },
16
16
  },
17
17
  },
18
- image: {
18
+ avatartitle: {
19
+ description: 'avatar title',
20
+ type: { summary: 'string' },
21
+ },
22
+ avatarinfo: {
23
+ description: 'avatar metadata',
24
+ type: { summary: 'string' },
25
+ },
26
+ avatarimage: {
19
27
  description: 'testimonial image',
20
28
  table: {
21
29
  defaultValue: { summary: '""' },
@@ -32,13 +40,13 @@ const InlineTemplate = (args) => (
32
40
  <Container>
33
41
  <Testimonial {...args}>
34
42
  <Testimonial.Avatar
35
- src={imgUrl}
36
- title={args.avatarTitle}
37
- description={args.avatarInfo}
43
+ src={args.avatarimage}
44
+ title={args.avatartitle}
45
+ description={args.avatarinfo}
38
46
  ></Testimonial.Avatar>
39
47
  <Testimonial.Content>
40
48
  <Testimonial.Title>{args.title}</Testimonial.Title>
41
- <Testimonial.Pullquote>{args.quote}</Testimonial.Pullquote>
49
+ <Testimonial.Quote>{args.quote}</Testimonial.Quote>
42
50
  </Testimonial.Content>
43
51
  </Testimonial>
44
52
  </Container>
@@ -46,8 +54,9 @@ const InlineTemplate = (args) => (
46
54
 
47
55
  export const Inline = InlineTemplate.bind({});
48
56
  Inline.args = {
49
- avatarTitle: 'Jane Doe',
50
- avatarInfo: 'EEA Analyst',
57
+ avatartitle: 'Jane Doe',
58
+ avatarinfo: 'EEA Analyst',
59
+ avatarimage: imgUrl,
51
60
  title: 'Amet - Lorem ipsum dolor sit amet',
52
61
  quote:
53
62
  'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
package/src/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export Banner from './Banner/Banner';
2
2
 
3
- export Blockquote from './Blockquote/Blockquote';
3
+ export Callout from './Callout/Callout';
4
4
 
5
5
  export Breadcrumbs from './Breadcrumbs/Breadcrumbs';
6
6
 
@@ -16,11 +16,11 @@ export InpageNavigation from './InpageNavigation/InpageNavigation';
16
16
 
17
17
  export Logo from './Logo/Logo';
18
18
 
19
- export Pullquote from './Pullquote/Pullquote';
19
+ export Quote from './Quote/Quote';
20
20
 
21
21
  export Timeline from './Timeline/Timeline';
22
22
 
23
- export Testimonial from './Testimonial/Testimonial';
23
+ export Testimonial from './Quote/Testimonial/Testimonial';
24
24
 
25
25
  export AvatarGrid from './Card/AvatarGrid/AvatarGrid';
26
26
 
@@ -78,7 +78,7 @@
78
78
  @custom : 'eea';
79
79
  /* EEA Design system custom components */
80
80
  @blockquote : 'eea';
81
- @pullquote : 'eea';
81
+ @quote : 'eea';
82
82
  @banner : 'eea';
83
83
  @timeline : 'eea';
84
84
  @footer : 'eea';
@@ -27,4 +27,52 @@
27
27
  text-transform: @headerTextTransform;
28
28
  vertical-align: @headerVerticalAlign;
29
29
  }
30
+
31
+ }
32
+
33
+ // fix hiding of table header on mobile resolutions, by default whitespace is no wrap from table.less
34
+ .ui.sortable.table thead th {
35
+ white-space: @headerSortableWhiteSpace;
36
+ }
37
+
38
+ @media only screen and (max-width: @mobileLandscapeBreakpoint) {
39
+
40
+ .ui.table.responsive {
41
+
42
+ &:not(.unstackable) td:first-child {
43
+ font-weight: @responsiveMobileCellHeaderFontWeight;
44
+ }
45
+
46
+ thead {
47
+ border: none;
48
+ clip: @responsiveMobileCellHeaderClip;
49
+ height: @responsiveMobileHeaderHeight;
50
+ margin: @responsiveMobileHeaderMargin;
51
+ overflow: hidden;
52
+ padding: @responsiveMobileHeaderPadding;
53
+ position: absolute;
54
+ width: @responsiveMobileHeaderWidth;
55
+ }
56
+
57
+ td {
58
+ display: block;
59
+ text-align: @responsiveMobileCellTextAlign;
60
+ clear: both;
61
+
62
+ &::before {
63
+ /*
64
+ * aria-label has no advantage, it won't be read inside a table
65
+ content: attr(aria-label);
66
+ */
67
+ content: attr(data-label);
68
+ float: @responsiveMobileCellDataLabelFloat;
69
+ font-weight: @responsiveMobileCellDataLabelFontWeigth;
70
+ text-align: @responsiveMobileCellDataLabelTextAlign;
71
+ max-width: @responsiveMobileCellDataLabelMaxSize;
72
+ }
73
+
74
+ }
75
+
76
+ }
77
+
30
78
  }
@@ -52,6 +52,7 @@
52
52
  @headerTextTransform: inherit;
53
53
  @headerBoxShadow: none;
54
54
  @headerFontSize: @h5;
55
+ @headerSortableWhiteSpace: normal;
55
56
 
56
57
  /* Table Footer */
57
58
  @footerBoxShadow: none;
@@ -247,3 +248,18 @@
247
248
  @small: 0.9em;
248
249
  @medium: 1em;
249
250
  @large: 1.1em;
251
+
252
+ /* Responsive Table */
253
+ @responsiveMobileCellHeaderFontWeight: @normal;
254
+ @responsiveMobileCellHeaderClip: rect(0 0 0 0);
255
+ @responsiveMobileHeaderHeight: 1px;
256
+ @responsiveMobileHeaderMargin: -1px;
257
+ @responsiveMobileHeaderPadding: 0;
258
+ @responsiveMobileHeaderWidth: 0;
259
+
260
+ @responsiveMobileCellTextAlign: right;
261
+ @responsiveMobileCellDataLabelFloat: left;
262
+ @responsiveMobileCellDataLabelTextAlign: left;
263
+ @responsiveMobileCellDataLabelMaxSize: 50%;
264
+ @responsiveMobileCellDataLabelFontWeigth: @bold;
265
+
@@ -0,0 +1,28 @@
1
+ /*******************************
2
+ Avatar
3
+ *******************************/
4
+
5
+ /* Global */
6
+ @avatarWidth : 100%;
7
+ @avatarWrapperWidth : 100%;
8
+ @avatarWrapperGap : @largeGap;
9
+ @avatarContentWrapperWidth : 100%;
10
+ @avatarImageBorderRadius : 50%;
11
+ @avatarContentTitleMarginBottom : 0;
12
+ @avatarImageWrapperWidth : 100%;
13
+ @avatarImageBackgroundSize : cover;
14
+ @avatarContentTitleFontWeight : @bold;
15
+ @avatarContentTitleFontSize : 1.25rem;
16
+
17
+ /* Big */
18
+ @avatarBigImageHeight : 173px;
19
+ @avatarBigImageWidth : 173px;
20
+ @avatarBigMetadataFontSize : 1.25rem;
21
+ @avatarBigMetadataFontWeight : @normal;
22
+
23
+ /* Small */
24
+ @avatarSmallImageHeight : 135px;
25
+ @avatarSmallImageWidth : 135px;
26
+ @avatarSmallTitleColor : @secondaryColor;
27
+ @avatarSmallMetadataFontSize : 1rem;
28
+ @avatarSmallMetadataFontWeight : 300;
@@ -0,0 +1,43 @@
1
+ @type: 'extra';
2
+ @element: 'callout';
3
+
4
+ @import (multiple) '../../theme.config';
5
+
6
+ /*******************************
7
+ Callout
8
+ *******************************/
9
+
10
+ p.callout,
11
+ blockquote.callout,
12
+ .eea.callout {
13
+ border: @calloutBorder;
14
+ box-shadow: @calloutBoxShadow;
15
+ border-radius: @calloutBorderRadius;
16
+ padding-top: @calloutPadding;
17
+ padding-bottom: @calloutPadding;
18
+ border-left: @mobileCalloutBorderLeft;
19
+ border-right: @calloutBorder;
20
+ border-top: @calloutBorder;
21
+ border-bottom: @calloutBorder;
22
+ color: @quoteColor;
23
+ font-size: @mobileQuoteFontSize;
24
+ }
25
+
26
+ @media only screen and (min-width: @tabletBreakpoint) {
27
+ p.callout,
28
+ blockquote.callout,
29
+ .eea.callout {
30
+ border-left: @tabletCalloutBorderLeft;
31
+ font-size: @tabletQuoteFontSize;
32
+ }
33
+ }
34
+
35
+ @media only screen and (min-width: @computerBreakpoint) {
36
+ p.callout,
37
+ blockquote.callout,
38
+ .eea.callout {
39
+ font-size: @computerQuoteFontSize;
40
+ }
41
+ }
42
+
43
+ .loadUIOverrides();
@@ -0,0 +1,19 @@
1
+ /*******************************
2
+ Callout
3
+ *******************************/
4
+ /* Body */
5
+ @mobileCalloutBorderLeft : @5px solid @secondaryColor;
6
+ @tabletCalloutBorderLeft : @10px solid @secondaryColor;
7
+
8
+ /* Text */
9
+ @quoteColor : @japaneseIndigo;
10
+ @mobileQuoteFontSize : 1rem;
11
+ @tabletQuoteFontSize : @h6;
12
+ @computerQuoteFontSize : @h5;
13
+ @quoteFontWeight : 400;
14
+
15
+ /* Layout */
16
+ @calloutBorder : none;
17
+ @calloutBoxShadow : none;
18
+ @calloutBorderRadius : 0;
19
+ @calloutPadding : 0;
@@ -1,15 +1,15 @@
1
1
  @type: 'extra';
2
- @element: 'pullquote';
2
+ @element: 'quote';
3
3
 
4
4
  @import (multiple) '../../theme.config';
5
5
 
6
6
  /*******************************
7
- Pullquote
7
+ Quote
8
8
  *******************************/
9
9
 
10
- .eea.pullquote {
11
- padding: @pullquotePadding;
12
- margin: @pullquoteMargin;
10
+ .eea.quote {
11
+ padding: @quotePadding;
12
+ margin: @quoteMargin;
13
13
  word-break: @contentWordBreak;
14
14
  hyphens: @contentWordBreakHyphens;
15
15
 
@@ -36,23 +36,23 @@
36
36
  }
37
37
  }
38
38
 
39
- .author {
40
- color: @authorTextColor;
41
- text-align: @authorTextAlign;
42
- font-weight: @authorFontWeight;
43
- font-size: @authorFontSize;
44
- margin: @authorMargin;
39
+ .source {
40
+ color: @sourceTextColor;
41
+ text-align: @sourceTextAlign;
42
+ font-weight: @sourceFontWeight;
43
+ font-size: @sourceFontSize;
44
+ margin: @sourceMargin;
45
45
  }
46
46
 
47
- .meta {
48
- text-align: @metaTextAlign;
49
- font-weight: @metaFontWeight;
50
- font-size: @metaFontSize;
47
+ .info {
48
+ text-align: @sourceInfoTextAlign;
49
+ font-weight: @sourceInfoFontWeight;
50
+ font-size: @sourceInfoFontSize;
51
51
  }
52
52
  }
53
53
 
54
54
  @media only screen and (min-width: @tabletBreakpoint) {
55
- .eea.pullquote {
55
+ .eea.quote {
56
56
  .quotes.wrapper {
57
57
  .quote {
58
58
  padding: @tabletQuotePadding;
@@ -63,14 +63,14 @@
63
63
  }
64
64
  }
65
65
  }
66
- .eea.pullquote.left {
66
+ .eea.quote.left {
67
67
  width: @maxWidthOnFloat;
68
- padding: @pullquoteFloatLeftPadding;
68
+ padding: @quoteFloatLeftPadding;
69
69
  float: left;
70
70
  }
71
- .eea.pullquote.right {
71
+ .eea.quote.right {
72
72
  width: @maxWidthOnFloat;
73
- padding: @pullquoteFloatRightPadding;
73
+ padding: @quoteFloatRightPadding;
74
74
  float: right;
75
75
  }
76
76
  }
@@ -0,0 +1,34 @@
1
+ /*******************************
2
+ Quote
3
+ *******************************/
4
+
5
+ /* Body */
6
+ @quotePadding : @largeGap 0;
7
+ @quoteFloatLeftPadding : @largeGap @hugeGap @largeGap 0;
8
+ @quoteFloatRightPadding : @largeGap 0 @largeGap @hugeGap;
9
+ @quoteMargin : 0;
10
+ @maxWidthOnFloat : 50%;
11
+ @contentWordBreak : break-word;
12
+ @contentWordBreakHyphens : manual;
13
+
14
+ /* Quote paragraph */
15
+ @mobileQuotePadding : 0;
16
+ @tabletQuotePadding : 0.5rem 0 1rem;
17
+
18
+ /* Source */
19
+ @sourceTextColor : @secondaryColor;
20
+ @sourceTextAlign : right;
21
+ @sourceFontWeight : @bold;
22
+ @sourceFontSize : 1.25rem;
23
+ @sourceMargin : 0;
24
+
25
+ /* Source Info */
26
+ @sourceInfoTextAlign : right;
27
+ @sourceInfoFontWeight : @normal;
28
+ @sourceInfoFontSize : 1rem;
29
+
30
+ /* Icon */
31
+ @mobileQuoteIconSize : 2rem;
32
+ @tabletQuoteIconSize : 3rem;
33
+ @quoteIconColor : @secondaryColor;
34
+ @quoteDownIconFloat : right;
@@ -8,8 +8,15 @@
8
8
  --------------------*/
9
9
 
10
10
  .eea.testimonial {
11
+ display: flex;
12
+ flex-direction: column;
13
+ gap: @testimonialGap;
11
14
  width: @testimonialWidth;
12
15
 
16
+ .eea.pullquote {
17
+ padding: 1.25rem 0 0;
18
+ }
19
+
13
20
  .avatar-wrapper {
14
21
  display: flex;
15
22
  justify-content: center;
@@ -17,12 +24,45 @@
17
24
  height: @testimonialAvatarWrapperHeight;
18
25
  }
19
26
 
20
- .content .title {
27
+ .ui.card.rounded {
28
+ flex-direction: row-reverse;
29
+ align-items: center;
30
+ }
31
+ }
32
+
33
+ .eea.testimonial .content h3.title {
34
+ margin: @testimonialContentTitleMarginVertical
35
+ @mobileTestimonialContentTitleMarginHorizontal;
36
+ font-weight: @testimonialContentTitleFontWeight;
37
+ color: @testimonialContentTitleColor;
38
+ }
39
+
40
+ .eea.testimonial .ui.grid div:first-child {
41
+ order: 1;
42
+ }
43
+
44
+
45
+ @media only screen and (min-width: @tabletBreakpoint) {
46
+
47
+ .eea.testimonial .ui.card.rounded {
48
+ flex-direction: column;
49
+ }
50
+
51
+ .eea.testimonial .content h3.title {
21
52
  margin: @testimonialContentTitleMarginVertical
22
- @testimonialContentTitleMarginHorizontal;
23
- font-weight: @testimonialContentTitleFontWeight;
24
- font-size: @testimonialContentTitleFontSize;
25
- letter-spacing: @testimonialContentTitleLetterSpacing;
26
- color: @testimonialContentTitleColor;
53
+ @tabletTestimonialContentTitleMarginHorizontal;
54
+ }
55
+
56
+ .eea.testimonial .ui.grid div:first-child {
57
+ order: 0;
27
58
  }
28
59
  }
60
+
61
+ // Override image default size for mobile
62
+ @media only screen and (max-width: @largestMobileScreen) {
63
+ .eea.testimonial .ui.card.rounded img {
64
+ width: @mobileCardImageWidth;
65
+ height: @mobileCardImageHeight;
66
+ }
67
+ }
68
+
@@ -4,10 +4,18 @@
4
4
 
5
5
 
6
6
  @testimonialWidth : 100%;
7
+ @testimonialGap : @largeGap;
7
8
  @testimonialAvatarWrapperHeight : 100%;
8
- @testimonialContentTitleMarginVertical : 0;
9
- @testimonialContentTitleMarginHorizontal : 2rem;
10
- @testimonialContentTitleFontWeight : 500;
11
- @testimonialContentTitleFontSize : 36px;
12
- @testimonialContentTitleLetterSpacing : -0.015em;
13
- @testimonialContentTitleColor : @deepBlue;
9
+
10
+ /* Pullquote */
11
+
12
+ /* Title */
13
+ @testimonialContentTitleMarginVertical : 0;
14
+ @mobileTestimonialContentTitleMarginHorizontal : 0;
15
+ @tabletTestimonialContentTitleMarginHorizontal : 3.125rem;
16
+ @testimonialContentTitleFontWeight : 500;
17
+ @testimonialContentTitleColor : @deepBlue;
18
+
19
+ /* Image */
20
+ @mobileCardImageWidth : 100px;
21
+ @mobileCardImageHeight : 100px;
@@ -2,6 +2,8 @@
2
2
  Site Settings
3
3
  *******************************/
4
4
 
5
+ @import '@eeacms/volto-eea-design-system/../theme/themes/eea/tokens/tokens';
6
+
5
7
  /*-------------------
6
8
  Fonts
7
9
  --------------------*/
@@ -99,8 +99,8 @@
99
99
 
100
100
  /* Styled Title States */
101
101
  @styledTitleHoverBackground: transparent;
102
- @styledTitleHoverColor: @teal;
103
- @styledActiveTitleBackground: @teal;
102
+ @styledTitleHoverColor: @activeTitleBackground;
103
+ @styledActiveTitleBackground: @activeTitleBackground;
104
104
  @styledActiveTitleColor: @white;
105
105
 
106
106
  /* Styled Child Title States */
@@ -0,0 +1,38 @@
1
+ @font-weight-1: 100;
2
+ @font-weight-2: 200;
3
+ @font-weight-3: 300;
4
+ @font-weight-4: 400;
5
+ @font-weight-5: 500;
6
+ @font-weight-6: 600;
7
+ @font-weight-7: 700;
8
+ @font-weight-8: 800;
9
+ @font-weight-9: 900;
10
+ @font-lineheight-00: .95;
11
+ @font-lineheight-0: 1.1;
12
+ @font-lineheight-1: 1.25;
13
+ @font-lineheight-2: 1.375;
14
+ @font-lineheight-3: 1.5;
15
+ @font-lineheight-4: 1.75;
16
+ @font-lineheight-5: 2;
17
+ @font-letterspacing-0: -.05em;
18
+ @font-letterspacing-1: .025em;
19
+ @font-letterspacing-2: .050em;
20
+ @font-letterspacing-3: .075em;
21
+ @font-letterspacing-4: .150em;
22
+ @font-letterspacing-5: .500em;
23
+ @font-letterspacing-6: .750em;
24
+ @font-letterspacing-7: 1em;
25
+ @font-size-00: .5rem;
26
+ @font-size-0: .75rem;
27
+ @font-size-1: 1rem;
28
+ @font-size-2: 1.1rem;
29
+ @font-size-3: 1.25rem;
30
+ @font-size-4: 1.5rem;
31
+ @font-size-5: 2rem;
32
+ @font-size-6: 2.5rem;
33
+ @font-size-7: 3rem;
34
+ @font-size-8: 3.5rem;
35
+ @font-size-fluid-0: clamp(.75rem, 2vw, 1rem);
36
+ @font-size-fluid-1: clamp(1rem, 4vw, 1.5rem);
37
+ @font-size-fluid-2: clamp(1.5rem, 6vw, 2.5rem);
38
+ @font-size-fluid-3: clamp(2rem, 9vw, 3.5rem);
@@ -0,0 +1,17 @@
1
+ @size-000: -.5rem;
2
+ @size-00: -.25rem;
3
+ @size-1: .25rem;
4
+ @size-2: .5rem;
5
+ @size-3: 1rem;
6
+ @size-4: 1.25rem;
7
+ @size-5: 1.5rem;
8
+ @size-6: 1.75rem;
9
+ @size-7: 2rem;
10
+ @size-8: 3rem;
11
+ @size-9: 4rem;
12
+ @size-10: 5rem;
13
+ @size-11: 7.5rem;
14
+ @size-12: 10rem;
15
+ @size-13: 15rem;
16
+ @size-14: 20rem;
17
+ @size-15: 30rem;
@@ -0,0 +1,2 @@
1
+ @import 'fonts';
2
+ @import 'sizes';
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
-
3
- function Blockquote({ children, className, ...rest }) {
4
- return (
5
- <div className="eea blockquote" {...rest}>
6
- <blockquote className="quote">{children}</blockquote>
7
- </div>
8
- );
9
- }
10
-
11
- Blockquote.Content = ({ children, as: As, ...rest }) =>
12
- As ? <As {...rest}>{children}</As> : children;
13
-
14
- Blockquote.Meta = ({ children }) => <div className="meta">{children}</div>;
15
-
16
- export default Blockquote;
@@ -1,48 +0,0 @@
1
- import React from 'react';
2
- import Blockquote from './Blockquote';
3
-
4
- const CITATION =
5
- 'An interconnected grid will help deliver the ultimate goal of the Energy Union, to make sure affordable, secure and sustainable energy, and also growth across the EU.';
6
- const AUTHOR = 'President Juncker';
7
-
8
- export default {
9
- title: 'Components/Blockquote',
10
- component: Blockquote,
11
- argTypes: {
12
- content: {
13
- name: 'citation',
14
- description: 'Blockquote content',
15
- type: { name: 'string', required: true },
16
- },
17
- meta: {
18
- name: 'meta',
19
- description: 'Author of the content',
20
- type: { name: 'string', required: true },
21
- },
22
- },
23
- };
24
-
25
- export const Default = (args) => (
26
- <Blockquote>
27
- <Blockquote.Content>{args.content}</Blockquote.Content>
28
- <Blockquote.Meta>{args.meta}</Blockquote.Meta>
29
- </Blockquote>
30
- );
31
-
32
- Default.args = {
33
- content: CITATION,
34
- meta: AUTHOR,
35
- };
36
-
37
- export const Reversed = (args) => (
38
- <Blockquote>
39
- <Blockquote.Meta>{args.meta}</Blockquote.Meta>
40
- <Blockquote.Content>{args.content}</Blockquote.Content>
41
- </Blockquote>
42
- );
43
-
44
- Reversed.args = {
45
- content:
46
- 'The Ministry of Environment & Energy is responsible for environmental policy, the preparation of plans and programmes, and overseeing their implementation. The Ministry is also in charge of the transposition of EU environmental Directives into national law.',
47
- meta: '22 December 1989',
48
- };
@@ -1,92 +0,0 @@
1
- @type: 'extra';
2
- @element: 'blockquote';
3
-
4
- @import (multiple) '../../theme.config';
5
-
6
- /*******************************
7
- Blockquote
8
- *******************************/
9
-
10
- blockquote.callout,
11
- p.callout {
12
- border: @calloutBorder;
13
- box-shadow: @calloutBoxShadow;
14
- border-radius: @calloutBorderRadius;
15
- padding-top: @calloutPadding;
16
- padding-bottom: @calloutPadding;
17
- border-left: @mobileBlockquoteBorderLeft;
18
- color: @quoteColor;
19
- font-size: @mobileQuoteFontSize;
20
- }
21
-
22
- .eea.blockquote {
23
- border-left: @mobileBlockquoteBorderLeft;
24
-
25
- .quote {
26
- display: flex;
27
- flex-direction: column;
28
- margin: @mobileQuoteMargin;
29
- gap: @quoteGap;
30
- color: @quoteColor;
31
- font-size: @mobileQuoteFontSize;
32
- font-weight: @quoteFontWeight;
33
-
34
- .meta {
35
- margin: @metaMargin;
36
- font-size: @mobileMetaFontSize;
37
- font-weight: @metaWeight;
38
- align-self: @metaAlignSelf;
39
- }
40
- }
41
- }
42
-
43
- .eea.slate.blockquote {
44
- .quote {
45
- display: block;
46
- flex-direction: unset;
47
- gap: unset;
48
- font-weight: @slateQuoteFontWeight;
49
-
50
- br {
51
- content: '';
52
- display: flex;
53
- margin: @slateQuoteGap 0;
54
- }
55
- }
56
- }
57
-
58
- @media only screen and (min-width: @tabletBreakpoint) {
59
- blockquote.callout,
60
- p.callout {
61
- border-left: @tabletBlockquoteBorderLeft;
62
- font-size: @tabletQuoteFontSize;
63
- }
64
-
65
- .eea.blockquote {
66
- border-left: @tabletBlockquoteBorderLeft;
67
- .quote {
68
- margin: @tabletQuoteMargin;
69
- font-size: @tabletQuoteFontSize;
70
- .meta {
71
- font-size: @tabletMetaFontSize;
72
- }
73
- }
74
- }
75
- }
76
-
77
- @media only screen and (min-width: @computerBreakpoint) {
78
- blockquote.callout,
79
- p.callout {
80
- font-size: @computerQuoteFontSize;
81
- }
82
-
83
- .eea.blockquote .quote {
84
- margin: @computerQuoteMargin;
85
- font-size: @computerQuoteFontSize;
86
- .meta {
87
- font-size: @computerMetaFontSize;
88
- }
89
- }
90
- }
91
-
92
- .loadUIOverrides();
@@ -1,35 +0,0 @@
1
- /*******************************
2
- Blockquote
3
- *******************************/
4
- /* Body */
5
- @mobileBlockquoteBorderLeft : @5px solid @secondaryColor;
6
- @tabletBlockquoteBorderLeft : @10px solid @secondaryColor;
7
- @childrenBorderLeft : none;
8
-
9
- /* Quote */
10
- @quoteColor : @secondaryColor;
11
- @mobileQuoteMargin : 0.75rem 0.625rem;
12
- @tabletQuoteMargin : 0.75rem 1rem;
13
- @computerQuoteMargin : 0.75rem 1.25rem;
14
- @quoteGap : 0.75rem;
15
- @slateQuoteGap : 0.75rem / 2;
16
- @quoteColor : @japaneseIndigo;
17
- @mobileQuoteFontSize : 0.688rem;
18
- @tabletQuoteFontSize : @h6;
19
- @computerQuoteFontSize : @h5;
20
- @quoteFontWeight : 700;
21
- @slateQuoteFontWeight : 400;
22
-
23
- /* Meta */
24
- @metaMargin : 0;
25
- @metaWeight : 400;
26
- @mobileMetaFontSize : 0.688rem;
27
- @tabletMetaFontSize : @h6;
28
- @computerMetaFontSize : @h5;
29
- @metaAlignSelf : start;
30
-
31
- /* Callout */
32
- @calloutBorder : none;
33
- @calloutBoxShadow : none;
34
- @calloutBorderRadius : 0;
35
- @calloutPadding : 0;
@@ -1,34 +0,0 @@
1
- /*******************************
2
- Pullquote
3
- *******************************/
4
-
5
- /* Body */
6
- @pullquotePadding : @largeGap 0;
7
- @pullquoteFloatLeftPadding : @largeGap @largeGap @largeGap 0;
8
- @pullquoteFloatRightPadding : @largeGap 0 @largeGap @largeGap;
9
- @pullquoteMargin : 0;
10
- @maxWidthOnFloat : 50%;
11
- @contentWordBreak : break-word;
12
- @contentWordBreakHyphens : manual;
13
-
14
- /* Quote paragraph */
15
- @mobileQuotePadding : 0;
16
- @tabletQuotePadding : 0.5rem 0 1rem;
17
-
18
- /* Author */
19
- @authorTextColor : @darkCyan;
20
- @authorTextAlign : right;
21
- @authorFontWeight : @bold;
22
- @authorFontSize : 1.25rem;
23
- @authorMargin : 0;
24
-
25
- /* Metadata */
26
- @metaTextAlign : right;
27
- @metaFontWeight : @normal;
28
- @metaFontSize : 1rem;
29
-
30
- /* Icon */
31
- @mobileQuoteIconSize : 2rem;
32
- @tabletQuoteIconSize : 3rem;
33
- @quoteIconColor : @secondaryColor;
34
- @quoteDownIconFloat : right;