@eeacms/volto-eea-design-system 0.2.2 → 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 (45) hide show
  1. package/.github/workflows/auto-comment.yml +20 -0
  2. package/CHANGELOG.md +85 -0
  3. package/package.json +1 -1
  4. package/src/semantic.less +2 -2
  5. package/src/ui/Banner/Banner.jsx +1 -1
  6. package/src/ui/Breadcrumbs/Breadcrumb.stories.jsx +3 -0
  7. package/src/ui/Breadcrumbs/Breadcrumbs.jsx +1 -0
  8. package/src/ui/CallToAction/CallToAction.stories.jsx +239 -0
  9. package/src/ui/Callout/Callout.jsx +12 -0
  10. package/src/ui/Callout/Callout.stories.jsx +42 -0
  11. package/src/ui/{Button → Form/Button}/Button.stories.jsx +43 -27
  12. package/src/ui/{Pullquote/Pullquote.jsx → Quote/Quote.jsx} +9 -9
  13. package/src/ui/{Pullquote/Pullquote.stories.jsx → Quote/Quote.stories.jsx} +18 -18
  14. package/src/ui/{Testimonial → Quote/Testimonial}/Testimonial.jsx +10 -11
  15. package/src/ui/{Testimonial → Quote/Testimonial}/Testimonial.stories.jsx +17 -8
  16. package/src/ui/index.js +3 -3
  17. package/theme/theme.config +1 -1
  18. package/theme/themes/eea/collections/breadcrumb.overrides +0 -16
  19. package/theme/themes/eea/collections/form.overrides +1 -1
  20. package/theme/themes/eea/collections/table.overrides +48 -0
  21. package/theme/themes/eea/collections/table.variables +16 -0
  22. package/theme/themes/eea/elements/button.overrides +79 -0
  23. package/theme/themes/eea/elements/container.overrides +4 -19
  24. package/theme/themes/eea/elements/container.variables +5 -4
  25. package/theme/themes/eea/elements/segment.overrides +77 -0
  26. package/theme/themes/eea/extras/avatar.variables +28 -0
  27. package/theme/themes/eea/extras/callout.less +43 -0
  28. package/theme/themes/eea/extras/callout.variables +19 -0
  29. package/theme/themes/eea/extras/header.less +1 -1
  30. package/theme/themes/eea/extras/{pullquote.less → quote.less} +20 -20
  31. package/theme/themes/eea/extras/quote.variables +34 -0
  32. package/theme/themes/eea/extras/testimonial.less +46 -6
  33. package/theme/themes/eea/extras/testimonial.variables +14 -6
  34. package/theme/themes/eea/globals/site.variables +11 -5
  35. package/theme/themes/eea/modules/accordion.variables +2 -2
  36. package/theme/themes/eea/modules/tab.overrides +20 -4
  37. package/theme/themes/eea/modules/tab.variables +12 -3
  38. package/theme/themes/eea/tokens/fonts.less +38 -0
  39. package/theme/themes/eea/tokens/sizes.less +17 -0
  40. package/theme/themes/eea/tokens/tokens.less +2 -0
  41. package/src/ui/Blockquote/Blockquote.jsx +0 -16
  42. package/src/ui/Blockquote/Blockquote.stories.jsx +0 -48
  43. package/theme/themes/eea/extras/blockquote.less +0 -92
  44. package/theme/themes/eea/extras/blockquote.variables +0 -35
  45. package/theme/themes/eea/extras/pullquote.variables +0 -34
@@ -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';
@@ -5,25 +5,10 @@
5
5
  .ui.breadcrumb {
6
6
  display: flex;
7
7
  align-items: center;
8
- padding-right: 1rem;
9
- padding-left: 1rem;
10
-
11
- //a.section {
12
- // color: #0074a3;
13
- //}
14
- //
15
- //.section.active {
16
- // color: #4e7372;
17
- //}
18
8
 
19
9
  .home.icon {
20
10
  margin-right: 0;
21
11
  }
22
-
23
- @media only screen and (min-width: @tabletBreakpoint) {
24
- padding-right: 0;
25
- padding-left: 0;
26
- }
27
12
  }
28
13
  /*******************************
29
14
  Theme Overrides
@@ -49,4 +34,3 @@
49
34
  font-size: @breadcrumbIconFontSize;
50
35
  }
51
36
  }
52
-
@@ -41,9 +41,9 @@
41
41
  .ui.form .ui.input input[type='url'],
42
42
  .ui.form textarea {
43
43
  height: 60px;
44
+ padding: @inputVerticalPadding 0;
44
45
  border-width: 0 0 @1px 0;
45
46
  border-radius: 0;
46
- padding: @inputVerticalPadding 0;
47
47
 
48
48
  &:focus {
49
49
  border-radius: 0;
@@ -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
+
@@ -177,3 +177,82 @@ p.ui.button {
177
177
  font-size: @searchButtonFontSize;
178
178
  opacity: @searchButtonIconOpacity;
179
179
  }
180
+
181
+ /************* Inverted Buttons *************/
182
+ // Override the light colors with the defaults
183
+
184
+ /* Primary - button.less - L:3128 */
185
+ .ui.inverted.primary.buttons .button,
186
+ .ui.inverted.primary.button {
187
+ box-shadow: 0px 0px 0px @invertedBorderSize @primaryColor inset !important;
188
+ color: @primaryColor;
189
+ }
190
+
191
+ .ui.inverted.primary.buttons .button:hover,
192
+ .ui.inverted.primary.button:hover,
193
+ .ui.inverted.primary.buttons .button:focus,
194
+ .ui.inverted.primary.button:focus,
195
+ .ui.inverted.primary.buttons .button.active,
196
+ .ui.inverted.primary.button.active,
197
+ .ui.inverted.primary.buttons .button:active,
198
+ .ui.inverted.primary.button:active {
199
+ color: @invertedHoveredTextColor;
200
+ }
201
+
202
+ .ui.inverted.primary.buttons .button:hover,
203
+ .ui.inverted.primary.button:hover {
204
+ background-color: @primaryColorHover;
205
+ }
206
+
207
+ .ui.inverted.primary.buttons .button:focus,
208
+ .ui.inverted.primary.button:focus {
209
+ background-color: @primaryColorFocus;
210
+ }
211
+
212
+ .ui.inverted.primary.buttons .active.button,
213
+ .ui.inverted.primary.active.button {
214
+ background-color: @primaryColorActive;
215
+ }
216
+
217
+ .ui.inverted.primary.buttons .button:active,
218
+ .ui.inverted.primary.button:active {
219
+ background-color: @primaryColorDown;
220
+ }
221
+
222
+ /* Secondary - button.less - L:3128 */
223
+ .ui.inverted.secondary.buttons .button,
224
+ .ui.inverted.secondary.button {
225
+ box-shadow: 0px 0px 0px @invertedBorderSize @secondaryColor inset !important;
226
+ color: @secondaryColor;
227
+ }
228
+
229
+ .ui.inverted.secondary.buttons .button:hover,
230
+ .ui.inverted.secondary.button:hover,
231
+ .ui.inverted.secondary.buttons .button:focus,
232
+ .ui.inverted.secondary.button:focus,
233
+ .ui.inverted.secondary.buttons .button.active,
234
+ .ui.inverted.secondary.button.active,
235
+ .ui.inverted.secondary.buttons .button:active,
236
+ .ui.inverted.secondary.button:active {
237
+ color: @invertedHoveredTextColor;
238
+ }
239
+
240
+ .ui.inverted.secondary.buttons .button:hover,
241
+ .ui.inverted.secondary.button:hover {
242
+ background-color: @secondaryColorHover;
243
+ }
244
+
245
+ .ui.inverted.secondary.buttons .button:focus,
246
+ .ui.inverted.secondary.button:focus {
247
+ background-color: @secondaryColorFocus;
248
+ }
249
+
250
+ .ui.inverted.secondary.buttons .active.button,
251
+ .ui.inverted.secondary.active.button {
252
+ background-color: @secondaryColorActive;
253
+ }
254
+
255
+ .ui.inverted.secondary.buttons .button:active,
256
+ .ui.inverted.secondary.button:active {
257
+ background-color: @secondaryColorDown;
258
+ }
@@ -4,31 +4,16 @@
4
4
 
5
5
  /* All Sizes */
6
6
  .ui.container {
7
- width: 100%;
8
- padding-right: @mobilePadding;
9
- padding-left: @mobilePadding;
10
7
  transition: width 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045),
11
8
  margin-left 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045),
12
9
  margin-right 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045);
13
10
  }
14
11
 
15
- // TODO fix issue of large container padding and then remove this fix
16
- #toolbar .pastanaga-menu .ui.container {
17
- padding: @profileSectionPadding;
18
- }
19
12
 
20
- @media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) {
21
- .ui.container {
22
- padding-right: @tabletPadding;
23
- padding-left: @tabletPadding;
24
- }
25
- }
26
-
27
- @media only screen and (min-width: @computerBreakpoint) {
28
- .ui.container {
29
- padding-right: @computerPadding;
30
- padding-left: @computerPadding;
31
- }
13
+ // add padding to containers on edit section so that we display add and delete buttons
14
+ .section-edit .container {
15
+ padding: 0 3rem;
16
+ width: auto !important;
32
17
  }
33
18
 
34
19
  .contentWidth(@offset) {
@@ -13,14 +13,16 @@
13
13
 
14
14
  /* Minimum Gutter is used to determine the maximum container width for a given device */
15
15
 
16
- @maxWidth: 1400px;
16
+ @maxWidth: 100%;
17
+ @scrollbarWidth: 16px;
17
18
 
18
19
  /* Devices */
19
20
  @mobileMinimumGutter: 0em;
20
21
  @mobileWidth: auto;
21
- @mobileGutter: 1rem;
22
+ @mobileGutter: 1.25rem;
22
23
 
23
- @tabletMinimumGutter: (@emSize * 1);
24
+ @tabletEmSize: 14px;
25
+ @tabletMinimumGutter: (@tabletEmSize * 1);
24
26
  @tabletWidth: @tabletBreakpoint - (@tabletMinimumGutter * 2) - @scrollbarWidth;
25
27
  @tabletGutter: auto;
26
28
 
@@ -63,4 +65,3 @@
63
65
  @textSize: @large;
64
66
 
65
67
  /* Section */
66
- @profileSectionPadding: 0px;
@@ -1,3 +1,80 @@
1
+ /*******************************
2
+ Pastanaga Theme Overrides
3
+ *******************************/
4
+
5
+ .ui.basic.segment.content-area {
6
+ flex: 1 0 auto; /* IE11 fix, can't barely use flex: 1; */
7
+ padding-right: 0;
8
+ padding-left: 0;
9
+ }
10
+
11
+ .ui.primary.segment {
12
+ border-bottom: @4px solid @greyBorderColor;
13
+ font-size: @16px;
14
+ font-weight: @headerFontWeight;
15
+ }
16
+
17
+ .ui.secondary.segment {
18
+ font-size: @16px;
19
+ }
20
+
21
+ .ui.discreet.segment {
22
+ color: @lightGrey;
23
+ font-size: @14px;
24
+ }
25
+
26
+ .ui.form.segment {
27
+ padding: 0;
28
+
29
+ .ui.grid > .row {
30
+ padding-top: 0;
31
+ padding-bottom: 0;
32
+ }
33
+ }
34
+
35
+ .ui.actions.segment {
36
+ border-top: @1px solid @lightGreyBorderColor;
37
+ }
38
+
39
+ .inverted.segment a.item {
40
+ color: @white;
41
+ text-decoration: underline;
42
+ }
43
+
44
+ .pusher > .ui.basic.segment {
45
+ padding-bottom: 0;
46
+ }
47
+
48
+ .ui.secondary.attached.segment {
49
+ text-transform: uppercase;
50
+ }
51
+
52
+ .ui.segment.dashed {
53
+ border: 3px dashed #ccc;
54
+ box-shadow: none;
55
+ }
56
+
57
+ .users-control-panel .ui.clearing.segment.actions {
58
+ display: inline-block;
59
+ width: 100%;
60
+ text-transform: uppercase;
61
+ }
62
+
63
+ .users-control-panel table div.item::after {
64
+ display: none;
65
+ }
66
+
67
+ .ui.segment.imageborder {
68
+ display: flex;
69
+ height: 100%;
70
+ align-items: center;
71
+ }
72
+
73
+ .ui.segment.listing-item {
74
+ display: flex;
75
+ align-items: center;
76
+ }
77
+
1
78
  /*******************************
2
79
  Theme Overrides
3
80
  *******************************/
@@ -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;
@@ -22,7 +22,6 @@
22
22
  align-items: center;
23
23
  justify-content: space-between;
24
24
  z-index: @topSectionZindex;
25
- width: 100% !important; // Semantic has auto
26
25
  }
27
26
  .item {
28
27
  display: flex;
@@ -392,6 +391,7 @@ Header Actions - Burger and Search Icons
392
391
  }
393
392
 
394
393
  .ui.text.menu {
394
+ flex-wrap: wrap;
395
395
  display: flex;
396
396
  width: 88%;
397
397
  max-height: 20px;