37 ol.ol { list-style: none; counter-reset: list; padding: 0 1rem; } .post-body ol>li.li { --stop: calc(100% / var(--length) * var(--i)); --l: 62%; --l2: 88%; --h: calc((var(--i) - 1) * (180 / var(--length))); --c1: hsl(var(--h), 71%, var(--l)); --c2: hsl(var(--h), 50%, var(--l2)); position: relative; counter-increment: list; max-width: 45rem; margin: 2rem auto; padding: 2rem 1rem 1rem; box-shadow: 0.1rem 0.1rem 1.5rem rgba(0, 0, 0, 0.3); border-radius: 0.25rem; overflow: hidden; } .post-body ol>li.li::before { content: ''; display: block; width: 100%; height: 1rem; position: absolute; top: 0; left: 0; background: linear-gradient(to right, var(--c1) var(--stop), var(--c2) var(--stop)); } .post-body h3.h3 { display: flex; align-items: center; margin: 0 0 1rem; -webkit-text-fill-color: unset; } .post-body h3.h3::before { display: flex; justify-content: center; align-items: center; flex: 0 0 auto; margin-right: 1rem; width: 1.5rem; height: 1.5rem; content: counter(list); padding: 1rem; border-radius: 50%; background-color: var(--c1); color: #161616; } .post-body ol li ul, .post-body ul li ul{ padding: 0 0 0 72px; } @media (min-width: 40em) { .post-body ol>li.li { margin: 2rem auto; padding: 2rem 1.5rem 1.5rem; } .post-body h3.h3 { margin: 0 0 1rem; } .post-body h3.h3::before { margin-right: 1.5rem; width: 1.5rem; height: 1.5rem; } } @media only screen and (max-width: 680px) { .post-body h3.h3::before { display: flex; justify-content: center; align-items: center; flex: 0 0 auto; margin-right: 1rem; width: 1rem; height: 1rem; font-size:13px; content: counter(list); padding: .8rem; border-radius: 50%; background-color: var(--c1); } .post-body ol li ul, .post-body ul li ul{ padding: 0 0 0 10px; } }
Mục lục
-
Giới thiệu
-
Biến và kiểu dữ liệu
-
Cấu trúc điều khiển và vòng lặp
-
Mảng
-
String
-
Hàm
-
Con trỏ
-
Sử dụng hình ảnh
-
Struct
-
Làm việc với file
-
Hướng đối tượng (OOP)
-
Hoàn thành khóa học

