|
1 | 1 | @include editor-only {
|
2 |
| - // ---- |
3 |
| - // Post title style |
4 |
| - // ---- |
5 |
| - .editor-post-title { |
6 |
| - |
7 |
| - @include heading(h1); |
8 |
| - |
9 |
| - max-width: var(--responsive--aligndefault-width); |
10 |
| - margin-bottom: var(--spacing--block-3); |
11 |
| - } |
12 |
| - |
13 |
| - // ---- |
14 |
| - // Editor UI font styles |
15 |
| - // ---- |
16 |
| - .wp-block.block-editor-default-block-appender > textarea { |
17 |
| - font-family: var(--global--font-secondary); |
18 |
| - font-size: var($font-size-md); |
19 |
| - } |
| 2 | + // ---- |
| 3 | + // Post title style |
| 4 | + // ---- |
| 5 | + .editor-post-title { |
| 6 | + |
| 7 | + @include heading(h1); |
| 8 | + |
| 9 | + max-width: var(--responsive--aligndefault-width); |
| 10 | + margin-bottom: var(--spacing--block-3); |
| 11 | + } |
| 12 | + |
| 13 | + // ---- |
| 14 | + // Editor UI font styles |
| 15 | + // ---- |
| 16 | + .wp-block.block-editor-default-block-appender > textarea { |
| 17 | + font-family: var(--global--font-secondary); |
| 18 | + font-size: var($font-size-md); |
| 19 | + } |
20 | 20 | }
|
21 | 21 |
|
22 | 22 | // ----
|
23 | 23 | // Drop cap
|
24 | 24 | // ----
|
25 | 25 | .has-drop-cap:not(:focus)::first-letter {
|
26 |
| - float: left; |
27 |
| - margin: 0.1em 0.1em 0 0; |
28 |
| - font-family: var($font-family-primary); |
29 |
| - font-size: calc(1.2 * var(--heading--font-size-h1)); |
30 |
| - font-style: normal; |
31 |
| - font-weight: var(--heading--font-weight); |
32 |
| - line-height: 0.66; |
33 |
| - text-transform: uppercase; |
| 26 | + float: left; |
| 27 | + margin: .1em .1em 0 0; |
| 28 | + font-family: var($font-family-primary); |
| 29 | + font-size: calc(1.2 * var(--heading--font-size-h1)); |
| 30 | + font-style: normal; |
| 31 | + font-weight: var(--heading--font-weight); |
| 32 | + line-height: .66; |
| 33 | + text-transform: uppercase; |
34 | 34 | }
|
35 | 35 |
|
36 | 36 | #{context-selector(".blocks-container", ".is-root-container")} {
|
37 |
| - // ---- |
38 |
| - // Alignements horizontaux |
39 |
| - // ---- |
40 |
| - > :where(*) { |
41 |
| - max-width: var(--responsive--aligndefault-width); |
42 |
| - margin-right: auto; |
43 |
| - margin-left: auto; |
44 |
| - } |
45 |
| - |
46 |
| - #{context-selector(".alignwide", "[data-align='wide']")} { |
47 |
| - max-width: var(--responsive--alignwide-width); |
48 |
| - } |
49 |
| - |
50 |
| - #{context-selector(".alignfull", "[data-align='full']")} { |
51 |
| - max-width: var(--responsive--alignfull-width); |
52 |
| - } |
53 |
| - |
54 |
| - .alignleft { |
55 |
| - |
56 |
| - @include align; |
57 |
| - } |
58 |
| - |
59 |
| - .alignright { |
60 |
| - |
61 |
| - @include align(right); |
62 |
| - } |
63 |
| - |
64 |
| - .aligncenter { |
65 |
| - display: block; |
66 |
| - margin-right: auto; |
67 |
| - margin-left: auto; |
68 |
| - clear: both; |
69 |
| - } |
70 |
| - |
71 |
| - .alignleft, |
72 |
| - .alignright, |
73 |
| - .aligncenter { |
74 |
| - margin-bottom: var(--spacing--block-1); |
75 |
| - } |
76 |
| - |
77 |
| - // ---- |
78 |
| - // Alignements verticaux |
79 |
| - // ---- |
80 |
| - > *, |
81 |
| - [class*="inner-container"] > * { |
82 |
| - margin-top: var(--spacing--block-1); |
83 |
| - margin-bottom: var(--spacing--block-1); |
84 |
| - |
85 |
| - &:first-child { |
86 |
| - margin-top: 0; |
87 |
| - } |
88 |
| - |
89 |
| - &:last-child { |
90 |
| - margin-bottom: 0; |
91 |
| - } |
92 |
| - |
93 |
| - &.alignleft, |
94 |
| - &.alignright, |
95 |
| - &.alignleft:first-child + *, |
96 |
| - &.alignright:first-child + *, |
97 |
| - &.alignfull.has-background { |
98 |
| - margin-top: 0; |
99 |
| - } |
100 |
| - |
101 |
| - &:last-child, |
102 |
| - &.alignfull.has-background { |
103 |
| - margin-bottom: 0; |
104 |
| - } |
105 |
| - |
106 |
| - /* Reset alignleft and alignright margins after alignfull */ |
107 |
| - &.alignfull + .alignleft, |
108 |
| - &.alignfull + .alignright { |
109 |
| - margin-top: var(--spacing--block-1); |
110 |
| - } |
111 |
| - } |
112 |
| - |
113 |
| - @include editor-only { |
114 |
| - |
115 |
| - > * { |
116 |
| - |
117 |
| - &:last-child { |
118 |
| - margin-bottom: var(--spacing--block-1); |
119 |
| - } |
120 |
| - } |
121 |
| - |
122 |
| - [class*="inner-container"] > * { |
123 |
| - max-width: none; |
124 |
| - } |
125 |
| - } |
| 37 | + // ---- |
| 38 | + // Alignements horizontaux |
| 39 | + // ---- |
| 40 | + > :where(*) { |
| 41 | + max-width: var(--responsive--aligndefault-width); |
| 42 | + margin-right: auto; |
| 43 | + margin-left: auto; |
| 44 | + } |
| 45 | + |
| 46 | + #{context-selector(".alignwide", "[data-align='wide']")} { |
| 47 | + max-width: var(--responsive--alignwide-width); |
| 48 | + } |
| 49 | + |
| 50 | + #{context-selector(".alignfull", "[data-align='full']")} { |
| 51 | + max-width: var(--responsive--alignfull-width); |
| 52 | + } |
| 53 | + |
| 54 | + .alignleft { |
| 55 | + |
| 56 | + @include align; |
| 57 | + } |
| 58 | + |
| 59 | + .alignright { |
| 60 | + |
| 61 | + @include align(right); |
| 62 | + } |
| 63 | + |
| 64 | + .aligncenter { |
| 65 | + display: block; |
| 66 | + margin-right: auto; |
| 67 | + margin-left: auto; |
| 68 | + clear: both; |
| 69 | + } |
| 70 | + |
| 71 | + .alignleft, |
| 72 | + .alignright, |
| 73 | + .aligncenter { |
| 74 | + margin-bottom: var(--spacing--block-1); |
| 75 | + } |
| 76 | + |
| 77 | + // ---- |
| 78 | + // Alignements verticaux |
| 79 | + // ---- |
| 80 | + > *, |
| 81 | + [class*="inner-container"] > * { |
| 82 | + margin-top: var(--spacing--block-1); |
| 83 | + margin-bottom: var(--spacing--block-1); |
| 84 | + |
| 85 | + &:first-child { |
| 86 | + margin-top: 0; |
| 87 | + } |
| 88 | + |
| 89 | + &:last-child { |
| 90 | + margin-bottom: 0; |
| 91 | + } |
| 92 | + |
| 93 | + &.alignleft, |
| 94 | + &.alignright, |
| 95 | + &.alignleft:first-child + *, |
| 96 | + &.alignright:first-child + *, |
| 97 | + &.alignfull.has-background { |
| 98 | + margin-top: 0; |
| 99 | + } |
| 100 | + |
| 101 | + &:last-child, |
| 102 | + &.alignfull.has-background { |
| 103 | + margin-bottom: 0; |
| 104 | + } |
| 105 | + |
| 106 | + /* Reset alignleft and alignright margins after alignfull */ |
| 107 | + &.alignfull + .alignleft, |
| 108 | + &.alignfull + .alignright { |
| 109 | + margin-top: var(--spacing--block-1); |
| 110 | + } |
| 111 | + } |
| 112 | + |
| 113 | + @include editor-only { |
| 114 | + |
| 115 | + > * { |
| 116 | + |
| 117 | + &:last-child { |
| 118 | + margin-bottom: var(--spacing--block-1); |
| 119 | + } |
| 120 | + } |
| 121 | + |
| 122 | + [class*="inner-container"] > * { |
| 123 | + max-width: none; |
| 124 | + } |
| 125 | + } |
126 | 126 | }
|
0 commit comments