Skip to content

Commit 64ae09e

Browse files
committed
Docs home page card layout is now consistent
1 parent 68ae50c commit 64ae09e

File tree

2 files changed

+41
-14
lines changed

2 files changed

+41
-14
lines changed

assets/scss/_custom.scss

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -317,20 +317,47 @@ footer {
317317
/* DOCS */
318318

319319
.launch-cards {
320+
padding: 0;
321+
.launch-card{
322+
323+
padding: 0;
324+
display: flex;
325+
flex-direction: column;
326+
background-color: #DAEAf9;
327+
border:2px solid #99B7D3;
328+
border-radius: 8px;
329+
330+
h2 {
331+
text-align: center;
332+
font-size: 1.75em;
333+
padding: .5em;
334+
335+
a{
336+
display: none;
337+
}
338+
}
339+
340+
p {
341+
padding: .5em;
342+
text-align: center;
343+
}
344+
345+
ul {
346+
list-style: disc;
347+
color: #99B7D3;
348+
margin: 0 auto;
349+
margin-block-end: auto;
350+
}
351+
320352
button {
353+
height: min-content;
354+
margin: 0 auto;
355+
padding: .5em .75em;
321356
cursor: pointer;
322357
box-sizing: border-box;
323-
background: none;
324-
margin: 0;
325-
border: 0;
326-
}
327-
328-
ul,
329-
li {
330-
list-style: none;
331-
padding-left: 0;
332358
}
333359
}
360+
}
334361

335362
// table of contents
336363
.td-toc {

content/en/docs/home/_index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ cards:
4646
description: Browse terminology, command line syntax, API resource types, and setup tool documentation.
4747
button: View Reference
4848
button_path: /docs/reference
49-
- name: training
50-
title: "Training"
51-
description: "Get certified in Kubernetes and make your cloud native projects successful!"
52-
button: "View training"
53-
button_path: "/training"
5449
- name: contribute
5550
title: Contribute to Kubernetes
5651
description: Anyone can contribute, whether you're new to the project or you've been around a long time.
5752
button: Find out how to help
5853
button_path: /docs/contribute
54+
- name: training
55+
title: "Training"
56+
description: "Get certified in Kubernetes and make your cloud native projects successful!"
57+
button: "View training"
58+
button_path: "/training"
5959
- name: Download
6060
title: Download Kubernetes
6161
description: Install Kubernetes or upgrade to the newest version.

0 commit comments

Comments
 (0)