Skip to content

Commit 7f849b5

Browse files
style: pricing card (#114)
1 parent e3a1c4d commit 7f849b5

2 files changed

Lines changed: 66 additions & 87 deletions

File tree

pingcap-jp/css/templates/product.scss

Lines changed: 27 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@
2424
display: flex;
2525
align-items: center;
2626
gap: 12px;
27+
margin-bottom: 4px;
2728
}
2829
&-title {
2930
font-size: 22px;
3031
font-weight: 700;
3132
line-height: 30px;
3233
color: #fff;
33-
margin-bottom: 4px;
34+
margin-top: 0;
3435
}
3536
p {
3637
font-size: 16px;
@@ -103,27 +104,6 @@
103104
}
104105
}
105106

106-
.capabilities {
107-
.block-media-content__container {
108-
h3 {
109-
font-size: 24px;
110-
line-height: 30px;
111-
font-weight: 700;
112-
color: #000;
113-
@include media-min($medium) {
114-
font-size: 5rem;
115-
line-height: 66px;
116-
}
117-
}
118-
p {
119-
font-size: 22px;
120-
font-weight: 300;
121-
line-height: 28px;
122-
color: #454b51;
123-
}
124-
}
125-
}
126-
127107
.features {
128108
.block-inner,
129109
.features-inner {
@@ -184,7 +164,7 @@
184164
background-color: #0f5353;
185165
}
186166
&__title-container {
187-
h3 {
167+
h2 {
188168
font-size: 40px;
189169
font-weight: 700;
190170
line-height: 48px;
@@ -349,6 +329,7 @@
349329
flex-direction: row;
350330
}
351331
border: 1px solid #f2f2f7;
332+
margin-top: 0;
352333
}
353334
&__card {
354335
color: #fff;
@@ -557,7 +538,7 @@
557538
}
558539
}
559540

560-
&:nth-of-type(1) {
541+
&.cloud {
561542
border: 1px solid #9e4ec4;
562543
&::after {
563544
content: "";
@@ -570,7 +551,7 @@
570551
height: 117px;
571552
}
572553
}
573-
&:nth-of-type(2) {
554+
&.self-managed {
574555
border: 1px solid #2c80ce;
575556
&::after {
576557
content: "";
@@ -607,6 +588,7 @@
607588

608589
.edition {
609590
.card-text-content {
591+
padding: 32px 16px;
610592
.button {
611593
margin-top: 60px;
612594
margin-bottom: 16px;
@@ -619,6 +601,11 @@
619601
width: 20px;
620602
}
621603
}
604+
&__title {
605+
display: flex;
606+
gap: 12px;
607+
font-size: 20px;
608+
}
622609
&:nth-of-type(1) {
623610
.card-text-content__title {
624611
color: #d454b4;
@@ -628,24 +615,28 @@
628615
border-color: #fff;
629616
.card-text-content__title {
630617
color: #948de2;
631-
display: flex;
632-
gap: 12px;
633-
.tag {
634-
background: #000;
635-
color: #fff;
636-
border: 1px solid #28333e;
637-
border-radius: 16px;
638-
padding: 0 12px;
639-
display: flex;
640-
align-items: center;
641-
}
642618
}
643619
}
644620
&:nth-of-type(3) {
621+
border-color: #2C80CE;
622+
.card-text-content__title {
623+
color: #509dea;
624+
}
625+
}
626+
&:nth-of-type(4) {
645627
.card-text-content__title {
646628
color: #79d2d2;
647629
}
648630
}
631+
.tag {
632+
background: #000;
633+
color: #fff;
634+
border: 1px solid #28333e;
635+
border-radius: 16px;
636+
padding: 0 6px;
637+
display: flex;
638+
align-items: center;
639+
}
649640
}
650641
}
651642
}

pingcap-jp/css/templates/tidb.scss

Lines changed: 39 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,12 @@
355355
}
356356
}
357357
&.pricing {
358-
@include media-min($large) {
359-
--num-cols: 2;
360-
gap: 8px;
361-
}
362-
@include media-min(1300px) {
363-
--num-cols: 4;
364-
gap: 8px;
358+
&.two {
359+
margin-top: 16px;
360+
@include media-min($medium) {
361+
margin-top: 16px;
362+
--num-cols: 2;
363+
}
365364
}
366365
}
367366
&-item {
@@ -433,24 +432,46 @@
433432
height: 100%;
434433
justify-content: flex-start;
435434
padding: 2.4rem 3rem 3rem;
435+
border-color: #28333e;
436436
& > div:first-child {
437437
flex: 1;
438438
}
439-
h4 {
439+
.tag {
440+
background: #000;
441+
color: #fff;
442+
border: 1px solid #28333e;
443+
border-radius: 16px;
444+
padding: 0 10px;
445+
display: flex;
446+
align-items: center;
447+
font-size: 12px;
448+
}
449+
h2 {
450+
display: flex;
451+
align-items: center;
452+
justify-content: center;
453+
gap: 8px;
454+
white-space: nowrap;
455+
color: #fff;
440456
margin-top: 1rem;
441457
& + * {
442458
margin-top: 0.4rem;
443459
}
444460
@include media-min($medium) {
445461
font-size: 20px;
446462
}
447-
}
448-
.tip {
449-
display: flex;
450-
gap: 4px;
451-
align-items: center;
452-
justify-content: center;
453-
min-height: 25px;
463+
&.pink {
464+
color: #d454b4;
465+
}
466+
&.violet {
467+
color: #948de2;
468+
}
469+
&.green {
470+
color: #79d2d2;
471+
}
472+
&.blue {
473+
color: #2c80ce;
474+
}
454475
}
455476
ul {
456477
& + * {
@@ -471,44 +492,11 @@
471492
font-size: 18px;
472493
}
473494
}
474-
&:nth-child(1) {
475-
border-color: #28333e;
476-
h4 {
477-
color: #d454b4;
478-
}
479-
}
480-
&:nth-child(2) {
495+
&.border-color-white {
481496
border-color: #fff;
482-
h4 {
483-
color: #948de2;
484-
display: flex;
485-
align-items: center;
486-
justify-content: center;
487-
gap: 8px;
488-
white-space: nowrap;
489-
}
490-
.tag {
491-
background: #000;
492-
color: #fff;
493-
border: 1px solid #28333e;
494-
border-radius: 16px;
495-
padding: 0 10px;
496-
display: flex;
497-
align-items: center;
498-
font-size: 12px;
499-
}
500-
}
501-
&:nth-child(3) {
502-
border-color: #28333e;
503-
h4 {
504-
color: #79d2d2;
505-
}
506497
}
507-
&.row {
508-
border-color: #28333e!important;
509-
h4 {
510-
color: #fff;
511-
}
498+
&.border-color-blue {
499+
border-color: #2c80ce;
512500
}
513501
}
514502
&-bottom {

0 commit comments

Comments
 (0)