Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Knative website design issues fixed #5984

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/images/home-images/blue_autoscaling_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/images/home-images/blue_event_intergrations_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/images/home-images/blue_handle_events_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/images/home-images/blue_plugable_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/images/home-images/blue_progressive_rollouts_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/images/home-images/blue_simple_abstractions_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/images/home-images/cloud_agnostic_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/images/home-images/dev_focus_code_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/images/home-images/dkblue_scale_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 39 additions & 9 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:root {
--md-primary-fg-color: #f3f1f2;
--home-color: #0071c7;
--home-color: #0D4984;
--nav-item-color: #4d4d4d;
}

Expand Down Expand Up @@ -99,8 +99,19 @@ a.md-header__button.md-logo img {
font-weight: bold;
}

.md-tabs__list {
contain: none;
overflow: visible;
}

.md-tabs__list li:nth-last-child(3) {
margin-left: auto;
margin-left: 360px;
}

@media only screen and (max-width: 1630px) {
.md-tabs__list li:nth-last-child(3) {
margin-left: auto;
}
}

.md-tabs__list li:nth-last-child(1),
Expand All @@ -111,6 +122,13 @@ a.md-header__button.md-logo img {
padding: 0 2em;
}

.md-tabs__list li:nth-last-child(1){
border-top-right-radius: 10px;
}
.md-tabs__list li:nth-last-child(3){
border-top-left-radius: 10px;
}

.md-tabs__list li:nth-last-child(1) a,
.md-tabs__list li:nth-last-child(2) a,
.md-tabs__list li:nth-last-child(3) a {
Expand All @@ -120,7 +138,8 @@ a.md-header__button.md-logo img {
.md-tabs__list li:nth-last-child(1) a:hover,
.md-tabs__list li:nth-last-child(2) a:hover,
.md-tabs__list li:nth-last-child(3) a:hover {
color: var(--md-accent-fg-color);
color: #c6deff;
transition: all 0.1s ease-in;
}

.md-nav__title .md-nav__button.md-logo img,
Expand Down Expand Up @@ -188,6 +207,13 @@ a.md-header__button.md-logo img {

.md-typeset .md-button {
color: #024c93;
border-radius: 7px;
}

.md-button:hover {
background-color: #013464 !important;
color: white;
border: 1px solid #024c93 !important;
}

/* Giving h4 tag distinctive style because it is non-differntial with bold text */
Expand Down Expand Up @@ -335,17 +361,12 @@ a.md-header__button.md-logo img {
background-color: #024c93;
}

.md-footer .md-footer-copyright {
font-weight: bold;
}

.md-footer-meta {
background-color: var(--md-footer-bg-color);
background-color: #081729;
}

.footer-links {
display: flex;
flex-grow: 1;
align-items: center;
}

Expand All @@ -354,6 +375,15 @@ a.md-header__button.md-logo img {
text-decoration: underline
}

html .md-footer-meta.md-typeset a {
color: #fff;
font-weight: 500;
}

.md-social__link svg {
fill: #fff;
}

/* Feature State Labels */
.feature-alpha, .feature-beta, .feature-stable {
font-variant: small-caps;
Expand Down
79 changes: 63 additions & 16 deletions overrides/assets/stylesheets/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,17 @@ body {
min-width: fit-content;
}

.cta-1{
margin-right: 5px;
}
.cta-2{
margin-left: 5px;
}

.home-container .md-button,
.need-to-know-more-container .md-button {
background-color: #52b3dd;
border-color: #52b3dd;
background-color: #6593C8;
border-color: #6593C8;
}

.home-container .md-button--primary {
Expand All @@ -117,7 +124,7 @@ h2.secondary-headline, h3.trusted-by {
}

.home-container h1 {
color: #024c93;
color: #081729;
margin-top: 1em;
margin-bottom: 0;
}
Expand Down Expand Up @@ -213,18 +220,28 @@ h2.secondary-headline, h3.trusted-by {

/* why serverless container css */
.why-serverless-container, .trying-it-all-container {
background-color: #f3f1f2;
background-color: #fff;
color: var(--md-default-fg-color--light);
}

.reason-text h2{
color: #000;
}

.reason-text p{
font-size: 1rem;
color: #333;
font-weight: 500;
}

.why-serverless-container h1, .trying-it-all-container h1,
.case-studies-container h1 {
color: #024c93;
}

.why-serverless-container .normal-text,
.trying-it-all-container .normal-text {
font-weight: 600;
font-weight: 400;
margin: 0 auto 2rem;
max-width: 75%;
}
Expand All @@ -243,6 +260,7 @@ h2.secondary-headline, h3.trusted-by {

.why-serverless-container .normal-text {
font-size: .8rem;
color: #000;
}

.img-table {
Expand Down Expand Up @@ -276,12 +294,12 @@ h2.secondary-headline, h3.trusted-by {

/* knative components container css */
.knative-components-container h1 {
color: #7dc47e;
color: #fff;
}

.knative-components-container .text-table .normal-text {
width: 30%;
text-align: start;
text-align: center;
margin-left: 1%;
font-size: .8rem;
margin-top: -1rem;
Expand Down Expand Up @@ -311,11 +329,16 @@ h2.secondary-headline, h3.trusted-by {
}

.trying-it-all-container .md-typeset h2 {
color: #024c93;
color: #000;
line-height: 1;
margin-bottom: 1rem;
}

.why-serverless-container .normal-text, .trying-it-all-container .normal-text {
font-size: 16px;
font-weight: 600;
}

.trying-it-all-container .img-col {
place-self: flex-start;
}
Expand Down Expand Up @@ -343,7 +366,8 @@ h2.secondary-headline, h3.trusted-by {
}

.trying-it-all-container .md-button.call-to-action:hover {
background-color: var(--md-accent-fg-color);
background-color: #013464;
border: 1px solid #024C93;
}

/* case studies container css */
Expand All @@ -352,7 +376,7 @@ h2.secondary-headline, h3.trusted-by {
justify-content: center;
color: black;
display: flex;
background-color: white;
background-color: #F7F7F7;
}

.case-studies-container h1 {
Expand All @@ -362,8 +386,9 @@ h2.secondary-headline, h3.trusted-by {
.case-studies-container .cases-table {
display: flex;
justify-content: center;
max-width: 90%;
max-width: 80%;
margin: auto;
gap: 20px;
}

.case-studies-container .logo {
Expand All @@ -377,6 +402,16 @@ h2.secondary-headline, h3.trusted-by {
.case-studies-container .col {
min-width: 38%;
max-width: 40%;
padding: 16px 0;
background: #fff;
border-radius: 16px;
}

.case-studies-container .col:hover {
transform: translate3D(0,-1px,0) scale(1.03); /* move up slightly and zoom in */
box-shadow: 8px 28px 50px rgba(39,44,49,.07), 1px 6px 12px rgba(39,44,49,.04);
transition: all .4s ease; /* zoom in */
cursor: pointer;
}

.case-studies-container .logo img {
Expand All @@ -399,16 +434,15 @@ h2.secondary-headline, h3.trusted-by {
.case-studies-container .normal-text {
text-align: start;
padding: 0 2em;
color: #497bb2;
color: #0D4984;
font-weight: 600;
font-style: italic;
line-height: 1.1;
font-family: serif;
font-family: sans-serif;
font-size: .95rem;
}

.case-studies-container hr {
border-bottom: 2px solid #89c487;
border-bottom: 2px solid #0D4984;
display: flow-root;
margin: .4em 5em -4px 2em;
}
Expand Down Expand Up @@ -460,7 +494,6 @@ h2.secondary-headline, h3.trusted-by {
/* cncf notice container css */
.cncf-notice-container {
background-color: white;
padding-top: 0;
}

.cncf-notice-container h3 {
Expand All @@ -475,6 +508,20 @@ h2.secondary-headline, h3.trusted-by {
margin: 1rem;
}

.md-top {
border-radius: 0.4rem;
border: 1px solid #333;
box-shadow: none;
}

.md-tabs__item{
font-weight: 600;
}

.md-tabs__item--active {
font-weight: 700;
}

@media only screen and (max-width: 1219px) {
.md-header__topic {
margin: 0;
Expand Down
Loading