PluginProbe
Elementor Website Builder – more than just a page builder / 3.7.7
Elementor Website Builder – more than just a page builder v3.7.7
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
elementor / packages / elementor-ui / styles / heading.js

heading.js in Elementor Website Builder – more than just a page builder 3.7.7, at packages/elementor-ui/styles/heading.js

79 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { tints, darkTints, heading, lineHeight, fontWeight, spacing } from 'e-styles';
2
3 export default {
4 base: {
5 shared: `
6 color: var(--e-styles-heading-color, ${ tints[ '800' ] });
7 font-size: var(--e-styles-heading-font-size);
8 margin-bottom: var(--e-styles-heading-margin-bottom);
9 `,
10 variant: {
11 h1: `
12 --e-styles-heading-font-size: ${ heading.h1 };
13 --e-styles-heading-margin-bottom: 2.5 * ${ spacing.base };
14 font-weight: ${ fontWeight.medium };
15 line-height: ${ lineHeight.flat };
16 `,
17 h2: `
18 --e-styles-heading-font-size: ${ heading.h2 };
19 --e-styles-heading-margin-bottom: 2.5 * ${ spacing.base };
20 font-weight: ${ fontWeight.medium };
21 line-height: ${ lineHeight.sm };
22 margin-top: 0;
23 `,
24 h3: `
25 --e-styles-heading-font-size: ${ heading.h3 };
26 --e-styles-heading-margin-bottom: ${ spacing.base };
27 font-weight: ${ fontWeight.medium };
28 line-height: ${ lineHeight.sm };
29 margin-top: 0;
30 `,
31 h4: `
32 --e-styles-heading-font-size: ${ heading.h4 };
33 --e-styles-heading-margin-bottom: ${ spacing.base };
34 margin-top: 0;
35 `,
36 h5: `
37 --e-styles-heading-font-size: ${ heading.h5 };
38 --e-styles-heading-margin-bottom: ${ spacing.base };
39 margin-top: 0;
40 `,
41 h6: `
42 --e-styles-heading-font-size: ${ heading.h6 };
43 --e-styles-heading-margin-bottom: ${ spacing.base };
44 font-weight: ${ fontWeight.bold };
45 margin-top: 0;
46 `,
47 'display-1': `
48 --e-styles-heading-font-size: ${ heading.display1 };
49 --e-styles-heading-margin-bottom: ${ spacing.base };
50 margin-top: ${ spacing.base };
51 `,
52 'display-2': `
53 --e-styles-heading-font-size: ${ heading.display2 };
54 --e-styles-heading-margin-bottom: ${ spacing.base };
55 margin-top: ${ spacing.base };
56 `,
57 'display-3': `
58 --e-styles-heading-font-size: ${ heading.display3 };
59 --e-styles-heading-margin-bottom: 2.5 * ${ spacing.base };
60 margin-top: 0;
61 `,
62 'display-4': `
63 --e-styles-heading-font-size: ${ heading.display4 };
64 --e-styles-heading-margin-bottom: ${ spacing.base };
65 margin-top: ${ spacing.base };
66 `,
67 },
68 size: `--size-value: default;`,
69 },
70 light: {
71 variant: {
72 h1: `--e-styles-heading-color: ${ tints[ '600' ] };`,
73 h2: `--e-styles-heading-color: ${ tints[ '600' ] };`,
74 'display-3': `--e-styles-heading-color: ${ tints[ '600' ] };`,
75 },
76 },
77 dark: `--e-styles-heading-color: ${ darkTints[ '100' ] };`,
78 };
79