Skip to content

Commit

Permalink
feat: getting-started shows stacked icons in responsive layout
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Nuri <[email protected]>
  • Loading branch information
manusa committed Aug 10, 2023
1 parent 1be7e2a commit 5acfaa2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Eclipse JKube also provides a set of tools such as watch, debug, log, etc. to im
<GettingStartedTab
id='kubernetes-maven-plugin'
title={<><MavenIcon /> Maven &nbsp; <KubernetesIcon /> Kubernetes</>}
titleCompact={<><MavenIcon /> <KubernetesIcon /></>}
titleCompact={<><MavenIcon /><KubernetesIcon /></>}
videoId='FHz5q8ERtPk'
>
<Tag color='#FFF' backgroundColor='#DD8623'>[🚀 Getting started](/docs/kubernetes-maven-plugin/#getting-started)</Tag>
Expand Down Expand Up @@ -63,7 +63,7 @@ Eclipse JKube also provides a set of tools such as watch, debug, log, etc. to im
<GettingStartedTab
id='openshift-maven-plugin'
title={<><MavenIcon /> Maven &nbsp; <OpenShiftIcon hideText={true} /> OpenShift</>}
titleCompact={<><MavenIcon /> <OpenShiftIcon hideText={true} /></>}
titleCompact={<><MavenIcon /><OpenShiftIcon hideText={true} /></>}
videoId='ZJzfD-bDxpc'
>
<Tag color='#FFF' backgroundColor='#DD8623'>[🚀 Getting started](/docs/openshift-maven-plugin/#getting-started)</Tag>
Expand Down Expand Up @@ -91,7 +91,7 @@ Eclipse JKube also provides a set of tools such as watch, debug, log, etc. to im
<GettingStartedTab
id='kubernetes-gradle-plugin'
title={<><GradleIcon variant='light' /> Gradle &nbsp; <KubernetesIcon /> Kubernetes</>}
titleCompact={<><GradleIcon variant='light' /> <KubernetesIcon /></>}
titleCompact={<><GradleIcon variant='light' /><KubernetesIcon /></>}
videoId='TUYl2Vw8bnQ'
>
<Tag color='#FFF' backgroundColor='#DD8623'>[🚀 Getting started](/docs/kubernetes-gradle-plugin/#getting-started)</Tag>
Expand All @@ -114,7 +114,7 @@ Eclipse JKube also provides a set of tools such as watch, debug, log, etc. to im
<GettingStartedTab
id='openshift-gradle-plugin'
title={<><GradleIcon variant='light' /> Gradle &nbsp; <OpenShiftIcon hideText={true} /> OpenShift</>}
titleCompact={<><GradleIcon variant='light' /> <OpenShiftIcon hideText={true} /></>}
titleCompact={<><GradleIcon variant='light' /><OpenShiftIcon hideText={true} /></>}
videoId='uMxEzLdqcik'
>
<Tag color='#FFF' backgroundColor='#DD8623'>[🚀 Getting started](/docs/openshift-gradle-plugin/#getting-started)</Tag>
Expand Down
19 changes: 19 additions & 0 deletions src/styles/templates/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,25 @@
:not(pre) > code[class*="language-"], pre[class*="language-"] {
background-color: transparent;
}
.eclipse-jkube-tabs__tab-title--sm {
position: relative;
svg {
$title-margin: 0.3rem;
&:nth-child(1) {
z-index: 1;
opacity: 75%;
padding-top: $title-margin * 1.5;
padding-right: $title-margin * 3;
}
&:nth-child(2) {
position: absolute;
z-index: 0;
height: 1.1rem;
top: $title-margin;
right: $title-margin;
}
}
}
.section-dark {
@include full-width;
background-color: $color-dark-background;
Expand Down

0 comments on commit 5acfaa2

Please sign in to comment.