-
Notifications
You must be signed in to change notification settings - Fork 59
fix(ui): responsivness of Kmesh website #274
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -67,10 +67,74 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| margin: 0px 0 10px 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (max-width: 435px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .row { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .description { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| flex: 0 0 66.666667%; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| max-width: 66.666667%; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 1rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .name { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 1.5em; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-weight: 400; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| margin: 20px 0 10px 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .jobTitle { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 0.5rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-weight: 300; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| margin: 0px 0 10px 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (max-width: 1024px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .row { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .description { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 1rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .name { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 1.5em; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .jobTitle { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 0.7rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (min-width: 1300px) and (max-width: 1515px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .row { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .description { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 1.1rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .name { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 1.8em; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .jobTitle { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 0.9rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @media (max-width: 1300px) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .row { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .description { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 1.1rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .name { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 1.8em; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .jobTitle { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 0.9rem; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+121
to
+133
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The media query
Suggested change
Comment on lines
+71
to
+133
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| html[data-theme="dark"] { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .aboutContainer { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| background-color: #242526; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,5 +23,4 @@ | |
|
|
||
| .cncfLine2 { | ||
| font-size: 1.8rem; | ||
| } | ||
|
|
||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -19,24 +19,18 @@ | |||||||||||||
|
|
||||||||||||||
| &.left { | ||||||||||||||
| align-items: flex-start; | ||||||||||||||
|
|
||||||||||||||
| .title { | ||||||||||||||
| text-align: left; | ||||||||||||||
| } | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| &.right { | ||||||||||||||
| align-items: flex-end; | ||||||||||||||
|
|
||||||||||||||
| .title { | ||||||||||||||
| text-align: right; | ||||||||||||||
| } | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| &.center { | ||||||||||||||
| align-items: centers; | ||||||||||||||
| justify-content: center; | ||||||||||||||
|
|
||||||||||||||
| align-items: center; | ||||||||||||||
| .title { | ||||||||||||||
| text-align: center; | ||||||||||||||
| } | ||||||||||||||
|
|
@@ -46,34 +40,30 @@ | |||||||||||||
| color: white; | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| .button { | ||||||||||||||
| a { | ||||||||||||||
| display: block; | ||||||||||||||
| cursor: pointer; | ||||||||||||||
| font-size: 1.1rem; | ||||||||||||||
| font-weight: 400; | ||||||||||||||
| color: #0039cb; | ||||||||||||||
| padding: 0.5em 2.1em; | ||||||||||||||
| background-color: #f8f9fa; | ||||||||||||||
| border-color: #f8f9fa; | ||||||||||||||
| border-radius: 0.4rem; | ||||||||||||||
| text-decoration: none; | ||||||||||||||
| user-select: none; | ||||||||||||||
| transition: color 0.15s ease-in-out, | ||||||||||||||
| background-color 0.15s ease-in-out, border-color 0.15s ease-in-out; | ||||||||||||||
|
|
||||||||||||||
| &:hover { | ||||||||||||||
| background-color: #e2e6ea; | ||||||||||||||
| border-color: #dae0e5; | ||||||||||||||
| } | ||||||||||||||
| .button a { | ||||||||||||||
| display: block; | ||||||||||||||
| cursor: pointer; | ||||||||||||||
| font-size: 1.1rem; | ||||||||||||||
| font-weight: 400; | ||||||||||||||
| color: #0039cb; | ||||||||||||||
| padding: 0.5em 2.1em; | ||||||||||||||
| background-color: #f8f9fa; | ||||||||||||||
| border-color: #f8f9fa; | ||||||||||||||
| border-radius: 0.4rem; | ||||||||||||||
| text-decoration: none; | ||||||||||||||
| user-select: none; | ||||||||||||||
| transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, | ||||||||||||||
| border-color 0.15s ease-in-out; | ||||||||||||||
| &:hover { | ||||||||||||||
| background-color: #e2e6ea; | ||||||||||||||
| border-color: #dae0e5; | ||||||||||||||
| } | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| .main-title { | ||||||||||||||
| font-size: 2.7rem; | ||||||||||||||
| text-align: inherit; | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| .sub-title { | ||||||||||||||
| font-size: 1.35rem; | ||||||||||||||
| text-align: inherit; | ||||||||||||||
|
|
@@ -85,30 +75,68 @@ | |||||||||||||
| width: 15%; | ||||||||||||||
| z-index: 1; | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| .slick-prev { | ||||||||||||||
| position: position; | ||||||||||||||
| left: 0; | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| .slick-next { | ||||||||||||||
| position: position; | ||||||||||||||
| right: 0; | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| .slick-dots { | ||||||||||||||
| bottom: 10px; | ||||||||||||||
| } | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| @media (max-width: 768px) { | ||||||||||||||
| .slick-slider { | ||||||||||||||
| .slick-item { | ||||||||||||||
| padding-right: 20px; | ||||||||||||||
| padding-left: 20px; | ||||||||||||||
| margin: 0 0.25rem; | ||||||||||||||
| @media (max-width: 1230px) and (min-width: 993px){ | ||||||||||||||
| .slick-slider .slick-item { | ||||||||||||||
| .main-title { | ||||||||||||||
| font-size: 2rem; | ||||||||||||||
| } | ||||||||||||||
| .sub-title { | ||||||||||||||
| font-size: 1.3rem; | ||||||||||||||
| } | ||||||||||||||
| } | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| @media (max-width: 992px) { | ||||||||||||||
| .slick-slider .slick-item { | ||||||||||||||
| .main-title { | ||||||||||||||
| font-size: 2rem; | ||||||||||||||
| } | ||||||||||||||
| .sub-title { | ||||||||||||||
| font-size: 1.3rem; | ||||||||||||||
| } | ||||||||||||||
| } | ||||||||||||||
| } | ||||||||||||||
|
Comment on lines
+89
to
+109
|
||||||||||||||
|
|
||||||||||||||
| @media (max-width: 768px) and (min-width: 565px) { | ||||||||||||||
| .slick-slider .slick-item { | ||||||||||||||
| .main-title { | ||||||||||||||
| font-size: 1.4rem; | ||||||||||||||
| } | ||||||||||||||
| .sub-title { | ||||||||||||||
| font-size: 1rem; | ||||||||||||||
| } | ||||||||||||||
| margin-left: auto; | ||||||||||||||
| margin-right: auto; | ||||||||||||||
|
Comment on lines
+119
to
+120
|
||||||||||||||
| margin-left: auto; | |
| margin-right: auto; | |
| .title { | |
| margin-left: auto; | |
| margin-right: auto; | |
| } |
Copilot
AI
Feb 24, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing whitespace after the closing brace. This is a minor formatting issue but should be cleaned up for consistency.
| } | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The @media (max-width: 768px) rule is placed after the more specific @media (max-width: 768px) and (min-width: 565px) rule. While the properties might not directly conflict, it's generally best practice to order media queries from broadest to most specific (for max-width queries) or use non-overlapping ranges. This ensures a clearer and more predictable CSS cascade, making the stylesheet easier to understand and maintain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The font size for jobTitle at this breakpoint is extremely small (0.5rem). This could make the text nearly unreadable on small screens. Consider using a minimum of 0.7rem or 0.75rem for better accessibility and readability.