Skip to content

Commit 855e45a

Browse files
committed
Merge branch 'master' of https://github.com/layer5io/layer5
2 parents 6dedc27 + 4aaf9cb commit 855e45a

2 files changed

Lines changed: 106 additions & 94 deletions

File tree

gatsby-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ module.exports = {
3232
flags: {
3333
FAST_DEV: false,
3434
DEV_SSR: false,
35+
PARALLEL_SOURCING: false, // Disabled to avoid build instability and excessive resource usage in CI; re-evaluate after Gatsby/infra upgrades
3536
...devFlags,
3637
},
3738
trailingSlash: "never",

src/collections/blog/Blog.style.js

Lines changed: 105 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -41,33 +41,36 @@ export const BlogWrapper = styled.div`
4141
span {
4242
font-style: normal;
4343
}
44-
h2,h3,h4 {
45-
margin-bottom: .5rem;
46-
margin-top: .5rem;
44+
h2,
45+
h3,
46+
h4 {
47+
margin-bottom: 0.5rem;
48+
margin-top: 0.5rem;
4749
}
48-
table, td {
50+
table,
51+
td {
4952
text-align: center;
5053
border-top: 1px dotted #3c494f;
51-
th {
54+
th {
5255
background-color: #3c494f;
5356
color: #eee;
54-
padding: 0rem .5rem;
57+
padding: 0rem 0.5rem;
5558
}
5659
}
57-
@media (max-width: 990px){
58-
max-width: 100%;
59-
}
60+
@media (max-width: 990px) {
61+
max-width: 100%;
62+
}
6063
@media (max-width: 699px) {
6164
margin-left: 0rem;
6265
margin-right: 0rem;
6366
}
6467
}
6568
h3 {
66-
margin-top: .75rem;
67-
margin-bottom: .75rem;
68-
}
69+
margin-top: 0.75rem;
70+
margin-bottom: 0.75rem;
71+
}
6972
ul {
70-
margin-bottom: .75rem;
73+
margin-bottom: 0.75rem;
7174
}
7275
.to-uppercase {
7376
text-transform: uppercase;
@@ -87,26 +90,29 @@ export const BlogWrapper = styled.div`
8790
margin-left: 1.8em;
8891
}
8992
.table-3 {
90-
display: flex;
93+
display: flex;
9194
flex-direction: row;
9295
width: fit-content;
9396
table {
94-
display: inline;
95-
},
96-
tr:nth-child(even) {
97+
display: inline;
98+
}
99+
,
100+
tr:nth-child(even) {
97101
background-color: ${(props) => props.theme.secondaryLightColorTwo};
98-
},
99-
tr:nth-child(odd) {
102+
}
103+
,
104+
tr:nth-child(odd) {
100105
background-color: ${(props) => props.theme.secondaryLightColor};
101-
},
106+
}
107+
,
102108
td {
103109
text-align: center;
104110
border-top: 1px dotted #3c494f;
105-
th {
106-
background-color: #3c494f;
107-
color: #eee;
108-
padding: 0rem .5rem;
109-
}
111+
th {
112+
background-color: #3c494f;
113+
color: #eee;
114+
padding: 0rem 0.5rem;
115+
}
110116
}
111117
}
112118
.table-box {
@@ -179,14 +185,16 @@ export const BlogWrapper = styled.div`
179185
width: 40%;
180186
float: left;
181187
margin: 1rem 1.25rem 1rem 0rem;
182-
box-shadow: 0px 5px 10px 1px ${props => props.theme.green00D3A9ToGreen00B39FFive};
188+
box-shadow: 0px 5px 10px 1px
189+
${(props) => props.theme.green00D3A9ToGreen00B39FFive};
183190
}
184191
185192
.image-right {
186193
width: 40%;
187194
float: right;
188195
margin: 1rem 0rem 1rem 1.25rem;
189-
box-shadow: 0px 5px 10px 1px ${props => props.theme.green00D3A9ToGreen00B39FFive};
196+
box-shadow: 0px 5px 10px 1px
197+
${(props) => props.theme.green00D3A9ToGreen00B39FFive};
190198
}
191199
.image-right-no-shadow {
192200
width: 40%;
@@ -276,7 +284,6 @@ export const BlogWrapper = styled.div`
276284
border-bottom: 1px dashed ${(props) => props.theme.primaryLightColor};
277285
}
278286
279-
280287
/* ==============
281288
styles for figure with caption
282289
@@ -293,36 +300,36 @@ Example:
293300
margin-bottom: 1rem;
294301
padding-bottom: 1rem;
295302
box-shadow: 0px 5px 10px 1px rgba(0, 179, 159, 0.5);
296-
img{
303+
img {
297304
width: 100%;
298305
}
299306
}
300-
.fig-right{
307+
.fig-right {
301308
float: right;
302309
width: 40%;
303310
margin-left: 1rem;
304311
}
305-
.fig-left{
312+
.fig-left {
306313
float: left;
307314
width: 40%;
308315
margin-right: 1rem;
309316
}
310317
@media screen and (max-width: 699px) {
311-
.fig-right, .fig-left{
318+
.fig-right,
319+
.fig-left {
312320
width: 100%;
313321
display: block;
314322
margin: 1rem auto;
315323
}
316324
}
317-
325+
318326
figcaption p {
319327
text-align: center;
320328
font-size: 0.8rem;
321329
margin: -0.1rem 0 0.12rem;
322-
color: ${props => props.theme.menuColor};
330+
color: ${(props) => props.theme.menuColor};
323331
}
324332
325-
326333
/* ==============
327334
styles for meshmate-of-the-year-2020
328335
=======================*/
@@ -349,102 +356,106 @@ styles for meshmate-of-the-year-2020
349356
styles for service-mesh-specifications
350357
=======================*/
351358
352-
.slides{
359+
.slides {
353360
width: 45%;
354-
box-shadow: 0px 5px 10px 1px ${props => props.theme.green00D3A9ToGreen00B39FFive};
361+
box-shadow: 0px 5px 10px 1px
362+
${(props) => props.theme.green00D3A9ToGreen00B39FFive};
355363
margin-bottom: 1rem;
356364
}
357-
.slides-right{
365+
.slides-right {
358366
width: 45%;
359367
display: inline;
360368
position: relative;
361369
margin: 1rem 0 1rem 2rem;
362370
float: right;
363-
box-shadow: 0px 5px 10px 1px ${props => props.theme.green00D3A9ToGreen00B39FFive};
371+
box-shadow: 0px 5px 10px 1px
372+
${(props) => props.theme.green00D3A9ToGreen00B39FFive};
364373
}
365374
.slides-left {
366375
width: 45%;
367376
display: inline;
368377
position: relative;
369378
float: left;
370379
margin: 1rem 2rem 1rem 0rem;
371-
box-shadow: 0px 5px 10px 1px ${props => props.theme.green00D3A9ToGreen00B39FFive};
380+
box-shadow: 0px 5px 10px 1px
381+
${(props) => props.theme.green00D3A9ToGreen00B39FFive};
372382
}
373383
@media screen and (max-width: 768px) {
374-
.slides-right, .slides-left, .slides{
384+
.slides-right,
385+
.slides-left,
386+
.slides {
375387
width: 100%;
376388
display: block;
377389
margin: 1rem auto;
378390
}
379391
}
380392
381-
.slides-left:hover{
382-
cursor:pointer;
393+
.slides-left:hover {
394+
cursor: pointer;
383395
}
384-
.slides-right:hover{
385-
cursor:pointer;
396+
.slides-right:hover {
397+
cursor: pointer;
386398
}
387399
div.note {
388400
display: flex;
389401
flex-direction: column;
390402
justify-content: flex-start;
391-
color: ${props => props.theme.secondaryColor};
403+
color: ${(props) => props.theme.secondaryColor};
392404
font-style: italic;
393405
font-size: 1.3rem;
394406
font-weight: 600;
395407
text-align: right;
396-
border-right: 4px solid ${props => props.theme.secondaryColor};
408+
border-right: 4px solid ${(props) => props.theme.secondaryColor};
397409
padding-left: 2rem;
398410
padding-right: 2rem;
399411
padding-top: 1rem;
400412
padding-bottom: 1rem;
401-
}
402-
.status {
403-
text-align: center;
404-
padding-left: 2rem;
405-
}
406-
.iframe-container{
407-
position: relative;
408-
overflow: hidden;
409-
width: 100%;
410-
padding-top: 56.25%;
411-
iframe{
412-
position: absolute;
413-
top: 0;
414-
left: 0;
415-
bottom: 0;
416-
right: 0;
417-
width: 80%;
418-
height: 80%;
419-
display: block;
420-
margin-right: auto;
421-
margin-left:auto;
422413
}
423-
}
424-
code {
425-
padding: 5px;
426-
font-style: normal;
427-
font-weight: normal;
428-
white-space: pre-wrap;
429-
border-radius: 3px;
430-
background-color: ${props => props.theme.tertiaryColor};
431-
color: ${props => props.theme.textRevert};
432-
&.short {
433-
line-height: 16px;
434-
}
435-
&.navy {
436-
color: var(--vagrant-l1);
437-
}
438-
&.gray {
439-
color: var(--gray-5);
440-
}
441-
&.white {
442-
color: var(--white);
443-
}
444-
@media (min-width: 768px){
445-
font-size: .85rem;
446-
line-height: .85rem;
447-
}
414+
.status {
415+
text-align: center;
416+
padding-left: 2rem;
417+
}
418+
.iframe-container {
419+
position: relative;
420+
overflow: hidden;
421+
width: 100%;
422+
padding-top: 56.25%;
423+
iframe {
424+
position: absolute;
425+
top: 0;
426+
left: 0;
427+
bottom: 0;
428+
right: 0;
429+
width: 80%;
430+
height: 80%;
431+
display: block;
432+
margin-right: auto;
433+
margin-left: auto;
434+
}
435+
}
436+
code {
437+
padding: 5px;
438+
font-style: normal;
439+
font-weight: normal;
440+
white-space: pre-wrap;
441+
border-radius: 3px;
442+
background-color: ${(props) => props.theme.grey939393ToGrey4C4A4A};
443+
color: ${(props) => props.theme.textRevert};
444+
&.short {
445+
line-height: 16px;
446+
}
447+
&.navy {
448+
color: var(--vagrant-l1);
449+
}
450+
&.gray {
451+
color: var(--gray-5);
452+
}
453+
&.white {
454+
color: var(--white);
455+
}
456+
@media (min-width: 768px) {
457+
font-size: 0.85rem;
458+
line-height: 0.85rem;
459+
}
448460
}
449-
450461
`;

0 commit comments

Comments
 (0)