Skip to content

Commit 96e954a

Browse files
Merge pull request #116 from kavishkafernando/main
Improved Quick Start Guide for OpenChoreo
2 parents 0cec823 + 07c77e6 commit 96e954a

File tree

4 files changed

+210
-125
lines changed

4 files changed

+210
-125
lines changed
169 KB
Loading

src/css/custom.css

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,85 @@
2929
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
3030
}
3131

32+
/* Custom styles for the quick start guide step cards */
33+
.step-card {
34+
background-color: var(--custom-step-bg);
35+
border: 1px solid var(--custom-step-border);
36+
padding: 1.5rem;
37+
border-radius: 8px;
38+
}
39+
40+
.step-card h2, .step-card h3 {
41+
/* Remove default Docusaurus top margin on headers inside the card */
42+
margin-top: 0 !important;
43+
border-bottom: none !important;
44+
padding-bottom: 0 !important;
45+
}
46+
47+
.step-header {
48+
display: flex;
49+
align-items: center;
50+
gap: 1rem;
51+
margin-bottom: 1rem;
52+
}
53+
54+
.step-header-icon {
55+
font-size: 1.5rem;
56+
line-height: 1;
57+
color: white;
58+
background: var(--ifm-color-primary);
59+
border-radius: 70%;
60+
width: 40px;
61+
height: 40px;
62+
display: flex;
63+
justify-content: center;
64+
align-items: center;
65+
}
66+
67+
.step-header-text {
68+
font-size: 1.5rem;
69+
font-weight: 700;
70+
color: var(--ifm-font-color-base);
71+
}
72+
73+
.prereq-header-text {
74+
font-size: 1.35rem;
75+
font-weight: 700;
76+
color: var(--ifm-color-primary);
77+
margin-bottom: 1rem;
78+
}
79+
80+
/* Ensure code blocks within steps maintain a clean look */
81+
.step-card .theme-code-block {
82+
margin: 1.5rem 0;
83+
border-radius: 6px;
84+
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
85+
}
86+
87+
/* Fix for Docusaurus Note/Tip/Important blocks inside the custom card */
88+
.step-card .alert {
89+
margin-top: 1rem;
90+
margin-bottom: 1rem;
91+
border-radius: 6px;
92+
}
93+
94+
/* Image styling */
95+
.step-card img {
96+
border-radius: 8px;
97+
margin: 1rem 0;
98+
max-width: 100%;
99+
height: auto;
100+
}
101+
102+
.content-section-highlight {
103+
background-color: var(--ifm-background-surface-color); /* A slightly darker background than the page body */
104+
padding: 2rem;
105+
margin-top: 2rem;
106+
margin-bottom: 2rem;
107+
border-radius: 8px;
108+
border: 1px solid var(--ifm-color-primary-lighter); /* Subtle border */
109+
}
110+
32111
/* Navigation bar icons */
33112
.header-github-link,
34113
.header-discord-link {
169 KB
Loading

0 commit comments

Comments
 (0)