PluginProbe
Block Animations, Motion & Scroll Effects – Ghost Kit / 3.3.3
Block Animations, Motion & Scroll Effects – Ghost Kit v3.3.3
3.7.2 3.7.1 3.7.0 3.6.1 trunk 1.6.3 2.25.0 3.3.0 3.3.1 3.3.2 3.3.3 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.5.0 3.5.1 3.6.0
ghostkit / gutenberg / blocks / twitter / styles / style.scss

style.scss in Block Animations, Motion & Scroll Effects – Ghost Kit 3.3.3, at gutenberg/blocks/twitter/styles/style.scss

262 lines 5.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Frontend Styles
3 */
4 @import "./variables";
5
6 .ghostkit-twitter {
7 // fix for negative margins.
8 &::after {
9 display: block;
10 height: 0.01px;
11 clear: both;
12 content: "";
13 }
14
15 // Verified badge.
16 &-item-meta-name-verified,
17 &-profile-verified {
18 font-size: 0;
19
20 &::before {
21 display: inline-block;
22 width: var(--gkt-twitter--verified-badge__width);
23 height: var(--gkt-twitter--verified-badge__height);
24 content: "";
25 background-image: var(--gkt-twitter--verified-badge__background-image);
26 }
27 }
28
29 &-profile-verified::before {
30 width: calc(2px + var(--gkt-twitter--verified-badge__width));
31 height: calc(2px + var(--gkt-twitter--verified-badge__height));
32 }
33
34 // Profile.
35 &-profile {
36 display: flex;
37 flex-wrap: wrap;
38 margin-bottom: var(--gkt-twitter--profile__margin-bottom);
39
40 // Avatar.
41 &-avatar img {
42 display: block;
43 max-width: 100%;
44 height: auto;
45 margin: 0;
46 border-radius: var(--gkt-twitter--profile-avatar__border-radius);
47 }
48
49 // Side.
50 &-side {
51 flex: 1;
52 max-width: 100%;
53 }
54
55 &-avatar + .ghostkit-twitter-profile-side {
56 margin-left: var(--gkt-twitter--profile-avatar__offset);
57 }
58
59 // Name.
60 &-name {
61 a {
62 color: inherit;
63 text-decoration: none;
64 border-bottom: none;
65
66 &:hover,
67 &:focus {
68 text-decoration: underline;
69 }
70 }
71 }
72
73 & .ghostkit-twitter-profile-fullname {
74 margin: 0;
75 font-size: var(--gkt-twitter--profile-name__font-size);
76 }
77
78 & .ghostkit-twitter-profile-username {
79 margin: 0;
80 font-size: var(--gkt-twitter--profile-username__font-size);
81 font-weight: var(--gkt-twitter--profile-username__font-weight);
82 opacity: var(--gkt-twitter--profile-username__font-opacity);
83 }
84
85 // Stats.
86 &-stats {
87 display: flex;
88 flex-wrap: wrap;
89
90 > div {
91 margin-right: var(--gkt-twitter--profile-stats__gap);
92
93 &:last-child {
94 margin-right: 0;
95 }
96 }
97 }
98
99 // Elements gap.
100 div + &-stats,
101 div + &-description,
102 div + &-website,
103 div + &-location {
104 margin-top: var(--gkt-twitter--profile-elements__gap);
105 }
106
107 // Display line breaks in profile description
108 &-description {
109 white-space: pre-wrap;
110 }
111 }
112
113 // Items.
114 &-item {
115 display: flex;
116 margin-bottom: var(--gkt-twitter--tweet__margin-bottom);
117
118 &:last-child {
119 margin-bottom: 0;
120 }
121
122 // Content.
123 &-content {
124 flex: 1;
125
126 img {
127 max-width: 100%;
128 margin-top: var(--gkt-twitter--tweet-content-img__margin-top);
129 border: var(--gkt-twitter--tweet-content-img__border-width) solid var(--gkt-twitter--tweet-content-img__border-color);
130 border-radius: var(--gkt-twitter--tweet-content-img__border-radius);
131 }
132 }
133
134 // Avatar.
135 &-avatar {
136 margin-right: var(--gkt-twitter--tweet-avatar__margin-right);
137
138 img {
139 height: auto;
140 border-radius: var(--gkt-twitter--tweet-avatar__border-radius);
141 }
142 }
143
144 // Retweeted
145 &-retweeted {
146 position: relative;
147 font-size: var(--gkt-twitter--tweet-retweeted__font-size);
148 opacity: var(--gkt-twitter--tweet-retweeted__opacity);
149
150 &-icon {
151 position: absolute;
152 right: 100%;
153 width: 1em;
154 margin-right: var(--gkt-twitter--tweet-retweeted-icon__margin-right);
155 }
156
157 a {
158 color: inherit;
159 text-decoration: none;
160 border-bottom: none;
161
162 &:hover,
163 &:focus {
164 text-decoration: underline;
165 }
166 }
167 }
168
169 // Meta.
170 &-meta {
171 display: flex;
172 flex-wrap: wrap;
173 align-items: center;
174
175 // Meta Name.
176 &-name {
177 a {
178 color: inherit;
179 text-decoration: var(--gkt-twitter--tweet-name__text-decoration);
180 border-bottom: none;
181
182 &:hover strong,
183 &:focus strong {
184 text-decoration: var(--gkt-twitter--tweet-name-hover__text-decoration);
185 }
186 }
187
188 span:last-child {
189 opacity: var(--gkt-twitter--tweet-username__opacity);
190 }
191
192 // Meta Date Separator.
193 + .ghostkit-twitter-item-meta-date::before {
194 margin: var(--gkt-twitter--tweet-date-separator__margin-v) var(--gkt-twitter--tweet-date-separator__margin-h);
195 font-size: var(--gkt-twitter--tweet-date-separator__font-size);
196 content: var(--gkt-twitter--tweet-date-separator__content);
197 }
198 }
199
200 // Meta Date.
201 &-date {
202 display: flex;
203 align-items: center;
204 opacity: var(--gkt-twitter--tweet-date__opacity);
205
206 a {
207 color: inherit;
208 text-decoration: var(--gkt-twitter--tweet-date__text-decoration);
209 border-bottom: none;
210
211 &:hover,
212 &:focus {
213 text-decoration: var(--gkt-twitter--tweet-date-hover__text-decoration);
214 }
215 }
216 }
217 }
218
219 // Actions.
220 &-actions {
221 display: flex;
222 flex-wrap: wrap;
223 align-items: center;
224 font-size: var(--gkt-twitter--tweet-actions__font-size);
225
226 > div {
227 margin-right: var(--gkt-twitter--tweet-actions__gap);
228 }
229
230 > div:last-child {
231 margin-right: 0;
232 }
233
234 a {
235 color: inherit;
236 text-decoration: none;
237 border-bottom: none;
238 opacity: var(--gkt-twitter--tweet-actions-link__opacity);
239
240 &:hover,
241 &:focus {
242 opacity: var(--gkt-twitter--tweet-actions-link-hover__opacity);
243 }
244 }
245
246 span {
247 margin-left: var(--gkt-twitter--tweet-actions-label__offset);
248 }
249 }
250
251 // Display line breaks in tweet text.
252 &-text {
253 white-space: pre-wrap;
254 }
255
256 div + &-text,
257 div + &-actions {
258 margin-top: var(--gkt-twitter--tweet-elements__gap);
259 }
260 }
261 }
262