Skip to content

Commit

Permalink
Revert "feat: dark theme (#12)" (#13)
Browse files Browse the repository at this point in the history
This reverts commit 092ddb6.
  • Loading branch information
xuliwenwenwen authored Jun 30, 2024
1 parent 092ddb6 commit 798a449
Show file tree
Hide file tree
Showing 47 changed files with 439 additions and 706 deletions.
17 changes: 7 additions & 10 deletions pingcap-jp/bootstrap/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,8 @@
'block-bg-none' => 'None',
'block-bg-image' => 'Image',
'bg-black' => 'Black',
'bg-black-dark' => 'Black(#000)',
'bg-blue' => 'Blue',
'bg-gray' => 'Gray',
'bg-gradient' => 'Gradient',
'bg-color-gradient' => 'Color Gradient',

'block-bg-none block-bg-split' => 'White / Black'
]);
Expand All @@ -102,18 +99,18 @@
* Only allow specific background colors for the specified blocks
*/
WPUtil\Vendor\BlueprintBlocks::restrict_backgrounds_for_blocks([
'cards' => ['block-bg-none', 'bg-black', 'bg-black-dark', 'bg-gray', 'bg-gradient'],
'cards' => ['block-bg-none', 'bg-black', 'bg-gray'],
'case-study' => ['block-bg-none'],
'columns' => ['block-bg-none', 'bg-black', 'bg-black-dark', 'bg-blue', 'bg-gray', 'block-bg-image', 'bg-gradient', 'bg-color-gradient'],
'columns' => ['block-bg-none', 'bg-black', 'bg-blue', 'bg-gray','block-bg-image'],
'community-activities' => ['block-bg-none'],
'cta' => ['block-bg-none', 'bg-black', 'bg-black-dark', 'bg-gray', 'block-bg-image'],
'icon-grid' => ['block-bg-none', 'bg-blue', 'bg-black', 'bg-black-dark', 'bg-gradient'],
'cta' => ['block-bg-none', 'bg-black', 'bg-gray', 'block-bg-image'],
'icon-grid' => ['block-bg-none', 'bg-blue', 'bg-black'],
'leadership' => ['block-bg-none'],
'logos' => ['block-bg-none', 'bg-black', 'bg-black-dark'],
'media-content' => ['block-bg-none', 'bg-black', 'bg-black-dark', 'bg-gradient'],
'logos' => ['block-bg-none'],
'media-content' => ['block-bg-none'],
'open-positions' => ['block-bg-none'],
'pricing' => ['bg-blue'],
'resources' => ['block-bg-none', 'block-bg-none block-bg-split', 'bg-gray'],
'resources' => ['block-bg-none', 'block-bg-none block-bg-split','bg-gray'],
'solutions' => ['block-bg-none'],
'stats' => ['block-bg-none'],
'table' => ['bg-blue'],
Expand Down
4 changes: 0 additions & 4 deletions pingcap-jp/bootstrap/tinymce.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@
),
'option' => array(
'value' => true
),
'embed' => array(
'type' => true,
'src' => true
)
)
);
Expand Down
19 changes: 4 additions & 15 deletions pingcap-jp/css/blocks/columns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,6 @@
align-items: center;
}
}
&.container-border-top {
.block-inner {
border-top: 1px solid;
border-image: linear-gradient(
90deg,
#0ca6f2 -1.46%,
#0aadc4 7.56%,
#006fc2 16.61%,
#0ca6f2 23.05%,
#01ecb0 91.39%,
#28ea76 100%
)
1;
}
}
.block-inner {
display: grid;
grid-template-columns: repeat(var(--grid-num-cols, 1), minmax(0, 1fr));
Expand Down Expand Up @@ -290,6 +275,10 @@
@include media-min($large) {
padding-bottom: calc(var(--block-padding-lg-bottom));
}

&::before {
bottom: 0;
}
}

&__video-container {
Expand Down
2 changes: 1 addition & 1 deletion pingcap-jp/css/blocks/cta.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
&__column-title-container {
display: flex;
align-items: center;
gap: 1.8rem;
gap: 1.7rem;
margin-bottom: 1.5rem;
}

Expand Down
2 changes: 1 addition & 1 deletion pingcap-jp/css/blocks/media-content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
position: relative;

&.last {
padding-bottom: 8rem;
margin-bottom: 8rem;
}

&__container {
Expand Down
8 changes: 1 addition & 7 deletions pingcap-jp/css/components/banners/banner-default.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
.banner-default {
&.bg-black {
background-repeat: repeat-x;
background-position: top center;
background-image: linear-gradient(to bottom, rgba(14, 14, 14, 0.4) 0, #000000bd 100%),
url(https://static.pingcap.co.jp/files/2024/06/29150254/bg-hex-pattern.png);
}
&__inner {
/* stylelint-disable */
--bottom-padding-pull-up: 0;
Expand Down Expand Up @@ -261,7 +255,7 @@
&.tmpl-get-started,
&.tmpl-pricing {
padding-bottom: 5rem;
@include media-min($medium) {
@include media-min($medium){
height: 300px;
}
.banner-default__inner {
Expand Down
14 changes: 7 additions & 7 deletions pingcap-jp/css/components/banners/banner-home.scss
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
.banner-home {
position: relative;
padding-top: 3rem;
background-repeat: repeat-x;
background-position: top center;
background-image: linear-gradient(to bottom, rgba(14, 14, 14, 0.4) 0, #000000bd 100%),
url(https://static.pingcap.co.jp/files/2024/06/29150254/bg-hex-pattern.png);

h1 {
line-height: 1.25;
&__title {
color: var(--color-black);
}

&__content {
margin-top: 2.4rem;
margin-top: 1.6rem;
padding-right: 3.2rem;
p {
font-weight: 700;
font-size: 30px;
color: #8b8c93;
}
h3 {
color: #8b8c93;
}
}

Expand Down
17 changes: 7 additions & 10 deletions pingcap-jp/css/components/cards/card-text-content.scss
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@
.card-text-content {
padding: 3.2rem;
border-radius: var(--card-border-radius);
border: 1px solid transparent;
border: 1px solid var(--card-border-color);
transition: all var(--default-transition-params);

background-clip: padding-box, border-box;
background-origin: padding-box, border-box;
background-image: var(--card-background-image);

&:hover {
box-shadow: var(--card-box-shadow);
transform: var(--card-transform);
transform:var(--card-transform);
}

&__label {
&__label{
margin-bottom: 1.6rem;
color: var(--card-label-color);
color: var(--color-black);
}


&__title-container {
display: flex;
align-items: center;
gap: 2rem;
}

h5 {
color: var(--card-title-color);
h5{
color: #303EAB;
}

&__icon {
Expand Down
2 changes: 1 addition & 1 deletion pingcap-jp/css/components/case-study-testimonial.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

&__blockquote-container {
grid-column: 6 / 12;
margin-top: 6rem;
margin-top: 12rem;
}
}

Expand Down
2 changes: 0 additions & 2 deletions pingcap-jp/css/components/footer.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.site-footer {
padding: 5rem 0;
background-color: #20222B;

a {
color: var(--color-white);
Expand Down Expand Up @@ -225,7 +224,6 @@
&__design,
&__copyright {
font-size: 1.2rem;
color: #fff;
}

&__beian {
Expand Down
35 changes: 7 additions & 28 deletions pingcap-jp/css/components/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,7 @@ html.mobile-menu-cta-active {
}

.site-header {
background-color: #20222b;
transition: transform var(--header-transition-speed) ease-in-out;

&__bg-bar {
height: 4px;
background: linear-gradient(
90deg,
#0cb1f2 -0.01%,
#12c0c5 13.53%,
#256cd4 28.11%,
#15a1e6 40.61%,
#0ca6f2 64.05%,
#01ecb0 91.53%,
#0cf06e 99.98%
);
}

&-wrapper {
z-index: var(--z-header);
position: fixed;
Expand All @@ -39,11 +23,10 @@ html.mobile-menu-cta-active {

display: flex;
align-items: center;
padding: 1.2rem 0;
padding: 1.5rem 0;

&__top {
background: linear-gradient(90deg, #13367d -1.46%, #0f3141 37.65%, #006f5d);

background-color: #404559;
nav {
display: flex;
justify-content: flex-end;
Expand All @@ -54,9 +37,7 @@ html.mobile-menu-cta-active {
font-size: 1.4rem;
text-decoration: none;
line-height: 2rem;
font-weight: 700;
display: flex;
align-items: center;
font-weight: 500;
}
}
&-menu-icon {
Expand Down Expand Up @@ -90,11 +71,9 @@ html.mobile-menu-cta-active {

&__logo {
width: 132px;
height: 34px;

@include media-min($large) {
width: 150px;
height: 40px;
}
}

Expand Down Expand Up @@ -142,30 +121,30 @@ html.mobile-menu-cta-active {
width: 13.6rem;
min-width: unset;
min-height: unset;
height: 3.2rem;
height: 3.4rem;
padding: unset;
}
}

&__menu {
display: flex;
align-items: center;
gap: 3.2rem;
gap: 3rem;
}

&__menu-primary {
display: none;

@include media-min($large) {
display: flex;
gap: 3.2rem;
gap: 3rem;
flex-grow: 1;
}
}

&__primary-menu-link {
position: relative;
font-weight: var(--font-weight-bold);
font-weight: var(--font-weight-medium);
color: var(--color-white);
text-decoration: underline;
text-decoration-color: transparent;
Expand Down
18 changes: 1 addition & 17 deletions pingcap-jp/css/components/menu-dropdowns/menu-dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,6 @@
}
}

&__item-ai {
display: flex;
flex-direction: column;
gap: 1.6rem;
padding-bottom: 24px;
a {
display: flex;
gap: 1.6rem;
align-items: center;
.icon-ai {
width: 2rem;
height: 2rem;
}
}
}

&__feature-column {
padding: 1.6rem 2.4rem;
min-width: 360px;
Expand Down Expand Up @@ -62,7 +46,7 @@
flex-direction: column;
gap: 1.6rem;
padding: 2.4rem 3rem;

a {
display: flex;
font-size: 1.4rem;
Expand Down
6 changes: 2 additions & 4 deletions pingcap-jp/css/components/mobile-menu.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.mobile-menu {
background-color: #20222B;
z-index: calc(var(--z-header) + 1);
display: flex;
transition: opacity 0.25s ease-in-out;
Expand Down Expand Up @@ -42,7 +41,7 @@
.mobile-menu-default__primary-title-label,
&__primary-link {
padding: 2rem 0;
font-size: 1.8rem;
font-size: 1.7rem;
font-weight: var(--font-weight-bold);
color: var(--color-white);
text-transform: uppercase;
Expand Down Expand Up @@ -75,7 +74,6 @@
}

span {
color: var(--color-white);
transition: color var(--default-transition-params);
}
}
Expand Down Expand Up @@ -131,7 +129,7 @@

a {
font-size: 1.4rem;
color: var(--color-white);
color: var(--anchor-link-normal-color);
text-decoration: none;
transition: color var(--default-transition-params);

Expand Down
Loading

0 comments on commit 798a449

Please sign in to comment.