-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss-v1.2.html
More file actions
48 lines (45 loc) · 1.35 KB
/
Copy pathcss-v1.2.html
File metadata and controls
48 lines (45 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!doctype html>
<html dir="rtl" lang="ar">
<head>
<title>تخطيط متجاوب</title>
<style>
body {
margin: 0;
padding-block: 2rem;
padding-inline: clamp(1rem, 3vw, 3rem);
box-sizing: border-box;
}
section.لوحة {
--فراغ: 1rem;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min-content, 1fr));
grid-template-areas: "عنوان عنوان" "جانب محتوى";
row-gap: clamp(1rem, 2vw, 2rem);
column-gap: var(--فراغ);
margin-block: 1rem;
padding-inline: 2rem;
block-size: fit-content;
min-inline-size: 0;
place-items: stretch;
}
section.لوحة:has(> .تحذير) {
border-inline-start: 4px solid red;
padding-block: 1rem;
}
@media (min-width: 50rem) {
section.لوحة {
grid-auto-flow: column dense;
grid-auto-columns: fit-content(24rem);
place-content: space-evenly;
}
}
</style>
</head>
<body>
<section class="لوحة">
<h1>لوحة التخطيط</h1>
<section class="تحذير">حالة تحتاج مراجعة</section>
<p>هذا المثال يحافظ على أسماء الأصناف والقيم النصية كما هي.</p>
</section>
</body>
</html>