Skip to content
Open
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
1 change: 1 addition & 0 deletions assets/icons/logo-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
99 changes: 99 additions & 0 deletions assets/scss/_landing_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,102 @@
}
}

// Light theme styles for landing page
[data-theme="light"],
[data-bs-theme="light"] {
.product-section a {
color: #142126 !important;
}

.playground-section {
&.playground-logo {
background-image: url("../images/logos/white-semi-opaque.svg"), url("../images/logos/meshery-light-icon.svg") !important;
}
&.video-play-logo {
background-image: url("../images/logos/white-semi-opaque.svg"), url("../images/video-play.svg") !important;
}
}

.catalog-section {
&.catalog-logo {
background-image: url("../images/logos/white-semi-opaque.svg"), url("../images/logos/catalog.svg") !important;
}
&.academy-logo {
background-image: url("../images/logos/white-semi-opaque.svg"), url("../images/logos/academy.svg") !important;
}
&.recognition-program-logo {
background-image: url("../images/logos/white-semi-opaque.svg"), url("../images/logos/recognition-program.png") !important;
}
}

.landing-card {
background: #ffffff !important;
border: 1.5px solid #d2d8da !important;
box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04) !important;

.landing-card-title,
span.landing-card-title {
color: #000d12 !important;
}

p {
color: #28353a !important;
}

&:hover {
border: 1.5px solid $primary !important;
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.06) !important;

.landing-card-title,
span.landing-card-title {
color: $primary !important;
}

p {
color: #000d12 !important;
}
}
}

.landing-card-title {
color: #000d12 !important;
}

.forum-section {
background: #ffffff !important;
border: 1.5px solid #d2d8da !important;
box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04) !important;

.landing-card-title,
h1, h2, h3, h4, h5, h6,
span {
color: #000d12 !important;
}

p {
color: #28353a !important;
}

&:hover {
border-color: $primary !important;
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.06) !important;
}
}

.handbook-section {
background: linear-gradient(112deg, #ffffff 34.88%, #daf3eb 92.89%, #f0faf8 159.16%) !important;
border: 1.5px solid #93e6d1 !important;
border-radius: 1rem !important;

.landing-card-title,
h1, h2, h3, h4, h5, h6,
span {
color: #000d12 !important;
}

p {
color: #28353a !important;
}
}
}

216 changes: 216 additions & 0 deletions assets/scss/_navbar_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,220 @@ $ecosystem-box-glow: inset 0 0em 4em #ebc01766, 0 0 0 2px #ebc01766, 0.3em 0.3em
&:focus ~ .highlight-box {
box-shadow: none;
}
}

// Navbar Brand Logo Light/Dark Support
.navbar-brand {
.logo-light {
display: none;
}
.logo-dark {
display: inline-block;
}
}

// Theme Toggle Button
.theme-toggle-nav-item {
margin-right: 0.75rem;
margin-left: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
}

.theme-toggle {
--size: 1.35rem;
appearance: none;
border: 1px solid rgba(255, 255, 255, 0.15);
background: rgba(255, 255, 255, 0.08);
cursor: pointer;
width: 2.25rem;
height: 2.25rem;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
position: relative;
transition: all 0.3s ease;
vertical-align: middle;
outline: none;

.theme-toggle-icon {
display: inline-block;
width: var(--size);
height: var(--size);
border-radius: 50%;
color: $secondary;
box-shadow: inset calc(var(--size) * 0.33) calc(var(--size) * -0.25) 0 0;
transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

&:hover {
background: rgba(0, 211, 169, 0.15);
border-color: $secondary;
transform: scale(1.05);

.theme-toggle-icon {
color: $secondary;
}
}

&:focus-visible {
outline: 2px solid $primary;
outline-offset: 2px;
}
}

// Light theme state for toggle button
[data-theme="light"],
[data-bs-theme="light"] {
.navbar-brand {
.logo-light {
display: inline-block;
}
.logo-dark {
display: none;
}
}

.theme-toggle {
background: rgba(60, 73, 79, 0.08);
border: 1px solid rgba(60, 73, 79, 0.18);

.theme-toggle-icon {
--ray-size: calc(var(--size) * -0.4);
--offset-orthogonal: calc(var(--size) * 0.65);
--offset-diagonal: calc(var(--size) * 0.45);
transform: scale(0.75);
color: $saffron;
box-shadow: inset 0 0 0 var(--size),
calc(var(--offset-orthogonal) * -1) 0 0 var(--ray-size),
var(--offset-orthogonal) 0 0 var(--ray-size),
0 calc(var(--offset-orthogonal) * -1) 0 var(--ray-size),
0 var(--offset-orthogonal) 0 var(--ray-size),
calc(var(--offset-diagonal) * -1) calc(var(--offset-diagonal) * -1) 0 var(--ray-size),
var(--offset-diagonal) var(--offset-diagonal) 0 var(--ray-size),
calc(var(--offset-diagonal) * -1) var(--offset-diagonal) 0 var(--ray-size),
var(--offset-diagonal) calc(var(--offset-diagonal) * -1) 0 var(--ray-size);
}

&:hover {
background: rgba(235, 192, 23, 0.12);
border-color: #ebc017;

.theme-toggle-icon {
color: #d49b00;
}
}

&:focus-visible {
outline: 2px solid $primary;
outline-offset: 2px;
}
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.

.td-navbar,
.navbar-dark {
background-color: #ffffff !important;
border-bottom: 1px solid #eaedee !important;

.nav-link {
color: #3c494f;
font-weight: 600;

&:hover {
color: $primary;
}

&.current,
&.active {
color: $primary;
}
}

.td-search {
background-color: #eaedee !important;
border: 1px solid #d2d8da !important;
border-radius: 1rem !important;

.td-search__input {
background: transparent !important;
color: #000d12 !important;

&::placeholder {
color: #647176 !important;
}

&:focus {
color: #000d12 !important;
}
}

.td-search__icon {
color: #647176 !important;
}

&:focus-within {
border-color: $primary !important;
box-shadow: none !important;
}
}

.dropdown-menu {
background-color: #ffffff;
border: 1px solid #eaedee;
box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.08);

.dropdown-item {
color: #3c494f;

&:hover {
background-color: rgba(0, 179, 159, 0.08);
color: $primary;

img {
filter: none;
}
}
}

.dropdown-divider {
border-top: 1px solid #eaedee;
}
}
}

.apps-dropdown .dropdown-menu {
background-color: #ffffff;
border: 1px solid #eaedee;
box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.08);

.dropdown-item {
background-color: #f6f8f8;
border: 1px solid #eaedee;
color: #3c494f;

span {
color: #3c494f;
}

&:hover {
background-color: #ffffff;
border-color: $primary;
color: $primary;

span {
color: $primary;
}
}
}
}

img.grid-icon {
filter: invert(0.2);
&:hover {
filter: invert(0.4);
}
}
}
39 changes: 36 additions & 3 deletions assets/scss/_search_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@
display: flex;
justify-content: center;
align-content: center;
// background-color: #EBC017;
background-color: #2e2e31;
border-radius: 1rem;

Expand All @@ -163,8 +162,42 @@
color: inherit;
}
}
.td-search__input.form-control:focus {
// background-color: #EBC017;
}

// Light theme search adjustments
[data-theme="light"],
[data-bs-theme="light"] {
.td-navbar .td-search,
.td-search {
background-color: #eaedee !important;
border: 1px solid #d2d8da !important;

.td-search__input {
color: #000d12 !important;

&::placeholder {
color: #647176 !important;
}

&:focus {
color: #000d12 !important;
}
}

.td-search__icon {
color: #647176 !important;
}

&:focus-within {
border-color: $primary !important;
box-shadow: none !important;
}
}

.popover-body {
background-color: #ffffff;
color: #3c494f;
border: 1px solid #eaedee;
}
}

Expand Down
Loading
Loading