Skip to content

Commit

Permalink
fix: Icon title, searchinput background, DM text color & styling
Browse files Browse the repository at this point in the history
  • Loading branch information
josephgregoryii committed Jan 3, 2022
1 parent 72c70ed commit dcbc41f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 25 deletions.
13 changes: 12 additions & 1 deletion src/components/PackTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ const PackTile = ({
margin-bottom: 1em;
flex-direction: row;
`}
@media screen and (max-width: 760px) {
flex-direction: row;
}
`}
onClick={() => handlePackClick(id)}
>
Expand All @@ -104,6 +108,10 @@ const PackTile = ({
display: none;
}
`}
@media screen and (max-width: 760px) {
display: none;
}
`}
/>
<div
Expand Down Expand Up @@ -134,7 +142,6 @@ const PackTile = ({
</p>
</div>
<div
className="tag-div"
css={css`
padding: 1em;
display: flex;
Expand All @@ -147,6 +154,10 @@ const PackTile = ({
span {
color: var(--color-brand-500);
}
@media screen and (max-width: 760px) {
flex-direction: column;
justify-content: flex-end;
}
`}
>
{featured && (
Expand Down
1 change: 1 addition & 0 deletions src/components/SegmentedControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const SegmentedControl = ({ items, onChange, className }) => {
`}
>
<Icon
title={value}
css={css`
margin-top: 4px;
font-size: 2em;
Expand Down
34 changes: 10 additions & 24 deletions src/pages/instant-observability.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ const QuickstartsPage = ({ data, location }) => {
.dark-mode & {
background-color: var(--tertiary-background-color);
input {
background: var(--color-dark-500);
background: var(--color-dark-400);
&::placeholder {
color: var(primary-text-color);
Expand Down Expand Up @@ -470,23 +470,25 @@ const QuickstartsPage = ({ data, location }) => {

<div
css={css`
--text-color: var(--primary-text-color);
padding: 1.25rem 0;
font-size: 16px;
color: var(--color-neutrals-800);
display: flex;
justify-content: space-between;
align-text: center;
span {
color: var(--text-color);
}
strong {
color: var(--color-neutrals-700);
color: var(--text-color);
}
`}
>
<span
css={css`
color: var(--primary-text-color);
`}
>
<span>
Showing {filteredQuickstarts.length} results for:{' '}
<strong>{search || getDisplayName()}</strong>
</span>
Expand Down Expand Up @@ -526,19 +528,6 @@ const QuickstartsPage = ({ data, location }) => {
/>
{filteredQuickstarts.map((pack) => (
<PackTile
css={css`
@media screen and (max-width: ${COLLAPSE_BREAKPOINT}) {
flex-direction: row;
img {
display: none;
}
.tag-div {
flex-direction: column;
justify-content: flex-end;
}
}
`}
key={pack.id}
view={view}
featured={pack.keywords?.includes('featured')}
Expand Down Expand Up @@ -609,10 +598,7 @@ const Label = ({ children, htmlFor }) => (
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.5rem;
.light-mode & {
color: var(--color-neutrals-800);
}
color: var(--color-neutrals-800);
`}
>
{children}
Expand Down

0 comments on commit dcbc41f

Please sign in to comment.