Skip to content

Commit bf7676c

Browse files
committed
Extended Changes
Signed-off-by: krishnaShuk <shuklakrishna.kris@gmail.com>
1 parent 76f17ad commit bf7676c

2 files changed

Lines changed: 34 additions & 13 deletions

File tree

content-learn/mastering-meshery/introduction-to-meshery/meshery/interpreting-meshery-designs.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ These components encapsulate the resources and include their detailed configurat
5555
<h2 class="chapter-sub-heading">Meshery Design at a Glance</h2>
5656

5757
<a href={basicDesign}>
58-
<img class="image-design" src={basicDesign} width="100%" align="center" />
58+
<img class="image-design-2" src={basicDesign} width="100%" align="center" />
5959
</a>
6060

6161

@@ -93,7 +93,7 @@ Let's explore a few of these categories.
9393
1. **Triangles**:
9494

9595
<img
96-
class="image-design"
96+
class="image-design-icons"
9797
src={Triangles}
9898
align="center"
9999
width="25%"
@@ -109,7 +109,7 @@ Let's explore a few of these categories.
109109
2. **Rectangles**:
110110

111111
<img
112-
class="image-design"
112+
class="image-design-icons"
113113
src={Rectangles}
114114
align="center"
115115
width="25%"
@@ -126,7 +126,7 @@ Let's explore a few of these categories.
126126
3. **User Icons**:
127127

128128
<img
129-
class="image-design"
129+
class="image-design-icons"
130130
src={Users}
131131
align="center"
132132
width="25%"
@@ -141,7 +141,7 @@ Let's explore a few of these categories.
141141
4. **Cylinders**:
142142

143143
<img
144-
class="image-design"
144+
class="image-design-icons"
145145
src={Cylinders}
146146
align="center"
147147
width="25%"
@@ -167,7 +167,7 @@ Note that users have the flexibility to **customize** these arrow styles to suit
167167
**Edge Relationships**
168168

169169
<img
170-
class="image-design"
170+
class="image-design-icons"
171171
src={DashedArrows}
172172
align="center"
173173
width="25%"
@@ -178,7 +178,7 @@ These are used to indicate traffic flow and relationships between components. Th
178178
**Annotations**
179179

180180
<img
181-
class="image-design"
181+
class="image-design-icons"
182182
src={AnnotationArrow}
183183
align="center"
184184
width="25%"
@@ -191,7 +191,7 @@ These are used to denote annotations or static connections between components. T
191191
1. **Edge-Network Relationship**: Represented by a dashed arrow with **port/network protocol**.
192192

193193
<img
194-
class="image-design"
194+
class="image-design-icons"
195195
src={NetworkEdgeRelationship}
196196
align="center"
197197
width="50%"
@@ -212,7 +212,7 @@ These are used to denote annotations or static connections between components. T
212212
The intermediary component (such as a RoleBinding) connects the two, defining how permissions are assigned. For example, a dashed arrow from a `Role` to a `ServiceAccount` with a `RoleBinding` in the middle shows the connection established by the RoleBinding, which links the specific role to the service account and grants the appropriate permissions.
213213

214214
<img
215-
class="image-design"
215+
class="image-design-icons"
216216
src={EdgePermissions}
217217
align="center"
218218
width="50%"
@@ -236,7 +236,7 @@ Meshery extends and offers support for numerous [integrations](https://docs.mesh
236236
In Meshery, these integrated components are distinctly represented by their specific logos as icons and various shapes. These components can be found in `Components` in the dock.
237237

238238
<img
239-
class="image-design"
239+
class="image-design-icons"
240240
src={Integrations}
241241
align="center"
242242
width="50%"

src/components/Learn-Components/Chapters-Style/chapters.style.js

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,33 @@ export const ChapterStyle = styled.div`
1818
}
1919
}
2020
21-
div[style*="width:100%"][style*="height:auto"] {
21+
div[style*="width: 100%"][style*="overflow"] {
2222
aspect-ratio: unset !important;
23-
margin: 20px;
23+
overflow: unset !important;
24+
margin: 20px 0px 20px 0px !important;
2425
}
2526
26-
.image-design {
27+
.image-design-icons {
2728
object-fit: contain !important;
29+
30+
@media (max-width: 768px) {
31+
width: clamp(200px, 60vw, 400px) !important;
32+
height: auto !important;
33+
max-width: none !important;
34+
}
35+
36+
@media (max-width: 480px) {
37+
width: clamp(150px, 70vw, 350px) !important;
38+
}
39+
2840
}
41+
42+
.image-design {
43+
object-fit: contain !important;
44+
}
45+
46+
.image-design-2 {
47+
aspect-ratio: unset !important;
48+
object-fit: contain !important;
49+
}
2950
`;

0 commit comments

Comments
 (0)